joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f6a8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0041d510
mov ecx, dword [ebp + 8]
xor edx, edx
mov eax, ecx
mov byte [ebp - 0x1004], dl
push esi
sub eax, edx
je 0x40f76e
sub eax, 1
je 0x40f761
sub eax, 1
je 0x40f74d
sub eax, 1
je 0x40f739
sub eax, 1
je 0x40f729
sub eax, 1
je 0x40f71f
sub eax, 1
je 0x40f70e
test ecx, 0x10000
je 0x40f7c8
push edx
movzx eax, cx
push eax
lea eax, [ebp - 0x1004]
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
jmp 0x40f781
mov esi, dword [0x450a18]
add esi, 0x390
jmp 0x40f7c3
mov esi, 0x43d43e
jmp 0x40f7c3
mov eax, dword [0x450a18]
mov esi, dword [eax + 0x368]
jmp 0x40f7c3
push 0x1000
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x40f781
push 0x1000
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x40f781
mov eax, dword [0x450a18]
mov esi, dword [eax + 0x384]
jmp 0x40f7c3
lea eax, [ebp - 0x1004]
push 0x1000
push eax
call fcn.00423914
pop ecx
pop ecx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1004]
push eax
call fcn.00408df8
mov eax, dword [0x450a18]
push dword [ebp + 8]
add eax, 0x338
push eax
call fcn.0040a6dc
lea eax, [ebp + 8]
push eax
call fcn.00408e05
mov eax, dword [0x450a18]
push 0x5c
mov esi, dword [eax + 0x338]
push esi
call fcn.0041cb20
add esp, 0x1c
mov eax, esi
pop esi
leave
ret
push 0x44c354
lea eax, [ebp - 4]
mov dword [ebp - 4], 3
push eax
call fcn.0041ed6c
int3
Function at 0x40f7de
Capabilities:
Get hostname
Get memory capacity
Get session user name
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0x104
push edi
push 4
pop edi
test bl, 0x10
je 0x40f805
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
test bl, 0x20
je 0x40f82a
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp + 0x10]
and ebx, 0xf
mov ecx, dword [ebp + ebx*4 - 0x48]
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], edi
jmp 0x40f93f
push esi
sub ebx, 0
je 0x40f8a4
sub ebx, 1
je 0x40f894
sub ebx, 1
je 0x40f86f
sub ebx, 1
je 0x40f85a
sub ebx, 0xd
je 0x40f855
sub ebx, 1
je 0x40f850
xor eax, eax
jmp 0x40f93e
mov eax, dword [ebp - 0x14]
jmp 0x40f865
mov eax, dword [ebp - 0x10]
jmp 0x40f865
mov eax, dword [0x450a18]
mov eax, dword [eax + 0x37c]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x40f937
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp + 8]
push eax
push esi
call fcn.00408df8
push dword [ebp + 8]
call fcn.004232b0
add esp, 0xc
jmp 0x40f912
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
jmp 0x40f87d
mov esi, dword [ebp + 0x10]
push str.Windows
push esi
call fcn.00421870
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ebx, eax
mov ecx, 0x43db80
mov eax, 0x43db84
test ebx, ebx
cmovs ecx, eax
push ecx
push esi
call fcn.00421880
mov eax, ebx
shr eax, 8
movzx eax, al
push eax
movzx eax, bl
push eax
lea eax, [ebp - 0xc8]
push str._ver_d._d
push eax
call fcn.00401b55
lea eax, [ebp - 0xc8]
push eax
push esi
call fcn.00421880
lea eax, [ebp + 8]
push eax
push esi
call fcn.00408df8
push dword [ebp + 8]
call fcn.004232b0
add esp, 0x2c
mov edi, eax
cmp esi, dword [ebp + 8]
je 0x40f92a
push edi
push dword [ebp + 8]
push esi
call fcn.0041e610
add esp, 0xc
mov byte [edi + esi], 0
lea eax, [ebp + 8]
push eax
call fcn.00408e05
pop ecx
push 2
pop edi
mov ecx, dword [ebp + 0xc]
mov eax, esi
mov dword [ecx], edi
pop esi
pop edi
pop ebx
leave
ret
Function at 0x4127a0
Capabilities:
Log keystrokes

