joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49d8e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
cmp byte [0x4ddad1], 0
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
je 0x49d970
mov dword [esp + 4], 0x4bc1aa
mov dword [esp], edi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x49d9f0
mov ebp, dword [0x4dda20]
jmp 0x49d924
lea ebp, [eax + edx + 4]
mov dword [esp + 4], ebp
mov dword [esp], edi
call sub.msvcrt.dll_strcmp
mov dword [esp], ebp
mov ebx, eax
call sub.msvcrt.dll_strlen
lea eax, [ebp + eax + 1]
mov edx, dword [eax]
test ebx, ebx
jne 0x49d920
movzx edi, word [eax + 4]
lea ecx, [eax + 6]
test edi, edi
je 0x49d967
nop
mov eax, dword [esp + 0x30]
mov edx, esi
add ebx, 1
add esi, 4
call fcn.0048e470
mov ecx, eax
cmp edi, ebx
jne 0x49d950
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0xa
mov dword [esp + 4], 3
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
sub esp, 0xc
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [eax + 4]
sub esp, 4
mov dword [0x4dda20], eax
add eax, 8
mov ebx, dword [eax - 8]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], 0
mov dword [0x4dda20], eax
call fcn.0049ce30
cmp eax, ebx
jne 0x49da47
mov byte [0x4ddad1], 1
jmp 0x49d8f8
cmp byte [0x4ddad0], 0
jne 0x49d910
mov ebx, dword [sym.imp.python312.dll_PyDict_New]
call ebx
mov dword [0x4de4f4], eax
call ebx
mov dword [0x4de4f0], eax
call ebx
mov dword [0x4de4ec], eax
call ebx
mov dword [0x4de4e8], eax
call ebx
mov dword [0x4de4e4], eax
call ebx
mov dword [0x4de4e0], eax
call ebx
mov dword [0x4de4dc], eax
call ebx
mov byte [0x4ddad0], 1
mov dword [0x4de4d8], eax
jmp 0x49d910
mov dword [esp], str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
lea esi, [esi]
nop

Function at 0x49f548
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call fcn.004aef08
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call fcn.004aef08
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x4a011c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x4a013b
mov eax, 0
jmp 0x4a017f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x4a015e
mov eax, 0
jmp 0x4a017f
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x4a017a
mov eax, 0
jmp 0x4a017f
mov eax, 1
leave
ret
Function at 0x4a0181
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x4a01e0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x4a01d8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x4a01d8
mov eax, dword [ebp - 4]
jmp 0x4a01f4
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x4a01b5
mov eax, 0
leave
ret
Function at 0x4114f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0x10
pop ecx
xor eax, eax
push 0x100
push eax
mov byte [ebp - 0x44], 0
lea edi, [ebp - 0x43]
push ebx
rep stosd dword es:[edi], eax
call fcn.00421a10
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 8]
call fcn.0041a50a
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.0041716b
push 0x40
lea eax, [ebp - 0x44]
push eax
lea eax, [ebx + 0x20]
push eax
call fcn.004216d0
add esp, 0x28
push 0x40
lea edi, [ebx + 0x60]
lea esi, [ebx + 0x5a]
pop ecx
rep movsb byte es:[edi], byte [esi]
xor eax, eax
mov cl, byte [eax + ebx + 0x9f]
xor cl, byte [eax + ebx]
inc eax
cmp eax, 0x20
mov byte [eax + ebx + 0x9f], cl
jl 0x41154b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
xor ecx, ecx
test esi, esi
jle 0x411589
mov al, byte [ecx + ebx + 0xbd]
xor al, byte [ecx + ebx]
inc ecx
cmp ecx, esi
mov byte [ecx + ebx + 0xbf], al
jl 0x411573
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x41350c
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
push 0x458d98
inc esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
movzx eax, al
xor ecx, ecx
test eax, eax
jbe 0x41353b
push edi
movzx edx, byte [ecx + 0x458d98]
mov edi, edx
imul edi, esi
xor edi, edx
inc ecx
cmp ecx, eax
mov esi, edi
jb 0x413525
pop edi
mov eax, esi
pop esi
ret

Function at 0x419eb2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
and dword [ebp + 8], 0
push ebx
push esi
push edi
mov edi, 0x10000
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + edx*4]
mov edx, ecx
and ecx, 0xffff
shr edx, 0x10
mov esi, ecx
mov dword [ebp - 8], ecx
mov ecx, edx
imul ecx, edx
mov dword [eax + 4], ecx
mov ecx, esi
imul ecx, esi
mov dword [eax], ecx
mov ebx, edx
sub ebx, esi
sub esi, edx
mov ecx, esi
imul ecx, ebx
xor esi, ebx
mov ebx, dword [eax + 4]
and esi, edi
neg esi
mov dword [ebp - 4], edx
mov edx, ecx
neg edx
sbb edx, edx
and edx, esi
add ecx, ebx
cmp ecx, ebx
sbb esi, esi
and esi, edi
add edx, esi
mov esi, dword [eax]
add ecx, esi
cmp ecx, esi
sbb esi, esi
and esi, edi
add edx, esi
mov esi, ecx
shl esi, 0x10
add dword [eax], esi
cmp dword [eax], esi
sbb esi, esi
neg esi
shr ecx, 0x10
add esi, ebx
add ecx, esi
add ecx, edx
mov dword [eax + 4], ecx
add eax, 8
inc dword [ebp + 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp + 0x10]
jl 0x419ec6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419f53
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x14], eax
shr dword [ebp + 0x14], 0x10
and eax, 0xffff
push esi
mov dword [ebp + 0xc], eax
push edi
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + edx*4]
mov ecx, dword [ebp + 0x14]
mov esi, edi
and edi, 0xffff
shr esi, 0x10
mov edx, edi
imul edx, dword [ebp + 0xc]
mov dword [ebp - 8], esi
imul esi, ecx
sub edi, dword [ebp - 8]
sub ecx, dword [ebp + 0xc]
mov eax, edi
imul eax, ecx
mov dword [ebp - 0xc], ecx
xor edi, dword [ebp - 0xc]
mov ecx, eax
and edi, 0x10000
neg edi
neg ecx
sbb ecx, ecx
and ecx, edi
add eax, esi
cmp eax, esi
sbb edi, edi
add eax, edx
and edi, 0x10000
add ecx, edi
cmp eax, edx
sbb edi, edi
and edi, 0x10000
add ecx, edi
mov edi, eax
shl edi, 0x10
add edx, edi
cmp edx, edi
sbb edi, edi
shr eax, 0x10
neg edi
add edi, ecx
add eax, edi
add esi, eax
mov eax, dword [ebx]
lea ecx, [edx + edx]
add eax, ecx
cmp eax, ecx
sbb edi, edi
neg edi
cmp ecx, edx
sbb ecx, ecx
neg ecx
add ecx, dword [ebp - 4]
mov dword [ebx], eax
add ebx, 4
mov eax, dword [ebx]
lea edx, [ecx + edi]
lea edi, [esi + esi]
add eax, edi
cmp eax, edi
sbb ecx, ecx
neg ecx
cmp edi, esi
sbb esi, esi
add edx, eax
neg esi
add ecx, esi
cmp edx, eax
sbb eax, eax
neg eax
add eax, ecx
inc dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x18]
mov dword [ebx], edx
jl 0x419f7b
add ebx, 4
cmp dword [ebp - 4], 0
pop edi
pop esi
je 0x41a073
mov edx, dword [ebp + 0x18]
add edx, edx
cmp dword [ebp + 8], edx
jge 0x41a073
mov eax, dword [ebx]
mov ecx, dword [ebp - 4]
add ecx, eax
cmp ecx, eax
sbb eax, eax
neg eax
mov dword [ebx], ecx
add ebx, 4
inc dword [ebp + 8]
test eax, eax
mov dword [ebp - 4], eax
jne 0x41a052
pop ebx
leave
ret
Function at 0x41b26c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, dword [ebp + 0x14]
xor edx, edx
cmp edi, edx
je 0x41b386
mov eax, dword [ebp + 0xc]
mov ecx, eax
and ecx, 7
push ebx
push esi
mov dword [ebp - 4], edx
je 0x41b2aa
mov ebx, dword [ebp + 8]
mov edx, ecx
mov esi, eax
shr esi, 3
mov bl, byte [esi + ebx]
mov cl, 8
sub cl, dl
shr bl, cl
movzx cx, bl
mov word [ebp - 4], cx
add edi, 7
shr eax, 3
shr edi, 3
xor esi, esi
test edi, edi
mov dword [ebp - 0xc], eax
jle 0x41b384
lea eax, [edi - 1]
cmp esi, eax
je 0x41b2db
mov eax, dword [ebp + 0x10]
movzx ax, byte [esi + eax]
xor ecx, ecx
mov ch, byte [ebp - 4]
xor eax, ecx
add edx, 8
jmp 0x41b30b
mov eax, dword [ebp + 0x14]
and eax, 7
mov dword [ebp - 8], 8
je 0x41b2ed
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
movzx eax, byte [esi + eax]
mov ebx, dword [ebp - 4]
mov cl, 8
sub cl, byte [ebp - 8]
shr al, cl
mov ecx, dword [ebp - 8]
shl ebx, cl
movzx ax, al
or eax, ebx
add edx, ecx
mov dword [ebp - 4], eax
xor ecx, ecx
lea eax, [edi - 1]
cmp esi, eax
setne cl
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
xor eax, eax
cmp edx, 8
setge al
test ecx, eax
jne 0x41b33f
xor ecx, ecx
lea eax, [edi - 1]
cmp esi, eax
sete cl
xor ebx, ebx
test edx, edx
setg bl
test ebx, ecx
je 0x41b37b
push 8
pop eax
cmp edx, eax
mov dword [ebp - 8], eax
jg 0x41b34c
mov dword [ebp - 8], edx
mov ebx, dword [ebp - 4]
mov cl, dl
sub cl, byte [ebp - 8]
shr bx, cl
mov ecx, eax
sub ecx, dword [ebp - 8]
mov eax, 0xff00
shl bl, cl
mov ecx, dword [ebp - 8]
sar eax, cl
mov ecx, dword [ebp - 0xc]
and bl, al
mov eax, dword [ebp + 8]
inc dword [ebp - 0xc]
sub edx, dword [ebp - 8]
mov byte [ecx + eax], bl
jmp 0x41b31b
inc esi
cmp esi, edi
jl 0x41b2c3
pop esi
pop ebx
pop edi
leave
ret
Function at 0x422943
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x42b7f0
call fcn.0042213c
mov edi, 0x94
mov eax, edi
call fcn.00421ba0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x463b20], ecx
mov eax, dword [esi + 4]
mov dword [0x463b2c], eax
mov edx, dword [esi + 8]
mov dword [0x463b30], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x463b24], esi
cmp ecx, 2
je 0x4229a3
or esi, 0x8000
mov dword [0x463b24], esi
shl eax, 8
add eax, edx
mov dword [0x463b28], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4229de
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4229de
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4229f6
cmp eax, 0x20b
je 0x4229e3
mov dword [ebp - 0x1c], esi
jmp 0x422a0a
cmp dword [ecx + 0x84], 0xe
jbe 0x4229de
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x422a04
cmp dword [ecx + 0x74], 0xe
jbe 0x4229de
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0042594f
pop ecx
test eax, eax
jne 0x422a36
cmp dword [0x463b00], 1
jne 0x422a23
call fcn.00425104
push 0x1c
call fcn.00424f8d
push 0xff
call fcn.00423b0c
pop ecx
pop ecx
call fcn.004258ad
mov dword [ebp - 4], esi
call fcn.00425702
test eax, eax
jge 0x422a4f
push 0x1b
call fcn.0042291e
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4650f0], eax
call fcn.004255e0
mov dword [0x463af8], eax
call fcn.0042553e
test eax, eax
jge 0x422a75
push 8
call fcn.0042291e
pop ecx
call fcn.0042530b
test eax, eax
jge 0x422a86
push 9
call fcn.0042291e
pop ecx
push 1
call fcn.00423b3c
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x422a9c
push eax
call fcn.0042291e
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004252ae
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x422abd
movzx eax, word [ebp - 0x40]
jmp 0x422ac0
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040d962
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x422ade
push edi
call fcn.00423c67
call fcn.00423c89
jmp 0x422b10
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00422177
ret
Function at 0x401030
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x401099
push esi
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, dword [esp + 0xc]
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401050
sub eax, edx
add eax, 1
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov cl, byte [esi]
mov byte [eax], cl
add esi, 1
add eax, 1
test cl, cl
jne 0x401073
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
pop edi
pop esi
jmp dword [sym.imp.USER32.dll_CloseClipboard]
ret

Function at 0x4010a0
Capabilities:
Connect socket
Receive data
Receive data on socket

Disassembly:
sub esp, 0x34
mov eax, dword [0x4de8bc]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
xor ebx, ebx
push ebx
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
push 0x25
mov dword [esp + 0x10], eax
mov word [esp + 0xc], 2
call dword [sym.imp.WS2_32.dll_ntohs]
push 0x10
lea ecx, [esp + 0xc]
push ecx
push esi
mov word [esp + 0x16], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x40113e
xor eax, eax
push ebx
push 0x20
lea edx, [esp + 0x20]
push edx
push esi
mov word [esp + 0x28], bx
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
mov dword [esp + 0x36], eax
mov dword [esp + 0x3a], eax
mov dword [esp + 0x3e], eax
mov dword [esp + 0x42], eax
mov word [esp + 0x46], ax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 4
jne 0x40113e
mov bl, 1
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x38]
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.0042e636
add esp, 0x34
ret

Function at 0x402f90
Capabilities:
Create thread

Disassembly:
mov al, byte [esp + 4]
push esi
push edi
mov esi, ecx
lea edi, [esi + 4]
push edi
push 0
push esi
push 0x402000
push 0
push 0
mov byte [esi + 0xc], al
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
mov eax, dword [edi]
pop edi
pop esi
ret 4
Function at 0x403ed0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b55a8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
mov eax, dword [0x4de8bc]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
xor edx, edx
mov dword [esp + 8], edx
xor eax, eax
mov dword [esp + 0xe], eax
mov dword [esp + 0x12], eax
mov dword [esp + 0x16], eax
mov word [esp + 0x1a], ax
mov eax, dword [ecx + 0x30]
test eax, eax
mov dword [esp + 0x54], edx
mov word [esp + 0xc], dx
je 0x40404e
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push eax
mov eax, dword [ecx + 0x48]
call eax
test eax, eax
mov edx, dword [esp + 8]
jl 0x40404e
test edx, edx
je 0x40404e
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x403fae
push eax
lea ecx, [esp + 0x20]
call fcn.00402b40
mov ecx, dword [esp + 0x68]
push ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0x58], 1
call fcn.00402b40
mov edx, dword [esp + 0x64]
push edx
lea ecx, [esp + 0x40]
mov byte [esp + 0x58], 2
call fcn.00402b40
mov edx, dword [esp + 0x60]
lea eax, [esp + 0xc]
push eax
push 3
lea ecx, [esp + 0x24]
push ecx
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 0
call fcn.00401540
push 0x402b30
push 3
push 0x10
lea eax, [esp + 0x28]
push eax
call fcn.0042f14c
jmp 0x404002
mov eax, dword [esp + 0x68]
test eax, eax
je 0x403fd1
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0xc]
push ecx
push eax
mov eax, dword [esp + 0x68]
push edx
push eax
lea ecx, [esp + 0x18]
call fcn.00403580
jmp 0x404002
mov eax, dword [esp + 0x64]
test eax, eax
je 0x403fef
mov edx, dword [esp + 0x60]
lea ecx, [esp + 0xc]
push ecx
push eax
push edx
lea ecx, [esp + 0x14]
call fcn.004014a0
jmp 0x404002
mov ecx, dword [esp + 0x60]
lea eax, [esp + 0xc]
push eax
push ecx
lea ecx, [esp + 0x10]
call fcn.004013d0
mov esi, dword [esp + 0x5c]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esi], edx
mov edx, dword [esp + 0x18]
mov dword [esi + 4], eax
mov eax, dword [esp + 8]
test eax, eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov dword [esp + 0x54], 0xffffffff
je 0x404081
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x50
ret 0x14
test edx, edx
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esi], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x18]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov dword [esp + 0x54], 0xffffffff
je 0x404081
mov eax, dword [edx]
mov ecx, dword [eax + 8]
push edx
call ecx
mov eax, esi
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x50
ret 0x14
Function at 0x407f61
Capabilities:
Create thread
Terminate thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
push 0
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [esi + 0x54]
test eax, eax
je 0x407f9b
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0x407dd0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x54], eax
xor eax, eax
pop esi
pop ecx
ret 0x10

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

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x4e9b34]
push esi
mov esi, dword [esp + 0xc]
push 0
push esi
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
sete al
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2024
call fcn.0042f920
mov eax, dword [0x4de8bc]
xor eax, esp
mov dword [esp + 0x2020], eax
push ebx
push esi
push edi
push 0x1000
call fcn.0042e62c
mov ebx, eax
mov eax, dword [0x4e9b34]
add esp, 4
push 0xc8
mov dword [esp + 0x24], ebx
xor edi, edi
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x4e9b80], edi
je 0x408ceb
mov ecx, dword [esp + 0x10]
push 0
push 0x1000
push ebx
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jle 0x408ce1
cmp dword [0x4e9b80], 0
je 0x408ce1
test esi, esi
je 0x408cd2
push esi
lea edx, [esp + edi + 0x2c]
push ebx
push edx
call fcn.004302c0
add esi, edi
add esp, 0xc
cmp esi, 4
lea ebx, [esp + 0x28]
jl 0x408cb5
mov edi, edi
movzx ecx, word [ebx + 2]
movzx eax, byte [ebx]
push ecx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edi, ax
cmp edi, esi
jg 0x408cb5
mov eax, dword [esp + 0x14]
cmp eax, 0x45
je 0x408c97
cmp eax, 0x46
jne 0x408cac
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], edi
call fcn.00424710
add esp, 4
sub esi, edi
add ebx, edi
cmp esi, 4
jge 0x408c70
test esi, esi
jle 0x408ccc
push esi
lea eax, [esp + 0x2c]
push ebx
push eax
call fcn.004302c0
add esp, 0xc
mov edi, esi
jmp 0x408cce
xor edi, edi
mov ebx, dword [esp + 0x20]
cmp dword [0x4e9b80], 0
jne 0x408c26
jmp 0x408ceb
mov ecx, 0x4e9a90
call fcn.0040efb0
push ebx
call fcn.0042f66f
mov ecx, dword [esp + 0x2030]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042e636
mov esp, ebp
pop ebp
ret
Function at 0x409bb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b5c18
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
mov eax, dword [0x4de8bc]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
xor edx, edx
mov dword [esp + 8], edx
xor eax, eax
mov dword [esp + 0xe], eax
mov dword [esp + 0x12], eax
mov dword [esp + 0x16], eax
mov word [esp + 0x1a], ax
mov eax, dword [ecx + 0x30]
test eax, eax
mov dword [esp + 0x54], edx
mov word [esp + 0xc], dx
je 0x409d2e
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push eax
mov eax, dword [ecx + 0x48]
call eax
test eax, eax
mov edx, dword [esp + 8]
jl 0x409d2e
test edx, edx
je 0x409d2e
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x409c8e
push eax
lea ecx, [esp + 0x20]
call fcn.00402b40
mov ecx, dword [esp + 0x68]
push ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0x58], 1
call fcn.00402b40
mov edx, dword [esp + 0x64]
push edx
lea ecx, [esp + 0x40]
mov byte [esp + 0x58], 2
call fcn.00402b40
mov edx, dword [esp + 0x60]
lea eax, [esp + 0xc]
push eax
push 3
lea ecx, [esp + 0x24]
push ecx
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 0
call fcn.00401540
push 0x402b30
push 3
push 0x10
lea eax, [esp + 0x28]
push eax
call fcn.0042f14c
jmp 0x409ce2
mov eax, dword [esp + 0x68]
test eax, eax
je 0x409cb1
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0xc]
push ecx
push eax
mov eax, dword [esp + 0x68]
push edx
push eax
lea ecx, [esp + 0x18]
call fcn.00403580
jmp 0x409ce2
mov eax, dword [esp + 0x64]
test eax, eax
je 0x409ccf
mov edx, dword [esp + 0x60]
lea ecx, [esp + 0xc]
push ecx
push eax
push edx
lea ecx, [esp + 0x14]
call fcn.004014a0
jmp 0x409ce2
mov ecx, dword [esp + 0x60]
lea eax, [esp + 0xc]
push eax
push ecx
lea ecx, [esp + 0x10]
call fcn.004013d0
mov esi, dword [esp + 0x5c]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esi], edx
mov edx, dword [esp + 0x18]
mov dword [esi + 4], eax
mov eax, dword [esp + 8]
test eax, eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov dword [esp + 0x54], 0xffffffff
je 0x409d61
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x50
ret 0x14
test edx, edx
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esi], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x18]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov dword [esp + 0x54], 0xffffffff
je 0x409d61
mov eax, dword [edx]
mov ecx, dword [eax + 8]
push edx
call ecx
mov eax, esi
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x50
ret 0x14
Function at 0x40c150
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
push esi
xor esi, esi
test ecx, ecx
jne 0x40c161
mov ecx, str.SoftwarePdaNetAndroid
xor edx, edx
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
cmp eax, 2
setne dl
sub edx, 1
and edx, 0x100
or edx, 0x20019
push edx
push 0
push ecx
xor ecx, ecx
test eax, eax
setne cl
add ecx, 0x80000001
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c1dd
mov eax, 4
mov dword [esp + 4], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40c1d2
lea esi, [eax + 1]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret