joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10042de5
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10065ccc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x5c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x10042f9b
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x28], 0x7a01
mov dword [ebp - 0x30], 0x1000b4fc
cmp dword [ebp - 0x28], 0x7d09
jle 0x10042ef7
push 0
push 0x580
push 0
call dword [sym.imp.GDI32.dll_GetMetaFileBitsEx]
and dword [ebp - 0x18], 0
jmp 0x10042e50
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x5335
jge 0x10042eef
and dword [ebp - 0x1c], 0
jmp 0x10042e6a
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x2cb4
jge 0x10042eea
and dword [ebp - 0x20], 0
jmp 0x10042e80
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x1492
jge 0x10042ee5
and dword [ebp - 0x24], 0
jmp 0x10042e96
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x4897
jge 0x10042ee3
mov eax, dword [ebp - 0x18]
cdq
idiv dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
sar eax, cl
and eax, edx
cdq
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], edx
push dword [ebp - 0x50]
push dword [ebp - 0x54]
lea ecx, [ebp - 0x6c]
call fcn.1000d5ba
pop ecx
pop ecx
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
call fcn.1001b026
push eax
call fcn.1004f716
pop ecx
lea ecx, [ebp - 0x6c]
call fcn.1001b01c
jmp 0x10042e8f
jmp 0x10042e79
jmp 0x10042e63
jmp 0x10042e49
push 0
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea eax, [ebp + 0x18]
mov dword [ebp - 0x34], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x28], 0x78d0
jge 0x10042f13
push dword [ebp - 0x30]
call fcn.1004f716
pop ecx
jmp 0x10042f2f
or dword [ebp - 4], 0xffffffff
jmp 0x10042f39
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x34]
movzx eax, byte [eax]
test eax, eax
je 0x10042f51
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jmp 0x10042f99
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
jmp 0x10042f7f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 3
jge 0x10042f99
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x48]
call fcn.1001b315
and dword [eax], 0
jmp 0x10042f74
jmp 0x10042fb3
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
push 0x48d1
push 0
push dword [ebp - 0x4c]
call fcn.10041408
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10043ada
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10043b85
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x10043b5b
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x10043b3c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x10043b59
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x1c]
call fcn.1001b315
mov dword [eax], 1
jmp 0x10043b31
jmp 0x10043b83
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
test eax, eax
je 0x10043b83
push 1
push 0x63a
push 0xe3a
call dword [sym.imp.USER32.dll_AttachThreadInput]
jmp 0x10043ba1
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push 1
call fcn.10032b00
add esp, 0xc
mov esp, ebp
pop ebp
ret

Function at 0x1004590f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1004596b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x1004594c
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x10045969
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10045969
push 0
push 0x928
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
jmp 0x10045983
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
push 1
push 0x7cc0
push dword [ebp - 0x18]
call fcn.10032501
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x100475df
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10065dba
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x40
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x11], 0
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x10047738
push 0x57b2
push 1
push 0
call fcn.10043869
add esp, 0xc
mov dword [ebp - 0x28], 0x255f
mov dword [ebp - 0x30], 0x1000ba50
cmp dword [ebp - 0x28], 0x2897
jle 0x100476fc
push 0x1a26
push 0xbb7
call dword [sym.imp.GDI32.dll_SetLayout]
and dword [ebp - 0x24], 0
jmp 0x1004765a
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x9bf
jge 0x100476fc
and dword [ebp - 0x18], 0
jmp 0x10047674
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x1493
jge 0x100476f7
and dword [ebp - 0x1c], 0
jmp 0x1004768a
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xcc
jge 0x100476f2
and dword [ebp - 0x20], 0
jmp 0x100476a0
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x572
jge 0x100476f0
mov eax, dword [ebp - 0x18]
cdq
idiv dword [ebp - 0x1c]
mov eax, edx
cdq
idiv dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
mov ecx, edx
shl eax, cl
cdq
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
push dword [ebp - 0x34]
push dword [ebp - 0x38]
lea ecx, [ebp - 0x50]
call fcn.1000d5ba
pop ecx
pop ecx
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
call fcn.1001b026
push eax
call fcn.1004f716
pop ecx
lea ecx, [ebp - 0x50]
call fcn.1001b01c
jmp 0x10047699
jmp 0x10047683
jmp 0x1004766d
jmp 0x10047653
and dword [ebp - 4], 0
cmp dword [ebp - 0x28], 0x23df
jge 0x10047712
push dword [ebp - 0x30]
call fcn.1004f716
pop ecx
jmp 0x1004772e
or dword [ebp - 4], 0xffffffff
jmp 0x10047738
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10060b55
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1006b750]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10052ce8
mov dword [ebp - 0x14], eax
cmp dword [0x1060f67c], esi
jne 0x10060c48
push 0x800
push esi
push 0x1000750c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10060bd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10060d28
push esi
push esi
push 0x1000750c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10060d28
push 0x10007524
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10060d28
push eax
call ebx
push 0x10007530
push edi
mov dword [0x1060f67c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007540
push edi
mov dword [0x1060f680], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007554
push edi
mov dword [0x1060f684], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1060f68c], eax
test eax, eax
je 0x10060c45
push 0x10007570
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1060f688], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10060c6d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10060c60
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x10060c82
push 4
pop eax
jmp 0x10060d2a
cmp dword [ebp - 0x14], esi
je 0x10060c82
push dword [0x1060f67c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10060c67
mov eax, dword [0x1060f688]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x10060ce0
cmp dword [0x1060f68c], edi
je 0x10060ce0
push eax
call ebx
push dword [0x1060f68c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10060ce0
test eax, eax
je 0x10060ce0
call ecx
test eax, eax
je 0x10060cd5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10060cd5
test byte [ebp - 8], 1
jne 0x10060ce0
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x10060d10
mov eax, dword [0x1060f680]
cmp eax, edi
je 0x10060d0d
push eax
call ebx
test eax, eax
je 0x10060d0d
call eax
mov esi, eax
test esi, esi
je 0x10060d0d
mov eax, dword [0x1060f684]
cmp eax, edi
je 0x10060d0d
push eax
call ebx
test eax, eax
je 0x10060d0d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1060f67c]
call ebx
test eax, eax
je 0x10060d28
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x10060d2a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100501fb
mov esp, ebp
pop ebp
ret
Function at 0x414dc8
Capabilities:
Encode data using xor

Disassembly:
xor dword [ebx], edi
mov esi, esi
and esi, edx
sub esp, 4
mov dword [esp], 0x942a6bad
mov eax, dword [esp]
add esp, 4
add ebx, 4
mov edx, 0xa875cfdf
cmp ebx, ecx
jne fcn.00414dc8
mov esi, edx
mov esi, 0xfa99d8c0
add eax, edx
ret
Function at 0x403508
Capabilities:
Terminate process

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

Disassembly:
jmp 0x499130
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x499141
pop esi
ret
push ebx
push edi
push esi
call fcn.00499017
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403ea9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x499169
push ebx
push esi
push edi
call fcn.00405547
add esp, 0xc
push 0
call fcn.0040605a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x405600
Capabilities:
Parse pe header

Disassembly:
jmp 0x44143b
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x44147a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44147a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44147a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x44147a
cmp dword [ecx + 0x74], 0xe
jbe 0x44147a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x43f2f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.00403684
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x43f32f
sub eax, 1
je 0x43f32a
sub eax, 1
je 0x43f326
xor eax, eax
leave
ret
push 3
jmp 0x43f331
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret
Function at 0x490320
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d4d
mov eax, dword [0x4ca040]
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.00405c7c
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x490362
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4904be
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405dcb
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 + 0x4cd950]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004031b6
mov ecx, dword [esi*4 + 0x4cd950]
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 0x4904b7
cmp eax, dword [edi + ecx + 0x24]
jne 0x4904b7
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 0x4904b7
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004031b6
add esp, 0x14
test edx, edx
jl 0x4904b7
jg 0x49042d
test eax, eax
jb 0x4904b7
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4904b7
jl 0x490447
cmp dword [ebp - 0x1008], eax
ja 0x4904b7
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x490465
test ebx, ebx
je 0x49049e
cmp ecx, edi
jae 0x49049e
mov al, byte [ecx]
cmp al, 0xd
jne 0x49047f
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49048b
cmp byte [ecx + 1], 0xa
jne 0x49048b
inc ecx
jmp 0x49048b
movzx eax, al
movsx eax, byte [eax + 0x4ca3a8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x490465
cmp edx, ebx
jne 0x490465
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4904bc
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00402f95
leave
ret
Function at 0x490bfd
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 + 0x4cd950]
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 0x490c3d
cmp byte [ebx], 0xa
jne 0x490c3d
or byte [eax + edi + 0x28], 4
jmp 0x490c42
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x490d40
mov al, byte [edx]
cmp al, 0x1a
je 0x490d22
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x490c71
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x490c96
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x490ca0
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 0x490c53
jmp 0x490d40
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 0x490d1d
cmp dword [ebp - 0xc], 0
je 0x490d1d
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4cd950]
test byte [eax + edi + 0x28], 0x48
je 0x490cf7
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x490ce2
mov byte [esi], dl
jmp 0x490cf3
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4cd950]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x490d40
cmp byte [ebp - 1], 0xa
jne 0x490d06
cmp esi, ebx
jne 0x490d06
mov byte [esi], 0xa
jmp 0x490d3f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004018fc
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x490d40
mov byte [esi], 0xd
jmp 0x490d3f
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4cd950]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x490d3c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x490d40
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x490d9c
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 + 0x4cd950]
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 0x490ddf
cmp word [esi], dx
jne 0x490ddf
or byte [edi + eax + 0x28], 4
jmp 0x490de4
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 0x490f37
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 0x490f17
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x490e26
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x490e5c
cmp eax, edx
jae 0x490e68
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 0x490dfe
jmp 0x490f37
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 0x490f13
cmp dword [ebp - 0x14], 0
je 0x490f13
mov eax, dword [ebx*4 + 0x4cd950]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x490eeb
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x490eb4
mov word [esi], cx
jmp 0x490ee7
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4cd950]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4cd950]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4cd950]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x490f37
pop ebx
cmp word [ebp - 4], bx
jne 0x490efc
cmp esi, dword [ebp + 0xc]
jne 0x490efc
mov word [esi], bx
jmp 0x490f34
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004018fc
add esp, 0x10
cmp word [ebp - 4], bx
je 0x490f37
push 0xd
jmp 0x490f30
mov ecx, dword [ebx*4 + 0x4cd950]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x490f2e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x490f37
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 0x4976cf
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4ca040]
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 0x49771a
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00497b91
test al, al
jne 0x497714
sub edx, 2
cmp edx, edi
jne 0x4976fa
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49773c
lea eax, [edi + 2]
cmp edx, eax
je 0x49773c
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004972c8
add esp, 0x10
jmp 0x497836
push esi
lea ecx, [ebp - 0x255]
call fcn.00497b91
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 0x49777f
push dword [ebp - 0x25c]
jmp 0x49772c
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 0x4977bc
cmp word [ebp - 0x226], 0
je 0x4977dd
cmp word [ebp - 0x226], ax
jne 0x4977bc
cmp word [ebp - 0x224], 0
je 0x4977dd
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004972c8
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x497829
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x497796
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x497811
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x497836
push 0x496cb0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004053b2
add esp, 0x10
jmp 0x497806
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.00402f95
leave
ret