joyce8/EMBER2024-capa huggingface dataset:
Function at 0x481200
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4813c5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x181], 0
je 0x481233
mov dword [ebp - 4], 0xffffffff
jmp 0x4813a2
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x80]
cmp byte [eax + 0x10], 0
je 0x4812a1
mov byte [ebp - 9], 1
cmp word [ebx + 0xea], 0
je 0x481263
lea ecx, [ebp - 9]
mov edx, ebx
mov eax, dword [ebx + 0xec]
call dword [ebx + 0xe8]
cmp byte [ebp - 9], 0
je 0x4812a1
mov eax, ebx
call fcn.0047e52c
mov byte [ebp - 9], 1
cmp word [ebx + 0xe2], 0
je 0x48128f
lea ecx, [ebp - 9]
mov edx, ebx
mov eax, dword [ebx + 0xe4]
call dword [ebx + 0xe0]
cmp byte [ebp - 9], 0
jne 0x4812a1
mov dword [ebp - 4], 0xffffffff
jmp 0x4813a2
cmp byte [ebx + 0x39], 0
je 0x4812ba
push dword [ebx + 0x164]
push dword [ebx + 0x160]
mov eax, ebx
call fcn.00481734
mov ecx, dword [ebx + 0x3c]
mov dl, 1
mov eax, dword [0x42bc4c]
call fcn.0042bcfc
mov esi, eax
push 0
lea eax, [ebp - 8]
push eax
mov ecx, 0x4813e0
mov edx, 0x4813f4
mov eax, esi
mov edi, dword [eax]
call dword [edi]
cmp dword [ebp - 8], 0
je 0x481303
push 3
push 0
xor ecx, ecx
mov edx, 0x3ad
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x38]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004814b4
cmp dword [ebx + 0x144], 0
je 0x481319
cmp byte [ebx + 0x56], 0
je 0x481319
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x40]
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x481404
mov edx, 0x4813f4
mov eax, esi
mov edi, dword [eax]
call dword [edi]
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 8]
mov eax, ebx
call fcn.0047d550
cmp dword [ebp - 8], 0
je 0x481389
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.00409724
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00408a20
mov eax, dword [ebp - 0x14]
mov edx, 0x481418
call fcn.00404f6c
jne 0x481379
push 0
mov eax, dword [ebp - 8]
call fcn.00405020
push eax
call sub.kernel32.dll_WinExec
jmp 0x481389
push 1
mov eax, dword [ebp - 8]
call fcn.00405020
push eax
call sub.kernel32.dll_WinExec
mov eax, esi
call fcn.00403dd4
push 3
push 0
xor ecx, ecx
mov edx, 0x3b4
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4813cc
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404b84
lea eax, [ebp - 8]
call fcn.00404b60
ret
Function at 0x401610
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 0x40162b
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 0x401662
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40165e
jmp 0x401650
cmp esi, eax
jae 0x401662
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401650
cmp esi, eax
jb 0x401669
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 0x4016d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
mov esi, ecx
test edi, edi
je 0x4016f1
mov edx, dword [ebp + 8]
mov cl, byte [esi + 0xf58]
xor byte [eax + edx], cl
inc eax
cmp eax, edi
jb 0x4016e3
pop edi
pop esi
pop ebp
ret 8

Function at 0x402410
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x6f8]
push edi
push eax
lea edi, [esi + 0xb8]
push edi
call fcn.00401700
mov ecx, dword [esi + 0x6f8]
push ecx
push edi
mov ecx, esi
call fcn.004016d0
mov edx, 2
lea ebx, [esi + 0xa8]
push 0xc350
mov word [ebx], dx
mov dword [esi + 0xac], 0xffffffff
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi + 0x94]
push 0x10
push ebx
push 0
mov word [esi + 0xaa], ax
mov eax, dword [esi + 0x6f8]
push eax
push edi
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x402493
push 0
push 0
push str.Send_data_is_failure_
mov ecx, esi
call fcn.00414a5f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
ret

Function at 0x4029f0
Capabilities:
Send data
Send data on socket

