joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409cf0
Capabilities:
Create thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x436fc8
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
mov al, byte [esi + 0x214]
test al, al
je 0x409d2b
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov eax, dword [esi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 2
push 0xffffffffffffffff
push 0x100c
push eax
mov byte [esi + 0x214], 1
call ebx
lea ebp, [eax + 1]
test ebp, ebp
jne 0x409d69
mov byte [esi + 0x214], 0
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push str.ur.rtbt
lea ecx, [esp + 0x14]
push 0x44e6e4
push ecx
call fcn.004293ec
mov eax, dword [eax]
mov dword [esp + 0x20], 0
push eax
call fcn.00411920
add esp, 4
lea ecx, [esp + 0x10]
test al, al
sete byte [esp + 0xf]
mov dword [esp + 0x20], 0xffffffff
call fcn.00429157
mov al, byte [esp + 0xf]
test al, al
je 0x409dbe
push 0
push 0
push 0x4477c0
call fcn.00430922
mov edx, dword [esi + 0x1c]
push edi
dec ebp
push 2
push ebp
push 0x100c
push edx
call ebx
mov edi, eax
push ebp
mov ecx, esi
inc edi
call fcn.00428105
push 0x4477b4
push 1
push ebp
mov ecx, esi
mov dword [esp + 0x24], eax
mov dword [eax + 4], 3
call fcn.004280da
push str.00:00:00
push 2
push ebp
mov ecx, esi
call fcn.004280da
test edi, edi
je 0x409e4b
mov eax, dword [esi + 0x1c]
lea ebp, [edi - 1]
push 2
push ebp
push 0x100c
push eax
call ebx
inc eax
push ebp
mov ecx, esi
mov edi, eax
call fcn.00428105
push 0x4477a8
push 1
push ebp
mov ecx, esi
mov dword [eax + 4], 2
call fcn.004280da
push str.00:00:00
push 2
push ebp
mov ecx, esi
call fcn.004280da
test edi, edi
jne 0x409e06
mov ecx, dword [esp + 0x18]
push 0
push 0
push ecx
push 0x40a3a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x409ea0
Capabilities:
Create process on windows

Disassembly:
push ecx
push esi
mov esi, ecx
push 0
push 0
mov eax, dword [esi + 0x1c]
push 0x1042
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
je 0x409efd
push edi
push eax
mov ecx, esi
call fcn.00428105
mov edi, dword [eax + 0x30]
add esi, 0x218
push str.mplayer.exe
lea ecx, [esp + 0xc]
push esi
push ecx
call fcn.004293ec
mov edx, dword [eax]
push 0
push 0
push edi
push edx
push str.Open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 8]
call fcn.00429157
pop edi
pop esi
pop ecx
ret
Function at 0x40a270
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x437010
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0040f430
mov ecx, dword [esp + 0x30]
lea eax, [esp + 4]
push eax
mov dword [esp + 0x2c], 0
call fcn.0040cf10
lea ecx, [esp + 0x10]
call fcn.0042d3f5
mov esi, dword [esi + 0x21c]
push 0
push 0x1001
push esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 1
call fcn.0042d507
test eax, eax
jne 0x40a318
push 0x1f4
push 0x3e8
call fcn.0041c79f
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.0042d44a
lea ecx, [esp + 4]
mov dword [esp + 0x28], 0xffffffff
call fcn.0040f4f0
xor al, al
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 4
mov esi, dword [esp + 8]
lea ecx, [esp + 4]
call fcn.0040fde0
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.0042d65e
lea ecx, [esp + 0x10]
call fcn.0042d722
mov ecx, dword [0x44e60c]
push str.1.out
add ecx, 0x218
lea edx, [esp + 0x34]
push ecx
push edx
call fcn.004293ec
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x30]
call fcn.00429157
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.0042d44a
lea ecx, [esp + 4]
mov dword [esp + 0x28], 0xffffffff
call fcn.0040f4f0
mov ecx, dword [esp + 0x20]
mov al, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4

