joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4175f3
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x45e080]
xor eax, esp
mov dword [esp + 0x190], eax
push esi
mov esi, ecx
lea eax, [esp + 4]
push eax
push 2
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x417621
mov byte [esi], 1
mov ecx, dword [esp + 0x194]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004435d5
add esp, 0x194
ret

Function at 0x418fba
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push edi
push 1
push ebx
mov edi, ecx
call fcn.004258bb
mov eax, dword [esp + 0x1c]
pop ecx
pop ecx
push dword [eax + 0x10]
push dword [eax + 0x18]
push ebx
call dword [sym.imp.WS2_32.dll_connect]
xor ebp, ebp
test eax, eax
jns 0x419026
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x419001
mov eax, dword [edi + 4]
mov dword [eax], 2
xor al, al
jmp 0x4190ad
mov eax, dword [edi + 0xc]
push dword [eax + 4]
push dword [eax]
mov eax, dword [edi + 8]
push dword [eax + 4]
push dword [eax]
push ebx
call fcn.00425fb7
mov ecx, dword [edi + 4]
add esp, 0x14
mov dword [ecx], eax
mov eax, dword [edi + 4]
cmp dword [eax], ebp
jne 0x418ffa
push ebp
push ebx
call fcn.004258bb
mov eax, dword [edi + 0x14]
pop ecx
pop ecx
push ebp
push 0x3e8
push dword [eax + 4]
push dword [eax]
call fcn.00443f00
mov ecx, eax
mov ebp, 0xffff
mov eax, dword [edi + 0x10]
push 4
imul eax, dword [eax], 0x3e8
add ecx, eax
lea eax, [esp + 0x14]
push eax
push 0x1006
push ebp
push ebx
mov dword [esp + 0x24], ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [edi + 0x1c]
push 0
push 0x3e8
push dword [eax + 4]
push dword [eax]
call fcn.00443f00
mov ecx, eax
mov eax, dword [edi + 0x18]
push 4
imul eax, dword [eax], 0x3e8
add ecx, eax
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x14]
push ecx
push 0x1005
push ebp
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [edi + 4]
mov al, 1
and dword [ecx], 0
pop edi
pop ebp
pop ebx
ret 8

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

Disassembly:
mov eax, dword [ecx + 0xc]
push dword [eax]
mov eax, dword [ecx + 8]
push dword [eax]
mov eax, dword [ecx + 4]
push dword [eax]
mov eax, dword [ecx]
push dword [eax]
call dword [sym.imp.WS2_32.dll_recv]
ret

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

Disassembly:
mov eax, dword [ecx + 0xc]
push dword [eax]
mov eax, dword [ecx + 8]
push dword [eax]
mov eax, dword [ecx + 4]
push dword [eax]
mov eax, dword [ecx]
push dword [eax]
call dword [sym.imp.WS2_32.dll_send]
ret

Function at 0x4191e9
Capabilities:
Get socket status

Disassembly:
push dword [ecx + 0x10]
mov eax, dword [ecx]
push dword [ecx + 0xc]
push dword [ecx + 8]
mov eax, dword [eax]
push dword [ecx + 4]
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
ret
Function at 0x421c98
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x408
mov eax, dword [0x45e080]
xor eax, esp
mov dword [esp + 0x404], eax
push ebx
mov ebx, dword [esp + 0x418]
push esi
mov esi, dword [esp + 0x414]
push edi
mov edi, dword [esp + 0x424]
push 2
movzx eax, word [esi]
pop ecx
cmp ax, cx
je 0x421cd4
cmp eax, 0x17
jne 0x421d3c
movzx eax, word [esi + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push ebp
movzx eax, ax
mov ebp, 0x401
mov dword [edi], eax
xor edi, edi
push ebp
lea eax, [esp + 0x14]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x10]
push 2
push edi
push edi
push ebp
push eax
push dword [esp + 0x434]
push esi
call dword [sym.imp.WS2_32.dll_getnameinfo]
pop ebp
test eax, eax
jne 0x421d3c
lea edx, [esp + 0xc]
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x421d22
sub edx, esi
lea eax, [esp + 0xc]
push edx
push eax
mov ecx, ebx
call fcn.00408f10
mov al, 1
jmp 0x421d3e
xor al, al
mov ecx, dword [esp + 0x410]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004435d5
add esp, 0x408
ret

Function at 0x421d6f
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x88
mov eax, dword [0x45e080]
xor eax, ebp
mov dword [ebp + 0x68], eax
push esi
mov esi, dword [ebp + 0x78]
lea eax, [ebp - 0x1c]
push edi
mov edi, dword [ebp + 0x7c]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 0x80
push eax
push dword [ebp + 0x74]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x421db9
push edi
push esi
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
call fcn.00421c98
add esp, 0x10
mov ecx, dword [ebp + 0x68]
pop edi
xor ecx, ebp
pop esi
call fcn.004435d5
add ebp, 0x6c
leave
ret
Function at 0x4381e4
Capabilities:
Hash data using sha256

Disassembly:
push 0x20
push 0x44ef50
push dword [esp + 0xc]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
ret
Function at 0x43b45e
Capabilities:
Hash data using sha1

Disassembly:
call fcn.00438077
test al, al
je 0x43b47c
push 0
push 0x40
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.00442574
add esp, 0x10
ret
jmp fcn.004381f8

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

Disassembly:
call fcn.00438077
test al, al
je 0x43b49f
push 0
push 0x40
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.004427fb
add esp, 0x10
ret
jmp fcn.004397b4

Function at 0x43cfcc
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x10
push ebx
push ebp
xor edx, edx
push esi
mov dword [esp + 0x18], edx
push edi
movzx edi, byte [edx + 0x450798]
mov dword [esp + 0x10], edi
mov eax, edi
shr eax, 5
mov esi, edi
mov edx, eax
shr esi, 6
mov ebx, eax
lea ecx, [edi + edi]
xor ecx, edi
and eax, 1
mov dword [esp + 0x14], eax
and ebx, 2
shr edi, 7
and edx, 4
imul eax, edi, 0x1b000000
lea ebp, [ecx + ecx]
mov dword [esp + 0x18], edx
xor ebp, dword [esp + 0x10]
mov edx, esi
shl ebp, 0x19
and esi, 1
shl ecx, 2
and edx, 2
xor ebp, eax
xor ecx, dword [esp + 0x10]
imul eax, dword [esp + 0x14], 0x1b000000
shl ecx, 8
xor ebp, eax
imul eax, ebx, 0x1b000000
xor ebp, eax
imul eax, esi, 0x1b000000
xor ebp, eax
imul eax, edx, 0x1b000000
xor ebp, eax
imul eax, dword [esp + 0x18], 0x1b000000
xor ebp, eax
imul eax, dword [esp + 0x14], 0x11b00
xor ecx, eax
imul eax, ebx, 0x11b00
xor ecx, eax
imul eax, esi, 0x11b00
mov esi, dword [esp + 0x18]
xor ecx, eax
imul eax, edx, 0x11b00
mov edx, dword [esp + 0x10]
xor ecx, eax
imul eax, esi, 0x11b00
xor ecx, eax
imul eax, dword [esp + 0x14], 0x11b0000
or ebp, ecx
mov ecx, dword [esp + 0x10]
shl ecx, 3
xor ecx, dword [esp + 0x10]
shl ecx, 0x10
xor ecx, eax
imul eax, ebx, 0x11b0000
xor ecx, eax
imul eax, esi, 0x11b0000
xor ecx, eax
imul eax, edi, 0x11b
or ebp, ecx
mov ecx, dword [esp + 0x10]
shl ecx, 2
xor ecx, dword [esp + 0x10]
add ecx, ecx
xor ecx, eax
imul eax, dword [esp + 0x14], 0x11b
xor ecx, eax
imul eax, ebx, 0x11b
xor ecx, eax
imul eax, esi, 0x11b
xor ecx, eax
xor eax, eax
xor ecx, edx
or edx, ebp
or ecx, ebp
or eax, edx
mov edx, dword [esp + 0x1c]
mov dword [edx*8 + 0x463960], eax
mov dword [edx*8 + 0x463964], ecx
inc edx
mov dword [esp + 0x1c], edx
cmp edx, 0x100
jl 0x43cfd9
pop edi
pop esi
pop ebp
pop ebx
mov byte [0x464161], 1
add esp, 0x10
ret

