joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
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.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x4c421e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4cc230
cmp edx, dword [eax]
je 0x4c4240
add eax, 8
inc ecx
cmp eax, 0x4cc2c0
jl 0x4c4231
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4cc230]
jne 0x4c436e
mov eax, dword [0x4d08b8]
cmp eax, 1
je 0x4c4348
test eax, eax
jne 0x4c4271
cmp dword [0x4cc174], 1
je 0x4c4348
cmp edx, 0xfc
je 0x4c436e
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c42a8
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004c4930
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c4b60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c42eb
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c4b60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c8a20
push edi
call fcn.004c6330
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004c4930
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c4940
lea eax, [ebp - 0xa0]
push 0x4c8a00
push eax
call fcn.004c4940
push dword [esi + 0x4cc234]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c4940
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004c62a4
add esp, 0x2c
pop edi
jmp 0x4c436e
lea eax, [ebp + 8]
lea esi, [esi + 0x4cc234]
push 0
push eax
push dword [esi]
call fcn.004c4b60
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

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

Disassembly:
pushal
nop
nop
call 0x43100c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43101e
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x100043c0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006534f
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x1009a8a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, esi
and eax, 0xe0000000
cmp eax, 0x20000000
jg 0x1000449c
je 0x10004497
cmp eax, 0x80000000
je 0x10004497
test eax, eax
jne 0x100044a3
lea ecx, [ebp - 0x2c]
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Variant::constructor_void_]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Heap::constructor_void_]
mov eax, dword [0x1009bddc]
mov dword [ebp - 0x10], 0xa
mov ecx, dword [eax]
test ecx, ecx
je 0x1000444b
add ecx, 0x28
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Lock::acquire_void_]
mov ecx, dword [edi]
push esi
mov byte [ebp - 4], 1
call fcn.100430a0
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.ScCore.dll_public:_class_ScCore::Variant____thiscall_ScCore::Variant::operator_unsigned_short_int_const__]
mov eax, dword [0x1009bddc]
mov byte [ebp - 4], 2
mov ecx, dword [eax]
test ecx, ecx
je 0x1000447c
mov eax, dword [ebp - 0x10]
lea ecx, [ecx + eax*4]
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Lock::release_void_]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call dword [sym.imp.ScCore.dll_public:_double___thiscall_ScCore::Variant::getDouble_void_const]
lea ecx, [ebp - 0x2c]
fstp qword [ebp - 0x14]
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Variant::destructor_void_]
jmp 0x100044bf
xorps xmm0, xmm0
jmp 0x100044ba
cmp eax, 0x40000000
je 0x100044af
and esi, 0x1fffffff
movd xmm0, esi
jmp 0x100044b6
movzx eax, si
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movsd qword [ebp - 0x14], xmm0
fld qword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x100430a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x100430af
pop dword [ebp - 0x40]
mov eax, 0x100430af
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xd5510060
add dword [ebp - 0x50], 0x790144eb
mov dword [ebp - 0x4c], 0x789b6b66
sub dword [ebp - 0x4c], 0x46681f21
mov dword [ebp - 0x48], 0x1f93e3b2
add dword [ebp - 0x48], 0x2cb8607c
mov dword [ebp - 0x44], 0xe382dfa8
sub dword [ebp - 0x44], 0xe382dfa8
lea eax, [ebp - 0x50]
push eax
mov eax, 0x1b74d064
sub eax, 0xb6dc060
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x80f63d6a
add dword [ebp - 0x50], 0xf37c2bec
mov dword [ebp - 0x4c], 0x978f7d60
sub dword [ebp - 0x4c], 0x56231beb
mov dword [ebp - 0x48], 0x8c8d7560
add dword [ebp - 0x48], 0xd6e1f70c
mov dword [ebp - 0x44], 0xd013f81f
add dword [ebp - 0x44], 0x2fec07e1
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x9b45cae5
add eax, 0x74c14523
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x4b2dd
push 0
call eax
mov ecx, 0xb7476af4
sub ecx, 0xb7471051
xor esi, esi
add esi, eax
mov edx, 0x2fbae581
add edx, 0xe04fe07f
add edx, dword [ebp - 0x40]
mov ebx, 0xe8e787c2
sub ebx, 0xaf7303fd
mov dword [ebp - 0x10], 0x38a433fc
mov edi, dword [edx]
xor dword [ebp - 0x24], 0xb3e1aeec
sub edi, ebx
add dword [ebp - 0x20], 0xb3ac1ffb
mov dword [esi], edi
sub dword [ebp - 8], 0x4497a937
add esi, 0xbd7f4785
sub esi, 0xbd7f4781
add edx, 0x3b00b79b
sub edx, 0x3b00b797
loop 0x100431ce
add eax, 0x108df59b
add eax, 0xef7367c4
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x40146a
Capabilities:
Encode data using xor

Disassembly:
jmp 0x4212e0
push ebx
mov ebx, dword [esp + 0xc]
push edi
xor edi, edi
test ebx, ebx
je 0x421503
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.USER32.dll_PhysicalToLogicalPoint]
nop dword [eax]
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5d9f08
call fcn.004032bf
sub byte [edi + ebp], 0x39
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5d9f08
call fcn.004032bf
xor byte [edi + ebp], 0x55
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5d9f08
call fcn.004032bf
xor byte [edi + ebp], 0xa8
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5d9f08
call fcn.004032bf
add byte [edi + ebp], 0x63
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5d9f08
call fcn.004032bf
add byte [edi + ebp], 0xf2
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5d9f08
call fcn.004032bf
xor byte [edi + ebp], 0xea
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5d9f08
call fcn.004032bf
add byte [edi + ebp], 0xa1
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5d9f08
call fcn.004032bf
add byte [edi + ebp], 0xae
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5d9f08
call fcn.004032bf
add byte [edi + ebp], 0xe3
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5d9f08
call fcn.004032bf
add esp, 8
xor byte [edi + ebp], 0xc2
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5d9f08
call fcn.004032bf
add byte [edi + ebp], 0x97
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5d9f08
call fcn.004032bf
add byte [edi + ebp], 0x53
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5d9f08
call fcn.004032bf
add byte [edi + ebp], 0x41
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5d9f08
call fcn.004032bf
xor byte [edi + ebp], 0x84
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5d9f08
call fcn.004032bf
add byte [edi + ebp], 0x74
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5d9f08
call fcn.004032bf
xor byte [edi + ebp], 7
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5d9f08
call fcn.004032bf
add byte [edi + ebp], 0x6b
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5d9f08
call fcn.004032bf
add byte [edi + ebp], 0x88
add esp, 8
inc edi
cmp edi, ebx
jb 0x421300
pop esi
pop ebp
pop edi
pop ebx
ret

Function at 0x403c9c
Capabilities:
Terminate process

Disassembly:
jmp 0x463889
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x46389a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004066ae
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 0x406523
Capabilities:
Parse pe header

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

Function at 0x4075ef
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x422f00
sub esp, 0x2c
mov eax, dword [0x5d5ff8]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
mov ebx, dword [esp + 0x34]
push ebp
push esi
push edi
mov eax, dword [ebx + 0x3c]
xor esi, esi
mov dword [esp + 0x10], 0
mov eax, dword [eax + ebx + 0x78]
add eax, ebx
mov dword [esp + 0x1c], eax
mov edi, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add edi, ebx
mov dword [esp + 0x18], eax
test eax, eax
je 0x422fe9
mov ebp, dword [esp + 0x44]
mov edx, dword [edi]
xorps xmm0, xmm0
add edx, ebx
mov dword [esp + 0x30], 0
mov eax, edx
mov dword [esp + 0x34], 0
movups xmmword [esp + 0x20], xmm0
lea ecx, [eax + 1]
mov dword [esp + 0x14], ecx
nop word [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422f70
sub eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push edx
call fcn.00406195
test ebx, ebx
je 0x422fa9
cmp ebp, 3
jbe 0x422fa9
lea eax, [esp + 0x20]
push 0x14d
push eax
call fcn.0040320b
add esp, 8
test eax, eax
je 0x422fa9
cmp eax, ebp
je 0x423002
mov ecx, dword [esp + 0x34]
add edi, 4
cmp ecx, 0x10
jb 0x422fde
mov edx, dword [esp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x422fd4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423051
push ecx
push edx
call fcn.00401c12
add esp, 8
inc esi
cmp esi, dword [esp + 0x18]
jb 0x422f45
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
add eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004035fd
add esp, 0x2c
ret
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x24]
lea eax, [eax + esi*2]
movzx ecx, word [eax + ebx]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + ebx]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x34]
cmp ecx, 0x10
jb 0x422fe9
mov edx, dword [esp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x423045
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423051
push ecx
push edx
call fcn.00401c12
add esp, 8
jmp 0x422fe9
call fcn.004051eb
int3
Function at 0x4a6451
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00402027
mov eax, dword [0x5d5ff8]
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.00406d2a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4a6493
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4a65ef
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406eb5
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 + 0x5db420]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403873
mov ecx, dword [esi*4 + 0x5db420]
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 0x4a65e8
cmp eax, dword [edi + ecx + 0x24]
jne 0x4a65e8
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 0x4a65e8
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403873
add esp, 0x14
test edx, edx
jl 0x4a65e8
jg 0x4a655e
test eax, eax
jb 0x4a65e8
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4a65e8
jl 0x4a6578
cmp dword [ebp - 0x1008], eax
ja 0x4a65e8
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4a6596
test ebx, ebx
je 0x4a65cf
cmp ecx, edi
jae 0x4a65cf
mov al, byte [ecx]
cmp al, 0xd
jne 0x4a65b0
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4a65bc
cmp byte [ecx + 1], 0xa
jne 0x4a65bc
inc ecx
jmp 0x4a65bc
movzx eax, al
movsx eax, byte [eax + 0x5d6318]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4a6596
cmp edx, ebx
jne 0x4a6596
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4a65ed
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004035fd
leave
ret
Function at 0x4a67f4
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 + 0x5db420]
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 0x4a6834
cmp byte [ebx], 0xa
jne 0x4a6834
or byte [eax + edi + 0x28], 4
jmp 0x4a6839
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a6937
mov al, byte [edx]
cmp al, 0x1a
je 0x4a6919
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a6868
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a688d
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a6897
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 0x4a684a
jmp 0x4a6937
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 0x4a6914
cmp dword [ebp - 0xc], 0
je 0x4a6914
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x5db420]
test byte [eax + edi + 0x28], 0x48
je 0x4a68ee
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a68d9
mov byte [esi], dl
jmp 0x4a68ea
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5db420]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a6937
cmp byte [ebp - 1], 0xa
jne 0x4a68fd
cmp esi, ebx
jne 0x4a68fd
mov byte [esi], 0xa
jmp 0x4a6936
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401afa
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a6937
mov byte [esi], 0xd
jmp 0x4a6936
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x5db420]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a6933
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a6937
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a6993
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 + 0x5db420]
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 0x4a69d6
cmp word [esi], dx
jne 0x4a69d6
or byte [edi + eax + 0x28], 4
jmp 0x4a69db
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 0x4a6b2e
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 0x4a6b0e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a6a1d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a6a53
cmp eax, edx
jae 0x4a6a5f
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 0x4a69f5
jmp 0x4a6b2e
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 0x4a6b0a
cmp dword [ebp - 0x14], 0
je 0x4a6b0a
mov eax, dword [ebx*4 + 0x5db420]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a6ae2
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a6aab
mov word [esi], cx
jmp 0x4a6ade
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x5db420]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x5db420]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x5db420]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a6b2e
pop ebx
cmp word [ebp - 4], bx
jne 0x4a6af3
cmp esi, dword [ebp + 0xc]
jne 0x4a6af3
mov word [esi], bx
jmp 0x4a6b2b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401afa
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a6b2e
push 0xd
jmp 0x4a6b27
mov ecx, dword [ebx*4 + 0x5db420]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a6b25
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a6b2e
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 0x4ab5b4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5d5ff8]
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 0x4ab5ff
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004aba76
test al, al
jne 0x4ab5f9
sub edx, 2
cmp edx, edi
jne 0x4ab5df
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4ab621
lea eax, [edi + 2]
cmp edx, eax
je 0x4ab621
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004ab1ad
add esp, 0x10
jmp 0x4ab71b
push esi
lea ecx, [ebp - 0x255]
call fcn.004aba76
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 0x4ab664
push dword [ebp - 0x25c]
jmp 0x4ab611
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 0x4ab6a1
cmp word [ebp - 0x226], 0
je 0x4ab6c2
cmp word [ebp - 0x226], ax
jne 0x4ab6a1
cmp word [ebp - 0x224], 0
je 0x4ab6c2
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004ab1ad
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4ab70e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4ab67b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4ab6f6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4ab71b
push 0x4aab95
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00406249
add esp, 0x10
jmp 0x4ab6eb
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.004035fd
leave
ret