joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439ca0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46a488
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0046340b
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00439640
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00463339
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0045fbfd
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0045fbfd
push 1
push 0
push 0
mov ecx, esi
call fcn.0045fba5
push 1
push 0
push 1
mov ecx, esi
call fcn.0045fba5
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046347d
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x439e20
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46a4a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0046340b
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00439640
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00463339
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x439ee4
cmp dword [esp + 0x40], 1
jne 0x439ee2
cmp ecx, eax
jge 0x439ee4
mov eax, ecx
cmp eax, 0xc8
jge 0x439ef0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00439ca0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046347d
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43a670
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46a513
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0045e01d
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004636b3
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00464bcf
test eax, eax
je 0x43a78c
mov ecx, dword [esp + 0x3c]
call fcn.004636e0
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43a750
push edi
mov ecx, esi
call fcn.00460d47
mov ecx, esi
call fcn.0043a8f0
cmp dword [esp + 0x38], 1
jne 0x43a785
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00460e82
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43d1b0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43d1e3
push esi
call fcn.004402b0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43d1dc
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 0x43d269
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43d252
mov eax, dword [esi + 8]
test eax, eax
je 0x43d207
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 0x43d24e
cmp eax, 2
je 0x43d252
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43d1fa
cmp eax, 3
je 0x43d22d
cmp eax, 1
jne 0x43d1fa
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 0x43d1fa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43d1fa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043d290
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43d278
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043d290
add esp, 4
pop esi
ret

Function at 0x448e00
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 0x448ea3
test eax, eax
jbe 0x448ea3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x448ea3
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 0x448e4e
xor esi, esi
jmp 0x448e54
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x448e7f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00402da0
add esi, eax
push esi
mov ebx, esi
call fcn.00402da0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x448e60
pop ebp
test edi, edi
pop edi
jne 0x448ea3
test ebx, ebx
je 0x448ea3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0044dad0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x448fe5
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 0x4490fd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4490fd
mov eax, dword [esi + 0x3c]
push eax
call fcn.0045e46f
mov esi, eax
test esi, esi
je 0x4490fd
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 0x4490fd
mov ecx, esi
call fcn.00448f50
cmp edi, eax
jge 0x4490fd
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 0x449083
mov dword [esp + 0x34], 1
jmp 0x4490de
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4490fd
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.004484f0
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 0x45ee13
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45ee4b
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.0045cec7
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045ce9f
jmp 0x45ee57
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x460501
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 0x460543
call fcn.00465fb5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x460543
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46053a
xor eax, eax
jmp 0x46054b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00460551
pop edi
pop esi
pop ebx
ret 4
Function at 0x4664e5
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 0x466513
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x466531
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046644b
jmp 0x466531
mov eax, dword [esi + 0x14]
test eax, eax
je 0x466531
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046644b
test edi, edi
mov eax, edi
jne 0x46651b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10002240
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x22d0570
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [0x22db4fc]
push esi
push edi
mov esi, ecx
mov dword [esp + 8], eax
xor edi, edi
mov dword [esp + 0x14], 0x22d2a60
mov dword [esp + 0x30], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
push ecx
mov byte [esp + 0x34], 1
mov ecx, esp
mov dword [esp + 0x10], esp
push 0x22ded88
call fcn.1001581c
mov cx, word [0x22dec80]
lea edx, [esp + 0x10]
push ecx
push 0x9c49
push edx
call fcn.10004590
add esp, 0x10
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 2
call fcn.1001589b
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call fcn.100157ae
push ecx
lea eax, [esp + 0xc]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.10015541
lea ecx, [esp + 0x18]
call fcn.10003210
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push 0xfa
push edi
mov eax, dword [ecx]
lea ecx, [esi + 0x70]
push eax
push edi
call fcn.10014bb2
mov edx, dword [esi + 0x8c]
push 0x20
push edi
push 0x1036
push edx
call dword [0x22d23bc]
mov dword [esp + 0x14], 0x22d2a60
mov eax, dword [esp + 0x18]
mov byte [esp + 0x30], 3
cmp eax, edi
je 0x10002344
mov ecx, dword [esp + 0x1c]
push ecx
push eax
call fcn.10014ab2
mov edx, dword [esp + 0x18]
push edx
call fcn.100163fe
add esp, 4
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
call fcn.100157ae
mov ecx, dword [esp + 0x28]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x2c
ret
Function at 0x100036f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x22d0790
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [0x22db4fc]
push esi
push edi
mov esi, ecx
mov dword [esp + 8], eax
xor edi, edi
mov dword [esp + 0x14], 0x22d2a60
mov dword [esp + 0x30], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
push ecx
mov byte [esp + 0x34], 1
mov ecx, esp
mov dword [esp + 0x10], esp
push 0x22ded88
call fcn.1001581c
mov cx, word [0x22dec80]
lea edx, [esp + 0x10]
push ecx
push 0x9c4b
push edx
call fcn.10004590
add esp, 0x10
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 2
call fcn.1001589b
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call fcn.100157ae
push ecx
lea eax, [esp + 0xc]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.10015541
lea ecx, [esp + 0x18]
call fcn.10003210
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push 0xfa
push edi
mov eax, dword [ecx]
lea ecx, [esi + 0x5c]
push eax
push edi
call fcn.10014bb2
mov edx, dword [esi + 0x78]
push 0x20
push edi
push 0x1036
push edx
call dword [0x22d23bc]
mov dword [esp + 0x14], 0x22d2a60
mov eax, dword [esp + 0x18]
mov byte [esp + 0x30], 3
cmp eax, edi
je 0x100037f1
mov ecx, dword [esp + 0x1c]
push ecx
push eax
call fcn.10014ab2
mov edx, dword [esp + 0x18]
push edx
call fcn.100163fe
add esp, 4
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
call fcn.100157ae
mov ecx, dword [esp + 0x28]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x2c
ret
Function at 0x40f3b4
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x1519b24
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1519b2e
pushal
call 0x1519b34
pop ebp
sub ebp, 0x10
sub ebp, 0x3f9b24
jmp 0x1519b4a
mov eax, 0x3f9b24
add eax, ebp
add eax, 0x4c
mov ecx, 0x5bc
mov edx, 0x5ddc4d05
xor byte [eax], dl
inc eax
dec ecx
jne 0x1519b61
jmp 0x1519b74
mov cs, eax
mov cs, word [ecx + edi - 0x7bfafafb]
invalid
Function at 0x4036a2
Capabilities:
Terminate process

Disassembly:
jmp 0x458323
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x458334
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405a88
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4037d3
Capabilities:
Query environment variable

Disassembly:
jmp 0x49537d
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49538e
pop esi
ret
push ebx
push edi
push esi
call fcn.00495264
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004040b1
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4953b6
push ebx
push esi
push edi
call fcn.00405867
add esp, 0xc
push 0
call fcn.00406424
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x405934
Capabilities:
Parse pe header

Disassembly:
jmp 0x41a083
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41a0c2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41a0c2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41a0c2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41a0c2
cmp dword [ecx + 0x74], 0xe
jbe 0x41a0c2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x493552
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5720a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49359d
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00493a14
test al, al
jne 0x493597
sub edx, 2
cmp edx, edi
jne 0x49357d
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4935bf
lea eax, [edi + 2]
cmp edx, eax
je 0x4935bf
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049314b
add esp, 0x10
jmp 0x4936b9
push esi
lea ecx, [ebp - 0x255]
call fcn.00493a14
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x493602
push dword [ebp - 0x25c]
jmp 0x4935af
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49363f
cmp word [ebp - 0x226], 0
je 0x493660
cmp word [ebp - 0x226], ax
jne 0x49363f
cmp word [ebp - 0x224], 0
je 0x493660
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049314b
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4936ac
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x493619
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x493694
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4936b9
push 0x492b33
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405696
add esp, 0x10
jmp 0x493689
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004030da
leave
ret
Function at 0x49fc5e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401dca
mov eax, dword [0x5720a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00406014
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x49fca0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49fdfc
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406172
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x575d38]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004032fb
mov ecx, dword [esi*4 + 0x575d38]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x49fdf5
cmp eax, dword [edi + ecx + 0x24]
jne 0x49fdf5
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49fdf5
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004032fb
add esp, 0x14
test edx, edx
jl 0x49fdf5
jg 0x49fd6b
test eax, eax
jb 0x49fdf5
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49fdf5
jl 0x49fd85
cmp dword [ebp - 0x1008], eax
ja 0x49fdf5
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49fda3
test ebx, ebx
je 0x49fddc
cmp ecx, edi
jae 0x49fddc
mov al, byte [ecx]
cmp al, 0xd
jne 0x49fdbd
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49fdc9
cmp byte [ecx + 1], 0xa
jne 0x49fdc9
inc ecx
jmp 0x49fdc9
movzx eax, al
movsx eax, byte [eax + 0x5729e0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49fda3
cmp edx, ebx
jne 0x49fda3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49fdfa
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004030da
leave
ret
Function at 0x4a0659
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x575d38]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a0699
cmp byte [ebx], 0xa
jne 0x4a0699
or byte [eax + edi + 0x28], 4
jmp 0x4a069e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a079c
mov al, byte [edx]
cmp al, 0x1a
je 0x4a077e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a06cd
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a06f2
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a06fc
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4a06af
jmp 0x4a079c
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a0779
cmp dword [ebp - 0xc], 0
je 0x4a0779
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x575d38]
test byte [eax + edi + 0x28], 0x48
je 0x4a0753
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a073e
mov byte [esi], dl
jmp 0x4a074f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x575d38]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a079c
cmp byte [ebp - 1], 0xa
jne 0x4a0762
cmp esi, ebx
jne 0x4a0762
mov byte [esi], 0xa
jmp 0x4a079b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401965
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a079c
mov byte [esi], 0xd
jmp 0x4a079b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x575d38]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a0798
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a079c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret