joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457600
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4577ab
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45778c
mov dl, 1
mov eax, dword [0x41e9fc]
call fcn.00404290
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040519c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45777b
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00445090
test al, al
je 0x45776e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4577bc
lea eax, [ebp - 0x254]
call fcn.0040bf38
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45776e
xor eax, eax
push ebp
push 0x457767
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4577f4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x457750
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040541c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x457750
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040541c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45776e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x457671
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00422c94
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4577b2
lea eax, [ebp - 0x260]
call fcn.0040519c
ret

Function at 0x4580f4
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4f7bdc]
cmp byte [eax + 0xa5], 0
jne 0x458165
cmp dword [0x4f7bf4], 0
jne 0x458126
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4580b0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4f7bf4], eax
cmp dword [0x4f7bf0], 0
jne 0x458141
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4f7bf0], eax
cmp dword [0x4f7bf8], 0
jne 0x458165
push esp
push 0
push 0
push 0x458054
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4f7bf8], eax
pop edx
ret
Function at 0x4587f0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4f7bdc]
cmp dword [eax + 0x30], 0
je 0x45889a
cmp dword [ebx + 0x94], 0
jne 0x458894
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x458780
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x458894
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45885a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x458894
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00420998
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x458869
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4593fc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x459431
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040528c
jmp 0x45943e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004051f0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45a3ac
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45a3ed
mov eax, esi
call fcn.00440898
test al, al
je 0x45a3ed
mov eax, dword [ebx + 0x84]
call fcn.00440638
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45a3ed
push 0
mov eax, dword [ebx + 0x84]
call fcn.00440638
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45cc04
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x45cc68
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0040541c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040b1f0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45cc6f
lea eax, [ebp - 0xc]
call fcn.0040519c
ret
Function at 0x45cca8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov esi, edx
lea edi, [esp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x45cd04
push esp
push 0x40
push 6
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x45ccd3
call fcn.00410614
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
mov ecx, 6
call fcn.00402d20
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
push 6
mov eax, dword [esp + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x45cd04
call fcn.00410614
add esp, 0x14
pop edi
pop esi
pop ebx
ret

Function at 0x45d45c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x45d4b6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4f6254]
cmp byte [eax], 0
je 0x45d486
push ebx
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
jmp 0x45d4a0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004053d4
mov eax, dword [ebp - 4]
call fcn.0040566c
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d4bd
lea eax, [ebp - 4]
call fcn.0040519c
ret

Function at 0x45d7e8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
xor esi, esi
mov eax, ebx
call fcn.00408514
cmp ax, 0xffff
jne 0x45d809
neg ebx
mov eax, ebx
shr eax, 4
and eax, 0xffff
inc eax
and ebx, 0xf
push 6
push eax
push edi
call sub.kernel32.dll_FindResourceA
test eax, eax
je 0x45d895
push eax
push edi
call sub.kernel32.dll_LoadResource
mov edi, eax
test edi, edi
je 0x45d895
push edi
call sub.kernel32.dll_LockResource
mov dword [ebp - 8], eax
mov eax, ebx
dec eax
test eax, eax
jl 0x45d856
inc eax
mov edx, dword [ebp - 8]
movzx edx, word [edx]
add edx, edx
add edx, dword [ebp - 8]
add edx, 2
mov dword [ebp - 8], edx
dec eax
jne 0x45d842
mov eax, dword [ebp - 8]
movzx esi, word [eax]
add dword [ebp - 8], 2
cmp dword [ebp - 4], 0
je 0x45d895
cmp dword [ebp + 8], 0
jle 0x45d895
mov eax, dword [ebp + 8]
dec eax
mov edx, esi
call fcn.0042f4c0
mov esi, eax
test esi, esi
jle 0x45d88c
mov ecx, esi
add ecx, ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00408528
mov eax, dword [ebp - 4]
mov word [eax + esi*2], 0
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x463dac
Capabilities:
Set global application hook

Disassembly:
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
push 0x463d4c
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x4f7f98], eax
cmp dword [0x4f7f98], 0
jne 0x463dd3
call fcn.00410614
ret
Function at 0x4646e4
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004058c8
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x464733
push 0x200
lea edx, [ebp - 0x202]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00405a78
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x464738
Capabilities:
Log keystrokes

Disassembly:
push ebx
mov ebx, eax
push 2
movzx eax, bx
push eax
call sub.user32.dll_MapVirtualKeyW
pop ebx
ret
Function at 0x4864e8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4864f1
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 4]
call fcn.00405ed0
xor eax, eax
push ebp
push 0x4866da
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 1
push 0xffffffffffffffff
mov ecx, 0x4866f0
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov dword [ebx + 8], eax
push 0
mov ecx, 0x48670c
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov dword [ebx + 0xc], eax
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x486720
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi]
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0x14]
call fcn.00405904
push 0x48673c
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x486744
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi]
mov edx, dword [ebp - 0x10]
mov eax, dword [0x4f6278]
mov eax, dword [eax]
call fcn.0046abe4
fstp qword [ebx + 0x18]
wait
push 0x48673c
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x486758
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi]
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4f6278]
mov eax, dword [eax]
call fcn.0046abe4
fstp qword [ebx + 0x20]
wait
push 0x48673c
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x48676c
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi]
mov edx, dword [ebp - 0x18]
mov eax, dword [0x4f6278]
mov eax, dword [eax]
call fcn.0046abe4
fstp qword [ebx + 0x28]
wait
push 0x48673c
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x486780
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi]
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x4f6278]
mov eax, dword [eax]
call fcn.0046abe4
fstp qword [ebx + 0x30]
wait
push 0x48673c
lea eax, [ebp - 0x20]
push eax
mov ecx, 0x486798
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi]
mov edx, dword [ebp - 0x20]
mov eax, dword [0x4f6278]
mov eax, dword [eax]
call fcn.0046abe4
fstp qword [ebx + 0x38]
wait
push 0
mov ecx, 0x4867b0
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x10]
mov byte [ebx + 0x40], al
push 0x48673c
lea eax, [ebp - 0x24]
push eax
mov ecx, 0x4867dc
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi]
mov edx, dword [ebp - 0x24]
mov eax, dword [0x4f6278]
mov eax, dword [eax]
call fcn.0046abe4
fstp qword [ebx + 0x48]
wait
push 0
mov ecx, 0x4867f4
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov dword [ebx + 0x50], eax
push 0
lea eax, [ebp - 0x28]
push eax
mov ecx, 0x486818
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebx + 0x54]
call fcn.0046b2b4
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, dword [ebx + 0x58]
call fcn.00467e64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4866e1
lea eax, [ebp - 0x28]
mov edx, 8
call fcn.004058e0
lea eax, [ebp - 4]
call fcn.004058c8
ret
Function at 0x10005480
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lcall 0x6606, 0x478b6620
cmp eax, ebx
jbe 0x100054a6
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x100054a0
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x10005491
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.1000524c
adc bh, byte [eax - 0x72]
inc eax
lea eax, [ebp - 0x58]
push eax
call fcn.1000525c
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.10005211
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x1000553a
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
invalid
pop ebp

Function at 0x10005550
Capabilities:
Contain obfuscated stackstrings

Disassembly:
ret

Function at 0x10005980
Capabilities:
Inspect section memory permissions

Disassembly:
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x10005986
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x1000598f
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x10005999
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x1000597b
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]

Function at 0x100059b0
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x10005923
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x10005941
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x1000599f
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
jbe 0x10005905
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2

