joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4539a0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4539b7
add esp, 0xfffffff0
call fcn.00403420
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419398
mov eax, dword [0x46c9ac]
cmp word [eax + 2], 0
jne 0x4539df
mov eax, dword [0x46c9ac]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00455078
mov eax, dword [0x46ca5c]
cmp word [eax + 2], 0
jne 0x4539f9
mov eax, dword [0x46ca5c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00455270
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411690]
call fcn.004030cc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411690]
call fcn.004030cc
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41b904]
call fcn.00422fa0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x453b80
mov eax, dword [0x46c8d0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00423370
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x455810
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x46c8d0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c234
test eax, eax
je 0x453aee
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004084d4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c25c
test eax, eax
je 0x453b02
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004040bc
mov eax, dword [0x46c7b0]
cmp byte [eax], 0
jne 0x453b36
mov eax, ebx
call fcn.00453ca8
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004559ec
mov eax, ebx
call fcn.004563b0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x453b76
call fcn.00403478
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x453f28
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46dbb4]
cmp dword [eax + 0x30], 0
je 0x453fd2
cmp dword [ebx + 0x94], 0
jne 0x453fcc
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x453eb8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x453fcc
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x453f92
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x453fcc
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004139f8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x453fa1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x454b34
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x454b69
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403f3c
jmp 0x454b76
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403ea0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x455bc8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x455c09
mov eax, esi
call fcn.0043c390
test al, al
je 0x455c09
mov eax, dword [ebx + 0x84]
call fcn.0043c08c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x455c09
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043c08c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4592d0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4592fe
mov eax, ebx
call fcn.00459d84
cmp dword [ebx + 0x40], 0
je 0x4592f7
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x45936f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x459361
cmp dword [ebx + 8], 0
je 0x459320
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x459332
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x459361
cmp dword [ebx + 8], 0
je 0x459313
cmp eax, 3
je 0x459345
dec eax
jne 0x459313
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x459313
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x459313
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x45938d
cmp dword [ebx + 0x14], 0xcc
je 0x45938d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00459398
pop ebx
ret
Function at 0x10001000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0
push 0
push 3
push 0
push 5
push 0x80000000
push 0x100152e8
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10001178
lea eax, [ebp - 0x118]
push eax
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x10001171
push 0x100172e8
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 1
jl 0x10001171
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x114]
push edi
mov dword [0x100172e8], eax
mov dword [0x100172ec], ecx
push esi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [eax]
push 0
lea eax, [ebp - 0x108]
push eax
push 4
lea eax, [ebp - 0x120]
push eax
push ebx
call edi
test eax, eax
je 0x1000116f
cmp dword [ebp - 0x108], 4
jne 0x1000116f
push 0
lea eax, [ebp - 0x10c]
push eax
push 4
lea eax, [ebp - 0x11c]
push eax
push ebx
call edi
test eax, eax
je 0x1000116f
cmp dword [ebp - 0x10c], 4
jne 0x1000116f
mov edi, dword [ebp - 0x11c]
lea esi, [ebp - 0x104]
cmp edi, 0x100
jbe 0x10001113
push edi
call fcn.10004430
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
add esp, 4
test esi, esi
je 0x10001090
mov edi, dword [ebp - 0x11c]
push 0
lea eax, [ebp - 0x110]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000114d
cmp dword [ebp - 0x110], edi
jne 0x1000114d
push 0
push dword [ebp - 0x11c]
push esi
push dword [ebp - 0x120]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x104]
cmp esi, eax
je 0x10001090
push esi
call fcn.10004415
add esp, 4
jmp 0x10001087
pop esi
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10001377
mov esp, ebp
pop ebp
ret
Function at 0x10001230
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
sub dword [ebp + 0xc], 1
jne 0x10001343
push ebx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
push 0
push 1
lea eax, [ebp - 5]
mov byte [ebp - 5], 0
push eax
push 0x4c5e13
call esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp byte [ebp - 5], 0xe8
jne 0x100012c4
push 0
push 4
push 0x100172f0
push 0x4c5e14
call esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x100012c4
add dword [0x100172f0], 0x4c5e18
mov eax, 0x100011b0
sub eax, 0x4c5e18
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push 4
push eax
push 0x4c5e14
call esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0x1000
push 0x100152e8
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
sub eax, 1
pop esi
pop ebx
js 0x100012f7
nop dword [eax]
movzx ecx, word [eax*2 + 0x100152e8]
cmp ecx, 0x5c
je 0x10001358
cmp ecx, 0x2f
je 0x10001358
sub eax, 1
jns 0x100012e0
mov ecx, 0x100152e8
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10001300
sub ecx, edx
mov eax, 0x1000
sar ecx, 1
sub eax, ecx
push eax
push str.mod_biorand_biorand.dat
push 0x100152e8
call fcn.100043d0
add esp, 0xc
call section..text
push 0
push 0
push 0
push 0x10001190
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.10001377
mov esp, ebp
pop ebp
ret 0xc
lea eax, [eax*2 + 2]
cmp eax, 0x2000
jae 0x10001371
xor ecx, ecx
mov word [eax + 0x100152e8], cx
jmp 0x100012f7
call fcn.100014a7
int3

Function at 0x10004812
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10004851
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10004851
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10004851
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10004851
cmp dword [ecx + 0x74], 0xe
jbe 0x10004851
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10007502
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000759f
push ebx
push esi
call fcn.100074cb
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000745f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000754c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000759e
push edi
push eax
call fcn.100054dc
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000756c
call fcn.100054a2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000759d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000745f
add esp, 0x20
test eax, eax
jne 0x1000758b
push edi
call fcn.100054a2
jmp 0x10007593
push ebx
call fcn.100054a2
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1000780c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000f510
push 0x1000f508
push str.FlsAlloc
push 0x1f
call fcn.10007728
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10007840
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000e128]
call esi
jmp 0x10007846
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000788a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000f520
push 0x1000f518
push str.FlsGetValue
push 0x21
call fcn.10007728
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100078c1
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000e128]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100078c9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000f528
push 0x1000f520
push str.FlsSetValue
push 0x22
call fcn.10007728
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10007903
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1000e128]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000cf60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000cf8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000cf8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4038a5
Capabilities:
Terminate process

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

Disassembly:
jmp 0x4a5d72
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a5d83
pop esi
ret
push ebx
push edi
push esi
call fcn.004a5c59
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040434a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a5dab
push ebx
push esi
push edi
call fcn.00405bb4
add esp, 0xc
push 0
call fcn.00406820
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x405c9a
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401e9c
mov eax, dword [0x50f034]
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.004063d4
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x49e899
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49e9f5
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406541
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 + 0x512e78]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004034d1
mov ecx, dword [esi*4 + 0x512e78]
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 0x49e9ee
cmp eax, dword [edi + ecx + 0x24]
jne 0x49e9ee
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 0x49e9ee
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004034d1
add esp, 0x14
test edx, edx
jl 0x49e9ee
jg 0x49e964
test eax, eax
jb 0x49e9ee
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49e9ee
jl 0x49e97e
cmp dword [ebp - 0x1008], eax
ja 0x49e9ee
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49e99c
test ebx, ebx
je 0x49e9d5
cmp ecx, edi
jae 0x49e9d5
mov al, byte [ecx]
cmp al, 0xd
jne 0x49e9b6
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49e9c2
cmp byte [ecx + 1], 0xa
jne 0x49e9c2
inc ecx
jmp 0x49e9c2
movzx eax, al
movsx eax, byte [eax + 0x50f358]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49e99c
cmp edx, ebx
jne 0x49e99c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49e9f3
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403297
leave
ret
Function at 0x49f134
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 + 0x512e78]
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 0x49f174
cmp byte [ebx], 0xa
jne 0x49f174
or byte [eax + edi + 0x28], 4
jmp 0x49f179
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x49f277
mov al, byte [edx]
cmp al, 0x1a
je 0x49f259
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x49f1a8
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x49f1cd
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x49f1d7
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 0x49f18a
jmp 0x49f277
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 0x49f254
cmp dword [ebp - 0xc], 0
je 0x49f254
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x512e78]
test byte [eax + edi + 0x28], 0x48
je 0x49f22e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x49f219
mov byte [esi], dl
jmp 0x49f22a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x512e78]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x49f277
cmp byte [ebp - 1], 0xa
jne 0x49f23d
cmp esi, ebx
jne 0x49f23d
mov byte [esi], 0xa
jmp 0x49f276
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401a05
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49f277
mov byte [esi], 0xd
jmp 0x49f276
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x512e78]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49f273
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49f277
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49f2d3
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 + 0x512e78]
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 0x49f316
cmp word [esi], dx
jne 0x49f316
or byte [edi + eax + 0x28], 4
jmp 0x49f31b
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 0x49f46e
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 0x49f44e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x49f35d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x49f393
cmp eax, edx
jae 0x49f39f
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 0x49f335
jmp 0x49f46e
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 0x49f44a
cmp dword [ebp - 0x14], 0
je 0x49f44a
mov eax, dword [ebx*4 + 0x512e78]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x49f422
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x49f3eb
mov word [esi], cx
jmp 0x49f41e
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x512e78]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x512e78]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x512e78]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x49f46e
pop ebx
cmp word [ebp - 4], bx
jne 0x49f433
cmp esi, dword [ebp + 0xc]
jne 0x49f433
mov word [esi], bx
jmp 0x49f46b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401a05
add esp, 0x10
cmp word [ebp - 4], bx
je 0x49f46e
push 0xd
jmp 0x49f467
mov ecx, dword [ebx*4 + 0x512e78]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49f465
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49f46e
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 0x4a4311
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x50f034]
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 0x4a435c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004a47d3
test al, al
jne 0x4a4356
sub edx, 2
cmp edx, edi
jne 0x4a433c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4a437e
lea eax, [edi + 2]
cmp edx, eax
je 0x4a437e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004a3f0a
add esp, 0x10
jmp 0x4a4478
push esi
lea ecx, [ebp - 0x255]
call fcn.004a47d3
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 0x4a43c1
push dword [ebp - 0x25c]
jmp 0x4a436e
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 0x4a43fe
cmp word [ebp - 0x226], 0
je 0x4a441f
cmp word [ebp - 0x226], ax
jne 0x4a43fe
cmp word [ebp - 0x224], 0
je 0x4a441f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004a3f0a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4a446b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4a43d8
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4a4453
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4a4478
push 0x4a38f2
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004059cf
add esp, 0x10
jmp 0x4a4448
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.00403297
leave
ret