Function at 0x43d124
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push esi
push edi
xor edi, edi
movzx edx, byte [edi + str.cw]
mov ecx, edx
mov eax, edx
shr ecx, 7
imul esi, ecx, 0x1b000000
shl eax, 0x19
imul ecx, ecx, 0x11b
xor esi, eax
mov eax, edx
shl eax, 8
or eax, edx
shl eax, 8
or esi, eax
lea eax, [edx + edx]
xor ecx, eax
xor eax, eax
xor ecx, edx
or eax, esi
or ecx, esi
mov dword [edi*8 + 0x463150], eax
mov dword [edi*8 + 0x463154], ecx
inc edi
cmp edi, 0x100
jl 0x43d128
xorps xmm0, xmm0
pop edi
movlpd qword [0x463958], xmm0
movlpd qword [0x463950], xmm0
pop esi
mov byte [0x464160], 1
ret
Function at 0x43ec75
Capabilities:
Generate random numbers via winapi

Disassembly:
push 0x44
mov eax, 0x449620
call fcn.00443d31
mov eax, dword fs:[0x2c]
mov ecx, dword [0x464250]
mov esi, dword [ebp + 8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x464168]
cmp eax, dword [ecx + 4]
jg 0x43ecbd
push 0
push dword [ebp + 0xc]
push esi
push dword [0x464164]
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x43ecf8
call fcn.00443cef
ret 8
mov edi, 0x464168
push edi
call fcn.00443c77
cmp dword [0x464168], 0xffffffff
pop ecx
jne 0x43eca0
and dword [ebp - 4], 0
mov ecx, 0x464164
call fcn.0043eabc
push 0x449c84
call fcn.00443964
or dword [ebp - 4], 0xffffffff
push edi
call fcn.00443c26
pop ecx
pop ecx
jmp 0x43eca0
push eax
call fcn.0043ed35
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x44f448
lea ecx, [ebp - 0x28]
call fcn.00408990
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x50]
call fcn.0043eb66
push 0x45adf8
lea eax, [ebp - 0x50]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x43facc
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
push ebx
mov ebx, dword [esp + 0x10]
xor ecx, ecx
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0xc], ecx
cmp edi, 4
jb 0x43fb2c
push ebp
mov ebp, edi
shr ebp, 2
push 4
lea eax, [esp + 0x18]
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
push 4
lea eax, [esp + 0x34]
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x3c]
add esp, 0x18
xor eax, dword [esp + 0x14]
add ebx, 4
mov ecx, dword [esp + 0x10]
add esi, 4
or ecx, eax
sub edi, 4
mov dword [esp + 0x10], ecx
sub ebp, 1
jne 0x43faee
pop ebp
mov edx, ecx
mov eax, ecx
shr edx, 8
or edx, ecx
shr eax, 0x10
and edx, 0xff00
or edx, eax
movzx eax, cl
shr edx, 8
or edx, eax
test edi, edi
je 0x43fb5f
sub ebx, esi
movzx ecx, byte [ebx + esi]
movzx eax, byte [esi]
xor ecx, eax
or edx, ecx
inc esi
sub edi, 1
jne 0x43fb4e
pop edi
test edx, edx
pop esi
sete al
pop ebx
pop ecx
pop ecx
ret

