joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa82a30
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0xaf908c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 4
cmp byte [esi + 0x6c7], al
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0xa82a8d
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d
push esi
call fcn.00a55d70
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a405be
mov esp, ebp
pop ebp
ret
push dword [esi + 0x664]
mov dword [ebp - 0x10], 1
call fcn.00a576f0
push dword [esi + 0x668]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.00a576f0
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0xa82afd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
push esi
call fcn.00a55d70
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00a405be
mov esp, ebp
pop ebp
ret

Function at 0xa82b10
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0xaf908c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push 4
push eax
push 1
push 6
push dword [ebp + 0xc]
mov dword [ebp - 0x108], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0xa82b72
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00a65b00
push eax
push str.Could_not_set_TCP_NODELAY:__s
push esi
call fcn.00a55d70
add esp, 0x18
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00a405be
mov esp, ebp
pop ebp
ret
Function at 0xa83d50
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
push 0x11
push str.WWW_Authenticate:
push edi
mov dword [ebp - 4], 0
call fcn.00a596c0
mov esi, dword [ebp + 0xc]
add esp, 0xc
test eax, eax
je 0xa83d86
mov ebx, dword [esi + 0xe0]
cmp ebx, 0x191
je 0xa83da8
push 0x13
push str.Proxy_authenticate:
push edi
call fcn.00a596c0
add esp, 0xc
test eax, eax
je 0xa83df2
mov ebx, dword [esi + 0xe0]
cmp ebx, 0x197
jne 0xa83df2
push edi
call fcn.00a5c660
mov edi, eax
add esp, 4
test edi, edi
jne 0xa83dc1
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 0x197
push edi
sete al
movzx eax, al
push eax
push esi
call fcn.00a5e170
push edi
mov esi, eax
call dword [0xaf90d0]
add esp, 0x10
test esi, esi
je 0xa83f43
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xf
push str.Content_Length:
push edi
call fcn.00a596c0
add esp, 0xc
test eax, eax
je 0xa83e51
mov ecx, dword [esi + 0xe0]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0xa83e2f
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response
push esi
call fcn.00a55d70
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
add eax, 0x200
push eax
push 0xa
lea eax, [edi + 0xf]
push 0
push eax
call fcn.00a666a0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 5
push str.close
push 0xb
push str.Connection:
push edi
call fcn.00a5c5c0
add esp, 0x14
test al, al
jne 0xa83f39
push 0x12
push str.Transfer_Encoding:
push edi
call fcn.00a596c0
add esp, 0xc
test eax, eax
je 0xa83eef
mov ecx, dword [esi + 0xe0]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0xa83ead
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
push esi
call fcn.00a55d70
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 7
push str.chunked
push 0x12
push str.Transfer_Encoding:
push edi
call fcn.00a5c5c0
add esp, 0x14
test al, al
je 0xa83f43
push str.CONNECT_responded_chunked
push esi
call fcn.00a55d70
mov eax, dword [ebp + 0x10]
push esi
mov byte [eax + 0x20c], 1
call fcn.00a87040
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 5
push str.close
push 0x11
push str.Proxy_Connection:
push edi
call fcn.00a5c5c0
add esp, 0x14
test al, al
jne 0xa83f39
lea ebx, [esi + 0xe0]
push ebx
lea eax, [ebp - 4]
push eax
push str.HTTP_1._d__d
push edi
call fcn.00a4bb30
add esp, 0x10
cmp eax, 2
jne 0xa83f43
mov eax, dword [ebx]
pop edi
mov dword [esi + 0xd4c], eax
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov byte [eax + 0x20d], 1
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xa8e230
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0xa8e263
push 0x2e
push edi
call fcn.00a94280
add esp, 8
test eax, eax
je 0xa8e261
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0xa8f3d0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0xaf908c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push edi
mov edi, dword [ebp + 0x10]
push 0xf0000040
push 1
push 0
push 0
push eax
mov dword [ebp - 0x20], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xa8f462
lea eax, [ebp - 0xc]
mov dword [ebp - 0x18], 0x208
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0x6601
push edi
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x10], 8
call fcn.00a8f4c0
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.00a91b70
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0xa8f474
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a405be
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push dword [ebp - 0x20]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push 0
push dword [ebp - 0x24]
mov dword [esi], ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00a405be
mov esp, ebp
pop ebp
ret
Function at 0xa90390
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0xaf90cc]
mov edi, eax
add esp, 4
test edi, edi
jne 0xa903bd
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0xa90407
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [ebp + 0x10], ebx
jmp 0xa9040d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0xa9046b
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop dword [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0xa90430
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0xa90497
mov eax, dword [esi + 4]
push 1
push 0xae3dfd
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0xae3dfe
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0xa90470
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0xa904f0
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000040
push 0x18
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xa90522
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x800c
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
xor eax, eax
pop esi
pop ebp
ret

Function at 0xa91b70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0xa91bbd
push ebx
mov ebx, dword [ebp + 8]
mov cl, byte [esi + ebx]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
and dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [esi + ebx], cl
inc esi
cmp esi, edi
jb 0xa91b82
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0xa91c10
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xa91c4f
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop edi
pop esi
pop ebp
ret

Function at 0xaa9a53
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00aa9713

Function at 0xaafe2c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00aafcab

Function at 0x4059f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426d76
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x45190c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [ebp + 0x10]
mov dword [ebx], 0x428da8
mov dword [ebx + 4], edx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x18], edx
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x24], edx
mov dword [ebx + 0x28], edx
or dword [ebx + 0x2c], 0xffffffff
mov dword [ebx + 0x30], edx
mov dword [ebx + 0x34], edx
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], edx
mov dword [ebx + 0x40], edx
mov dword [ebx + 0x44], edx
mov dword [ebx + 0x48], edx
mov dword [ebx + 0x4c], edx
mov dword [ebx + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x60], ecx
mov eax, dword [ecx + 4]
and dword [ebx + 0x8c], 0xffffffc0
and byte [ebx + 0x91], 0x80
or dword [ebx + 0x94], 0xffffffff
or dword [ebx + 0x98], 0xffffffff
mov dword [ebx + 0x64], eax
xor eax, eax
inc eax
mov dword [ebx + 0x68], edx
mov dword [ebx + 0x6c], edx
mov dword [ebx + 0x70], edx
mov dword [ebx + 0x74], edx
mov byte [ebx + 0x90], 0x4f
mov dword [ebx + 0x9c], eax
mov dword [ebx + 0xa0], eax
mov dword [ebx + 0xa4], edx
mov dword [ebx + 0xa8], edx
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x405acb
mov eax, dword [ecx + 0x24]
mov dword [ebx + 0x78], eax
mov dword [ecx + 0x24], ebx
mov eax, dword [ebx + 0x5c]
lea edi, [ebx + 0x58]
push 1
push edx
push edi
mov dword [eax + 4], ebx
lea esi, [ebx + 0x54]
mov ecx, dword [ebx + 0x60]
push esi
push ecx
mov eax, dword [ecx]
call dword [eax + 0x18]
push 4
push dword [esi]
mov esi, dword [0x4280f8]
push 6
call esi
push 8
push dword [edi]
mov dword [ebx + 0x7c], eax
push 2
call esi
mov ecx, dword [ebx + 0x7c]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x88], eax
mov eax, ebx
mov dword [ebx + 0x84], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4044e0
Capabilities:
Encrypt data using salsa20 or chacha
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x8c8600]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4046b0
mov eax, dword [esp + 8]
mov dword [eax], 0x61707865
mov dword [eax + 4], 0x61707865
mov dword [eax + 8], 0x61707865
mov dword [eax + 0xc], 0x61707865
mov dword [eax + 0x10], 0x3320646e
mov dword [eax + 0x14], 0x3320646e
mov dword [eax + 0x18], 0x3320646e
mov dword [eax + 0x1c], 0x3320646e
mov dword [eax + 0x20], 0x79622d32
mov dword [eax + 0x24], 0x79622d32
mov dword [eax + 0x28], 0x79622d32
mov dword [eax + 0x2c], 0x79622d32
mov dword [eax + 0x30], 0x6b206574
mov dword [eax + 0x34], 0x6b206574
mov dword [eax + 0x38], 0x6b206574
mov dword [eax + 0x3c], 0x6b206574
mov ecx, dword [esp + 4]
mov edx, dword [ecx]
mov dword [eax + 0x40], edx
mov dword [eax + 0x44], edx
mov dword [eax + 0x48], edx
mov dword [eax + 0x4c], edx
mov edx, dword [ecx + 4]
mov dword [eax + 0x50], edx
mov dword [eax + 0x54], edx
mov dword [eax + 0x58], edx
mov dword [eax + 0x5c], edx
mov edx, dword [ecx + 8]
mov dword [eax + 0x60], edx
mov dword [eax + 0x64], edx
mov dword [eax + 0x68], edx
mov dword [eax + 0x6c], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 0x70], edx
mov dword [eax + 0x74], edx
mov dword [eax + 0x78], edx
mov dword [eax + 0x7c], edx
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x80], edx
mov dword [eax + 0x84], edx
mov dword [eax + 0x88], edx
mov dword [eax + 0x8c], edx
mov edx, dword [ecx + 0x14]
mov dword [eax + 0x90], edx
mov dword [eax + 0x94], edx
mov dword [eax + 0x98], edx
mov dword [eax + 0x9c], edx
mov edx, dword [ecx + 0x18]
mov dword [eax + 0xa0], edx
mov dword [eax + 0xa4], edx
mov dword [eax + 0xa8], edx
mov dword [eax + 0xac], edx
mov ecx, dword [ecx + 0x1c]
mov dword [eax + 0xb0], ecx
mov dword [eax + 0xb4], ecx
mov dword [eax + 0xb8], ecx
mov dword [eax + 0xbc], ecx
mov ecx, dword [esp + 0xc]
mov dword [eax + 0xc0], ecx
lea edx, [ecx + 1]
mov dword [eax + 0xc4], edx
lea edx, [ecx + 2]
mov dword [eax + 0xc8], edx
add ecx, 3
mov dword [eax + 0xcc], ecx
mov dword [eax + 0xd0], 0
mov dword [eax + 0xd4], 0
mov dword [eax + 0xd8], 0
mov dword [eax + 0xdc], 0
mov dword [eax + 0xe0], 0
mov dword [eax + 0xe4], 0
mov dword [eax + 0xe8], 0
mov dword [eax + 0xec], 0
mov dword [eax + 0xf0], 0
mov dword [eax + 0xf4], 0
mov dword [eax + 0xf8], 0
mov dword [eax + 0xfc], 0
ret
call fcn.00475ee0
jmp fcn.004044e0
Function at 0x409fc0
Capabilities:
Decompress data using quicklz

Disassembly:
mov ecx, dword [0x8c8600]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40a0aa
sub esp, 0x2c
movsd xmm0, qword [esp + 0x30]
movsd qword [esp], xmm0
call fcn.0040a1b0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, ecx
shr ecx, 0x14
and ecx, 0x7ff
mov ebx, edx
shr edx, 0xf
and edx, 0x1f
shl ebx, 5
shr eax, 0x1b
or eax, ebx
and eax, 0xfffff
mov dword [esp + 0x10], eax
lea ebx, [0x87db20]
movsd xmm0, qword [ebx + edx*8]
movsd qword [esp + 0x14], xmm0
add ecx, 0xfffffc01
mov ebp, 0xffffffff
adc ebp, 0
add edx, 1
movsd xmm1, qword [ebx + edx*8]
movsd qword [esp + 0x1c], xmm1
mov dword [esp], ecx
mov dword [esp + 4], ebp
call fcn.004681a0
movsd xmm0, qword [esp + 8]
movsd qword [esp + 0x24], xmm0
mov eax, dword [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00468220
movsd xmm0, qword [esp + 0x24]
movsd xmm1, qword [esp + 0x14]
addsd xmm0, xmm1
movsd xmm2, qword [esp + 0x1c]
subsd xmm2, xmm1
movsd xmm1, qword [esp + 8]
mulsd xmm1, xmm2
movsd xmm2, qword [0x733b80]
mulsd xmm2, xmm1
addsd xmm0, xmm2
movsd qword [esp + 0x38], xmm0
add esp, 0x2c
ret
call fcn.00475ee0
jmp fcn.00409fc0

Function at 0x40da10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [0x8c8600]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40db38
sub esp, 0x20
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 0x24]
bsf ebx, edx
jne 0x40da38
mov ebx, 0x20
mov ebp, dword [eax + 0x20]
bsf esi, ebp
jne 0x40da45
mov esi, 0x20
cmp ebp, 1
sbb edi, edi
xor edi, 0xffffffff
xchg edi, ebx
not ebx
xchg edi, ebx
and edi, ebx
lea ebx, [esi + edi]
cmp ebx, 0x40
jge 0x40db2c
mov dword [esp + 0x10], ebp
movzx ecx, word [eax + 0x18]
lea ebp, [ebx + ecx]
movzx eax, word [eax + 0x1a]
cmp ax, bp
jbe 0x40db2c
lea ebx, [ebx + ecx + 1]
test bx, 0x3f
jne 0x40da95
cmp ax, bx
je 0x40da95
mov dword [esp + 0x28], 0
add esp, 0x20
ret
mov word [esp + 0xa], bx
mov dword [esp + 0xc], edx
lea ecx, [esi + edi - 0x1f]
mov dword [esp + 0x1c], ecx
mov eax, edx
shr edx, cl
mov dword [esp + 0x18], edx
neg ecx
shl eax, cl
lea esi, [esi + edi + 1]
mov edi, ecx
mov ecx, esi
mov ebx, dword [esp + 0xc]
shr ebx, cl
mov edx, dword [esp + 0x10]
shr edx, cl
movzx ebp, bp
mov dword [esp + 0x14], ebp
cmp ecx, 0x20
sbb esi, esi
and edx, esi
and ebx, esi
cmp edi, 0x20
sbb esi, esi
and eax, esi
or eax, edx
mov edx, dword [esp + 0x1c]
cmp edx, 0x20
sbb edx, edx
mov esi, dword [esp + 0x18]
and esi, edx
or eax, esi
mov edx, dword [esp + 0x24]
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], ebx
movzx eax, word [esp + 0xa]
mov word [edx + 0x18], ax
movzx eax, word [edx + 0x3c]
inc eax
mov word [edx + 0x3c], ax
mov dword [esp], edx
call fcn.0042a370
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
imul eax, dword [edx + 0x44]
add eax, dword [esp + 4]
mov dword [esp + 0x28], eax
add esp, 0x20
ret
mov dword [esp + 0x28], 0
add esp, 0x20
ret
call fcn.00475ee0
jmp fcn.0040da10
Function at 0x4186d0
Capabilities:
Check for software breakpoints

