joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4400d0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x440103
push esi
call fcn.004431d0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4400fc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x440189
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x440172
mov eax, dword [esi + 8]
test eax, eax
je 0x440127
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44016e
cmp eax, 2
je 0x440172
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44011a
cmp eax, 3
je 0x44014d
cmp eax, 1
jne 0x44011a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44011a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44011a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004401b0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x440198
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004401b0
add esp, 4
pop esi
ret

Function at 0x44bd10
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x44bdb3
test eax, eax
jbe 0x44bdb3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x44bdb3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x44bd5e
xor esi, esi
jmp 0x44bd64
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x44bd8f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0044dd30
add esi, eax
push esi
mov ebx, esi
call fcn.0044dd30
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x44bd70
pop ebp
test edi, edi
pop edi
jne 0x44bdb3
test ebx, ebx
je 0x44bdb3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00457fd0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x44bef5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x44c00d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44c00d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00469284
mov esi, eax
test esi, esi
je 0x44c00d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x44c00d
mov ecx, esi
call fcn.0044be60
cmp edi, eax
jge 0x44c00d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x44bf93
mov dword [esp + 0x34], 1
jmp 0x44bfee
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x44c00d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0044b410
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x44dea0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x44df06
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x44df06
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x44dee7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x44ea40
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0044eb90
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x44ea60
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x44ea41
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0044eb90
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x44ea60
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x44ea90
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x44eae7
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x44eafd
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.0044eb20
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x44eb20
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x44ebb0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x44ebf9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4
Function at 0x44f070
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x476210
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0044ec20
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044eca0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044eca0
lea ecx, [esi + 0xc]
call fcn.0046780e
lea ecx, [esi + 0x10]
call fcn.0046780e
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004514d0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004514d0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004514d0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00467883
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00467883
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x44fd18
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x476438
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x44fd28
call fcn.00450240
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x44fe0b
cmp byte [edi], 0
je 0x44fe0b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x44fd4d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.0044ea40
test eax, eax
jne 0x44fd6d
push 0x49b490
lea ecx, [esi + 0x38]
call fcn.004679c0
jmp 0x44fe0b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.0044ea90
test eax, eax
jne 0x44fd9c
mov ecx, esi
call fcn.0044eb90
push edi
add esi, 0x38
push 0x49b46c
push esi
call fcn.00465687
add esp, 0xc
jmp 0x44fe0b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.00450ac0
test eax, eax
je 0x44fe04
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.0044fee0
test eax, eax
jne 0x44fe20
push edi
lea eax, [esi + 0x38]
push 0x49b448
push eax
call fcn.00465687
add esp, 0xc
mov ecx, esi
call fcn.00450240
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x44fec8
mov ecx, dword [0x49bb10]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.00465687
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.0044eb40
test eax, eax
jne 0x44fe8a
push 0x49b42c
lea ecx, [esi + 0x38]
call fcn.004679c0
jmp 0x44fe9a
push 0xfa
mov ecx, esi
call fcn.00450ac0
test eax, eax
jne 0x44feb7
mov ecx, esi
call fcn.00450240
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00467883
jmp 0x44fe0b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00467883
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x452d80
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x452dca
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x452df9
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x452e3b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x469c27
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x469c5f
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00467cde
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00467cb6
jmp 0x469c6b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46b31c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46b35e
call fcn.00470ed9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46b35e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46b355
xor eax, eax
jmp 0x46b366
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046b36c
pop edi
pop esi
pop ebx
ret 4

Function at 0x471409
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x471437
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x471455
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047136f
jmp 0x471455
mov eax, dword [esi + 0x14]
test eax, eax
je 0x471455
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047136f
test edi, edi
mov eax, edi
jne 0x47143f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x46ced7
Capabilities:
Encrypt data using aes

Disassembly:
mov eax, dword [ebx]
pop ebx
lea esp, [esp + 4]
jmp 0x43d7a4
push ebx
mov ebx, ebp
lea ebx, [ebx - 8]
jmp 0x46cea0
jmp 0x46ceba

Function at 0x46d389
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
lea esp, [esp + 3]
lea esp, [esp + 1]
jmp 0x46d3e6
and ebx, ecx
clc
sub esp, 0x1e
add esp, 0x14
lea esp, [esp + 2]
jmp 0x46d3ce
lea esp, [esp + 0x28]
xor edi, dword [ebx*4 + reloc.KERNEL32.dll_LoadLibraryA]
mov bl, byte [esp]
jmp 0x46d3b7
mov edi, dword [edi*4 + reloc.KERNEL32.dll_LoadLibraryA]
sub esp, 6
push eax
stc
pop word [esp + 1]
jmp 0x46d393

Function at 0x46d4f3
Capabilities:
Encrypt data using aes

