joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4268c5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00426841
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x426a34
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x426a34
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4269e9
jg 0x426921
test eax, eax
je 0x4269df
push 1
push 0x1000
call fcn.0041d4ca
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x426944
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4269d6
push 0x8000
push ebx
call fcn.00418ca5
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x42696d
jg 0x426968
cmp ecx, 0x1000
jb 0x42696d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041b9d6
add esp, 0x10
cmp eax, 0xffffffff
je 0x4269b2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x426968
jl 0x426999
test ecx, ecx
jne 0x42695a
push dword [ebp - 0xc]
push ebx
call fcn.00418ca5
push esi
call fcn.004194f0
add esp, 0xc
xor ebx, ebx
jmp 0x426a42
cmp byte [edi + 0x24], 0
je 0x4269c9
cmp dword [edi + 0x20], 5
jne 0x4269c9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4269d4
mov ebx, dword [edi + 0x18]
jmp 0x4269d6
xor ebx, ebx
push esi
call fcn.004194f0
pop ecx
jmp 0x426a42
test ecx, ecx
jg 0x4269ab
jl 0x4269e9
test eax, eax
jae 0x4269ab
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041ae9a
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x426a09
cmp byte [edi + 0x1c], 0
je 0x4269ab
jmp 0x426a3a
push ebx
call fcn.00417a02
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4269ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x426a42
cmp byte [edi + 0x1c], 0
je 0x426a3f
mov ebx, dword [edi + 0x18]
jmp 0x426a42
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041ae9a
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4286b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4286dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4286dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0xb7e8f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x521000]
push edi
jmp 0xb7e90a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xb7e911
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb7e900
mov eax, 1
add ebx, ebx
jne 0xb7e923
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xb7e934
jne 0xb7e953
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb7e953
dec eax
add ebx, ebx
jne 0xb7e940
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xb7e918
add ebx, ebx
jne 0xb7e94f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xb7e9a5
xor ecx, ecx
sub eax, 3
jb 0xb7e96b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xb7e9da
sar eax, 1
mov ebp, eax
jmp 0xb7e976
add ebx, ebx
jne 0xb7e976
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb7e944
inc ecx
add ebx, ebx
jne 0xb7e984
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb7e944
add ebx, ebx
jne 0xb7e991
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xb7e986
jne 0xb7e9a2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xb7e986
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xb7e9c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xb7e9b6
jmp 0xb7e906
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xb7e9c4
add edi, ecx
jmp 0xb7e906
pop esi
mov edi, esi
mov ecx, 0x1aae6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xb7e9e2
cmp byte [edi], 0xa7
jne 0xb7e9e2
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 0xb7e9e7
lea edi, [esi + 0x760000]
mov eax, dword [edi]
or eax, eax
je 0xb7ea5f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x78891c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x788958]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xb7ea14
mov ecx, edi
jns 0xb7ea43
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 + 0x78895c]
or eax, eax
je 0xb7ea59
mov dword [ebx], eax
add ebx, 4
jmp 0xb7ea31
call dword [esi + 0x78896c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xb7ea90
cmp al, 0xef
ja 0xb7ea83
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xb7ea65
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0xb7ea72
mov ebp, dword [esi + 0x788960]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xb7eac4
sub esp, 0xffffff80
jmp 0x67e187
Function at 0x10014a2
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1001928
call fcn.01001634
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1002370
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x100125d
cmp eax, esi
jne 0x1001250
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1001260
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1001237
xor esi, esi
inc esi
mov eax, dword [0x100236c]
cmp eax, esi
jne 0x1001273
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10012a2
mov eax, dword [0x100236c]
test eax, eax
jne 0x100129c
mov dword [0x100236c], esi
push 0x100109c
push 0x1001090
call fcn.01001199
pop ecx
pop ecx
test eax, eax
je 0x10012a2
jmp 0x10013c6
mov dword [0x1002034], esi
mov eax, dword [0x100236c]
cmp eax, esi
jne 0x10012c6
push 0x100108c
push 0x1001084
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100236c], 2
cmp dword [ebp - 0x20], ebx
jne 0x10012d3
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1002374], ebx
je 0x10012f4
push 0x1002374
call fcn.010015a9
pop ecx
test eax, eax
je 0x10012f4
push ebx
push 2
push ebx
call dword [0x1002374]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x10013c6
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x100135e
cmp cx, bx
je 0x1001319
cmp dword [ebp - 0x1c], ebx
jne 0x100135e
movzx ecx, word [eax]
cmp cx, bx
je 0x100132e
cmp cx, 0x20
ja 0x100132e
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1001319
test byte [ebp - 0x40], 1
je 0x100133a
movzx ecx, word [ebp - 0x3c]
jmp 0x100133d
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1002030], eax
cmp dword [0x1002024], ebx
jne 0x10013a3
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x100136f
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1001303
cmp dword [0x1002034], ebx
jne 0x10013b1
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1002030]
jmp 0x10013d2
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01001679
ret
call fcn.01001781
jmp 0x10011fa
Function at 0x406ad8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c400]
jne 0x406ae2
repz ret
jmp fcn.00408a36