Disassembly:
mov ecx, dword [0x8c8600]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4188a6
sub esp, 0x18
mov eax, dword [0x8c8510]
test eax, eax
jne 0x41888f
lea eax, [0x8c8500]
mov dword [esp], eax
call fcn.0040c130
mov eax, dword [0x8c8504]
test eax, eax
je 0x418716
cmp dword [eax + 8], 0xcc
jne 0x41878c
mov eax, dword [0x8c8508]
test eax, eax
jne 0x41876e
mov dword [esp], 0x1000
mov dword [esp + 4], 0
lea eax, [0x8cd7d0]
mov dword [esp + 8], eax
call fcn.0040e070
mov eax, dword [esp + 0xc]
mov dword [0x8c8508], eax
mov ecx, dword [0x8c850c]
mov dword [eax], ecx
mov eax, dword [0x8c8508]
mov dword [0x8c850c], eax
movzx eax, byte [0x8c8c40]
test al, al
jne 0x41876e
xor eax, eax
jmp 0x418883
mov eax, dword [0x8c8508]
mov ecx, dword [eax + 4]
mov dword [0x8c8508], ecx
mov ecx, dword [0x8c8504]
mov dword [eax + 4], ecx
mov dword [0x8c8504], eax
mov eax, dword [0x8c8504]
mov dword [esp + 0x14], eax
mov ecx, dword [eax + 8]
mov dword [esp + 0x10], ecx
lea edx, [eax + 8]
mov dword [esp], edx
mov dword [esp + 4], 1
call fcn.0047c770
mov eax, dword [0x8c88d8]
mov ecx, dword [esp + 0x10]
lea ecx, [ecx + ecx*4]
test eax, eax
jne 0x4187d3
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
jmp 0x418813
call fcn.00477350
mov eax, dword [esp + 0x20]
mov dword [edi], eax
mov edx, dword [esp + 0x14]
mov ebx, dword [edx + ecx*4 + 0x10]
mov dword [edi + 4], ebx
mov ebx, dword [esp + 0x28]
mov dword [edi + 8], ebx
mov ebp, dword [edx + ecx*4 + 0x1c]
mov dword [edi + 0xc], ebp
mov ebp, dword [esp + 0x2c]
mov dword [edi + 0x10], ebp
mov esi, dword [edx + ecx*4 + 0x20]
mov dword [edi + 0x14], esi
mov esi, dword [esp + 0x1c]
mov dword [edi + 0x18], esi
mov esi, dword [edx + ecx*4 + 0x14]
mov dword [edi + 0x1c], esi
mov dword [edx + ecx*4 + 0x10], eax
mov eax, dword [esp + 0x24]
mov dword [edx + ecx*4 + 0x18], eax
mov dword [edx + ecx*4 + 0x1c], ebx
mov dword [edx + ecx*4 + 0x20], ebp
mov eax, dword [esp + 0x1c]
mov dword [edx + ecx*4 + 0x14], eax
lea eax, [0x8c8500]
mov dword [esp], eax
call fcn.0040c350
lea eax, [0x8c84fc]
mov dword [esp], eax
mov dword [esp + 4], 8
call fcn.0047c200
add esp, 0x18
ret
mov ecx, eax
mov eax, 0xcccccccd
imul ecx
add edx, ecx
sar edx, 2
lea edx, [edx + edx*4]
mov ebx, ecx
sub ecx, edx
lea edx, [0x87b3f8]
movzx ecx, byte [edx + ecx]
lea ebp, [0x8c8c40]
mov byte [ebp + ebx], cl
lea eax, [ebx + 1]
cmp eax, 0x80
jl 0x418857
jmp 0x41876e
lea eax, [0x70ab74]
mov dword [esp], eax
mov dword [esp + 4], 0x18
call fcn.00470dd0
nop
call fcn.00475ee0
jmp fcn.004186d0
Function at 0x41d120
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [0x8c8600]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x41d197
sub esp, 0xc
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call fcn.0041d6f0
movzx eax, byte [esp + 4]
test al, al
je 0x41d17c
mov eax, dword [esp + 0x10]
movzx ecx, byte [eax + 6]
test cl, cl
jne 0x41d180
mov dword [esp], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 8], ecx
call fcn.0041d1a0
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call fcn.0041d740
add esp, 0xc
ret
add esp, 0xc
ret
lea eax, [0x70ab8c]
mov dword [esp], eax
mov dword [esp + 4], 0x18
call fcn.00470dd0
nop
call fcn.00475ee0
jmp fcn.0041d120
Function at 0x42d770
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [0x8c8600]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x42d8f8
sub esp, 0x14
mov eax, dword [esp + 0x18]
movzx ecx, byte [eax + 6]
cmp cl, 2
ja 0x42d84f
cmp cl, 1
je 0x42d7f0
cmp cl, 2
jne 0x42d8e1
mov ecx, dword [eax + 8]
mov dword [esp], ecx
mov dword [esp + 4], 0
call fcn.0047c350
lea eax, [0x8b4ba8]
mov dword [esp], eax
call fcn.0040c130
lea eax, [0x8b4b80]
mov dword [esp], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
call fcn.004197d0
lea eax, [0x8b4ba8]
mov dword [esp], eax
call fcn.0040c350
jmp 0x42d8dd
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov ebx, dword [eax + 0x10]
mov ebp, dword [eax + 0x14]
mov esi, dword [esp + 0x1c]
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
call fcn.004186d0
lea eax, [0x8b4ba8]
mov dword [esp], eax
call fcn.0040c130
lea eax, [0x8b4ae0]
mov dword [esp], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
call fcn.004197d0
lea eax, [0x8b4ba8]
mov dword [esp], eax
call fcn.0040c350
jmp 0x42d8dd
cmp cl, 3
je 0x42d898
cmp cl, 4
jne 0x42d85f
mov byte [eax + 8], 1
jmp 0x42d8dd
cmp cl, 5
jne 0x42d8e1
lea eax, [0x8b4ba8]
mov dword [esp], eax
call fcn.0040c130
lea eax, [0x8b4b58]
mov dword [esp], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
call fcn.004197d0
lea eax, [0x8b4ba8]
mov dword [esp], eax
call fcn.0040c350
jmp 0x42d8dd
mov ecx, dword [eax + 8]
mov dword [esp], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], ecx
call fcn.00433120
lea eax, [0x8b4ba8]
mov dword [esp], eax
call fcn.0040c130
lea eax, [0x8b4b08]
mov dword [esp], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
call fcn.004197d0
lea eax, [0x8b4ba8]
mov dword [esp], eax
call fcn.0040c350
add esp, 0x14
ret
lea eax, [0x70634c]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.00470dd0
nop
call fcn.00475ee0
jmp fcn.0042d770