Disassembly:
movzx eax, byte [ecx + 0xf6c]
movzx edx, byte [ecx + 0xf6d]
mov byte [ecx + 0xbd], al
movzx eax, byte [ecx + 0xf6e]
mov byte [ecx + 0xbe], dl
movzx edx, byte [ecx + 0xf6f]
mov byte [ecx + 0xbf], al
movzx eax, byte [ecx + 0xf70]
mov byte [ecx + 0xc0], dl
movzx edx, byte [ecx + 0xf71]
mov dword [ecx + 0xb8], 0x600aa55
mov byte [ecx + 0xbc], 0x59
mov byte [ecx + 0xc1], al
mov byte [ecx + 0xc2], dl
mov dword [ecx + 0x6f8], 0xb
jmp fcn.00402410
Function at 0x405040
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push edi
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4050b5
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40508d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4050ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0x10]
movzx edx, word [ebp + 0xc]
push ebx
push esi
push ecx
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
pop esi
pop ebx
test ecx, ecx
jg 0x405115
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405134
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40e2e6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00419784
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40e31f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0040df28
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x40e37d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x40e3a1
cmp dword [edi + 0x74], 0
jne 0x40e3a1
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00419784
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040e33e
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4107a7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4107ef
call fcn.00419784
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4107ef
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x410832
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x41081b
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x41081b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x41082f
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4129ae
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5259cf
call fcn.00509ddf
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x4129d3
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x412a25
call fcn.0041994d
push eax
lea ecx, [ebp - 0x10]
call fcn.00402b50
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0050c122
push eax
call fcn.0040a90b
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401030
mov eax, esi
call fcn.00509eb7
ret 8

Function at 0x418e9c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x418ee3
call fcn.00419784
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x418ee3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x418eff
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004189a1
mov esi, eax
test edi, edi
je 0x418efd
test ebx, ebx
je 0x418efd
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41a2b0
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00419e22
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x41a2fa
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040fbbd
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040cb6d
jmp 0x41a305
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0041baef
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x41a30b
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.00412281
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x41a348
call fcn.00419e22
mov dword [esi + 0xc], 1
jmp 0x41a34d
call fcn.00419e22
cmp dword [esi], 0
je 0x41a396
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x41a36e
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040fbbd
jmp 0x41a380
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00402d10
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040cb6d
jmp 0x41a3ba
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x41a3ba
push dword [esi]
push dword [ebp + 8]
call fcn.0041baef
pop esi
pop ebp
ret 0xc
Function at 0x459f49
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004dfee1
call fcn.004191b5
cmp dword [eax + 0x14], 0
jne 0x459f66
mov ecx, esi
pop esi
jmp fcn.00459a4e
pop esi
ret

Function at 0x45d497
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0044a094
call fcn.004191b5
cmp dword [eax + 0x14], 0
jne 0x45d4b4
mov ecx, esi
pop esi
jmp fcn.0045ce6a
pop esi
ret

Function at 0x496507
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x496521
call fcn.00419784
mov esi, dword [eax + 0xc]
push dword [0x59baa4]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x49653f
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x496537
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x49656c
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x496539
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00496435
mov esi, eax
jmp 0x49655e

Function at 0x4e98ba
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4e98d2
mov edi, dword [esi + 0xc]
jmp 0x4e9912
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4e98eb
call fcn.0041a6fb
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4e9900
call fcn.0041a6fb
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4e9912
call fcn.0041a6fb
call fcn.00419784
cmp dword [eax + 0x3c], 0
je 0x4e9927
push edi
mov ecx, ebx
call fcn.004e86f6
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004e97d4
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4e9945
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4e9951
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x508f7d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x596738]
jne 0x508f87
repz ret
jmp fcn.00510a0c
Function at 0x51c1a7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x596738]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00510405
and dword [ebp - 0x14], 0
cmp dword [0x59e038], 0
mov dword [ebp - 0x18], eax
jne 0x51c25a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x51c302
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x51c302
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5569f4
push ebx
mov dword [0x59e038], eax
call edi
push eax
call esi
push 0x5569e0
push ebx
mov dword [0x59e03c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x59e040], eax
call edi
push eax
call esi
mov dword [0x59e048], eax
test eax, eax
je 0x51c25a
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x59e044], eax
mov eax, dword [0x59e044]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x51c2b3
cmp dword [0x59e048], ecx
je 0x51c2b3
push eax
call esi
push dword [0x59e048]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x51c2b3
test ebx, ebx
je 0x51c2b3
call edi
test eax, eax
je 0x51c2aa
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x51c2aa
test byte [ebp - 8], 1
jne 0x51c2b3
or dword [ebp + 0x10], 0x200000
jmp 0x51c2e6
mov eax, dword [0x59e03c]
cmp eax, dword [ebp - 0x18]
je 0x51c2e6
push eax
call esi
test eax, eax
je 0x51c2e6
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x51c2e6
mov eax, dword [0x59e040]
cmp eax, dword [ebp - 0x18]
je 0x51c2e6
push eax
call esi
test eax, eax
je 0x51c2e6
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x59e038]
call esi
test eax, eax
je 0x51c302
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x51c304
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00508f7d
leave
ret
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x249c7e0
push eax
push dword fs:[0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x401080
arpl word [edx + esi], si
adc ebx, dword [edi - 0x54]
xchg ebx, eax
neg dl
push cs
dec edx
bound ebx, qword ds:[0xd6498464]
cmp eax, 0x55fd1c84
fld qword [edx - 0x3c]
jecxz 0x400fee
xchg ecx, eax
mov ebx, dword [esi - 0x7c4ea088]
pop ebp
inc esi
inc edi
pop es
xor al, 0x2b
loope 0x401067
and byte [ecx + 0x4aa1d934], dl
push cs
fbld tbyte [edi - 0x5073856c]
sub ebp, esp
hlt
inc edx
push edx
cmp ebx, ebp
adc dl, byte [eax - 0x71]
jp 0x4010a3
inc esi
dec ebx
sbb eax, 0x1da69c3e
xlatb
test byte [eax - 0x3ffd1d9d], ah
in al, dx
and eax, 0xb6510432
push ecx
xor al, byte [ecx + edx*2]
mov dh, 0x51
and dword [ecx], ecx
jnp 0x40108f
sub byte [ebx - 0x59b7efec], ch
adc al, 0x28
in al, 0x4c
pushal
push edx
stc
sti
cmp al, 0x48
mov ebp, 0x731d4a4b
push esi
in al, dx
retf
jg 0x4010d8
add ecx, dword [edi - 0x2b]
add bh, ah
xor eax, 0x4add25d8
in eax, 0x80
mov bh, 0xf
inc esp
fist word [edi]
adc bh, 0xa3
xor eax, 0xd0939606
dec ebp
sub eax, dword [ebx]
push ebx
and dword [ebx + ecx*4 + 0x63], eax
mov dword [0x3c45c0b4], eax
jno 0x401132
xor byte [edi], 0xf6
into
mov byte [ebx + 0x16ec0527], ah
arpl word [esi], di
cmp dl, byte [ecx - 0x1c77dcdf]
cmp dl, byte ds:[ecx - 0x1c77dcdf]
in al, dx
dec ecx
fldenv [ebx]
std
adc eax, 0x1aa1347a
mov eax, 0xcd85652
xchg ecx, eax
jle 0x401095
cmpsb byte [esi], byte es:[edi]
cmp dword [ebx + 0x39b58ee3], ebp
test byte [ebp + 0x7d], dh
pushal
push cs
je 0x401094
lcall 0xb1d3, 0xc3e63eb3
adc al, 0x86
test dword [ebp + 0x48a59305], edi
dec esp
popal
invalid
imul ebp, dword [ebp - 0x505151c1], 0x9711abf0
call 0x620f6951
pop ecx
jmp 0x4011a8
add al, 0xef
sar byte [eax], 0xed
invalid
Function at 0x411c80
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
sub esp, 0x18
mov eax, dword [0x480810]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 8], eax
jne 0x411cc1
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x411cc1
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.0044d190
add esp, 0xc
mov edx, dword [esp + 0x1c]
push edx
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
push 0
push 1
push 2
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_socket]
push 0x10
lea ecx, [esp + 8]
push ecx
push eax
mov dword [edi], eax
call dword [sym.imp.WS2_32.dll_connect]
mov ecx, dword [esp + 0x14]
xor edx, edx
cmp eax, 0xffffffff
setne dl
xor ecx, esp
mov eax, edx
call fcn.00448d99
add esp, 0x18
ret 4

Function at 0x411d10
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0xc10
mov eax, dword [0x480810]
xor eax, esp
mov dword [esp + 0xc0c], eax
mov eax, dword [esp + 0xc14]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xc28]
push 0x800
mov ebx, edx
xor ebp, ebp
lea edx, [esp + 0x420]
push ebp
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], edi
xor esi, esi
call fcn.0044cd20
add esp, 0xc
mov dword [edi], esi
push 0x400
lea eax, [esp + 0x20]
push 0
push eax
call fcn.0044cd20
mov edx, dword [ebx]
add esp, 0xc
push 0
push 0x400
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jle 0x411dc1
push edi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + esi + 0x424]
push ecx
call fcn.0044d190
lea edx, [esp + 0x428]
push str._r_n_r_n
push edx
add esi, edi
call fcn.0044a870
mov ebp, eax
add esp, 0x14
test ebp, ebp
je 0x411d60
jmp 0x411dc5
test ebp, ebp
je 0x411e03
mov ecx, dword [esp + 0x14]
lea ebx, [esp + 0x41c]
call fcn.00412830
mov ecx, dword [esp + 0x18]
sub esi, ebp
lea esi, [esp + esi + 0x41c]
lea eax, [esi - 4]
push eax
add ebp, 4
push ebp
push ecx
call fcn.0044d190
mov edx, dword [esp + 0x1c]
add esp, 0xc
add esi, 0xfffffffc
mov dword [edx], esi
mov eax, 1
jmp 0x411e05
xor eax, eax
mov ecx, dword [esp + 0xc1c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00448d99
add esp, 0xc10
ret 8
Function at 0x9661b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00966140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00966140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00966140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00966140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x966bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x966c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x97887c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x966c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x966c52
xor eax, eax
pop esi
leave
ret 4