Function at 0x40a690
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x44
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 8]
mov edx, dword [esp + 0x54]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x58]
mov word [esp + 0x38], ax
mov ecx, edi
push edx
mov dword [esp + 0xc], 0x44
mov dword [esp + 0x38], 1
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
call fcn.0041e440
mov ecx, dword [esp + 0x54]
add esp, 4
mov esi, eax
lea eax, [esp + 8]
push edi
push eax
push ecx
push 0
push 0
push 1
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
push esi
jne 0x40a70a
call fcn.0041c7ae
add esp, 4
xor eax, eax
pop edi
pop esi
add esp, 0x44
ret
call fcn.0041c7ae
add esp, 4
mov eax, 1
pop edi
pop esi
add esp, 0x44
ret
Function at 0x40ac50
Capabilities:
Access peb ldr_data
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x437161
push eax
mov dword fs:[0], esp
sub esp, 0x460
lea eax, [esp]
push ebx
push esi
push str.ur.rtbt
push 0x44e6e4
push eax
call fcn.004293ec
mov eax, dword [eax]
push 0x4475d4
push eax
call fcn.0041c41d
add esp, 8
lea ecx, [esp + 8]
mov esi, eax
call fcn.00429157
xor ebx, ebx
cmp esi, ebx
je 0x40ae0e
lea ecx, [esp + 0x1c]
call fcn.0040f0e0
push esi
push 0x400
lea ecx, [esp + 0x70]
push 1
push ecx
mov dword [esp + 0x480], ebx
mov dword [esp + 0x34], ebx
call fcn.0041c610
add esp, 0x10
cmp eax, ebx
je 0x40acfb
lea edx, [esp + 0x68]
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.0040f1f0
push esi
push 0x400
lea eax, [esp + 0x70]
push 1
push eax
call fcn.0041c610
add esp, 0x10
cmp eax, ebx
jne 0x40acd3
push esi
call fcn.0041c36f
add esp, 4
lea ecx, [esp + 0x30]
call fcn.0040aff0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x470], 1
push ecx
lea ecx, [esp + 0x34]
call fcn.0040b1d0
test al, al
jne 0x40ad52
push str.ur.rtbt
lea edx, [esp + 0xc]
push 0x44e6e4
push edx
call fcn.004293ec
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 8]
call fcn.00429157
jmp 0x40adea
lea ecx, [esp + 0xc]
call fcn.0040f430
lea eax, [esp + 0xc]
mov byte [esp + 0x470], 2
push eax
call fcn.0040ae80
lea ecx, [esp + 0x48]
lea edx, [esp + 0x10]
push ecx
push edx
call fcn.00410050
add esp, 0xc
test al, al
je 0x40ada6
push str.ur.rtbt
lea eax, [esp + 0xc]
push 0x44e6e4
push eax
call fcn.004293ec
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 8]
jmp 0x40add4
lea ecx, [esp + 0x30]
call fcn.0040b390
test al, al
jne 0x40ae27
push str.ur.rtbt
lea ecx, [esp + 0x1c]
push 0x44e6e4
push ecx
call fcn.004293ec
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x18]
call fcn.00429157
lea ecx, [esp + 0xc]
mov byte [esp + 0x470], 1
call fcn.0040f4f0
lea ecx, [esp + 0x30]
mov byte [esp + 0x470], bl
call fcn.0040b090
lea ecx, [esp + 0x1c]
mov dword [esp + 0x470], 0xffffffff
call fcn.0040f130
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x460]
mov dword fs:[0], ecx
add esp, 0x46c
ret
lea ecx, [esp + 0xc]
mov byte [esp + 0x470], 1
call fcn.0040f4f0
lea ecx, [esp + 0x30]
mov byte [esp + 0x470], bl
call fcn.0040b090
lea ecx, [esp + 0x1c]
mov dword [esp + 0x470], 0xffffffff
call fcn.0040f130
mov ecx, dword [esp + 0x468]
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x46c
ret
Function at 0x40b200
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x437238
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x3c]
call fcn.00411eb0
push 0
lea ecx, [esp + 0x40]
mov dword [esp + 0xb8], 0
call fcn.00412880
mov edi, dword [esi + 0x24]
lea ecx, [esi + 0x20]
call fcn.0040fde0
sub eax, 3
add edi, 3
push eax
push edi
lea ecx, [esp + 0x44]
call fcn.004128d0
lea ecx, [esp + 0x3c]
call fcn.00412990
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x20], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x3c]
mov edx, dword [eax + 0xc]
mov eax, dword [esi + 4]
push eax
mov dword [esp + 0x2c], edx
call fcn.00412880
xor eax, eax
mov ecx, dword [esp + eax + 0x1c]
add eax, 4
not ecx
mov dword [esp + eax + 8], ecx
cmp eax, 0x10
jl 0x40b28d
xor esi, esi
lea edi, [esp + 0x2b]
xor edx, edx
xor eax, eax
mov dl, byte [esp + esi + 0xc]
mov al, byte [edi]
imul edx, eax
lea ecx, [esp + 8]
push 4
push ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x10], edx
call fcn.004128d0
mov dl, byte [esp + 8]
inc esi
mov byte [edi], dl
dec edi
cmp esi, 0x10
jb 0x40b2a5
lea ecx, [esp + 0x3c]
call fcn.00412990
mov ecx, dword [eax]
mov dword [esp + 0x2c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x30], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x34], ecx
mov edx, dword [eax + 0xc]
xor eax, eax
mov dword [esp + 0x38], edx
mov ecx, dword [esp + eax + 0x2c]
mov esi, dword [esp + eax + 0x1c]
xor ecx, esi
mov dword [esp + eax + 0xc], ecx
add eax, 4
cmp eax, 0x10
jl 0x40b2f9
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
imul ecx, dword [esp + 0x10]
imul eax, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x12]
and edx, 0xffff
and ecx, 0xffff
push edx
mov edx, dword [esp + 0xc0]
mov dword [esp + 0x10], eax
push ecx
mov ecx, dword [esp + 0x16]
and eax, 0xffff
and ecx, 0xffff
push ecx
push eax
push str._.4X__.4X__.4X__.4X
push edx
call fcn.0040f720
add esp, 0x18
lea ecx, [esp + 0x3c]
mov dword [esp + 0xb4], 0xffffffff
call fcn.00411ee0
mov ecx, dword [esp + 0xac]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0xb0
ret 4

Function at 0x410530
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x410568
mov ax, word [esp]
cmp al, 2
jne 0x410563
xor ecx, ecx
mov cl, ah
cmp cl, al
jne 0x410563
mov al, 1
add esp, 0x190
ret
call sub.WS2_32.dll_WSACleanup
xor al, al
add esp, 0x190
ret
Function at 0x4138d0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
mov edx, 1
cmp dword [esi + 0x1c], edx
jbe 0x4139db
push ebx
push edi
lea eax, [esi + 0x32]
xor ebx, ebx
xor ecx, ecx
mov bl, byte [eax - 1]
mov cl, byte [eax + 1]
add eax, 0x10
mov edi, dword [ebx*4 + 0x44b880]
mov ecx, dword [ecx*4 + 0x44c080]
xor ebx, ebx
xor ecx, edi
mov bl, byte [eax - 0x10]
mov edi, dword [ebx*4 + 0x44bc80]
xor ebx, ebx
mov bl, byte [eax - 0x12]
xor ecx, edi
mov edi, dword [ebx*4 + 0x44b480]
xor ebx, ebx
xor ecx, edi
mov dword [eax - 0x12], ecx
mov bl, byte [eax - 0xc]
xor ecx, ecx
mov cl, byte [eax - 0xb]
mov edi, dword [ebx*4 + 0x44bc80]
xor ebx, ebx
mov ecx, dword [ecx*4 + 0x44c080]
mov bl, byte [eax - 0xd]
xor ecx, edi
mov edi, dword [ebx*4 + 0x44b880]
xor ebx, ebx
mov bl, byte [eax - 0xe]
xor ecx, edi
mov edi, dword [ebx*4 + 0x44b480]
xor ebx, ebx
xor ecx, edi
mov dword [eax - 0xe], ecx
mov bl, byte [eax - 8]
xor ecx, ecx
mov cl, byte [eax - 7]
mov edi, dword [ebx*4 + 0x44bc80]
xor ebx, ebx
mov ecx, dword [ecx*4 + 0x44c080]
mov bl, byte [eax - 9]
xor ecx, edi
mov edi, dword [ebx*4 + 0x44b880]
xor ebx, ebx
mov bl, byte [eax - 0xa]
xor ecx, edi
mov edi, dword [ebx*4 + 0x44b480]
xor ebx, ebx
xor ecx, edi
mov dword [eax - 0xa], ecx
mov bl, byte [eax - 4]
xor ecx, ecx
mov cl, byte [eax - 3]
mov edi, dword [ebx*4 + 0x44bc80]
xor ebx, ebx
mov ecx, dword [ecx*4 + 0x44c080]
mov bl, byte [eax - 5]
xor ecx, edi
mov edi, dword [ebx*4 + 0x44b880]
xor ebx, ebx
mov bl, byte [eax - 6]
xor ecx, edi
mov edi, dword [ebx*4 + 0x44b480]
xor ecx, edi
inc edx
mov dword [eax - 6], ecx
mov ecx, dword [esi + 0x1c]
cmp edx, ecx
jb 0x4138e6
pop edi
pop ebx
pop esi
ret
Function at 0x41ca9c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41cabc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041f206
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x41cadf
test byte [esp + 8], 2
je 0x41cadf
call fcn.0041f279
mov dword [eax], 0xd
call fcn.0041f282
mov dword [eax], 5
jmp 0x41cab8
xor eax, eax
ret

Function at 0x422fc1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x44dee8
cmp edx, dword [eax]
je 0x422fe3
add eax, 8
inc ecx
cmp eax, 0x44df78
jl 0x422fd4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x44dee8]
jne 0x423111
mov eax, dword [0x451214]
cmp eax, 1
je 0x4230eb
test eax, eax
jne 0x423014
cmp dword [0x44d544], 1
je 0x4230eb
cmp edx, 0xfc
je 0x423111
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42304b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00423250
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00423680
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x42308e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00423680
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x43e4fc
push edi
call fcn.0041cc40
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00423250
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00423260
lea eax, [ebp - 0xa0]
push 0x43e4dc
push eax
call fcn.00423260
push dword [esi + 0x44deec]
lea eax, [ebp - 0xa0]
push eax
call fcn.00423260
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00425192
add esp, 0x2c
pop edi
jmp 0x423111
lea eax, [ebp + 8]
lea esi, [esi + 0x44deec]
push 0
push eax
push dword [esi]
call fcn.00423680
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x429c09
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x429c2b
cmp dword [edi + 0x3c], 0
jne 0x429c2b
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00432e9f
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00429c58
pop edi
pop esi
pop ebx
ret 8
Function at 0x42b25f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x42b297
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004295fe
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004295d6
jmp 0x42b2a3
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x42c7b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x42c7f2
call fcn.00432e9f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x42c7f2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x42c7e9
xor eax, eax
jmp 0x42c7fa
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0042c800
pop edi
pop esi
pop ebx
ret 4

Function at 0x431847
Capabilities:
Create http request

Disassembly:
mov eax, 0x437cec
call fcn.0041d9a8
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x43187f
call fcn.00432e9f
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x4318a4
push eax
push dword [esi + 4]
call fcn.004324f2
jmp 0x4318b0
push esi
push eax
mov ecx, 0x450cc8
call fcn.004318c1
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x431b72
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x437d4b
call fcn.0041d9a8
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0042eaad
mov eax, dword [ebp + 0x18]
lea ebx, [esi + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [0x44c730]
xor edi, edi
mov dword [ebx], eax
mov dword [ebp - 4], edi
push dword [ebp + 0x10]
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
mov dword [esi], vtable.CInternetFile.0
call fcn.004292e0
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.004292e0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x433b5f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x433b8d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x433bab
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00433ac5
jmp 0x433bab
mov eax, dword [esi + 0x14]
test eax, eax
je 0x433bab
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00433ac5
test edi, edi
mov eax, edi
jne 0x433b95
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402a5c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004047bc
test esi, esi
jne 0x402a92
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004048ac
jmp 0x402ab0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402970
mov edi, eax
test esi, esi
je 0x402ab0
cmp dword [ebx], 0
je 0x402ab0
dec esi
jmp 0x402a99
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4037d8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x487020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403870
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403850
xor eax, eax
push ebp
push 0x403849
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40388c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403850
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x487020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x487020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4045bc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x489044], 0
je 0x40461d
cmp word [0x489218], 0xd7b2
jne 0x4045e5
cmp dword [0x489220], 0
jbe 0x4045e5
mov eax, 0x489214
call dword [0x489230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x487070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404644
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x487030], 0
jne 0x404639
push 0
push 0x487068
push 0x487070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404770
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402734
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x489045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404738
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405c24
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405e54
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405ca7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405e54
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405ca7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405e70
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405d30
xor eax, eax
push ebp
push 0x405d29
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405a6c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405d0e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405e90
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405d0e
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d30
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405e4a
cmp byte [ebp - 0xd], 0
jne 0x405d77
cmp byte [ebp - 0x12], 0
je 0x405e4a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405d90
dec ebx
cmp byte [ebx], 0x2e
je 0x405d9f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405d8f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405e4a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405ddc
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405e4a
cmp byte [ebp - 0xd], 0
je 0x405e4a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405e4a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret