joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47bc24
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 7
push 0
push 0
dec ecx
jne 0x47bc2d
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040580c
xor eax, eax
push ebp
push 0x47bd72
push dword fs:[eax]
mov dword fs:[eax], esp
nop
push 0x50000000
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
push eax
push ebx
push 0
mov eax, dword [0x59dae8]
mov eax, dword [eax]
push eax
push 0
lea edx, [ebp - 0x34]
mov eax, 0x47bd8c
call fcn.0047bbcc
mov eax, dword [ebp - 0x34]
call fcn.0040581c
push eax
lea edx, [ebp - 0x38]
mov eax, 0x47bdbc
call fcn.0047bbcc
mov eax, dword [ebp - 0x38]
call fcn.0040581c
mov edx, eax
mov eax, 0x80
pop ecx
call fcn.004081f0
mov ebx, eax
lea eax, [ebp - 8]
push eax
push ebx
call fcn.0047baf8
lea eax, [ebp - 0xc]
call fcn.00406e3c
push eax
push 0x47bdc8
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax]
push 0xffffffffffffffff
lea eax, [ebp - 0xc]
mov eax, dword [eax]
push eax
mov eax, dword [eax]
call dword [eax + 0xf0]
call fcn.00406f4c
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
call fcn.0040581c
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00405c7c
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0xc]
mov eax, dword [eax]
push eax
mov eax, dword [eax]
call dword [eax + 0x2c]
call fcn.00406f4c
nop
push 5
push ebx
call sub.user32.dll_ShowWindow
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47bd79
lea eax, [ebp - 0x3c]
call fcn.00405b68
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.004053b0
lea eax, [ebp - 0x20]
call fcn.00410728
lea eax, [ebp - 0xc]
call fcn.00406e3c
lea eax, [ebp - 8]
call fcn.00406e3c
lea eax, [ebp - 4]
call fcn.0040538c
ret
Function at 0x47c4b0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x47c5ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x59d8ec]
add eax, 0x115
mov edx, 0x47c604
call fcn.00424250
mov eax, dword [0x59d8ec]
add eax, 0x115
mov edx, 0x47c618
call fcn.00424250
mov eax, dword [0x59d8ec]
add eax, 0x115
mov edx, 0x47c62c
call fcn.00424250
mov eax, dword [0x59d8ec]
add eax, 0x115
mov edx, 0x47c644
call fcn.00424250
mov eax, dword [0x59d8ec]
add eax, 0x115
mov edx, 0x47c65c
call fcn.00424250
mov ebx, dword [0x59d8ec]
mov ebx, dword [ebx + 0x135]
dec ebx
test ebx, ebx
jl 0x47c5d2
inc ebx
xor esi, esi
lea ecx, [ebp - 8]
mov eax, dword [0x59d8ec]
add eax, 0x115
mov edx, esi
call fcn.00424238
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.004221d8
cmp dword [ebp - 4], 0
je 0x47c5ca
mov eax, dword [ebp - 4]
mov edx, 0x47c674
call fcn.004057b4
je 0x47c5ca
mov eax, dword [ebp - 4]
mov edx, 0x47c680
call fcn.004057b4
je 0x47c5ca
mov eax, dword [ebp - 4]
call fcn.0040581c
mov edi, eax
mov eax, edi
call fcn.00422bb8
test al, al
je 0x47c5c2
mov edx, edi
lea eax, [ebp - 0xc]
call fcn.00405584
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.00462294
push 0x20
push edi
call sub.kernel32.dll_SetFileAttributesA
push edi
call sub.kernel32.dll_DeleteFileA
jmp 0x47c5ca
mov eax, dword [ebp - 4]
call fcn.00476844
inc esi
dec ebx
jne 0x47c546
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c5f4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004053b0
ret
Function at 0x47f694
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push 0
call sub.ole32.dll_CoInitialize_2
call sub.kernel32.dll_GetProcessHeap
mov dword [ebp - 0x14], eax
push 0x208
push 0
push dword [ebp - 0x14]
call sub.kernel32.dll_HeapAlloc
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0x49c8c4
push 1
push 0
push 0x49c8b4
call sub.ole32.dll_CoCreateInstance_1
mov dword [ebp - 0x10], eax
test eax, eax
js 0x47f782
mov edx, dword [ebp - 8]
mov edx, dword [edx]
lea eax, [ebp - 0xc]
push eax
push 0x49c8d4
push dword [ebp - 8]
call dword [edx]
mov dword [ebp - 0x10], eax
test eax, eax
js 0x47f774
mov edx, dword [ebp - 8]
mov edx, dword [edx]
push dword [ebp + 8]
push dword [ebp - 8]
call dword [edx + 0x50]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 8]
mov edx, dword [edx]
push 0
push dword [ebp + 8]
push dword [ebp - 8]
call dword [edx + 0x44]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 8]
mov edx, dword [edx]
push dword [ebp + 0x14]
push dword [ebp - 8]
call dword [edx + 0x1c]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 8]
mov edx, dword [edx]
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [edx + 0x24]
mov dword [ebp - 0x10], eax
push 0x104
push dword [ebp - 4]
push 0xffffffffffffffff
push dword [ebp + 0xc]
push 0
push 0
call sub.kernel32.dll_MultiByteToWideChar_1
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
push 1
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [edx + 0x18]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
push dword [ebp - 0xc]
call dword [edx + 8]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 8]
mov edx, dword [edx]
push dword [ebp - 8]
call dword [edx + 8]
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
push 0
push dword [ebp - 0x14]
call sub.kernel32.dll_HeapFree
call sub.ole32.dll_CoUninitialize_1
mov eax, dword [ebp - 0x10]
leave
ret 0x10

Function at 0x47fbf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x107]
xor ecx, ecx
mov edx, 0xff
call fcn.00403ab0
lea eax, [ebp - 4]
push eax
push esi
push ebx
call sub.advapi32.dll_RegOpenKeyA
mov dword [ebp - 8], 0xff
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x107]
push eax
push 0
push 0
push edi
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x107]
mov ecx, 0xff
call fcn.004055fc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x47fc64
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x218], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47fe5f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 1
lea eax, [ebp - 0x20e]
xor ecx, ecx
mov edx, 0xff
call fcn.00403ab0
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push esi
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x47fe41
xor esi, esi
push esi
mov esi, 0x47fe74
lea edi, [ebp - 0x20e]
mov ecx, 0x3f
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop esi
push esi
mov esi, 0x47fe74
lea edi, [ebp - 0x10f]
mov ecx, 0x3f
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop esi
mov dword [ebp - 0x10], 0xff
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x10f]
push eax
push esi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegEnumKeyA
mov ebx, eax
cmp ebx, 0x103
je 0x47fe2f
test ebx, ebx
jne 0x47fe27
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x218]
lea edx, [ebp - 0x10f]
mov ecx, 0xff
call fcn.004055fc
mov ecx, dword [ebp - 0x218]
lea eax, [ebp - 0x214]
mov edx, 0x47ff7c
call fcn.004056a4
mov eax, dword [ebp - 0x214]
call fcn.0040581c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20e]
push eax
push 0
push 0
push 0x47ffb4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
cmp byte [ebp - 0x20d], 0x3a
jne 0x47fe26
cmp byte [ebp - 0x20c], 0x5c
jne 0x47fe26
lea eax, [ebp - 0x220]
lea edx, [ebp - 0x20e]
mov ecx, 0xff
call fcn.004055fc
mov eax, dword [ebp - 0x220]
lea edx, [ebp - 0x21c]
call fcn.004230dc
mov edi, dword [ebp - 0x21c]
lea eax, [ebp - 0x224]
mov edx, edi
call fcn.00405584
mov edx, dword [ebp - 0x224]
lea ecx, [ebp - 1]
mov eax, dword [0x5a6d68]
call fcn.0047fa98
lea eax, [ebp - 0x228]
mov edx, edi
call fcn.00405584
mov edx, dword [ebp - 0x228]
mov eax, dword [0x5a6d78]
call fcn.00424250
cmp byte [ebp - 1], 0
je 0x47fe2f
inc esi
test ebx, ebx
je 0x47fcda
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47fe66
lea eax, [ebp - 0x228]
mov edx, 6
call fcn.004053b0
ret
Function at 0x480168
Capabilities:
Copy file
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040580c
xor eax, eax
push ebp
push 0x480303
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [0x59d948]
cmp byte [eax], 0
jne 0x4802e8
cmp dword [ebp - 4], 0
je 0x4802b3
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.004033c4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.00422c80
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004056a4
mov eax, dword [ebp - 8]
call fcn.0040581c
mov esi, eax
push esi
call sub.kernel32.dll_DeleteFileA
push 0xffffffffffffffff
push esi
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.004033c4
mov eax, dword [ebp - 0x14]
call fcn.0040581c
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x480232
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x480310
mov edx, 0x480314
mov eax, 0x80000002
call fcn.0042333c
mov eax, dword [ebp - 4]
call fcn.00403060
call fcn.00403024
mov eax, dword [0x59d944]
mov edx, dword [ebp - 4]
call fcn.004053e0
jmp 0x4802e8
mov eax, esi
call fcn.00422bb8
test al, al
jne 0x48027f
push 0x48032c
lea eax, [ebp - 0x1c]
mov edx, esi
call fcn.00405584
push dword [ebp - 0x1c]
push 0x480340
push 0x480350
push 0x48035c
push 0x480378
push 0x480388
lea eax, [ebp - 0x18]
mov edx, 7
call fcn.00405720
mov eax, dword [ebp - 0x18]
call fcn.0040581c
jmp 0x4802ba
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x480310
mov edx, 0x480314
mov eax, 0x80000002
call fcn.0042333c
mov eax, dword [ebp - 4]
call fcn.00403060
call fcn.00403024
mov eax, dword [0x59d944]
mov edx, dword [ebp - 4]
call fcn.004053e0
jmp 0x4802e8
mov bl, 1
mov eax, 0x4803b0
push 0x10
push 0
push eax
mov eax, dword [0x5a6d68]
mov eax, dword [eax + 0x20]
mov eax, dword [eax + 0x1c]
push eax
call sub.user32.dll_MessageBoxA_1
test bl, bl
je 0x4802e8
push 1
push 0
push 0
push 0x480490
push 0
push 0
call sub.shell32.dll_ShellExecuteA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48030a
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.004053b0
ret
Function at 0x4843e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
mov esi, eax
push esi
call sub.kernel32.dll_lstrlenA_1
mov edx, eax
dec edx
test edx, edx
jl 0x484415
inc edx
xor ecx, ecx
movzx ebx, byte [esi + ecx]
mov edi, eax
and edi, 0xff
xor ebx, edi
mov ebx, dword [ebx*4 + 0x59d484]
shr eax, 8
xor ebx, eax
mov eax, ebx
inc ecx
dec edx
jne 0x4843f5
pop edi
pop esi
pop ebx
ret

Function at 0x4849bc
Capabilities:
Acquire debug privileges

Disassembly:
push ebx
add esp, 0xffffffd0
lea eax, [esp + 4]
push eax
push 0x20
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
lea eax, [esp + 8]
push eax
push 0x484a58
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov eax, dword [esp + 8]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], 1
xor ebx, ebx
mov dword [esp + 0x2c], ebx
push esp
lea eax, [esp + 0x14]
push eax
push 0x10
lea eax, [esp + 0x2c]
push eax
push 0
mov eax, dword [esp + 0x18]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
mov eax, dword [esp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 1
or ebx, 2
mov dword [esp + 0x1c], ebx
push esp
push 0
mov eax, dword [esp + 8]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
mov eax, dword [esp + 0x18]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
add esp, 0x30
pop ebx
ret

Function at 0x484af4
Capabilities:
Check os version

Disassembly:
push ebx
add esp, 0xffffff6c
xor ebx, ebx
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x484b22
mov eax, dword [esp + 4]
cmp eax, 4
je 0x484b20
cmp eax, 5
je 0x484b20
xor ebx, ebx
jmp 0x484b22
mov bl, 1
mov eax, ebx
add esp, 0x94
pop ebx
ret
Function at 0x4fc170
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa1000]
push edi
jmp 0x4fc18a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4fc191
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fc180
mov eax, 1
add ebx, ebx
jne 0x4fc1a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4fc1b4
jne 0x4fc1d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fc1d3
dec eax
add ebx, ebx
jne 0x4fc1c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4fc198
add ebx, ebx
jne 0x4fc1cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4fc225
xor ecx, ecx
sub eax, 3
jb 0x4fc1eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4fc25a
sar eax, 1
mov ebp, eax
jmp 0x4fc1f6
add ebx, ebx
jne 0x4fc1f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fc1c4
inc ecx
add ebx, ebx
jne 0x4fc204
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fc1c4
add ebx, ebx
jne 0x4fc211
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4fc206
jne 0x4fc222
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4fc206
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4fc244
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4fc236
jmp 0x4fc186
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4fc244
add edi, ecx
jmp 0x4fc186
pop esi
mov edi, esi
mov ecx, 0x3b6d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4fc262
cmp byte [edi], 0x11
jne 0x4fc262
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4fc267
lea edi, [esi + 0xf6000]
mov eax, dword [edi]
or eax, eax
je 0x4fc2d6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x117018]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1170ac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4fc294
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1170b4]
or eax, eax
je 0x4fc2d0
mov dword [ebx], eax
add ebx, 4
jmp 0x4fc2b1
call dword [esi + 0x1170b0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4fc307
cmp al, 0xef
ja 0x4fc2fa
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4fc2dc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4fc2e9
mov ebp, dword [esi + 0x1170b8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4fc33b
sub esp, 0xffffff80
jmp 0x435143
Function at 0x401550
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov esi, dword [0x4719a0]
xor ebx, ebx
push edi
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x3c]
mov ebp, dword [eax + esi + 0x78]
add ebp, esi
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add edi, esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x4015b7
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.00401741
lea ecx, [esp + 0x1c]
call fcn.0040131c
cmp eax, dword [esp + 0x14]
je 0x4015cf
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.0040171e
inc ebx
cmp ebx, dword [esp + 0x18]
jb 0x401587
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00401a79
add esp, 0x2c
ret
mov eax, dword [ebp + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebp + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.0040171e
jmp 0x4015b9

Function at 0x401652
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
movsd xmm0, qword [0x4198a8]
push esi
push edi
push ecx
push ecx
movsd qword [esp], xmm0
push 0x419890
call fcn.00401006
add esp, 0xc
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x4719a0], eax
push 0x27
mov esi, 0x470930
mov edx, 0x547
push 0x41b900
mov ecx, esi
call fcn.00401112
pop ecx
pop ecx
mov edx, 0x8aafdc01
call fcn.00401550
lea ecx, [ebp - 4]
push ecx
push 0x40
push 0x4e4
push esi
call eax
test eax, eax
je 0x4016c8
call fcn.004015ed
push 0x1000
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x4016e0
or eax, 0xffffffff
jmp 0x4016f6
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
call dword [sym.imp.KERNEL32.dll_GetSystemFileCacheSize]
xor eax, eax
pop edi
pop esi
leave
ret 0x10

Function at 0x402327
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402366
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402366
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402366
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402366
cmp dword [ecx + 0x74], 0xe
jbe 0x402366
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x408324
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4155b8
push 0x4155b0
push str.FlsAlloc
push 0x1e
call fcn.00408242
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408358
push dword [ebp + 8]
mov ecx, esi
call dword [0x414118]
call esi
jmp 0x40835e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x401020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401038
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40106a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x401066
cmp esi, eax
jae 0x40106a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401058
cmp esi, eax
jb 0x401070
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x401080
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
mov ecx, 0x504360
call fcn.00439ce8
mov ebx, eax
mov dword [ebp - 4], 1
test ebx, ebx
je 0x401134
test esi, esi
jne 0x401134
mov eax, dword [ebp + 8]
shr eax, 4
inc eax
push esi
movzx ecx, ax
push ecx
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
je 0x401118
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401112
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401112
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
add eax, esi
and ecx, 0xf
jbe 0x401101
cmp esi, eax
jae 0x401105
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4010f3
cmp esi, eax
jb 0x401109
xor eax, eax
jmp 0x401112
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
mov esi, eax
test eax, eax
jne 0x40113d
mov edi, dword [ebp - 4]
push edi
mov ecx, 0x504360
call fcn.00439ce8
mov ebx, eax
inc edi
mov dword [ebp - 4], edi
test ebx, ebx
jne 0x4010a5
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402c20
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
mov eax, dword [0x4fc060]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
push 0x400
mov dword [ebp - 0x834], edx
mov dword [ebp - 0x828], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x824], ecx
mov ecx, dword [0x5058f4]
lea edx, [ebp - 0x808]
push 0
push edx
mov dword [ebp - 0x830], eax
mov dword [ebp - 0x820], ecx
mov dword [ebp - 0x81c], 0
call fcn.0043c360
push 0x400
lea eax, [ebp - 0x408]
push 0
push eax
call fcn.0043c360
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x808]
push 0x400
push ecx
call fcn.0043a122
add esp, 0x28
lea edx, [ebp - 0x808]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
push 0
push 1
push 2
mov dword [ebp - 0x82c], eax
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
test edi, edi
jle 0x402dfa
mov ecx, dword [ebp - 0x82c]
mov dword [esi], edi
mov eax, 2
mov word [ebp - 0x818], ax
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
mov edx, dword [ebp + 0xc]
mov ecx, dword [eax]
push edx
mov dword [ebp - 0x814], ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x816], ax
push 0x10
lea eax, [ebp - 0x818]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x402d38
mov dword [ebx], 2
mov eax, dword [ebp - 0x81c]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439f9b
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x10], 1
jne 0x402d76
mov ecx, dword [esi]
mov edi, dword [ebp - 0x820]
push ecx
push edi
call fcn.004108f0
add esp, 8
test eax, eax
je 0x402d1c
push edi
call fcn.00412d30
add esp, 4
cmp eax, 1
jne 0x402d1c
push edi
call fcn.00412820
add esp, 4
cmp eax, 1
jne 0x402d1c
mov dword [ebp - 0x81c], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [esi]
mov esi, dword [ebp - 0x820]
push edx
push eax
lea edi, [ebp - 0x408]
call fcn.004044c0
add esp, 8
mov ecx, edi
call fcn.00404550
cmp eax, 0xdc
jne 0x402d1c
movzx ecx, byte [ebp - 0x814]
mov edx, dword [ebp - 0x828]
movzx eax, byte [ebp - 0x813]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x824]
movzx edx, byte [ebp - 0x812]
mov dword [ecx], eax
mov eax, dword [ebp - 0x834]
movzx ecx, byte [ebp - 0x811]
mov dword [eax], edx
mov edx, dword [ebp - 0x830]
mov dword [edx], ecx
mov eax, 1
mov dword [ebx], 0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439f9b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x81c]
pop edi
xor ecx, ebp
mov dword [ebx], 1
pop esi
call fcn.00439f9b
mov esp, ebp
pop ebp
ret