Function at 0x407263
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40c400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040529d
and dword [ebp - 0x14], 0
cmp dword [0x43a074], 0
mov dword [ebp - 0x18], eax
jne 0x407316
push 0x4021a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4073be
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402194
push ebx
call edi
test eax, eax
je 0x4073be
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402184
push ebx
mov dword [0x43a074], eax
call edi
push eax
call esi
push 0x402170
push ebx
mov dword [0x43a078], eax
call edi
push eax
call esi
push 0x402154
push ebx
mov dword [0x43a07c], eax
call edi
push eax
call esi
mov dword [0x43a084], eax
test eax, eax
je 0x407316
push 0x40213c
push ebx
call edi
push eax
call esi
mov dword [0x43a080], eax
mov eax, dword [0x43a080]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40736f
cmp dword [0x43a084], ecx
je 0x40736f
push eax
call esi
push dword [0x43a084]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40736f
test ebx, ebx
je 0x40736f
call edi
test eax, eax
je 0x407366
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x407366
test byte [ebp - 8], 1
jne 0x40736f
or dword [ebp + 0x10], 0x200000
jmp 0x4073a2
mov eax, dword [0x43a078]
cmp eax, dword [ebp - 0x18]
je 0x4073a2
push eax
call esi
test eax, eax
je 0x4073a2
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4073a2
mov eax, dword [0x43a07c]
cmp eax, dword [ebp - 0x18]
je 0x4073a2
push eax
call esi
test eax, eax
je 0x4073a2
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43a074]
call esi
test eax, eax
je 0x4073be
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4073c0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406ad8
leave
ret
Function at 0x409db0
Capabilities:
Copy file
Get uefi variable

Disassembly:
sub esp, 0xe3c
cmp dword [0x4b5bd8], 0x37
jne 0x409e35
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
push 0x402a58
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
lea eax, [esp + 0x18]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
push 0
lea ecx, [esp + 0x23c]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
lea edx, [esp]
push edx
push 0
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
push 0
call dword [sym.imp.KERNEL32.dll_PulseEvent]
push 0
lea ecx, [esp + 0x63c]
push ecx
push 0x402a7c
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
mov edx, dword [0x4b5bdc]
mov ecx, dword [0x4b52bc]
mov al, byte [edx + esi + 0x38d6]
mov byte [ecx + esi], al
add esp, 0xe3c
ret
Function at 0x401438
Capabilities:
Create thread
Get system information on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
push ecx
sub esp, 0x60
call sym.___main
lea eax, [ebp - 0x40]
mov dword [esp], eax
call sym._GetSystemInfo_4
sub esp, 4
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
shl eax, 2
mov dword [esp], eax
call sym._malloc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x401490
mov dword [esp], str.malloc
call sym._perror
mov eax, 1
jmp 0x401596
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov dword [esp], str.Starting_CPU_load_on__d_cores..._n
call sym._printf
mov dword [ebp - 0xc], 0
jmp 0x401521
mov eax, dword [ebp - 0xc]
lea edx, [eax*4]
mov eax, dword [ebp - 0x18]
lea ebx, [edx + eax]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], sym._cpu_load_4
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateThread_24
sub esp, 0x18
mov dword [ebx], eax
mov eax, dword [ebp - 0xc]
lea edx, [eax*4]
mov eax, dword [ebp - 0x18]
add eax, edx
mov eax, dword [eax]
test eax, eax
jne 0x40151d
mov dword [esp], str.CreateThread
call sym._perror
mov eax, 1
jmp 0x401596
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jl 0x4014ac
mov eax, dword [ebp - 0x14]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 1
mov edx, dword [ebp - 0x18]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._WaitForMultipleObjects_16
sub esp, 0x10
mov dword [ebp - 0x10], 0
jmp 0x401577
mov eax, dword [ebp - 0x10]
lea edx, [eax*4]
mov eax, dword [ebp - 0x18]
add eax, edx
mov eax, dword [eax]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
add dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jl 0x401557
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym.___mingw_aligned_free
nop
mov eax, 0
lea esp, [ebp - 8]
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret
Function at 0x401ce0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x401d2b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401d24
test esi, esi
je 0x401d24
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401d00
mov dword [esp], 0x408044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401f10
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401f60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402034
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x401f9e
cmp eax, 4
jne 0x401fc0
test esi, esi
je 0x401fb2
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x401fa4
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x401fff
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x401ff1
cmp ecx, 0x40
je 0x401fb2
cmp ecx, 4
je 0x401fb2
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401f10
lea esi, [esi]
Function at 0x401000
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 1], 0x41
jmp 0x401022
mov al, byte [ebp - 1]
add al, 1
mov byte [ebp - 1], al
movsx ecx, byte [ebp - 1]
cmp ecx, 0x5a
jg 0x401102
movsx edx, byte [ebp - 1]
push edx
push 0x4072e0
lea eax, [ebp - 8]
push eax
call fcn.00401720
add esp, 0xc
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x401083
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x1c]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
add esp, 8
mov dword [ebp - 0x14], 3
push 0
push 0
push 0x10
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401980
mov dword [ebp - 0xc], eax
jmp 0x4010fd
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x4010c1
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x1c]
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
add esp, 8
mov dword [ebp - 0x14], 5
push 0
push 0
push 0x10
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401980
mov dword [ebp - 0xc], eax
jmp 0x4010fd
lea edx, [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x4010fd
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
add esp, 8
mov dword [ebp - 0x14], 2
push 0
push 0
push 0x10
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00401980
mov dword [ebp - 0xc], eax
jmp 0x40101a
mov dword [ebp - 0x10], 1
push 0
push 0
push 0x10
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401980
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x401130
Capabilities:
Enumerate files on windows
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x394
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x50], 0
mov eax, 1
imul ecx, eax, 0
mov byte [ebp + ecx - 0xd0], 0
mov edx, 1
imul eax, edx, 0
mov byte [ebp + eax - 0x44], 0
lea ecx, [ebp - 0x234]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4011d3
mov dword [ebp - 0xd4], 1
push str._
lea eax, [ebp - 0xd0]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
add esp, 8
mov dword [ebp - 0x20], 1
push 0
push 0
push 0xb8
lea ecx, [ebp - 0xd4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401980
nop
jmp 0x40135b
push 0x160
push 0
lea eax, [ebp - 0x394]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x510
push 0x160
lea ecx, [ebp - 0x394]
push ecx
push 0x80
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0xd0]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
add esp, 8
mov edx, dword [ebp - 0x234]
and edx, 0x10
je 0x401236
mov dword [ebp - 0x24], 1
jmp 0x40123d
mov dword [ebp - 0x24], 0
imul eax, dword [ebp - 0x218], 0xffffffff
add eax, dword [ebp - 0x214]
shr eax, 0xa
add eax, 1
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx edx, word [ebp - 8]
push edx
movzx eax, word [ebp - 0xa]
push eax
movzx ecx, word [ebp - 0xc]
push ecx
movzx edx, word [ebp - 0xe]
push edx
movzx eax, word [ebp - 0x12]
push eax
movzx ecx, word [ebp - 0x14]
push ecx
push str._4d__02d__02d__02d:_02d:_02d
lea edx, [ebp - 0xf4]
push edx
call fcn.00401720
add esp, 0x20
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0x44]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
add esp, 8
mov dword [ebp - 0x20], 1
push 0x407318
lea edx, [ebp - 0x208]
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x4012ee
push 0x40731c
lea eax, [ebp - 0x208]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
jne 0x4012f0
jmp 0x401317
push 0
push 0
push 0xb8
lea ecx, [ebp - 0xd4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401980
nop
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x401317
jmp 0x401330
lea eax, [ebp - 0x234]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4011d3
mov dword [ebp - 0x20], 0
push 0
push 0
push 0xb8
lea edx, [ebp - 0xd4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00401980
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
nop
mov esp, ebp
pop ebp
ret 8
Function at 0x401370
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x35c
push esi
push edi
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x38], 0
mov eax, 1
imul ecx, eax, 0
mov byte [ebp + ecx - 0xb8], 0
mov edx, 1
imul eax, edx, 0
mov byte [ebp + eax - 0x2c], 0
lea ecx, [ebp - 0x1fc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
push 0x160
push 0
lea eax, [ebp - 0x35c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x510
push 0x160
lea ecx, [ebp - 0x35c]
push ecx
push 0x80
lea edx, [ebp - 0x1d0]
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0xb8]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
add esp, 8
imul edx, dword [ebp - 0x1e0], 0xffffffff
add edx, dword [ebp - 0x1dc]
mov dword [ebp - 0x38], edx
mov ecx, 0x2e
lea esi, [ebp - 0xbc]
mov edi, dword [ebp + 8]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x401450
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00405e20
push 0x407324
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40147f
xor al, al
jmp 0x40156a
mov dword [ebp - 8], 0
push 2
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
je 0x4014af
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor al, al
jmp 0x40156a
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4014d9
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor al, al
jmp 0x40156a
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
je 0x4014ff
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor al, al
jmp 0x40156a
mov ecx, dword [ebp - 8]
mov dword [ebp + 0x90], ecx
mov edx, dword [ebp - 4]
push edx
push 0x1000
push 1
lea eax, [ebp - 0x100c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40155b
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [ebp - 0x100c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00401980
test eax, eax
jne 0x401559
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor al, al
jmp 0x40156a
jmp 0x401508
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov al, 1
mov esp, ebp
pop ebp
ret 0xbc