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

Disassembly:
mov eax, dword [0x4f0c38]
and eax, 7
dec eax
push ebx
push esi
cmp eax, 6
ja case.default.0x4a7c64
jmp dword [eax*4 + 0x4a7ef0]
mov eax, dword [0x4d059c]
mov ecx, dword [0x4d0598]
push 0
push 0x41a7
push eax
push ecx
call fcn.0046db40
push 0
push closesocket
push edx
push eax
call fcn.004a8c50
lea ecx, [eax - 1]
mov dword [0x4d0598], eax
mov eax, ecx
shr eax, 0xc
mov dword [0x4d059c], edx
movzx edx, al
mov eax, dword [edx*4 + 0x4f16d8]
mov dword [edx*4 + 0x4f16d8], ecx
jmp 0x4a7ed4
mov edx, dword [0x4d05a4]
mov eax, dword [0x4d05a0]
push 0
push 0x10dcd
push edx
push eax
call fcn.0046db40
add eax, 1
adc edx, 0
xor edx, edx
mov dword [0x4d05a0], eax
mov dword [0x4d05a4], edx
shr eax, 1
jmp 0x4a7ed4
mov ecx, dword [0x4d05ac]
mov edx, dword [0x4d05a8]
push 0
push 0x10dcd
push ecx
push edx
call fcn.0046db40
add eax, 1
adc edx, 0
mov dword [0x4d05a8], eax
shr eax, 1
xor edx, edx
mov ecx, eax
shr ecx, 0xc
movzx ecx, cl
mov dword [0x4d05ac], edx
mov edx, dword [ecx*4 + 0x4f12d8]
mov dword [ecx*4 + 0x4f12d8], eax
mov eax, edx
jmp 0x4a7ed4
mov eax, dword [0x4d05b4]
mov ecx, dword [0x4d05b0]
push 0
push 0x19660d
push eax
push ecx
call fcn.0046db40
add eax, 0x3c6ef35f
adc edx, 0
xor edx, edx
mov dword [0x4d05b0], eax
mov dword [0x4d05b4], edx
shr eax, 1
jmp 0x4a7ed4
mov edx, dword [0x4d05bc]
mov eax, dword [0x4d05b8]
push 0
push 0x19660d
push edx
push eax
call fcn.0046db40
add eax, 0x3c6ef35f
adc edx, 0
mov dword [0x4d05b8], eax
shr eax, 1
xor edx, edx
mov ecx, eax
shr ecx, 0xc
movzx ecx, cl
mov dword [0x4d05bc], edx
mov edx, dword [ecx*4 + 0x4f0ed8]
mov dword [ecx*4 + 0x4f0ed8], eax
mov eax, edx
jmp 0x4a7ed4
movzx eax, byte [0x4d05c0]
mov bl, byte [0x4f1ad8]
mov ecx, dword [eax*8 + 0x4f0d20]
mov edx, dword [eax*8 + 0x4f0d24]
movzx esi, bl
add ecx, dword [esi*8 + 0x4f0d20]
push 0
adc edx, dword [esi*8 + 0x4f0d24]
push closesocket
push edx
push ecx
call fcn.004a8c50
inc bl
mov dword [esi*8 + 0x4f0d20], eax
mov dword [esi*8 + 0x4f0d24], edx
mov eax, dword [esi*8 + 0x4f0d20]
mov byte [0x4f1ad8], bl
cmp bl, 0x37
jne 0x4a7e1f
mov byte [0x4f1ad8], 0
mov cl, byte [0x4d05c0]
inc cl
mov byte [0x4d05c0], cl
cmp cl, 0x37
jne 0x4a7ed4
mov byte [0x4d05c0], 0
jmp 0x4a7ed4
mov cl, byte [0x4f1ad9]
mov bl, byte [0x4d05c1]
movzx esi, cl
movzx eax, bl
mov eax, dword [eax*4 + 0x4f0c40]
xor eax, dword [esi*4 + 0x4f0c40]
push edi
xor edx, edx
mov edi, closesocket
div edi
inc cl
mov byte [0x4f1ad9], cl
pop edi
mov eax, edx
mov dword [esi*4 + 0x4f0c40], eax
cmp cl, 0x37
jne 0x4a7e8a
mov byte [0x4f1ad9], 0
inc bl
mov byte [0x4d05c1], bl
cmp bl, 0x37
jne 0x4a7ed4
mov byte [0x4d05c1], 0
jmp 0x4a7ed4
mov ecx, dword [0x4d0594]
mov edx, dword [0x4d0590]
push 0
push 0x41a7
push ecx
push edx
call fcn.0046db40
push 0
push closesocket
push edx
push eax
call fcn.004a8c50
mov dword [0x4d0590], eax
mov dword [0x4d0594], edx
dec eax
pop esi
mov dword [0x4f0c38], eax
pop ebx
cmp eax, 0x7ffffffd
jbe 0x4a7eec
call fcn.004a7c50
mov eax, dword [0x4f0c38]
ret
Function at 0x4a8050
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x104
mov eax, dword [0x4ce724]
xor eax, esp
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x108]
push ebx
mov ebx, dword [esp + 0x114]
push ebp
push esi
mov esi, dword [esp + 0x118]
xor ebp, ebp
push edi
mov edi, dword [esp + 0x124]
mov dword [esi], 0xffffffff
test eax, eax
je 0x4a80a2
cmp byte [eax], 0
je 0x4a80a2
push eax
push 0x100
lea eax, [esp + 0x18]
push eax
jmp 0x4a80b1
push str.www.avanquest.com
push 0x100
lea ecx, [esp + 0x18]
push ecx
call fcn.0046a7ad
add esp, 0xc
test edi, edi
je 0x4a80d7
mov eax, dword [esp + 0x128]
test eax, eax
je 0x4a80d7
lea edx, [esp + 0x10]
push edx
push eax
push edi
call fcn.0046a7ad
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x4a810b
movsx ecx, word [edi + 0xa]
mov edx, dword [edi + 0xc]
mov eax, dword [edx]
push ecx
push eax
push esi
call fcn.0046b350
add esp, 0xc
mov eax, ebp
test ebx, ebx
je 0x4a8133
mov cx, word [edi + 8]
mov word [ebx], cx
jmp 0x4a8133
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4a8125
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x4a8133
test ebx, ebx
je 0x4a8131
mov eax, 2
mov word [ebx], ax
mov eax, ebp
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00467fff
add esp, 0x104
ret
Function at 0x4a86f0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4ce724]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, dword [esp + 0x120]
push edi
mov edi, dword [esp + 0x134]
push 0x110
lea eax, [esp + 0x10]
push 0
push eax
mov dword [esp + 0x14], 0x114
call fcn.00468010
add esp, 0xc
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0xc], 5
push edi
jb 0x4a8763
push esi
call fcn.004a84e0
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00467fff
add esp, 0x118
ret
mov edx, dword [esp + 0x134]
mov eax, dword [esp + 0x130]
mov ecx, dword [esp + 0x12c]
push edx
push eax
push ecx
push esi
call fcn.004a8150
mov ecx, dword [esp + 0x130]
add esp, 0x14
pop edi
pop esi
xor ecx, esp
call fcn.00467fff
add esp, 0x118
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 0x40cb68
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x40cb77
pop dword [ebp - 0x50]
mov eax, 0x40cb77
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x9aab4852
sub dword [ebp - 0x60], 0x4c590307
mov dword [ebp - 0x5c], 0xb29252d3
add dword [ebp - 0x5c], 0x7fa0f972
mov dword [ebp - 0x58], 0xb7f72cc8
add dword [ebp - 0x58], 0x94551766
mov dword [ebp - 0x54], 0xcf393
add dword [ebp - 0x54], 0xfff30c6d
lea eax, [ebp - 0x60]
push eax
mov eax, 0x890b050e
add eax, 0x7735db36
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0xc7f433a9
add dword [ebp - 0x60], 0xac7e35ad
mov dword [ebp - 0x5c], 0x2ed74a0f
sub dword [ebp - 0x5c], 0xed6ae89a
mov dword [ebp - 0x58], 0x20e92c0b
add dword [ebp - 0x58], 0x42864061
mov dword [ebp - 0x54], 0x519ebd13
sub dword [ebp - 0x54], 0x519ebd13
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x4c08b375
sub eax, 0x4bc7d2e9
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x35310
push 0
call eax
mov ecx, 0xa2fc45ad
add ecx, 0x5d03f95f
mov edx, eax
mov ebx, 0x80057ec5
sub ebx, 0x7fc3dac5
add ebx, dword [ebp - 0x50]
mov esi, 0x53c720f4
mov dword [ebp - 0x48], 0x2b38c943
mov edi, dword [ebx]
add edi, esi
xor dword [ebp - 0x30], edi
mov dword [edx], edi
xor dword [ebp - 0x14], esi
add edx, 4
add ebx, 4
loop 0x40cc8e
add eax, 0xab5e2805
add eax, 0x54a2c6fe
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xe6f94169
add ecx, 0x1946be97
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x4056b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c1c0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4d1114]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esi], vtable.CryptoPP::FilterWithBufferedInput.0
mov dword [esi + 4], vtable.CryptoPP::FilterWithBufferedInput.1.0
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
mov edi, edx
sbb ecx, ecx
xor al, al
and ecx, 0xfffffffc
push edx
mov ecx, dword [ecx + esi + 0x30]
rep stosb byte es:[edi], al
call fcn.0044cd00
add esp, 4
mov dword [ebp - 4], 1
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x40571f
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x405730
push 0x48
push esi
call fcn.0045e56f
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x406200
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c37c
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x4d1114]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x20], edi
mov esi, dword [ebx + 0x10]
mov dword [ebp - 0x28], edi
push 0
mov dword [ebp - 0x20], 0
call fcn.004444f0
mov dword [ebp - 4], 0
mov dword [edi], vtable.CryptoPP::BaseN_Decoder.0
mov dword [edi + 4], vtable.CryptoPP::BaseN_Decoder.1.0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x30], 0xffffffff
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
push esi
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00445270
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.00446d80
mov dword [ebp - 0x1c], eax
push 0x14
mov byte [ebp - 4], 4
call fcn.0045e2c2
mov esi, eax
xorps xmm0, xmm0
mov eax, dword [ebx + 8]
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x18], esi
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 4], str.DecodingLookupArray
mov word [esi + 8], 1
mov dword [esi + 0xc], 0
mov dword [esi], vtable.CryptoPP::AlgorithmParametersTemplate_int_const__.0
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 5
mov ecx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
mov dword [eax + 4], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x406325
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
mov dword [esi + 0xc], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], 0
test ecx, ecx
je 0x406342
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], esi
mov byte [eax + 8], 1
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.00446d00
mov esi, eax
mov dword [ebp - 0x20], 1
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x406370
mov eax, dword [ecx]
push 1
call dword [eax]
lea eax, [ebx + 0xc]
mov byte [ebp - 4], 3
push eax
push str.Log2Base
mov ecx, esi
mov dword [ebp - 0x34], vtable.CryptoPP::NameValuePairs.0
call fcn.0040fd90
push eax
mov ecx, edi
call fcn.004504c0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x4063a4
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045e00c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
Function at 0x4063d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c1c0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4d1114]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
mov edx, dword [esi + 0x38]
mov edi, edx
sbb ecx, ecx
xor al, al
and ecx, 0xfffffffc
push edx
mov ecx, dword [ecx + esi + 0x34]
rep stosb byte es:[edi], al
call fcn.0044cd00
add esp, 4
mov dword [ebp - 4], 1
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x406432
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x406443
push 0x3c
push esi
call fcn.0045e56f
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x407300
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [ecx + 0x1384], 0xffffffff
lea edi, [ecx + 8]
mov dword [ecx + 4], edx
mov esi, 1
nop dword [eax]
mov eax, edx
lea edi, [edi + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi - 4], edx
cmp esi, 0x270
jl 0x407320
pop edi
mov dword [ecx], 0x270
mov eax, ecx
pop esi
pop ebp
ret 4

Function at 0x407c40
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c6c0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x4d1114]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push 0
mov dword [ebp - 0x14], edi
call fcn.004444f0
push esi
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00445270
lea esi, [edi + 0x18]
mov dword [ebp - 4], 1
push 0
mov ecx, esi
mov dword [edi], vtable.CryptoPP::SourceTemplate_class_CryptoPP::FileStore_.1.0
mov dword [edi + 4], vtable.CryptoPP::SourceTemplate_class_CryptoPP::FileStore_.0
mov dword [ebp - 0x10], esi
call fcn.00427f50
lea ecx, [esi + 0x14]
mov dword [esi + 0xc], 0xffffffff
mov dword [ebp - 0x14], ecx
mov eax, edi
mov byte [esi + 0x10], 0
mov dword [ecx], vtable.CryptoPP::FilterPutSpaceHelper.0
mov dword [ecx + 8], 0xffffffff
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [esi], vtable.CryptoPP::FileStore.1.0
mov dword [esi + 4], vtable.CryptoPP::FileStore.0
mov dword [ecx], vtable.CryptoPP::FileStore.2.0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov byte [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x409b50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4d1114]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x409b85
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e00c
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x409bc3
mov edx, dword [esi + 0x30]
mov ebx, dword [edx]
lea eax, [ecx + ebx*2]
cmp ecx, eax
jae 0x409bc3
lea ecx, [ebx - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], di
pop ebx
mov ax, di
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e00c
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x409ca1
mov ebx, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [ebx], eax
jne 0x409bed
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [ebx], ecx
mov eax, dword [esi + 0x1c]
sar edx, 1
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x409c26
push dword [esi + 0x4c]
push edi
call fcn.0047ec3b
mov ecx, 0xffff
add esp, 8
cmp ax, cx
movzx eax, di
jne 0x409ca6
pop ebx
pop edi
mov eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e00c
mov esp, ebp
pop ebp
ret 4
movzx eax, di
mov dword [ebp - 0x28], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call edx
test eax, eax
js 0x409ca1
cmp eax, 1
jle 0x409c74
cmp eax, 3
jne 0x409ca1
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.00404cb0
add esp, 8
test al, al
movzx eax, di
jne 0x409ca6
jmp 0x409ca1
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub ebx, eax
je 0x409c91
push dword [esi + 0x4c]
push ebx
push 1
push eax
call fcn.00480d1e
add esp, 0x10
cmp ebx, eax
jne 0x409ca1
lea eax, [ebp - 0x28]
mov byte [esi + 0x3e], 1
cmp dword [ebp - 0x30], eax
jne 0x409bad
mov eax, 0xffff
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0045e00c
mov esp, ebp
pop ebp
ret 4
Function at 0x40a860
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x40a948
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x40a937
jg 0x40a8a0
test edx, edx
je 0x40a937
nop dword [eax]
call fcn.0040dae0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x40a8f4
jg 0x40a8b7
test esi, esi
je 0x40a8f4
cmp ebx, eax
jg 0x40a8c7
jl 0x40a8c1
cmp edi, esi
jae 0x40a8c7
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.004757b0
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x40a91b
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x40a931
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x40a8a0
jl 0x40a931
test edi, edi
jne 0x40a8a0
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x40a96a
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x40a96c
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x40a9ea
jg 0x40a97f
test esi, esi
je 0x40a9ea
test eax, eax
jl 0x40a9c4
jg 0x40a989
test ebx, ebx
je 0x40a9c4
cmp edi, eax
jg 0x40a999
jl 0x40a993
cmp esi, ebx
jae 0x40a999
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.004757b0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, ebx
sub esi, ebx
mov eax, dword [ecx + 0x30]
sbb edi, dword [esp + 0x14]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
jmp 0x40a9c7
mov edx, dword [ebp + 8]
test edi, edi
jl 0x40a9ea
jg 0x40a9d1
test esi, esi
je 0x40a9ea
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x40a9ea
push eax
push esi
push 1
push edx
call fcn.00480d1e
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40aa00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x40aaeb
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x40aada
jg 0x40aa40
test edx, edx
je 0x40aada
nop dword [eax]
call fcn.0040db00
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x40aa97
jg 0x40aa57
test esi, esi
je 0x40aa97
cmp ebx, eax
jg 0x40aa67
jl 0x40aa61
cmp edi, esi
jae 0x40aa67
mov esi, edi
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0xc]
push esi
mov eax, dword [eax + 0x1c]
push dword [eax]
push dword [esp + 0x18]
call fcn.004757b0
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x10]
jmp 0x40aabc
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x40aad4
mov eax, dword [esp + 0x10]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
mov byte [eax], cl
mov ecx, dword [esp + 0xc]
add eax, esi
mov dword [esp + 0x10], eax
test ebx, ebx
jg 0x40aa40
jl 0x40aad4
test edi, edi
jne 0x40aa40
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x1c]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x40ab0d
mov eax, dword [ecx + 0x2c]
mov eax, dword [eax]
jmp 0x40ab0f
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x40abc5
jg 0x40ab2a
test esi, esi
je 0x40abc5
test eax, eax
jl 0x40ab73
jg 0x40ab34
test ebx, ebx
je 0x40ab73
cmp edi, eax
jg 0x40ab44
jl 0x40ab3e
cmp esi, ebx
jae 0x40ab44
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [esp + 0x14]
push dword [ebp + 8]
call fcn.004757b0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, ebx
sub esi, ebx
mov dword [esp + 0x10], edx
mov eax, dword [ecx + 0x2c]
sbb edi, dword [esp + 0x14]
sub dword [eax], ebx
mov eax, dword [ecx + 0x1c]
add dword [eax], ebx
jmp 0x40ab7a
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test edi, edi
jl 0x40abc5
jg 0x40ab84
test esi, esi
je 0x40abc5
mov edx, dword [ecx + 0x4c]
test edx, edx
je 0x40abc5
mov ebx, dword [ecx + 0xc]
lea eax, [ecx + 0x3c]
cmp dword [ebx], eax
jne 0x40abb0
mov edx, dword [ecx + 0x54]
mov ecx, dword [ecx + 0x50]
sub edx, ecx
mov dword [ebx], ecx
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov edx, dword [ebx + 0x4c]
push edx
push esi
push 1
push dword [esp + 0x1c]
call fcn.0048165c
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc