joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ec50
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x18]
push ebx
push ebp
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [esp + 0x20]
push edx
push eax
push ecx
mov dword [esp + 0x18], ebx
xor ebp, ebp
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x43edf0
push edi
mov edi, dword [esp + 0x14]
cmp edi, ebx
je 0x43edce
push esi
cmp dword [edi + 4], 2
jne 0x43ed4b
cmp dword [edi + 0x18], ebx
je 0x43ed4b
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x43ed4b
cmp eax, 0x10
jb 0x43ed4b
push 0x20
call dword [0x46f550]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x43ed58
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
call dword [0x46f550]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x43ed62
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x43ed38
push eax
call dword [0x46f55c]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x43ed76
cmp dword [esp + 0x10], ebx
jne 0x43ed42
mov dword [esp + 0x10], esi
cmp ebp, ebx
je 0x43ed49
mov dword [ebp + 0x1c], esi
mov ebp, esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x43ec93
jmp 0x43ed92
mov dword [esp + 0x14], 8
jmp 0x43ed92
push esi
mov dword [esp + 0x18], 8
call dword [0x46f554]
add esp, 4
jmp 0x43ed92
mov edx, dword [esi + 0x18]
push edx
mov dword [esp + 0x18], 8
call dword [0x46f554]
push esi
call dword [0x46f554]
add esp, 8
mov eax, dword [esp + 0x18]
pop esi
cmp eax, ebx
je 0x43eda2
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0x10], ebx
je 0x43edc8
mov eax, dword [esp + 0xc]
call fcn.0043ec10
mov ecx, dword [esp + 0x24]
mov eax, ebx
pop edi
pop ebp
mov dword [esp + 4], ebx
mov dword [ecx], eax
mov eax, dword [esp + 8]
pop ebx
add esp, 0xc
ret
cmp dword [esp + 0xc], ebx
jne 0x43ede1
push 0x2af9
mov dword [esp + 0x14], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x24]
mov dword [ecx], eax
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x442510
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, eax
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x18], eax
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov eax, dword [eax + 0x1ec]
push edi
test eax, eax
jne 0x442533
mov eax, dword [esi + 0x28]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov edi, edx
mov ebx, dword [esi + 0x20]
mov esi, dword [esi + 0x24]
shr edi, 6
mov edx, edi
imul edx, edx, 0x3e8
sub ecx, edx
imul ecx, ecx, 0x3e8
mov eax, ecx
push 0xffffffffffffffff
sub eax, esi
cdq
push 0xfffffc18
push edx
push eax
call fcn.00449630
mov ebp, eax
mov eax, edi
sub eax, ebx
imul eax, eax, 0x3e8
mov esi, edx
cdq
sub ebp, eax
mov eax, dword [esp + 0x14]
sbb esi, edx
cdq
add ebp, eax
mov eax, dword [esp + 0x18]
adc esi, edx
cmp dword [eax + 0x1e0], 0
je 0x442626
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov eax, dword [esp + 0x1c]
mov edi, edx
shr edi, 6
mov edx, edi
imul edx, edx, 0x3e8
sub ecx, edx
mov edx, dword [eax + 0x190]
imul ecx, ecx, 0x3e8
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 0x194]
mov eax, ecx
push 0xffffffffffffffff
sub eax, edx
cdq
push 0xfffffc18
push edx
push eax
call fcn.00449630
mov ebx, eax
mov eax, edi
sub eax, dword [esp + 0x1c]
mov ecx, edx
imul eax, eax, 0x3e8
cdq
sub ebx, eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x1e0]
sbb ecx, edx
cdq
add ebx, eax
adc ecx, edx
cmp esi, ecx
jl 0x442626
jg 0x44261a
cmp ebp, ebx
jb 0x442626
mov eax, ebx
mov edx, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
pop edi
mov edx, esi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x442dc0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
sub esp, 8
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x442df5
mov edx, dword [esp]
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0x8003
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x442e00
push 0
sub eax, edx
push eax
mov eax, dword [esp + 0xc]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov edx, dword [esp + 0xc]
lea ecx, [esp]
push ecx
push edx
call fcn.00442d50
add esp, 0x10
ret
Function at 0x443e60
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 0x24
mov eax, dword [0x46e074]
xor eax, esp
mov dword [esp + 0x20], eax
push ebp
mov ebp, dword [esp + 0x30]
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x443f04
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea esi, [esp + 0x20]
mov eax, ebp
mov byte [esp + 0x14], 8
mov byte [esp + 0x15], 2
mov dword [esp + 0x18], 0x6601
mov dword [esp + 0x1c], 8
call fcn.00443dd0
mov ecx, esi
call fcn.004451f0
mov eax, dword [esp + 8]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0x14
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
pop esi
test eax, eax
jne 0x443f16
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004453f2
add esp, 0x24
ret
mov eax, dword [esp + 0x2c]
mov edx, dword [eax]
mov ecx, dword [esp + 8]
push ecx
mov dword [edi], edx
mov eax, dword [eax + 4]
lea edx, [esp + 0xc]
push edx
push edi
push 0
push 0
mov dword [edi + 4], eax
mov eax, dword [esp + 0x20]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov edx, dword [esp + 4]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x24]
pop ebp
xor ecx, esp
mov eax, 1
call fcn.004453f2
add esp, 0x24
ret
Function at 0x444040
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov eax, ebp
push edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x444050
sub eax, edx
mov edi, eax
lea ebx, [edi + edi]
push ebx
call dword [0x46f550]
mov esi, eax
add esp, 4
test esi, esi
jne 0x444079
pop edi
lea eax, [esi + 0x1b]
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor eax, eax
test edi, edi
jbe 0x444090
nop
mov cl, byte [eax + ebp]
mov byte [esi + eax*2], cl
mov byte [esi + eax*2 + 1], 0
inc eax
cmp eax, edi
jb 0x444080
push 0xf0000000
push 1
push 0
push 0
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x44410f
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x8002
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x444102
mov edx, dword [esp + 0x10]
push 0
push ebx
push esi
push edx
mov dword [esp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x1c]
push eax
push ecx
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [esp + 0x14]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x24]
xor eax, eax
mov dword [ecx + 0x10], eax
push esi
mov byte [ecx + 0x14], al
call dword [0x46f554]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x4452c0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push esi
push edi
push 0x2c
mov ebx, eax
mov edi, ecx
call dword [0x46f550]
mov esi, eax
add esp, 4
test esi, esi
jne 0x4452e2
pop edi
pop esi
pop ebx
add esp, 8
ret
lea eax, [esi + 0xc]
lea ecx, [eax + 8]
mov dword [esi], 0x461d9c
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
cmp ebx, 0x40
jbe 0x445325
push eax
call dword [0x461d9c]
mov edx, dword [esi + 4]
push ebx
push edi
push edx
call dword [0x461da0]
mov edi, dword [esi + 8]
mov eax, dword [esi + 4]
push eax
add edi, 8
push edi
call dword [0x461da4]
add esp, 0x18
mov ebx, 0x10
mov ecx, dword [esi + 4]
push ecx
call dword [0x461d9c]
mov edx, dword [esi + 8]
push edx
call dword [0x461d9c]
add esp, 8
xor eax, eax
test ebx, ebx
jbe 0x445397
push ebp
mov ebp, ebx
mov dword [esp + 0x14], ebx
lea esp, [esp]
movzx eax, byte [edi]
xor al, 0x36
push 1
lea ecx, [esp + 0x17]
mov byte [esp + 0x17], al
mov edx, dword [esi + 4]
push ecx
push edx
call dword [0x461da0]
movzx eax, byte [edi]
xor al, 0x5c
push 1
lea ecx, [esp + 0x23]
mov byte [esp + 0x23], al
mov edx, dword [esi + 8]
push ecx
push edx
inc edi
call dword [0x461da0]
add esp, 0x18
sub ebp, 1
jne 0x445350
pop ebp
cmp ebx, 0x40
jae 0x4453ca
mov eax, dword [esp + 0x10]
mov edi, 0x40
sub edi, eax
mov edi, edi
mov eax, dword [esi + 4]
push 1
push 0x461d90
push eax
call dword [0x461da0]
mov ecx, dword [esi + 8]
push 1
push 0x461d91
push ecx
call dword [0x461da0]
add esp, 0x18
sub edi, 1
jne 0x4453a0
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 8
ret

Function at 0x4453f2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46e074]
jne 0x4453fc
repz ret
jmp fcn.00447eb4
Function at 0x455626
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0044bc2c
and dword [ebp - 4], 0
cmp dword [0x4702e4], 0
mov ebx, eax
jne 0x4556d7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x455788
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x460cf4
push edi
call esi
test eax, eax
je 0x455788
push eax
call fcn.0044bbba
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4702e4], eax
call esi
push eax
call fcn.0044bbba
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4702e8], eax
call esi
push eax
call fcn.0044bbba
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4702ec], eax
call esi
push eax
call fcn.0044bbba
pop ecx
mov dword [0x4702f4], eax
test eax, eax
je 0x4556d7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044bbba
pop ecx
mov dword [0x4702f0], eax
mov eax, dword [0x4702f0]
cmp eax, ebx
je 0x45572f
cmp dword [0x4702f4], ebx
je 0x45572f
push eax
call fcn.0044bc35
push dword [0x4702f4]
mov esi, eax
call fcn.0044bc35
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x45572f
test edi, edi
je 0x45572f
call esi
test eax, eax
je 0x455726
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x455726
test byte [ebp - 0xc], 1
jne 0x45572f
or dword [ebp + 0x10], 0x200000
jmp 0x455768
mov eax, dword [0x4702e8]
cmp eax, ebx
je 0x455768
push eax
call fcn.0044bc35
pop ecx
test eax, eax
je 0x455768
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x455768
mov eax, dword [0x4702ec]
cmp eax, ebx
je 0x455768
push eax
call fcn.0044bc35
pop ecx
test eax, eax
je 0x455768
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4702e4]
call fcn.0044bc35
pop ecx
test eax, eax
je 0x455788
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x45578a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10047f16
Capabilities:
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
xor eax, eax
mov esi, dword fs:[eax + 0x30]
mov esi, dword [esi + 0xc]
mov esi, dword [esi + 0xc]
lodsd eax, dword [esi]
mov eax, dword [eax]
mov ebx, dword [eax + 0x18]
mov edi, dword [ebx + 0x3c]
mov edi, dword [ebx + edi + 0x78]
mov esi, dword [ebx + edi + 0x20]
add esi, ebx
mov edx, dword [ebx + edi + 0x24]
add edx, ebx
xor ecx, ecx
dec ecx
inc ecx
mov eax, dword [esi]
add esi, 4
cmp word [ebx + eax + 0xb], 0x63
jne 0x10047f47
nop
cmp byte [ebx + eax + 1], 0x69
jne 0x10047f47
movzx eax, word [edx + ecx*2]
mov esi, dword [ebx + edi + 0x1c]
add esi, ebx
add ebx, dword [esi + eax*4]
mov dword [ebp - 4], ebx
push 0x40
push 0x3000
push 0x1544db
push 0
call dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
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 [0x407ad0], 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 [0x407a6c]
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 [0x407a6c]
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 [0x407a6c]
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 [0x407ad4]
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 [0x407a6c]
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 0x407360
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 [0x407a6c]
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 0x402ba0
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.00403010
add esp, 8
push 0x407600
push 0x407820
call fcn.00402ff0
add esp, 8
call fcn.00402eb0
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 0x406784
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0x407aa0
push 0x406758
mov eax, dword [ebp - 4]
push eax
call fcn.00403070
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 4]
push ecx
push 0xf003f
push 0
push 0x4067a4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x402cae
push 0x407600
push 0x4075a0
mov edx, dword [ebp - 4]
push edx
call fcn.00403070
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x4067d4
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0x407600
push 0x4075a0
mov ecx, dword [ebp - 4]
push ecx
call fcn.00403070
add esp, 0xc
jmp 0x402cdf
lea edx, [ebp - 4]
push edx
push 0xf003f
push 0
push 0x4067a4
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0x407600
push 0x4075a0
mov eax, dword [ebp - 4]
push eax
call fcn.00403070
add esp, 0xc
mov esp, ebp
pop ebp
ret

Function at 0x402e60
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 0x407aa0
call fcn.00401940
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x407aa0
lea ecx, [ebp - 8]
push ecx
push 0
push 0x406758
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esp, ebp
pop ebp
ret

Function at 0x403010
Capabilities:
Create directory

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

Function at 0x403070
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