joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439f02
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
push 1
pop ebx
mov esi, ecx
mov byte [ebp - 1], bl
push dword [esi]
lea eax, [ebp - 0x14]
push 4
push ebx
push eax
call fcn.0043f221
add esp, 0x10
lea eax, [ebp - 0x14]
mov ecx, esi
push 0x16fa
push 4
push eax
call fcn.00439bf2
and byte [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push 0x49c018
push eax
call fcn.0043f3e0
pop ecx
test eax, eax
pop ecx
jne 0x43a033
push dword [esi]
lea eax, [ebp - 0xc]
push ebx
push 4
push eax
call fcn.0043f221
mov edi, dword [ebp - 0xc]
push dword [esi]
xor edi, 0x29bc
lea eax, [ebp - 0x11c]
push edi
push ebx
push eax
call fcn.0043f221
add esp, 0x20
lea eax, [edi + 0xa25e]
mov ecx, esi
push eax
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.00439bf2
push dword [esi]
and byte [ebp + edi - 0x11c], 0
lea eax, [ebp - 0xc]
push ebx
push 4
push eax
call fcn.0043f221
mov edi, dword [ebp - 0xc]
push dword [esi]
xor edi, 0x29ac
push edi
push ebx
push dword [ebp + 0xc]
call fcn.0043f221
add esp, 0x20
lea eax, [edi + 0xf25e]
mov ecx, esi
push eax
push edi
push dword [ebp + 0xc]
call fcn.00439bf2
mov eax, dword [ebp + 0xc]
push dword [ebp + 8]
and byte [edi + eax], 0
lea eax, [ebp - 0x11c]
push eax
call fcn.0043f3e0
pop ecx
test eax, eax
pop ecx
je 0x43a04a
push ebx
push ebx
push dword [esi]
call fcn.0043f2c8
push dword [esi]
lea eax, [ebp - 8]
push ebx
push 4
push eax
call fcn.0043f221
xor dword [ebp - 8], 0x45aa
push ebx
push 4
push dword [esi]
call fcn.0043f2c8
push ebx
push 0x10
push dword [esi]
call fcn.0043f2c8
push ebx
push dword [ebp - 8]
push dword [esi]
call fcn.0043f2c8
add esp, 0x40
jmp 0x43a037
and byte [ebp - 1], 0
cmp byte [ebp - 1], bl
je 0x439f16
push 6
pop eax
pop edi
pop esi
pop ebx
leave
ret 8
xor eax, eax
jmp 0x43a043

Function at 0x43a08e
Capabilities:
Hash data using crc32b

Disassembly:
mov eax, ecx
push esi
push edi
mov edi, eax
or dword [eax + 0x400], 0xffffffff
xor esi, esi
mov edx, esi
push 8
shl edx, 0x18
pop ecx
test edx, 0x80000000
je 0x43a0b7
add edx, edx
xor edx, 0x4c11db7
jmp 0x43a0b9
shl edx, 1
dec ecx
jne 0x43a0a5
mov dword [edi], edx
inc esi
add edi, 4
cmp esi, 0x100
jl 0x43a09d
pop edi
pop esi
ret

Function at 0x43a241
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x14], 1
jne 0x43a266
mov eax, dword [esi + 0xc]
push 8
add eax, dword [esi + 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0043f470
add esp, 0xc
jmp 0x43a279
push dword [esi + 0x1c]
lea eax, [ebp - 8]
push 8
push 1
push eax
call fcn.0043f221
add esp, 0x10
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 3]
shl eax, 8
or eax, ecx
add dword [esi + 0xc], 8
movzx ecx, byte [ebp - 2]
shl eax, 8
or eax, ecx
and byte [ebp - 4], 0
movzx ecx, byte [ebp - 1]
shl eax, 8
or eax, ecx
mov ecx, dword [ebp + 8]
push 0x49c020
mov dword [ecx], eax
lea eax, [ebp - 8]
push eax
call fcn.0043f3e0
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
pop esi
leave
ret 4
Function at 0x47d710
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [esp + 4]
mov dword [0x49f988], eax
mov edx, 1
mov eax, 0x49f988
push edi
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x4a0344
jl 0x47d724
mov dword [0x49d318], 1
mov dword [0x4a2504], 1
pop edi
ret
Function at 0x486640
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x18
mov al, byte [0x49d350]
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov byte [esp + 0xc], 0x20
mov byte [esp + 0xd], al
mov dword [esp + 0xe], 0x3e3c0928
mov dword [esp + 0x12], 0x2d2b3d3a
mov dword [esp + 0x16], 0x7e212f2a
mov dword [esp + 0x1a], 0x5b5e7c26
mov word [esp + 0x1e], 0x3f2e
mov byte [esp + 0x20], 0
mov edi, ebp
test ebp, ebp
je 0x4866ab
mov dl, byte [ebp]
test dl, dl
je 0x4866ab
lea ecx, [esp + 0xc]
mov al, 0x20
cmp dl, al
je 0x4866fe
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x486697
mov dl, byte [edi + 1]
inc edi
test dl, dl
jne 0x486691
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4866b0
sub eax, edx
lea edi, [eax + ebp - 1]
cmp edi, ebp
jbe 0x4866d0
mov al, byte [edi]
cmp al, 0x20
je 0x4866cb
cmp al, 9
jne 0x4866d0
dec edi
cmp edi, ebp
ja 0x4866c1
mov esi, edi
sub esi, ebp
inc esi
cmp esi, 0xfd
jbe 0x486705
cmp byte [esp + 0x30], 0
je 0x4866f3
mov ecx, dword [esp + 0x28]
push ebp
push 0x492298
call 0x495900
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x18
ret 0xc
cmp edi, ebp
jbe 0x4866d0
dec edi
jmp 0x4866bd
push esi
push ebp
push ebx
call 0x4e68e0
add esp, 0xc
mov eax, edi
pop edi
mov byte [esi + ebx], 0
pop esi
pop ebp
add esp, 0x18
ret 0xc
Function at 0x44d30c
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 0x44d33a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x44d358
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0044d272
jmp 0x44d358
mov eax, dword [esi + 0x14]
test eax, eax
je 0x44d358
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0044d272
test edi, edi
mov eax, edi
jne 0x44d342
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x594310
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.data
lea edi, [esi - 0xf7000]
mov dword [edi + 0x189894], 0x4fb81b6b
push edi
or ebp, 0xffffffff
jmp 0x59433a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x594341
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x594330
mov eax, 1
add ebx, ebx
jne 0x594353
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x594364
jne 0x594383
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x594383
dec eax
add ebx, ebx
jne 0x594370
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x594348
add ebx, ebx
jne 0x59437f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5943d5
xor ecx, ecx
sub eax, 3
jb 0x59439b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x59440a
sar eax, 1
mov ebp, eax
jmp 0x5943a6
add ebx, ebx
jne 0x5943a6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x594374
inc ecx
add ebx, ebx
jne 0x5943b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x594374
add ebx, ebx
jne 0x5943c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5943b6
jne 0x5943d2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5943b6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5943f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5943e6
jmp 0x594336
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5943f4
add edi, ecx
jmp 0x594336
pop esi
mov edi, esi
mov ecx, 0x67ed
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x594412
cmp byte [edi], 0x11
jne 0x594412
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x594417
lea edi, [esi + 0x191000]
mov eax, dword [edi]
or eax, eax
je 0x59448f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1957d0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x195870]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x594444
mov ecx, edi
jns 0x594473
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x195874]
or eax, eax
je 0x594489
mov dword [ebx], eax
add ebx, 4
jmp 0x594461
call dword [esi + 0x195878]
popal
jmp 0x4bc86b
Function at 0x402536
Capabilities:
Terminate process

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

Disassembly:
jmp 0x446c4b
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x446c5c
pop esi
ret
push ebx
push edi
push esi
call fcn.00446b32
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00402abd
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x446c84
push ebx
push esi
push edi
call fcn.004037a1
add esp, 0xc
push 0
call fcn.00403daf
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x40380f
Capabilities:
Parse pe header

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

Function at 0x43819b
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x473080]
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 0x444be6
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00445152
test al, al
jne 0x444be0
sub edx, 2
cmp edx, edi
jne 0x444bc6
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x444c08
lea eax, [edi + 2]
cmp edx, eax
je 0x444c08
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00444794
add esp, 0x10
jmp 0x444d02
push esi
lea ecx, [ebp - 0x255]
call fcn.00445152
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 0x444c4b
push dword [ebp - 0x25c]
jmp 0x444bf8
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 0x444c88
cmp word [ebp - 0x226], 0
je 0x444ca9
cmp word [ebp - 0x226], ax
jne 0x444c88
cmp word [ebp - 0x224], 0
je 0x444ca9
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00444794
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x444cf5
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x444c62
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x444cdd
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x444d02
push 0x44407a
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004036b1
add esp, 0x10
jmp 0x444cd2
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.0040222a
leave
ret

Function at 0x44b6b5
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00402ca7
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x44b724
cmp esi, dword [ebp - 4]
je 0x44b71f
cmp dword [ebp + 0xc], 0
je 0x44b71f
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x44b6fc
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0044b0dd
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x44b726
xor eax, eax
inc eax
jmp 0x44b726
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x457e0c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x475160]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x457e4c
cmp byte [ebx], 0xa
jne 0x457e4c
or byte [edi + eax + 0x28], 4
jmp 0x457e51
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x457f50
mov dl, byte [eax]
cmp dl, 0x1a
je 0x457f33
inc eax
cmp dl, 0xd
je 0x457e7d
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x457ea3
cmp eax, ecx
jae 0x457eb1
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x457e65
jmp 0x457f50
push 0
lea eax, [ebp - 0x10]
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 0x457f2e
cmp dword [ebp - 0x10], 0
je 0x457f2e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x475160]
test byte [eax + edi + 0x28], 0x48
je 0x457f08
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x457ef3
mov byte [esi], dl
jmp 0x457f04
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x475160]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x457f50
cmp byte [ebp - 1], 0xa
jne 0x457f17
cmp esi, ebx
jne 0x457f17
mov byte [esi], 0xa
jmp 0x457f4f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040150a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x457f50
mov byte [esi], 0xd
jmp 0x457f4f
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x475160]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x457f4d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x457f50
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x457fac
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x475160]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x457ff2
cmp word [ebx], dx
jne 0x457ff2
or byte [eax + edi + 0x28], 4
jmp 0x457ff7
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x45815a
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x45813a
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x458038
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x45806e
cmp eax, edx
jae 0x45807c
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x458013
jmp 0x45815a
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x458135
cmp dword [ebp - 0x18], 0
je 0x458135
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x475160]
test byte [eax + edi + 0x28], 0x48
je 0x45810b
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4580cf
mov word [esi], cx
jmp 0x458106
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x475160]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x475160]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x475160]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x45815a
pop eax
cmp word [ebp - 4], ax
jne 0x45811b
cmp esi, ebx
jne 0x45811b
mov word [esi], ax
jmp 0x458157
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040150a
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x45815a
push 0xd
pop eax
jmp 0x458116
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x475160]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x458154
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x45815a
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x403371
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x40339c
mov ecx, dword [0x4702b8]
push esi
add eax, ecx
push esi
push eax
mov dword [0x4326f4], eax
push dword [0x40a01c]
call dword [0x408160]
push 4
call fcn.00403479
cmp eax, esi
jl 0x403473
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.004061db
test eax, eax
je 0x403463
push dword [ebp + 8]
add dword [0x4326f4], 4
call fcn.00403479
mov ebx, eax
cmp ebx, esi
jl 0x403471
cmp dword [ebp + 0x10], esi
jne 0x40343f
cmp dword [ebp + 8], esi
jle 0x403471
mov esi, 0x4266f0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x403401
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.004061db
test eax, eax
je 0x403463
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.0040620a
test eax, eax
je 0x40343b
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x4326f4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x4033f0
jmp 0x403471
push 0xfffffffffffffffe
jmp 0x403465
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x40344a
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [0x40815c]
test eax, eax
jne 0x403468
push 0xfffffffffffffffd
pop eax
jmp 0x403473
mov ebx, dword [ebp - 4]
add dword [0x4326f4], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x405c8e
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x405d2c
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00406133
mov edi, eax
cmp edi, 0xffffffff
je 0x405d6d
test byte [esp + 0x10], 1
push esi
je 0x405d4f
call dword [0x40809c]
jmp 0x405d55
call dword [0x408170]
test eax, eax
je 0x405d5e
xor eax, eax
inc eax
jmp 0x405d6f
test byte [esp + 0x10], 4
jne 0x405d6d
push edi
push esi
call dword [0x408100]
xor eax, eax
pop edi
pop esi
ret 8

Function at 0x405d74
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.0040603f
test bl, 8
mov dword [ebp - 8], eax
je 0x405db3
push edi
call dword [0x408170]
neg eax
sbb eax, eax
inc eax
add dword [0x4702e8], eax
jmp 0x405f30
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405dcd
test eax, eax
je 0x405ede
test bl, 2
je 0x405ede
mov esi, 0x456750
push edi
push esi
call fcn.00406668
cmp dword [ebp + 8], 0
je 0x405dec
push 0x40a59c
push esi
call fcn.00406684
jmp 0x405df2
push edi
call fcn.00405f83
cmp word [edi], 0
jne 0x405e02
cmp word [0x456750], 0x5c
jne 0x405e0d
push 0x40a014
push edi
call fcn.00406684
push edi
call fcn.0040667e
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [0x40816c]
mov esi, eax
cmp esi, 0xffffffff
je 0x405ed3
cmp word [ebp - 0x22c], 0x2e
jne 0x405e57
cmp word [ebp - 0x22a], 0
je 0x405eb6
cmp word [ebp - 0x22a], 0x2e
jne 0x405e57
cmp word [ebp - 0x228], 0
je 0x405eb6
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406668
test byte [ebp - 0x258], 0x10
je 0x405e82
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405eb6
push dword [ebp + 0xc]
push edi
call fcn.00405d74
jmp 0x405eb6
push dword [ebp - 4]
push edi
call fcn.00405d2c
test eax, eax
jne 0x405eae
cmp dword [ebp - 4], eax
je 0x405ea6
push edi
push 0xfffffffffffffff1
call fcn.004056ca
push 0
push edi
call fcn.00406428
jmp 0x405eb6
inc dword [0x4702e8]
jmp 0x405eb6
push edi
push 0xfffffffffffffff2
call fcn.004056ca
lea eax, [ebp - 0x258]
push eax
push esi
call dword [0x408168]
test eax, eax
jne 0x405e2f
push esi
call dword [0x408164]
cmp dword [ebp + 8], 0
je 0x405ede
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405f30
cmp dword [ebp - 8], esi
jne 0x405ef2
inc dword [0x4702e8]
jmp 0x405f30
push edi
call fcn.0040699e
test eax, eax
je 0x405f30
push edi
call fcn.00405f37
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405d2c
test eax, eax
jne 0x405f28
cmp dword [ebp - 4], esi
je 0x405eea
push edi
push 0xfffffffffffffff1
call fcn.004056ca
push esi
push edi
call fcn.00406428
jmp 0x405f30
push edi
push 0xffffffffffffffe5
call fcn.004056ca
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40603f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x45a750
push esi
call fcn.00406668
push esi
call fcn.00405fe2
mov edi, eax
test edi, edi
jne 0x406060
xor eax, eax
jmp 0x4060b8
push edi
call fcn.004068ef
test byte [0x470278], 0x80
je 0x40607d
mov ax, word [edi]
test ax, ax
je 0x40605c
cmp ax, 0x5c
je 0x40605c
sub edi, esi
sar edi, 1
jmp 0x406097
call fcn.0040699e
test eax, eax
je 0x406091
test byte [eax], 0x10
je 0x40605c
push esi
call fcn.00405f83
push esi
call fcn.0040667e
cmp eax, edi
push esi
jg 0x406083
call fcn.00405f37
push esi
call dword [0x408104]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x406133
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [0x408104]
mov esi, eax
cmp esi, 0xffffffff
je 0x406152
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [0x408100]
mov eax, esi
pop esi
ret 4

Function at 0x406158
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [0x408104]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [0x4080f4]
ret 0xc