Disassembly:
mov eax, 0x43c801
call fcn.0041d4e8
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x10], esp
push esi
call dword [sym.imp.USER32.dll_TranslateMessage]
push esi
call dword [sym.imp.USER32.dll_DispatchMessageA]
mov eax, dword [0x450acc]
test byte [eax + 0x30c], 2
je 0x412815
cmp dword [esi + 4], 0x200
jne 0x412864
cmp dword [0x450ae0], 0
movzx ecx, word [esi + 0xc]
movzx eax, word [esi + 0xe]
jne 0x41280a
cmp dword [0x450ae4], ecx
jne 0x412893
cmp dword [0x450ae8], eax
jne 0x412893
jmp 0x412815
mov dword [0x450ae4], ecx
mov dword [0x450ae8], eax
cmp dword [esi + 4], 0x100
jne 0x412855
cmp dword [esi + 8], 9
jne 0x412829
call fcn.00412250
push 2
call fcn.004056a8
pop ecx
test eax, eax
je 0x412855
push dword [esi + 0xc]
and dword [ebp - 4], 0
push dword [esi + 8]
push 2
push dword [esi + 8]
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push 2
call fcn.00405871
add esp, 0x10
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
cmp dword [esi + 4], 0x100
jne 0x412855
cmp dword [0x450ae0], 0
jne 0x412815
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push 0x44c354
jmp 0x41289f
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push 0x44c354
push eax
call fcn.0041ed6c
int3
Function at 0x412d18
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi + 0xec], 9
je 0x412e57
mov ebx, dword [sym.imp.WINMM.dll_timeGetTime]
push 1
push edi
push edi
push edi
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x412d65
cmp dword [ebp - 0x18], 0x12
je 0x412ee6
lea eax, [ebp - 0x1c]
push eax
call fcn.004127a0
pop ecx
jmp 0x412e4a
mov eax, dword [esi + 0xec]
sub eax, 1
je 0x412ddf
sub eax, 1
je 0x412dff
sub eax, 1
je 0x412da6
push 3
pop ecx
sub eax, ecx
je 0x412edd
sub eax, 1
je 0x412ed4
sub eax, 1
jne 0x412e5d
mov dword [esi + 0xec], ecx
jmp 0x412e4a
push edi
push edi
push edi
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
cmp dword [ebp - 0x18], 0x12
je 0x412ee6
lea eax, [ebp - 0x1c]
push eax
call fcn.004127a0
cmp dword [esi + 0xec], 3
pop ecx
je 0x412da6
push 0x4ff
push 0x3e8
jmp 0x412e82
cmp dword [0x44f0b8], 0xffffffff
jne 0x412df0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x412df2
call ebx
push eax
call fcn.0040438e
pop ecx
mov dword [esi + 0xec], eax
cmp dword [0x44f0b8], 0xffffffff
jne 0x412e62
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
push edi
call fcn.0040433b
pop ecx
test eax, eax
je 0x412e2b
mov ecx, dword [esi + 0xf8]
push 0x4ff
sub ecx, edi
push ecx
jmp 0x412e80
mov eax, dword [0x450acc]
test byte [eax + 0x30c], 2
je 0x412e48
mov eax, dword [0x450ae0]
test eax, eax
je 0x412e48
dec eax
mov dword [0x450ae0], eax
xor edi, edi
cmp dword [esi + 0xec], 9
jne 0x412d39
mov dword [esi + 0xec], edi
pop edi
pop esi
pop ebx
leave
ret
call ebx
lea edi, [eax + 5]
push edi
call fcn.0040433b
pop ecx
test eax, eax
je 0x412e95
mov eax, dword [esi + 0xf8]
push 0x4ff
sub eax, edi
push eax
xor edi, edi
push edi
push edi
push edi
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x412e4a
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebx
mov edi, eax
push edi
call fcn.0040433b
pop ecx
test eax, eax
jne 0x412e8d
mov eax, dword [0x450acc]
mov dword [esi + 0xfc], edi
xor edi, edi
mov dword [esi + 0xec], edi
test byte [eax + 0x30c], 2
je 0x412e4a
mov eax, dword [0x450ae0]
test eax, eax
je 0x412e4a
dec eax
mov dword [0x450ae0], eax
jmp 0x412e4a
mov dword [ebp + 8], 0x2d
jmp 0x412ee9
mov dword [ebp + 8], 0xa
jmp 0x412ee9
mov dword [ebp + 8], edi
push 0x44c354
lea eax, [ebp + 8]
push eax
call fcn.0041ed6c
int3
Function at 0x4147d5
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetClientRect]
push edi
mov edi, dword [ebp + 8]
push eax
mov dword [ebp - 0x18], ecx
push dword [edi + 8]
call esi
cmp dword [edi + 0xc], 0
mov ebx, dword [ebp + 0xc]
jl 0x414866
mov ecx, dword [ebp - 0x18]
push dword [edi + 0xc]
mov ecx, dword [ecx + 0x130]
call fcn.0041643c
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 8], eax
sub ecx, 1
je 0x414838
sub ecx, 1
je 0x41482e
movzx ecx, word [edi + 0x14]
movzx edx, word [edi + 0x16]
jmp 0x414840
movzx ecx, word [edi + 0x18]
movzx edx, word [edi + 0x1a]
jmp 0x414840
movzx ecx, word [edi + 0x1c]
movzx edx, word [edi + 0x1e]
push 0xcc0020
movsx eax, dx
push eax
movsx eax, cx
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x10]
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, 0x200
test word [edi + 2], ax
je 0x414893
push 0xfffffffffffffffd
push 0xfffffffffffffffd
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawFocusRect]
lea eax, [ebp - 0x14]
push eax
push dword [edi + 8]
call esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x118]
push eax
push 0xff
push 0xd
push dword [edi + 8]
call esi
push 0
push 0
push 0x31
push dword [edi + 8]
call esi
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebx
call edi
push 1
push ebx
mov esi, eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0x25
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00408df8
pop ecx
pop ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextA]
lea eax, [ebp - 4]
push eax
call fcn.00408e05
pop ecx
push esi
push ebx
call edi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x415d6d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
push esi
push edi
push 0x43d420
mov esi, ecx
push eax
push dword [ebp + 8]
mov ebx, dword [esi + 0x40]
call fcn.00408df8
pop ecx
pop ecx
push eax
call fcn.004215ba
mov edi, eax
lea eax, [ebp - 4]
push eax
call fcn.00408e05
add esp, 0xc
test edi, edi
jne 0x415daf
or eax, 0xffffffff
jmp 0x415e01
mov ecx, dword [esi + 0x3c]
mov eax, 0x4d42
mov word [ebp - 0x14], ax
lea eax, [ebx + 0xe]
add eax, ecx
mov dword [ebp - 0x12], eax
lea eax, [ecx + 0xe]
mov dword [ebp - 0xa], eax
xor eax, eax
push edi
push 0xe
mov dword [ebp - 0xe], eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.00421809
push edi
push dword [esi + 0x3c]
push 1
push dword [esi + 0x18]
call fcn.00421809
push edi
push ebx
push 1
push dword [esi + 0x14]
call fcn.00421809
push edi
call fcn.00421479
add esp, 0x34
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4169d6
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
mov edi, ecx
call fcn.004162e8
mov eax, dword [edi + 0x324]
and dword [ebp + 8], 0
mov esi, dword [eax + ebx*4]
test esi, esi
je 0x416a28
mov eax, dword [esi + 0x34]
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.00415621
push 0x1bc
push esi
call fcn.0041d288
mov eax, dword [edi + 0x324]
pop ecx
pop ecx
push 0
push dword [ebp + 8]
and dword [eax + ebx*4], 0
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x1bc
call fcn.0041d258
mov esi, eax
mov dword [ebp - 4], esi
pop ecx
test esi, esi
je 0x416a64
xor eax, eax
mov dword [esi + 0x1b8], 0xf
mov dword [esi + 0x1a4], eax
mov dword [esi + 0x1b4], eax
mov byte [esi + 0x1a4], al
mov dword [esi], eax
mov dword [esi + 0xc4], eax
jmp 0x416a66
xor esi, esi
mov eax, dword [edi + 0x324]
xor ecx, ecx
inc ecx
mov dword [eax + ebx*4], esi
mov eax, dword [ebp + 0x14]
and eax, ecx
mov dword [esi + 0x44], ecx
push eax
push dword [ebp + 0x10]
mov dword [esi + 0x48], ebx
mov ecx, esi
push dword [ebp + 0xc]
mov dword [esi + 0x130], edi
push dword [ebp + 8]
push dword [edi + 0x320]
call fcn.0041674c
and dword [esi + 0x50], 0
and dword [esi + 0x54], 0
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x41b56c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov edi, eax
mov edx, eax
and edi, 7
je 0x41b59a
cmp eax, edi
jge 0x41b58e
push esi
call fcn.0041a6f6
mov eax, dword [esi + 8]
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub eax, edi
mov dword [esi + 8], eax
mov edx, eax
xor ecx, ecx
test eax, eax
jle 0x41b5bd
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x41b5a3
mov dword [esi + 8], edx
jmp 0x41b5d2
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x41b5c8
xor dl, dl
jmp 0x41b5cd
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x41b5bd
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x41b60b
mov dword [0x450b18], str.zlib_corrupt
xor eax, eax
jmp 0x41b650
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x41b620
mov dword [0x450b18], str.read_past_buffer
jmp 0x41b607
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x41b63a
push edi
push ecx
push esi
call fcn.0041c91e
add esp, 0xc
test eax, eax
je 0x41b607
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.0041e610
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x41cd87
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00429b7f
Function at 0x41cd9e
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ecx, esi
and ecx, 1
mov eax, esi
shl ecx, 4
mov ebx, ecx
or ebx, 6
and al, 2
push edi
lea eax, [ebp - 0x140]
cmove ebx, ecx
push eax
push dword [ebp + 8]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp + 0x10], eax
cmp eax, 0xffffffff
jne 0x41cde2
xor eax, eax
jmp 0x41ce84
and esi, 4
xor eax, eax
mov ecx, ebx
and ecx, dword [ebp - 0x140]
cmp eax, ecx
sbb eax, eax
neg eax
test esi, esi
jne 0x41ce00
xor eax, eax
cmp eax, ecx
sbb eax, eax
inc eax
test eax, eax
je 0x41ce52
mov al, byte [ebp - 0x114]
xor ecx, ecx
test al, al
setne cl
cmp al, 0x2e
jne 0x41ce2e
mov al, byte [ebp - 0x113]
xor edx, edx
test al, al
cmove ecx, edx
cmp al, 0x2e
jne 0x41ce2e
cmp byte [ebp - 0x112], dl
je 0x41ce52
test ecx, ecx
je 0x41ce52
lea eax, [ebp - 0x114]
inc edi
push eax
push dword [ebp + 0xc]
call fcn.0040a6bc
push 0x43d9e8
push dword [ebp + 0xc]
call fcn.0040a6bc
add esp, 0x10
lea eax, [ebp - 0x140]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41cde5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x41cde5
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43267e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004324fd
Function at 0x409990
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f2e0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x48e084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.00434453
mov edi, eax
add esp, 4
test edi, edi
je 0x409a3b
push 1
mov dword [ebp - 4], 0
call fcn.0041f750
mov dword [edi + 4], eax
add esp, 4
mov dword [esi + 0x30], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x411fb0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
push edi
push 0x490e5c
push 0x402140
push 0x490e58
mov dword [ebp - 8], 0
call fcn.0041fa0a
add esp, 0xc
test eax, eax
je 0x4120ba
mov edi, dword [ebp + 0x10]
push 0x490e5c
push 0x402140
push 0x490e58
mov dword [ebp - 4], 0x490e5c
mov dword [edi], 0
call fcn.0041fa0a
add esp, 0xc
test eax, eax
je 0x4120ba
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
mov dword [edi + 4], 0x490e5c
push eax
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00410e70
mov eax, dword [ebp - 0x10]
add esp, 0x20
test eax, eax
je 0x412043
cmp eax, 1
je 0x412043
cmp eax, 3
je 0x412098
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 0x14]
cmp dword [eax + 0x10], 0
je 0x4120a0
cmp ecx, 8
jb 0x412056
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x41205e
mov eax, dword [eax]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryExW]
test eax, eax
jne 0x4120b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x490e5c
push 0x402140
push 0x490e58
mov esi, eax
call fcn.0041fa0a
add esp, 0xc
test eax, eax
je 0x4120ba
mov dword [edi], esi
mov dword [edi + 4], 0x490e5c
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp ecx, 8
jb 0x4120a7
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x412068
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
call fcn.004531f7
int3
Function at 0x412f80
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x490e5c
push 0x402140
push 0x490e58
mov dword [esi], 0
call fcn.0041fa0a
add esp, 0xc
test eax, eax
je 0x413073
mov edi, dword [ebp + 8]
mov dword [esi + 4], 0x490e5c
cmp dword [edi + 0x14], 8
jb 0x412fc3
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x412fea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x412fe1
cmp eax, 3
jne 0x413006
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
test bl, 1
je 0x41301d
mov eax, ebx
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x41301d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0040e830
add esp, 8
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
cmp dword [esi], 0
jne 0x413069
push edi
test bl, 0x10
je 0x413030
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x413036
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x413066
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x490e5c
push 0x402140
push 0x490e58
mov edi, eax
call fcn.0041fa0a
add esp, 0xc
test eax, eax
je 0x413073
mov dword [esi + 4], 0x490e5c
mov dword [esi], edi
cmp dword [esi], 0
pop edi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004531f7
int3
Function at 0x417760
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x664
mov eax, dword [0x48e084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x404]
push 0x200
xorps xmm0, xmm0
mov dword [ebp - 0x65c], ebx
push 0
push eax
movlpd qword [ebp - 0x664], xmm0
call fcn.0044c770
add esp, 0xc
lea eax, [ebp - 0x404]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
push eax
call ebx
push 0x475184
lea eax, [ebp - 0x404]
push eax
call ebx
lea eax, [ebp - 0x654]
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x658], eax
cmp eax, 0xffffffff
jne 0x4177ee
xor eax, eax
xor edx, edx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004349bf
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push esi
mov esi, dword [ebp - 0x660]
push edi
mov edi, dword [ebp - 0x664]
push 0x473914
lea eax, [ebp - 0x628]
push eax
call ebx
test eax, eax
jne 0x4178a3
push 0x473918
lea eax, [ebp - 0x628]
push eax
call ebx
test eax, eax
jne 0x4178a3
test byte [ebp - 0x654], 0x10
je 0x417892
push 0x200
push eax
lea eax, [ebp - 0x204]
push eax
call fcn.0044c770
add esp, 0xc
lea eax, [ebp - 0x204]
push dword [ebp - 0x65c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x474fe4
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x204]
push eax
call fcn.00417760
add esp, 4
jmp 0x4178a3
mov eax, dword [ebp - 0x634]
sub eax, dword [ebp - 0x638]
add edi, eax
adc esi, 0
lea eax, [ebp - 0x654]
push eax
push dword [ebp - 0x658]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x417802
push dword [ebp - 0x658]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
mov edx, esi
xor ecx, ebp
pop esi
pop ebx
call fcn.004349bf
mov esp, ebp
pop ebp
ret
Function at 0x418860
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4700f6
mov eax, dword fs:[0]
push eax
sub esp, 0xc40
mov eax, dword [0x48e084]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
cmp byte [0x490e9d], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0xc38], eax
mov dword [ebp - 0xc3c], eax
jne 0x4188cb
mov byte [0x490e9d], 1
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esi + 0x10], 0
jne 0x4188ff
push 0xd
push str.no_native_cmd
mov ecx, ebx
call fcn.0040a160
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004349bf
mov esp, ebp
pop ebp
ret 0x10
push 0
mov dword [ebp - 4], 0
call fcn.00458073
add esp, 4
mov dword [ebp - 0xc30], eax
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0xc34], edx
jb 0x418924
mov esi, dword [esi]
push 0x47565c
push esi
call fcn.00457ec4
mov edi, eax
add esp, 8
mov dword [ebp - 0xc40], edi
test edi, edi
jne 0x418947
push 0x17
push str.create_environment_fail
jmp 0x4188d8
push 0xc00
lea eax, [ebp - 0xc14]
push 0
push eax
call fcn.0044c770
push edi
lea eax, [ebp - 0xc14]
xor esi, esi
push 0xc00
push eax
call fcn.004577f0
add esp, 0x18
test eax, eax
je 0x4189d6
mov ebx, dword [ebp - 0xc30]
nop dword [eax + eax]
lea eax, [ebp - 0xc14]
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418990
sub eax, edx
push 0
add esi, eax
call fcn.00458073
add esp, 4
sub eax, ebx
sbb edx, dword [ebp - 0xc34]
test edx, edx
jg 0x4189d6
jl 0x4189b8
cmp eax, 2
ja 0x4189d6
mov eax, 0xc00
sub eax, esi
push edi
push eax
lea eax, [ebp - 0xc14]
add eax, esi
push eax
call fcn.004577f0
add esp, 0xc
test eax, eax
jne 0x418980
lea edx, [ebp - 0xc14]
lea esi, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x4189e0
mov ecx, dword [ebp - 0xc38]
lea eax, [ebp - 0xc14]
sub edx, esi
push edx
push eax
call fcn.0040a160
push edi
call fcn.00457df0
add esp, 4
mov al, 1
jmp 0x4188e1