Function at 0x10005ad0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [esp + edi*8 - 0x39bb0001], edi
test dword [ebp + 0x55fffffc], edi
invalid
invalid
invalid
Function at 0x10022840
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002286d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002286d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x412489
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [ecx + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x4124bc
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4124bc
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x4124bc
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x4124bc
mov al, 1
ret
xor al, al
ret

Function at 0x413339
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
mov edx, dword [eax + 0x3c]
add edx, eax
cmp dword [edx + 0x74], 0
jbe 0x41347c
cmp word [edx + 0x14], 0x68
jb 0x41347c
add edx, 0x78
je 0x41347c
mov eax, dword [edi]
push dword [edx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x5b1854]
mov ecx, edi
call esi
mov dword [ebp - 0xc], eax
test eax, eax
je 0x41347c
mov ecx, dword [edi + 4]
mov edx, dword [ecx + 0x3c]
add edx, ecx
cmp dword [edx + 0x74], 0
jbe 0x41347c
cmp word [edx + 0x14], 0x68
jb 0x41347c
add edx, 0x78
je 0x41347c
mov eax, dword [edi]
push dword [edx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x5b1854]
mov ecx, edi
call esi
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x41347c
mov ecx, dword [ebp + 8]
cmp ecx, 0xffff
ja 0x4133e1
movzx ebx, cx
jmp 0x4134b2
mov eax, dword [edi]
push dword [ebx + 0x20]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x5b1854]
mov ecx, edi
call esi
mov ecx, dword [ebx + 0x18]
mov edx, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], edx
lea ebx, [eax + ecx*4]
cmp eax, ebx
je 0x41347c
nop
mov eax, ebx
sub eax, edx
sar eax, 2
mov eax, eax
test eax, eax
jns 0x413419
add eax, 1
sar eax, 1
push dword [edx + eax*4]
lea ecx, [edx + eax*4]
mov eax, dword [edi]
mov dword [ebp - 8], ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x5b1854]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
mov dl, byte [esi]
test dl, dl
je 0x41345a
mov cl, dl
sub esi, eax
nop dword [eax]
mov dl, cl
cmp cl, byte [eax]
jne 0x41345a
mov cl, byte [esi + eax + 1]
inc eax
mov dl, cl
test cl, cl
jne 0x413449
movzx eax, byte [eax]
movzx ecx, dl
sub ecx, eax
je 0x413487
mov edx, dword [ebp - 8]
test ecx, ecx
cmovle ebx, edx
add edx, 4
test ecx, ecx
cmovle edx, dword [ebp - 4]
mov dword [ebp - 4], edx
cmp edx, ebx
jne 0x413409
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi]
mov ebx, dword [ebp - 0x10]
mov esi, dword [eax + 4]
mov ecx, esi
push dword [ebx + 0x24]
call dword [0x5b1854]
mov ecx, edi
call esi
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x14]
sar edx, 2
mov ax, word [eax + edx*2]
add ax, word [ebx + 0x10]
movzx ebx, ax
mov eax, dword [edi]
mov ecx, dword [ebp - 0xc]
mov esi, dword [eax + 4]
push dword [ecx + 0x1c]
mov ecx, esi
call dword [0x5b1854]
mov ecx, edi
call esi
mov edx, dword [ebp - 0xc]
movzx ecx, bx
pop edi
pop esi
sub ecx, dword [edx + 0x10]
pop ebx
lea eax, [eax + ecx*4]
mov esp, ebp
pop ebp
ret 4
Function at 0x100648c
Capabilities:
Parse pe header