Function at 0x43fb6a
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push edi
mov edi, dword [esp + 0x20]
test edi, edi
je 0x43fbf5
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x28]
cmp edi, 4
jb 0x43fbdc
mov eax, edi
shr eax, 2
mov dword [esp + 0x2c], eax
push 4
lea eax, [esp + 0x18]
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
push 4
lea eax, [esp + 0x20]
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x28]
xor eax, dword [esp + 0x2c]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push 4
push eax
push ebp
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x24
add ebp, 4
add ebx, 4
add esi, 4
sub edi, 4
sub dword [esp + 0x2c], 1
jne 0x43fb93
test edi, edi
je 0x43fbf2
sub ebx, esi
sub ebp, esi
mov al, byte [ebx + esi]
xor al, byte [esi]
mov byte [esi + ebp], al
inc esi
sub edi, 1
jne 0x43fbe4
pop esi
pop ebp
pop ebx
pop edi
add esp, 0xc
ret
Function at 0x43fbfa
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x43fc72
push ebx
mov ebx, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x18]
cmp edi, 4
jb 0x43fc5f
push ebp
mov ebp, edi
shr ebp, 2
push 4
lea eax, [esp + 0x14]
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
push 4
lea eax, [esp + 0x34]
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x3c]
xor eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push 4
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x24
add esi, 4
add ebx, 4
sub edi, 4
sub ebp, 1
jne 0x43fc1a
pop ebp
test edi, edi
je 0x43fc70
sub ebx, esi
mov al, byte [ebx + esi]
xor byte [esi], al
inc esi
sub edi, 1
jne 0x43fc65
pop esi
pop ebx
pop edi
pop ecx
pop ecx
ret

Function at 0x442f87
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov ecx, dword [esp + 8]
mov eax, ecx
mov edx, dword [esp + 4]
add eax, eax
push 4
lea ecx, [ecx*4 - 4]
movups xmm0, xmmword [edx + eax*8]
movups xmm1, xmmword [edx]
movups xmmword [edx], xmm0
movups xmmword [edx + eax*8], xmm1
pop eax
cmp ecx, eax
jbe 0x442fcd
aesimc xmm0, xmmword [edx + ecx*4]
aesimc xmm1, xmmword [edx + eax*4]
movups xmmword [edx + eax*4], xmm0
add eax, 4
movups xmmword [edx + ecx*4], xmm1
sub ecx, 4
cmp eax, ecx
jb 0x442faf
aesimc xmm0, xmmword [edx + eax*4]
movups xmmword [edx + eax*4], xmm0
ret
Function at 0x442fd8
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x28
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push edi
push eax
push esi
movups xmm0, xmmword [eax + edi - 0x10]
movaps xmmword [esp + 0x2c], xmm0
call sub.VCRUNTIME140.dll_memcpy
movaps xmm1, xmmword [esp + 0x2c]
mov eax, edi
shr eax, 2
add esp, 0xc
mov edx, eax
mov dword [esp + 0x14], eax
aeskeygenassist xmm0, xmm1, 0
shl edx, 2
lea ecx, [eax + 7]
mov dword [esp + 0x18], 0x450654
shl ecx, 4
add ecx, esi
mov dword [esp + 0x1c], ecx
pextrd ecx, xmm0, 3
xor ecx, dword [esi]
xor ecx, 1
mov dword [edx + esi], ecx
mov eax, dword [esi + 4]
xor eax, ecx
mov dword [edx + esi + 4], eax
mov ecx, dword [esi + 8]
xor ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esi + eax*4 + 8], ecx
mov eax, dword [esi + 0xc]
xor eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [esi + ecx*4 + 0xc], eax
lea eax, [esi + 0x10]
add eax, edx
jmp 0x443114
cmp edi, 0x18
jne 0x443087
mov eax, dword [esi + 0x24]
xor eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
xor ecx, eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
pinsrd xmm1, ecx, 3
jmp 0x4430cc
cmp edi, 0x20
jne 0x4430c5
pinsrd xmm1, dword [esi + 0x2c], 3
mov eax, dword [esi + 0x14]
aeskeygenassist xmm0, xmm1, 0
pextrd ecx, xmm0, 2
xor ecx, dword [esi + 0x10]
xor eax, ecx
mov dword [esi + 0x30], ecx
mov ecx, dword [esi + 0x18]
xor ecx, eax
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x1c]
xor eax, ecx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
pinsrd xmm1, eax, 3
jmp 0x4430cc
pinsrd xmm1, dword [esi + 0x1c], 3
mov eax, dword [esp + 0x18]
add esi, edx
aeskeygenassist xmm0, xmm1, 0
pextrd ecx, xmm0, 3
xor ecx, dword [eax]
add eax, 4
xor ecx, dword [esi]
mov dword [edx + esi], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esi + 4]
xor eax, ecx
mov dword [edx + esi + 4], eax
mov ecx, dword [esi + 8]
xor ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esi + eax*4 + 8], ecx
mov eax, dword [esi + 0xc]
xor eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [esi + ecx*4 + 0xc], eax
lea eax, [edx + 0x10]
add eax, esi
cmp eax, dword [esp + 0x1c]
jne 0x443069
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x444786
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x4506f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x204], eax
mov dword [ebp - 0x200], edi
mov ecx, 0x1f4
lea eax, [ebp - 0x1f8]
mov byte [eax], 0
inc eax
dec ecx
jne 0x401d93
push 0x440220
lea ecx, [ebp - 0x1f8]
push ecx
call dword [0x440020]
lea edx, [ebp - 0x1f8]
push edx
call fcn.0042a5d0
mov esi, dword [0x44001c]
add esp, 4
lea eax, [ebp - 0x1f8]
push eax
call esi
lea ecx, [ebp - 0x1f8]
push ecx
call fcn.0042a5d0
add esp, 4
lea edx, [ebp - 0x1f8]
push edx
call esi
lea eax, [ebp - 0x1f8]
push eax
call fcn.0042a5d0
add esp, 4
lea ecx, [ebp - 0x1f8]
push ecx
call esi
lea edx, [edi + 1]
push edx
push 0x40
call dword [0x440018]
mov ebx, eax
lea eax, [ebp - 0x1f8]
push eax
mov dword [ebp - 0x1fc], ebx
call fcn.0042a5d0
add esp, 4
lea ecx, [ebp - 0x1f8]
push ecx
call esi
lea edx, [ebp - 0x1f8]
push edx
call fcn.0042a5d0
add esp, 4
lea eax, [ebp - 0x1f8]
push eax
call esi
lea ecx, [ebp - 0x1f8]
push ecx
call fcn.0042a5d0
add esp, 4
lea edx, [ebp - 0x1f8]
push edx
call esi
lea eax, [ebp - 0x1f8]
push eax
mov byte [edi + ebx], 0
call fcn.0042a5d0
add esp, 4
lea ecx, [ebp - 0x1f8]
push ecx
call esi
lea edx, [ebp - 0x1f8]
push edx
call fcn.0042a5d0
add esp, 4
lea eax, [ebp - 0x1f8]
push eax
call esi
lea ecx, [ebp - 0x1f8]
push ecx
call fcn.0042a5d0
add esp, 4
lea edx, [ebp - 0x1f8]
push edx
call esi
xor edi, edi
cmp dword [ebp - 0x200], edi
jbe 0x401f26
mov eax, dword [ebp + 8]
sub eax, ebx
mov dword [ebp - 0x208], eax
jmp 0x401ec0
lea eax, [ebp - 0x1f8]
push eax
call fcn.0042a5d0
add esp, 4
lea ecx, [ebp - 0x1f8]
push ecx
call esi
mov edx, dword [ebp - 0x204]
push edx
add ebx, edi
call esi
mov ecx, eax
xor edx, edx
mov eax, edi
div ecx
mov eax, dword [ebp - 0x204]
mov cl, byte [edx + eax]
mov edx, dword [ebp - 0x208]
xor cl, byte [edx + ebx]
lea eax, [ebp - 0x1f8]
push eax
mov byte [ebx], cl
call fcn.0042a5d0
add esp, 4
lea ecx, [ebp - 0x1f8]
push ecx
call esi
mov ebx, dword [ebp - 0x1fc]
inc edi
cmp edi, dword [ebp - 0x200]
jb 0x401ec0
lea edx, [ebp - 0x1f8]
push edx
call fcn.0042a5d0
add esp, 4
lea eax, [ebp - 0x1f8]
push eax
call esi
lea ecx, [ebp - 0x1f8]
push ecx
call fcn.0042a5d0
add esp, 4
lea edx, [ebp - 0x1f8]
push edx
call esi
push 0x1f4
lea eax, [ebp - 0x1f8]
push 0
push eax
call fcn.0042a540
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0042a5ba
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405280
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push ebx
push 0x40
push 0
push esi
call dword [ebp + 8]
add esp, 0x10
test eax, eax
jne 0x40529f
mov eax, 1
pop ebx
pop ebp
ret
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x40534b
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x40534b
push edi
push ebx
push 0xf8
push eax
lea edi, [esi + 0x40]
push edi
call dword [ebp + 8]
add esp, 0x10
test eax, eax
jne 0x4052d7
pop edi
mov eax, 1
pop ebx
pop ebp
ret
cmp dword [edi], 0x4550
jne 0x405342
mov ecx, 0x10b
cmp word [esi + 0x58], cx
jne 0x405342
movzx eax, word [esi + 0x46]
test ax, ax
je 0x405342
lea edi, [eax + eax*4]
add edi, edi
add edi, edi
add edi, edi
push edi
mov dword [esi + 0x140], edi
call fcn.0042a65b
add esp, 4
mov dword [esi + 0x138], eax
test eax, eax
jne 0x40531e
pop edi
mov eax, 3
pop ebx
pop ebp
ret
movzx edx, word [esi + 0x54]
mov ecx, dword [esi + 0x3c]
push ebx
lea ecx, [edx + ecx + 0x18]
push edi
push ecx
push eax
mov dword [esi + 0x13c], ecx
call dword [ebp + 8]
add esp, 0x10
neg eax
sbb eax, eax
pop edi
inc eax
pop ebx
pop ebp
ret
pop edi
mov eax, 2
pop ebx
pop ebp
ret
mov eax, 2
pop ebx
pop ebp
ret
Function at 0x407370
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x40737e
xor eax, eax
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push esi
not eax
cmp edx, 8
jb 0x40745d
mov esi, edx
shr esi, 3
push edi
jmp 0x4073a0
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4466f8]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4466f8]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4466f8]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4466f8]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4466f8]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4466f8]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4466f8]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4466f8]
add ecx, 8
sub edx, 8
dec esi
jne 0x4073a0
pop edi
test edx, edx
je 0x40747a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4466f8]
inc ecx
dec edx
jne 0x407461
not eax
pop esi
pop ebp
ret

Function at 0x407480
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [edx]
movsx ecx, byte [ebp + 0xc]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4466f8]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x4466f8]
mov dword [edx + 8], ecx
pop ebp
ret

Function at 0x4074d0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 8]
mov eax, ecx
and eax, 0xfffd
or eax, 2
mov edx, eax
xor edx, 1
imul edx, eax
mov al, byte [ebp + 0xc]
shr edx, 8
xor al, dl
mov edx, dword [esi]
push edi
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x4466f8]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x4466f8]
pop edi
mov dword [esi + 8], ecx
pop esi
pop ebx
pop ebp
ret
Function at 0x418d50
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e2ab
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4506f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], 0x447814
call fcn.0042a2b9
push 4
mov dword [ebp - 4], 0
call fcn.0042b111
mov edi, eax
add esp, 4
test edi, edi
je 0x418dd0
call fcn.00429f77
mov dword [edi], eax
call fcn.00429d36
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00429c6b
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x418dc6
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00429c93
jmp 0x418dd2
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret