joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7a8a2c
Capabilities:
Reference http user-agent string

Disassembly:
push ebx
push esi
push edi
test dl, dl
je 0x7a8a3b
add esp, 0xfffffff0
call fcn.00408fec
mov ebx, edx
mov edi, eax
xor edx, edx
mov eax, edi
call fcn.006fe978
mov dl, 1
mov eax, dword [0x7a5f14]
call fcn.007aca40
mov dword [edi + 0xbc], eax
mov dl, 1
mov eax, dword [0x7a5bfc]
call fcn.00408994
mov dword [edi + 0xb4], eax
lea eax, [edi + 0x78]
push eax
call sub.KERNEL32.DLL_InitializeCriticalSection
mov dl, 1
mov eax, dword [0x757554]
call fcn.0069b2ec
mov esi, eax
mov dword [edi + 0xa0], esi
movzx eax, word [0x7a8af4]
or word [esi + 0x149], ax
mov eax, esi
mov edx, 0xea60
call fcn.00720a50
mov eax, dword [edi + 0xa0]
mov edx, 0xea60
call fcn.00720a68
mov esi, dword [edi + 0xa0]
mov byte [esi + 0x148], 1
mov eax, esi
call fcn.0075bbb4
add eax, 0xa8
mov edx, 0x7a8b04
call fcn.0040ab8c
mov eax, edi
test bl, bl
je 0x7a8aeb
call fcn.00409044
pop dword fs:[0]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x7aff74
Capabilities:
Query service status

Disassembly:
add esp, 0xffffffe4
push esp
mov eax, dword [eax + 8]
push eax
call sub.advapi32.dll_QueryServiceStatus
mov eax, dword [esp + 4]
add esp, 0x1c
ret

Function at 0x7b0a1c
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x7b0aee
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x18], 0
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 4]
call fcn.0040b294
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0x11
lea edx, [ebp - 0x1c]
mov ecx, 2
mov eax, 0x7b0b0c
call fcn.00689358
push 0
call sub.KERNEL32.DLL_SetLastError
lea eax, [ebp - 4]
push eax
push esi
mov eax, dword [ebx + 8]
push eax
call sub.advapi32.dll_StartServiceW
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
call sub.KERNEL32.DLL_GetLastError
mov esi, eax
push 0
lea edx, [ebp - 0x34]
mov eax, ebx
call fcn.006896fc
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0x11
mov dword [ebp - 0x28], esi
mov byte [ebp - 0x24], 0
lea edx, [ebp - 0x30]
mov ecx, 1
mov eax, 0x7b0b78
call fcn.00689358
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7b0af5
lea eax, [ebp - 0x34]
call fcn.0040a7ac
lea eax, [ebp - 0x20]
call fcn.0040a7ac
pop eax
jmp eax
Function at 0x7b49b4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x7b4ae3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2dc], 0
je 0x7b4acb
mov eax, dword [ebp - 4]
call fcn.007b51a4
test al, al
jne 0x7b4acb
xor eax, eax
push ebp
push 0x7b4ac1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x52c078]
call fcn.00532234
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x7b4ab0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 4]
call fcn.00569828
push eax
call sub.user32.dll_BeginPaint
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.00533208
mov eax, dword [ebp - 4]
call fcn.007b5188
mov edx, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x40]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
call fcn.007b518c
mov edx, dword [eax]
call dword [edx + 0x30]
mov ebx, eax
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 4]
call fcn.007b5168
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 8]
call fcn.0053218c
add ebx, eax
mov edx, ebx
add edx, 0xc
add edx, 3
mov eax, dword [ebp - 4]
call fcn.0055f188
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7b4ab7
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 4]
call fcn.00569828
push eax
call sub.user32.dll_EndPaint
mov eax, dword [ebp - 8]
call fcn.004089c4
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7b4aea
lea eax, [ebp - 0x4c]
call fcn.0040a7ac
pop eax
jmp eax
Function at 0x407170
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x407189
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4071c4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4071c0
lea ebx, [ebx]
cmp esi, eax
jae 0x4071c4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4071b0
cmp esi, eax
jb 0x4071ca
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x407220
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
push esi
lea eax, [esp + 4]
push eax
xor esi, esi
push 0x20
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x407299
lea ecx, [esp + 0xc]
push ecx
push str.SeDebugPrivilege
push esi
mov dword [esp + 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 4]
push esi
push esi
push 0x10
neg edx
lea eax, [esp + 0x14]
push eax
sbb edx, edx
push esi
and edx, 2
push ecx
mov dword [esp + 0x2c], edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 4]
mov esi, eax
neg esi
sbb esi, esi
push edx
add esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x14
ret

Function at 0x408480
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x408513
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push edi
lea eax, [esp + 0x14]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
test eax, eax
mov edi, dword [esp + 0x2c]
je 0x408500
test edi, 0x100
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
ja 0x4084ef
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea ecx, [esp + 0xc]
push ecx
push 0
mov edx, ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and edi, 0x27
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0x10
Function at 0x4088e0
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x84
mov eax, dword [0x484ea8]
xor eax, esp
mov dword [esp + 0x80], eax
push esi
mov esi, dword [esp + 0x8c]
push 0x80
lea eax, [esp + 8]
push eax
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x40893e
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, esi
mov edi, edi
mov cl, byte [eax]
mov byte [edx], cl
add eax, 1
add edx, 1
test cl, cl
jne 0x408930
mov ecx, dword [esp + 0x84]
pop esi
xor ecx, esp
call fcn.00448c24
add esp, 0x84
ret

Function at 0x408960
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
sub esp, 0x48
mov eax, dword [0x484ea8]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x4c]
push 0x46d3b7
push eax
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x10]
push eax
call fcn.004088e0
lea eax, [esp + 0x14]
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x408996
sub eax, edx
je 0x408aa4
push ebx
push 0x288
mov dword [esp + 0xc], 0x288
call fcn.004486a0
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 4], ebx
je 0x408a9a
lea ecx, [esp + 8]
push ecx
push ebx
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
je 0x4089f3
push ebx
call fcn.00448763
mov edx, dword [esp + 0xc]
push edx
call fcn.004486a0
add esp, 8
mov dword [esp + 4], eax
mov ebx, eax
test ebx, ebx
je 0x408a9a
lea eax, [esp + 8]
push eax
push ebx
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x408a9a
push edi
mov edi, ebx
lea eax, [edi + 0x1b0]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x408a20
sub eax, edx
jne 0x408a35
mov edi, dword [edi]
test edi, edi
jne 0x408a11
jmp 0x408a99
mov eax, dword [edi + 0x190]
push esi
xor esi, esi
test eax, eax
jbe 0x408a98
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
nop
movzx edx, byte [edi + esi + 0x194]
add eax, 0xffffffff
mov ecx, esi
sub ecx, eax
neg ecx
sbb ecx, ecx
and ecx, 0xd
add ecx, 0x20
push ecx
push edx
lea eax, [esp + 0x28]
push str._02X_c
push eax
call ebx
mov edx, dword [esp + 0x28]
add esp, 0x10
lea ecx, [esp + 0x20]
push ecx
push edx
call ebp
mov eax, dword [edi + 0x190]
add esi, 1
cmp esi, eax
jb 0x408a50
mov ebx, dword [esp + 0x10]
pop ebp
pop esi
pop edi
push ebx
call fcn.00448763
add esp, 4
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00448c24
add esp, 0x48
ret
Function at 0x408c10
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
mov eax, 0x1270
call fcn.0044a500
mov eax, dword [0x484ea8]
xor eax, esp
mov dword [esp + 0x126c], eax
mov eax, dword [esp + 0x1274]
lea ecx, [esp + 8]
push ecx
push 0x1000
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x408c72
push eax
push 0x46d41c
push 0x46d40c
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x126c]
xor ecx, esp
call fcn.00448c24
add esp, 0x1270
ret
mov eax, dword [esp + 8]
shr eax, 2
push edi
mov dword [esp + 8], eax
mov edi, 0
je 0x408dc2
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebp
mov ebp, dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
push esi
jmp 0x408ca0
mov eax, dword [str._unknown_]
mov ecx, dword [0x46d404]
mov dx, word [0x46d408]
push 0xfa
mov dword [esp + 0x1078], eax
lea eax, [esp + 0x1082]
push 0
push eax
mov dword [esp + 0x1084], ecx
mov word [esp + 0x1088], dx
call fcn.004498a0
mov ecx, dword [esp + edi*4 + 0x28]
add esp, 0xc
push ecx
push 0
push 0x1f0fff
call ebx
mov esi, eax
test esi, esi
je 0x408db2
push 0x104
lea edx, [esp + 0x1078]
push edx
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
jbe 0x408dab
lea eax, [esp + 0x1074]
push eax
lea ecx, [esp + 0x117c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x1178]
push 0x5c
push edx
call fcn.00448d75
add esp, 8
test eax, eax
je 0x408dab
mov ecx, dword [esp + 0x10]
push ecx
add eax, 1
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x408dab
push 0x4865e0
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x408d97
lea edx, [esp + 0x101c]
push edx
push 2
mov dword [esp + 0x1024], 0x58
mov dword [esp + 0x1028], eax
mov dword [esp + 0x102c], 0x80
mov dword [esp + 0x1030], 7
call ebp
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 1
cmp edi, dword [esp + 0x14]
jb 0x408ca0
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1270]
pop edi
xor ecx, esp
call fcn.00448c24
add esp, 0x1270
ret
Function at 0x408de0
Capabilities:
Check if file exists
Create shortcut via ishelllink
Delete file

Disassembly:
sub esp, 8
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jne 0x408ec2
push edi
mov edi, dword [esp + 0x10]
push eax
push edi
call fcn.004647f6
add esp, 8
cmp eax, 0xffffffff
je 0x408e0e
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 4]
push eax
push 0x4708dc
push 1
push 0
push 0x4757a0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x408ebb
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
push esi
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x408e62
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 8]
mov ecx, dword [eax]
push edx
push esi
push eax
mov eax, dword [ecx + 0x44]
call eax
mov eax, dword [esp + 8]
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push 0x4758e0
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x408eae
push edi
call fcn.00408690
mov esi, eax
add esp, 4
test esi, esi
je 0x408ea2
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push 1
push esi
push eax
call edx
push esi
call fcn.004202af
add esp, 4
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop esi
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
add esp, 8
ret

Function at 0x4093a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x464f58
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x484ea8]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x28]
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4093e6
and al, 0x10
xor cl, cl
cmp cl, al
sbb edx, edx
neg edx
jne 0x4094a9
push ebp
lea ecx, [esp + 0x14]
call fcn.004092d0
mov esi, dword [esp + 0x10]
mov eax, esi
mov dword [esp + 0x20], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409401
sub eax, edx
sar eax, 1
cmp eax, 1
jle 0x409422
cmp word [esi + eax*2 - 2], 0x5c
jne 0x409422
mov word [esi + eax*2 - 2], cx
push 0x5c
push esi
call fcn.00449d15
add esp, 8
test eax, eax
push esi
jne 0x409452
call fcn.004202af
add esp, 4
mov eax, 0xf
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
mov word [eax], 0
call fcn.004093a0
mov edi, eax
add esp, 4
test edi, edi
je 0x409483
push esi
call fcn.004202af
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4094a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0xb7
jne 0x409465
push esi
call fcn.004202af
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
Function at 0x40a250
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x465068
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x484ea8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.Cabinet::CExtract.0
mov dword [esp + 0x14], 5
call fcn.004082a0
test eax, eax
je 0x40a2b2
mov eax, dword [0x486bb4]
cmp eax, 0xffffffff
je 0x40a2b2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x40a2b2
mov eax, dword [0x486bb4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [esi + 0x110c]
test eax, eax
je 0x40a2c3
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 0x10fc]
test eax, eax
je 0x40a2d6
push eax
call fcn.004202af
add esp, 4
mov ecx, dword [esi + 0x10dc]
push ecx
call fcn.004202af
mov eax, dword [esi + 0x10c0]
add esp, 4
test eax, eax
je 0x40a2f8
push eax
call fcn.004202af
add esp, 4
mov dword [esi + 0x10c0], 0
mov edx, dword [esi + 0x60]
push edx
call fcn.004202af
mov eax, dword [esi + 0x58]
push eax
call fcn.004202af
mov ecx, dword [esi + 0x50]
push ecx
call fcn.004202af
mov edx, dword [esi + 0x54]
push edx
call fcn.004202af
mov eax, dword [esi + 0x14]
push eax
call fcn.004202af
mov ecx, dword [esi + 0xc]
push ecx
call fcn.004202af
add esp, 0x18
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x40afd0
Capabilities:
Download url
Get common file path
Receive data

Disassembly:
sub esp, 0x108
mov eax, dword [0x484ea8]
xor eax, esp
mov dword [esp + 0x104], eax
push edi
mov edi, dword [esp + 0x114]
lea eax, [esp + 4]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
ja 0x40b03b
mov eax, dword [esp + 0x110]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b023
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop edi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00448c24
add esp, 0x108
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [esp + 0xc]
push ecx
push str._sslient_d_temp.cab
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [esp + 0x124]
add esp, 0x10
push esi
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push 0
push 0
push edi
push esi
push 0
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
lea eax, [esi - 0x10]
jne 0x40b0ae
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b092
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop esi
mov eax, 1
pop edi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00448c24
add esp, 0x108
ret
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b0c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10c]
pop esi
pop edi
xor ecx, esp
xor eax, eax
call fcn.00448c24
add esp, 0x108
ret
Function at 0x40b7c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ebp, ebp
cmp dword [esi + 0x1108], eax
je 0x40b7ef
mov dword [esi + 0x10e8], ebp
mov dword [esi + 0x10ec], ebp
mov dword [esi + 0x10e4], 0x3f3
pop esi
xor eax, eax
pop ebp
ret
mov eax, dword [0x486bb4]
cmp eax, 0xffffffff
push edi
je 0x40b845
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call edi
cmp eax, ebp
je 0x40b823
pop edi
mov dword [esi + 0x10e8], ebp
mov dword [esi + 0x10ec], ebp
mov dword [esi + 0x10e4], 0x3f4
pop esi
xor eax, eax
pop ebp
ret
mov eax, dword [0x486bb4]
cmp eax, 0xffffffff
je 0x40b845
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x40b845
mov eax, dword [0x486bb4]
push eax
call edi
cmp eax, ebp
jne 0x40b861
pop edi
mov dword [esi + 0x10e4], ebp
mov dword [esi + 0x10ec], ebp
mov dword [esi + 0x10e8], 0xe
pop esi
xor eax, eax
pop ebp
ret
lea edi, [esi + 0x10cc]
xor eax, eax
mov dword [edi + 0x18], ebp
mov dword [edi + 0x1c], ebp
mov dword [edi + 0x20], ebp
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
cmp dword [esi + 0x10f0], ebp
jne 0x40b924
cmp dword [esi + 0x110c], ebp
jne 0x40b92a
push ebx
push str.Cabinet.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FDICreate
push eax
mov dword [esi + 0x110c], eax
call ebx
mov ecx, dword [esi + 0x110c]
push str.FDICopy
push ecx
mov dword [esi + 0x1110], eax
call ebx
mov edx, dword [esi + 0x110c]
push str.FDIIsCabinet
push edx
mov dword [esi + 0x1114], eax
call ebx
mov dword [esi + 0x1118], eax
mov eax, dword [esi + 0x110c]
push str.FDIDestroy
push eax
call ebx
cmp dword [esi + 0x1110], ebp
mov dword [esi + 0x111c], eax
pop ebx
je 0x40b911
cmp dword [esi + 0x1114], ebp
je 0x40b911
cmp dword [esi + 0x1118], ebp
je 0x40b911
cmp eax, ebp
jne 0x40b92a
mov dword [esi + 0x110c], ebp
mov dword [edi + 0x18], 0x3e8
mov dword [edi + 0x1c], ebp
mov dword [edi + 0x20], ebp
pop edi
pop esi
xor eax, eax
pop ebp
ret
mov ecx, dword [esi + 0x1110]
push edi
push 1
push 0x40a490
push fcn.0040a460
push 0x4096e0
push 0x40a410
push 0x40afa0
push 0x408330
push 0x408320
call ecx
add esp, 0x24
xor edx, edx
cmp eax, ebp
setne dl
pop edi
mov dword [esi + 0x10f0], eax
pop esi
pop ebp
mov eax, edx
ret
Function at 0x40f070
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
sub esp, 0x310
mov eax, dword [0x484ea8]
xor eax, esp
mov dword [esp + 0x30c], eax
push esi
mov esi, dword [esp + 0x318]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.1.0.0.0
push 0x48639c
call edi
push 0x104
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 8]
push 0x5c
push ecx
call fcn.00448d75
add esp, 8
test eax, eax
je 0x40f163
add eax, 1
push eax
push 0x4863d0
call edi
lea edx, [esp + 8]
push str._ver_
push edx
call fcn.00449e84
add esp, 8
test eax, eax
je 0x40f163
push 0
push 0x1a
lea eax, [esp + 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x40f163
lea ecx, [esp + 0x10c]
push ecx
push 2
call fcn.004085c0
lea edx, [esp + 0x114]
push edx
lea eax, [esp + 0x21c]
push eax
push str._s_s_
push 0x4864d8
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0x4864d8
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40f17c
push eax
push 0x4864d8
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40f17c
push eax
push 0x46d41c
push 0x46dd68
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x30c]
xor ecx, esp
call fcn.00448c24
add esp, 0x310
ret
call fcn.0040e560
call fcn.0040b1e0
mov ecx, dword [esp + 0x314]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.00448c24
add esp, 0x310
ret

Function at 0x4146d0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x2c
mov eax, dword [0x484ea8]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
mov ebx, dword [esp + 0x38]
push ebp
mov ebp, dword [esp + 0x40]
push esi
push edi
mov edi, dword [esp + 0x40]
push 0xa
lea eax, [esp + 0x14]
mov esi, ecx
mov ecx, dword [esp + 0x50]
push eax
push ecx
call fcn.0046484a
mov esi, dword [esi]
add esp, 0xc
push esi
push 0x64
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x24]
push ecx
mov esi, eax
call fcn.0044992b
mov ecx, dword [esp + 0x3c]
add esp, 4
pop edi
mov dword [ebp], eax
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00448c24
add esp, 0x2c
ret 0x10