Disassembly:
bswap edx
mov dh, ch
jmp 0x46d532
pushal
sets bl
bts ecx, edi
push cx
mov ah, byte [esp + 1]
lea esp, [esp + 2]
jmp 0x46d5b9
mov edx, dword [esi + 0xc]
stc
push edx
jmp 0x46d51b
mov ebx, dword [ebx*4 + reloc.KERNEL32.dll_LoadLibraryA]
call 0x46d552
rcl di, 0xf
lea edi, [eax + esi]
lea edi, [esi + esi]
jmp 0x46d56c
mov dword [esp + 0x14], esi
popal
lea edx, [edx + 8]
mov dword [edx], edi
pop edx
jmp 0x46d59b

Function at 0x46d64e
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
lea esp, [esp + 0x34]
xor edi, dword [ebx*4 + reloc.KERNEL32.dll_LoadLibraryA]
bsr ebx, ecx
jmp 0x46d752
and ebx, ecx
push si
add esp, 1
sub esp, 2
lea esp, [esp + 3]
jmp 0x46d603
mov dword [esp], ebp
mov edi, dword [edi*4 + reloc.KERNEL32.dll_LoadLibraryA]
jmp 0x46d61b
jmp 0x46d633
mov bx, 0x44b7
rol bx, 7
movzx ebx, byte [esi + 0xe]
mov ebx, dword [ebx*4 + reloc.KERNEL32.dll_LoadLibraryA]
call fcn.0046d685
Function at 0x10001100
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ecx
movups xmm0, xmmword [ecx]
push ebx
push ebp
push esi
mov esi, edx
mov eax, 0x10
push edi
mov ebp, 0x10029b91
movups xmmword [esi], xmm0
nop word [eax + eax]
mov ebx, dword [esi + eax - 4]
lea ebp, [ebp + 1]
mov dl, byte [ebp - 1]
mov edi, 3
mov dword [esp + 0x10], ebx
movzx ecx, bl
shr ebx, 8
mov dh, byte [ecx + str.cw]
movzx ecx, bl
movzx ecx, byte [ecx + str.cw]
xor cl, byte [esi + eax - 0x10]
xor cl, dl
mov byte [esp + 0x10], cl
movzx ecx, byte [esp + 0x12]
movzx ecx, byte [ecx + str.cw]
xor cl, byte [esi + eax - 0xf]
mov byte [esp + 0x11], cl
movzx ecx, byte [esp + 0x13]
movzx ecx, byte [ecx + str.cw]
xor cl, byte [esi + eax - 0xe]
mov byte [esp + 0x12], cl
movzx ecx, byte [esi + eax - 0xd]
xor cl, dh
mov byte [esp + 0x13], cl
mov ecx, dword [esp + 0x10]
mov dword [esi + eax], ecx
add eax, 4
movzx ecx, byte [esi + eax - 0x10]
mov edx, dword [esi + eax - 4]
xor cl, dl
mov dword [esp + 0x10], edx
mov byte [esp + 0x10], cl
movzx ecx, byte [esi + eax - 0xf]
xor byte [esp + 0x11], cl
movzx ecx, byte [esi + eax - 0xe]
xor byte [esp + 0x12], cl
movzx ecx, byte [esi + eax - 0xd]
xor byte [esp + 0x13], cl
mov ecx, dword [esp + 0x10]
mov dword [esi + eax], ecx
add eax, 4
sub edi, 1
jne 0x10001190
cmp eax, 0xb0
jl 0x10001120
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x10003a40
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 0x10003b28
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 0x10003b17
jg 0x10003a80
test edx, edx
je 0x10003b17
nop dword [eax]
call fcn.10004e80
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x10003ad4
jg 0x10003a97
test esi, esi
je 0x10003ad4
cmp ebx, eax
jg 0x10003aa7
jl 0x10003aa1
cmp edi, esi
jae 0x10003aa7
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.100080a0
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 0x10003afb
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 0x10003b11
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x10003a80
jl 0x10003b11
test edi, edi
jne 0x10003a80
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 0x10003b4a
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x10003b4c
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x10003bca
jg 0x10003b5f
test esi, esi
je 0x10003bca
test eax, eax
jl 0x10003bae
jg 0x10003b69
test ebx, ebx
je 0x10003bae
cmp edi, eax
jg 0x10003b79
jl 0x10003b73
cmp esi, ebx
jae 0x10003b79
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.100080a0
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 0x10003bca
jg 0x10003bb1
test esi, esi
je 0x10003bca
jmp 0x10003bb1
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x10003bca
push eax
push esi
push 1
push edx
call fcn.1000d22a
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 0x10003be0
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 0x10003c12
jl 0x10003c05
test ecx, ecx
jne 0x10003c12
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 0x10003cd2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.10004ea0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x10003c7e
jg 0x10003c3d
test esi, esi
je 0x10003c7e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x10003c55
mov eax, dword [esp + 0x10]
jl 0x10003c4f
cmp eax, esi
jae 0x10003c55
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.100080a0
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 0x10003c9f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x10003cbb
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 0x10003c24
jl 0x10003cbb
test ecx, ecx
jne 0x10003c24
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 0x10003d11
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x10003d11
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.100080a0
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 0x10003d80
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x10003d37
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 0x10003d69
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.1000b190
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x10003d94
cmp edi, eax
ja 0x10003d45
test ecx, ecx
je 0x10003d80
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.1000b190
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