joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474f90
Capabilities:
Get graphical window text

Disassembly:
push ecx
mov ecx, dword [esi + 0x1850]
test ecx, ecx
je 0x47504e
mov eax, dword [esi]
test eax, eax
je 0x47504e
push edi
test al, 1
jne 0x474fba
mov eax, dword [esi + 0x100c]
cmp word [eax], 0
je 0x474fd6
push 0x7fff
lea edi, [esi + 0x1858]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x474fd6
xor ecx, ecx
mov word [edi], cx
test byte [esi], 4
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
je 0x474ff1
mov eax, dword [esi + 0x1850]
lea edx, [esi + 0x1854]
push edx
push eax
call edi
test byte [esi], 0x20
je 0x47502f
mov edx, dword [esi + 0x1850]
lea ecx, [esp + 4]
push ecx
push edx
call edi
test eax, eax
je 0x47502f
movzx eax, byte [esi + 0x1828]
mov ecx, dword [esp + 4]
push eax
lea eax, [esi + 0x11a58]
call fcn.0044ecc0
add esp, 4
test eax, eax
jne 0x47502f
xor ecx, ecx
mov word [esi + 0x11a58], cx
test byte [esi], 8
pop edi
je 0x47504e
mov eax, dword [esi + 0x1850]
push 0x101
lea edx, [esi + 0x11856]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClassNameW]
pop ecx
ret

Function at 0x4756e0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x11c64
call fcn.00494440
mov eax, dword [esp + 0x11c68]
mov eax, dword [eax + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x47578d
mov dword [esp + 0x1848], eax
lea eax, [esp + 8]
push eax
push 0x475e10
mov dword [esp + 0x10], ebx
mov dword [esp + 0x101c], 0x4a6b2c
mov byte [esp + 0x1839], bl
mov dword [esp + 0x183c], ebx
mov dword [esp + 0x1840], ebx
mov dword [esp + 0x1844], ebx
mov dword [esp + 0x1848], ebx
mov dword [esp + 0x184c], ebx
mov dword [esp + 0x185c], ebx
mov dword [esp + 0x1860], ebx
mov byte [esp + 0x1854], cl
mov dword [esp + 0x1858], edx
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esp + 0x1838], ebx
je 0x47578d
mov ecx, dword [0x4be40c]
mov eax, dword [ecx + 0x54]
cmp eax, 0xffffffff
jle 0x47578d
push 1
push eax
call fcn.004012b0
add esp, 8
mov eax, 1
pop ebx
add esp, 0x11c64
ret 4
Function at 0x4757a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
cmp dword [edi + 8], 0
jne 0x4757bc
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov eax, dword [0x4be40c]
push eax
push esi
mov ecx, edi
call fcn.00475c50
cmp byte [edi], 0
mov dword [esp + 0x10], eax
je 0x4757f3
test eax, eax
jne 0x4757f7
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push edi
call fcn.004758b0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
test eax, eax
jne 0x475876
test esi, esi
je 0x475876
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
push 1
push 0x8000012f
mov ebx, eax
call fcn.004012b0
mov edi, dword [sym.imp.USER32.dll_IsWindow]
add esp, 8
push esi
call edi
test eax, eax
je 0x475855
mov edi, edi
call ebp
lea ecx, [ebx + 0x1f4]
sub ecx, eax
cmp ecx, 5
jle 0x475855
push 1
push 0x8000012f
call fcn.004012b0
add esp, 8
push esi
call edi
test eax, eax
jne 0x475830
mov edx, dword [0x4be40c]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x47586e
push 1
push eax
call fcn.004012b0
add esp, 8
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
cmp byte [edi], 0
je 0x475890
mov ecx, dword [esp + 0x1c]
push 0
push ecx
push edi
call fcn.004758b0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov edx, dword [esp + 0x1c]
push edx
mov ecx, edi
call fcn.00475a20
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x475a20
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x11c68
call fcn.00494440
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 8], ebx
je 0x475ba0
xor cl, cl
mov eax, edi
call fcn.00475bc0
test eax, eax
jne 0x475a55
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c68
ret 4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, eax
mov eax, dword [0x4be40c]
push eax
push ebp
mov ecx, edi
call fcn.00475c50
test eax, eax
je 0x475a78
xor eax, eax
mov dword [0x4c3fdc], eax
jmp 0x475a7d
mov eax, dword [0x4c3fdc]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1024], 0x4a6b2c
mov dword [esp + 0x1844], ebx
mov dword [esp + 0x1848], ebx
mov dword [esp + 0x184c], ebx
mov dword [esp + 0x1864], ebx
mov dword [esp + 0x1868], ebx
cmp byte [esp + 0x11c7c], bl
je 0x475ac3
mov byte [esp + 0x1841], bl
cmp eax, ebx
je 0x475acb
mov byte [esp + 0x1841], 1
mov ecx, dword [0x4c3fd8]
mov edx, dword [edi + 8]
mov esi, dword [sym.imp.USER32.dll_EnumWindows]
mov dword [esp + 0x1854], eax
lea eax, [esp + 0x18]
push eax
push 0x475d20
mov dword [esp + 0x1858], ecx
mov dword [esp + 0x1860], edx
call esi
mov eax, dword [esp + 0x1848]
cmp eax, ebx
je 0x475b78
lea ecx, [esp + 0x10]
push ecx
push 0x474900
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
call esi
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x475b35
mov edx, dword [esp + 0x1848]
call fcn.00475460
mov dword [esp + 0x1848], esi
mov eax, dword [esp + 0x1848]
call fcn.00473900
mov edx, dword [esp + 0x1848]
call fcn.00475460
mov edx, dword [0x4be40c]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x475ba0
push 1
push eax
call fcn.004012b0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c68
ret 4
mov eax, dword [0x4c3fdc]
cmp eax, ebx
je 0x475ba0
cmp eax, 1
setg al
mov dword [0x4c3fdc], ebx
cmp al, bl
je 0x475ba0
mov edx, ebp
call fcn.00475460
push ebx
mov ecx, edi
call fcn.00475a20
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x11c68
ret 4
Function at 0x48f2e6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4bdd70]
jne 0x48f2f0
repz ret
jmp fcn.00493e6f

Function at 0x492200
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4bdd70]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0048c752
and dword [ebp - 0x14], 0
cmp dword [0x4c063c], 0
mov dword [ebp - 0x18], eax
jne 0x4922b3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x49235b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x49bfb0
push ebx
call edi
test eax, eax
je 0x49235b
mov esi, dword [fcn.00488b30]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4c063c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4c0640], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4c0644], eax
call edi
push eax
call esi
mov dword [0x4c064c], eax
test eax, eax
je 0x4922b3
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4c0648], eax
mov eax, dword [0x4c0648]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.00488b34]
cmp eax, ecx
je 0x49230c
cmp dword [0x4c064c], ecx
je 0x49230c
push eax
call esi
push dword [0x4c064c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x49230c
test ebx, ebx
je 0x49230c
call edi
test eax, eax
je 0x492303
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x492303
test byte [ebp - 8], 1
jne 0x49230c
or dword [ebp + 0x10], 0x200000
jmp 0x49233f
mov eax, dword [0x4c0640]
cmp eax, dword [ebp - 0x18]
je 0x49233f
push eax
call esi
test eax, eax
je 0x49233f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x49233f
mov eax, dword [0x4c0644]
cmp eax, dword [ebp - 0x18]
je 0x49233f
push eax
call esi
test eax, eax
je 0x49233f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4c063c]
call esi
test eax, eax
je 0x49235b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x49235d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048f2e6
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x3f3565b0
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x42e1d0
mov ecx, 0x10264cac
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.004015cd
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x401b78
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
mov ebx, esi
add ebx, 0xc8
mov edi, dword [ebp + 0xc]
mov eax, edi
or eax, esi
cdq
idiv ebx
mov dword [ebp - 8], eax
and dword [ebp - 4], 0
jmp 0x401c25
and dword [ebp - 0xc], 0
and dword [ebp - 0x10], 0
jmp 0x401bb2
add dword [ebp - 0xc], ebx
inc dword [ebp - 0x10]
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x10], eax
jl 0x401bac
mov ecx, dword [ebp - 8]
cmp eax, ecx
jne 0x401bcf
mov eax, dword [ebp + 0xc]
mov edx, esi
inc edx
imul eax, edx
mov ebx, eax
sub ebx, dword [ebp - 0xc]
or ebx, ebx
je 0x401c35
and dword [ebp - 0x14], 0
push ebx
push dword [ebp - 0xc]
push esi
call fcn.00401b35
mov dword [ebp - 0x18], eax
push ebx
push dword [ebp - 0xc]
push esi
call fcn.00401b35
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
xor edx, esi
add edx, eax
push edx
mov edx, dword [ebp - 0x18]
mov ecx, edx
or cl, 1
mov edi, esi
imul edi, ecx
sub edx, edi
add edx, eax
push edx
call fcn.00401b1b
add esp, 0x20
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x7e8
jl 0x401bd7
inc dword [ebp - 4]
mov edi, dword [ebp - 8]
mov ecx, esi
sar edi, cl
cmp dword [ebp - 4], edi
jle 0x401ba2
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403701
Capabilities:
Terminate process

Disassembly:
jmp 0x4563b9
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x4563ca
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405afb
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 0x403837
Capabilities:
Query environment variable

Disassembly:
jmp 0x49ff12
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49ff23
pop esi
ret
push ebx
push edi
push esi
call fcn.0049fdf9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040411f
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49ff4b
push ebx
push esi
push edi
call fcn.004058da
add esp, 0xc
push 0
call fcn.0040647e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4059a7
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401ded
mov eax, dword [0x4d4034]
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.00406073
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x497a31
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x497b8d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004061d1
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 + 0x4d7fe0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0040334b
mov ecx, dword [esi*4 + 0x4d7fe0]
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 0x497b86
cmp eax, dword [edi + ecx + 0x24]
jne 0x497b86
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 0x497b86
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040334b
add esp, 0x14
test edx, edx
jl 0x497b86
jg 0x497afc
test eax, eax
jb 0x497b86
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x497b86
jl 0x497b16
cmp dword [ebp - 0x1008], eax
ja 0x497b86
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x497b34
test ebx, ebx
je 0x497b6d
cmp ecx, edi
jae 0x497b6d
mov al, byte [ecx]
cmp al, 0xd
jne 0x497b4e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x497b5a
cmp byte [ecx + 1], 0xa
jne 0x497b5a
inc ecx
jmp 0x497b5a
movzx eax, al
movsx eax, byte [eax + 0x4d4370]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x497b34
cmp edx, ebx
jne 0x497b34
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x497b8b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040312a
leave
ret
Function at 0x4982cc
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 + 0x4d7fe0]
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 0x49830c
cmp byte [ebx], 0xa
jne 0x49830c
or byte [eax + edi + 0x28], 4
jmp 0x498311
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x49840f
mov al, byte [edx]
cmp al, 0x1a
je 0x4983f1
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x498340
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x498365
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x49836f
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 0x498322
jmp 0x49840f
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 0x4983ec
cmp dword [ebp - 0xc], 0
je 0x4983ec
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4d7fe0]
test byte [eax + edi + 0x28], 0x48
je 0x4983c6
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4983b1
mov byte [esi], dl
jmp 0x4983c2
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4d7fe0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x49840f
cmp byte [ebp - 1], 0xa
jne 0x4983d5
cmp esi, ebx
jne 0x4983d5
mov byte [esi], 0xa
jmp 0x49840e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040197e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49840f
mov byte [esi], 0xd
jmp 0x49840e
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4d7fe0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49840b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49840f
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49846b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4d7fe0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4984ae
cmp word [esi], dx
jne 0x4984ae
or byte [edi + eax + 0x28], 4
jmp 0x4984b3
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x498606
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4985e6
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4984f5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x49852b
cmp eax, edx
jae 0x498537
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4984cd
jmp 0x498606
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4985e2
cmp dword [ebp - 0x14], 0
je 0x4985e2
mov eax, dword [ebx*4 + 0x4d7fe0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4985ba
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x498583
mov word [esi], cx
jmp 0x4985b6
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4d7fe0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4d7fe0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4d7fe0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x498606
pop ebx
cmp word [ebp - 4], bx
jne 0x4985cb
cmp esi, dword [ebp + 0xc]
jne 0x4985cb
mov word [esi], bx
jmp 0x498603
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040197e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x498606
push 0xd
jmp 0x4985ff
mov ecx, dword [ebx*4 + 0x4d7fe0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4985fd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x498606
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49e4b1
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d4034]
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 0x49e4fc
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049e973
test al, al
jne 0x49e4f6
sub edx, 2
cmp edx, edi
jne 0x49e4dc
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49e51e
lea eax, [edi + 2]
cmp edx, eax
je 0x49e51e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049e0aa
add esp, 0x10
jmp 0x49e618
push esi
lea ecx, [ebp - 0x255]
call fcn.0049e973
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 0x49e561
push dword [ebp - 0x25c]
jmp 0x49e50e
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 0x49e59e
cmp word [ebp - 0x226], 0
je 0x49e5bf
cmp word [ebp - 0x226], ax
jne 0x49e59e
cmp word [ebp - 0x224], 0
je 0x49e5bf
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049e0aa
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49e60b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49e578
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49e5f3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49e618
push 0x49da92
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040570e
add esp, 0x10
jmp 0x49e5e8
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.0040312a
leave
ret