Disassembly:
push 0x60
push 0x1001e00
call fcn.01007d0c
mov edi, 0x94
mov eax, edi
call fcn.01007e70
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [0x10010c4]
mov ecx, dword [esi + 0x10]
mov dword [0x1010598], ecx
mov eax, dword [esi + 4]
mov dword [0x10105a4], eax
mov edx, dword [esi + 8]
mov dword [0x10105a8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x101059c], esi
cmp ecx, 2
je 0x10064ec
or esi, 0x8000
mov dword [0x101059c], esi
shl eax, 8
add eax, edx
mov dword [0x10105a0], eax
cmp word [0x1000000], 0x5a4d
jne 0x1006528
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x1006528
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x1006541
cmp ecx, 0x20b
je 0x100652e
and dword [ebp - 0x1c], 0
jmp 0x1006555
cmp dword [eax + 0x84], 0xe
jbe 0x1006528
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x100654f
cmp dword [eax + 0x74], 0xe
jbe 0x1006528
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
push 0
call fcn.01007caf
pop ecx
test eax, eax
jne 0x1006582
cmp dword [0x101057c], 1
jne 0x100656f
call fcn.0100748b
push 0x1c
call fcn.0100729e
push 0xff
call fcn.010070fd
pop ecx
pop ecx
and dword [ebp - 4], 0
call fcn.01007adf
test eax, eax
jge 0x1006597
push 0x1b
call fcn.0100645d
pop ecx
call dword [0x10010c0]
mov dword [0x1011c54], eax
call fcn.010079b2
mov dword [0x1010574], eax
call fcn.01007909
test eax, eax
jge 0x10065bd
push 8
call fcn.0100645d
pop ecx
call fcn.010076af
test eax, eax
jge 0x10065ce
push 9
call fcn.0100645d
pop ecx
call fcn.01007157
mov dword [ebp - 0x28], eax
test eax, eax
je 0x10065e1
push eax
call fcn.0100645d
pop ecx
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [fcn.01001174]
call fcn.01007641
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x1006603
movzx eax, word [ebp - 0x40]
jmp 0x1006606
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x1000000
call fcn.01005fcd
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x1006627
push esi
call fcn.01007237
call fcn.0100726f
jmp 0x1006659
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x7c]
call fcn.01007d47
ret
Function at 0x401020
Capabilities:
Persist via run registry key

Disassembly:
add ecx, 4
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x401760
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40177b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4017b2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4017ae
jmp 0x4017a0
cmp esi, eax
jae 0x4017b2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4017a0
cmp esi, eax
jb 0x4017b9
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x404700
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
lea edx, [ebp + 8]
push edx
push 0
push ecx
push 0x4045d0
push 0
push 0
mov dword [ecx + 0x78], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
ret 4
Function at 0x405180
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51dc3b
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x575db0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x7c], 0xf
mov dword [ebp - 0x80], ebx
mov byte [ebp - 0x90], bl
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 4], ebx
push ebx
push 0x63
lea eax, [ebp - 0x74]
push eax
push esi
call edi
cmp eax, ebx
je 0x405291
cmp eax, 0xffffffff
je 0x4052aa
mov byte [ebp + eax - 0x74], bl
lea eax, [ebp - 0x74]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4051f7
sub eax, edx
push eax
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x90]
call fcn.00404c10
cmp dword [ebp - 0x7c], 0x10
mov eax, dword [ebp - 0x90]
jae 0x405222
lea eax, [ebp - 0x90]
mov edx, dword [ebp - 0x80]
push str._r_n_r_n
lea eax, [eax + edx - 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x4051d2
mov eax, dword [ebp - 0x90]
mov edi, 0x10
cmp dword [ebp - 0x7c], edi
jae 0x40524f
lea eax, [ebp - 0x90]
mov ecx, dword [ebp - 0x94]
push eax
call fcn.00404f30
mov esi, eax
cmp dword [ebp - 0x7c], edi
jb 0x405271
mov eax, dword [ebp - 0x90]
push eax
call fcn.0040700c
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050558a
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0x7c], 0x10
jb 0x4052a6
mov ecx, dword [ebp - 0x90]
push ecx
call fcn.0040700c
add esp, 4
xor eax, eax
jmp 0x405273
cmp dword [ebp - 0x7c], 0x10
jb 0x4052a6
mov edx, dword [ebp - 0x90]
push edx
call fcn.0040700c
add esp, 4
xor eax, eax
jmp 0x405273