joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b260
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49efb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0049755c
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0044abc0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0049748a
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00493d4b
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00493d4b
push 1
push 0
push 0
mov ecx, esi
call fcn.00493cf3
push 1
push 0
push 1
mov ecx, esi
call fcn.00493cf3
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004975ce
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x44b3e0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49efd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0049755c
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0044abc0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0049748a
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x44b4a4
cmp dword [esp + 0x40], 1
jne 0x44b4a2
cmp ecx, eax
jge 0x44b4a4
mov eax, ecx
cmp eax, 0xc8
jge 0x44b4b0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0044b260
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004975ce
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x44bca0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49f083
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0049216c
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00497804
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00498d20
test eax, eax
je 0x44bdbc
mov ecx, dword [esp + 0x3c]
call fcn.00497831
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x44bd80
push edi
mov ecx, esi
call fcn.00494e99
mov ecx, esi
call fcn.0044bf60
cmp dword [esp + 0x38], 1
jne 0x44bdb5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00494fd4
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x44dfc0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44dff3
push esi
call fcn.0045c380
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44dfec
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44e079
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44e062
mov eax, dword [esi + 8]
test eax, eax
je 0x44e017
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44e05e
cmp eax, 2
je 0x44e062
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44e00a
cmp eax, 3
je 0x44e03d
cmp eax, 1
jne 0x44e00a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44e00a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44e00a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044e0a0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44e088
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044e0a0
add esp, 4
pop esi
ret

Function at 0x44e920
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x44e941
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x44e941
mov eax, dword [eax + 0x44]
test eax, eax
je 0x44e941
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x46bc40
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4e0ec0]
xor edx, edx
cmp eax, edx
jne 0x46bc66
xor eax, eax
mov byte [eax + 0x4e0dc0], al
inc eax
cmp eax, 0x100
jl 0x46bc4e
mov dword [0x4e0ec0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4e0dc0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x46bcf7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x46bcca
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x46bc98
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x46bd70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x46bdc3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x46bdaa
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x472780
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49f56e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004730a0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4ac50c
call fcn.004908d4
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x472813
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004908d4
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x47280c
push 0
mov ecx, eax
call fcn.00469880
mov dword [esi + 0xc], eax
jmp 0x472815
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x472815
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x492f61
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x492f99
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00490fee
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00490fc6
jmp 0x492fa5
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x494653
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x494695
call fcn.0049a10b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x494695
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49468c
xor eax, eax
jmp 0x49469d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004946a3
pop edi
pop esi
pop ebx
ret 4
Function at 0x49a63b
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 0x49a669
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49a687
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049a5a1
jmp 0x49a687
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49a687
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049a5a1
test edi, edi
mov eax, edi
jne 0x49a671
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4011b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
mov edi, dword [sym.imp.MSVCR80.dll_malloc]
push 0x96
mov esi, eax
call edi
push 0x78
mov ebx, eax
call edi
mov edi, eax
mov edx, ebx
add esp, 8
mov dword [esp + 0x14], edi
mov eax, esi
sub edx, esi
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x4011e0
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4011f1
sub eax, edx
je 0x40124e
mov edi, ebx
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x401203
mov ax, word [0x4062f8]
mov word [edi], ax
mov eax, ebp
mov ecx, ebp
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x401220
mov edi, ebx
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x401232
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push ebx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4012c0
lea edx, [esp + 0x18]
push edx
push edi
push eax
mov eax, dword [esp + 0x1c]
push eax
mov dword [esp + 0x28], 0x78
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x4012c0
mov edx, dword [esp + 0x28]
mov eax, edi
sub edx, edi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x401290
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.MSVCR80.dll_free]
push ebx
call esi
push edi
call esi
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov esi, dword [sym.imp.MSVCR80.dll_free]
push ebx
call esi
push edi
call esi
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
Function at 0x4012e0
Capabilities:
Copy file

Disassembly:
sub esp, 0x90
mov eax, dword [0x408104]
xor eax, esp
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x94]
push ebp
push esi
mov esi, ecx
mov dword [esp + 8], eax
mov eax, esi
push edi
xor ebp, ebp
lea edx, [eax + 1]
jmp 0x401310
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401310
sub eax, edx
push ebx
mov bl, byte [eax + esi - 1]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401325
push 0
lea ecx, [esp + 0x18]
push ecx
sub eax, edx
push esi
mov byte [eax + esi - 1], 0x5f
call sub.LZ32.dll_LZOpenFileA
mov edi, eax
test edi, edi
jge 0x401375
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401350
sub eax, edx
push 0
lea edx, [esp + 0x18]
push edx
push esi
mov byte [eax + esi - 1], bl
call sub.LZ32.dll_LZOpenFileA
mov edi, eax
test edi, edi
jge 0x401375
or ebp, 0xffffffff
mov ecx, dword [esp + 0x10]
push 0x1000
lea eax, [esp + 0x18]
push eax
push ecx
call sub.LZ32.dll_LZOpenFileA
mov esi, eax
test esi, esi
pop ebx
jg 0x401393
or ebp, 0xffffffff
push esi
push edi
call sub.LZ32.dll_LZCopy
test eax, eax
jg 0x4013a3
mov ebp, 0xfffffffe
push edi
call sub.LZ32.dll_LZClose
push esi
call sub.LZ32.dll_LZClose
mov ecx, dword [esp + 0x98]
pop edi
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.004054aa
add esp, 0x90
ret
Function at 0x404d00
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x44
cmp dword [esp + 0x4c], 0
push esi
mov esi, dword [esp + 0x4c]
push edi
mov dword [0x408484], eax
jne 0x404d7e
push 0x7f00
push 0
mov dword [esp + 0x2c], 3
mov dword [esp + 0x30], 0x401000
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], esi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push 0
mov dword [esp + 0x40], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0
mov dword [esp + 0x40], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], 0x4080a0
call dword [sym.imp.USER32.dll_RegisterClassA]
push 0
push esi
push 0
push 0
push 0x6e
push 0x12c
push 0x80000000
push 0x80000000
push 0xcf0000
push 0x40634c
push 0x4080a0
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov edi, dword [sym.imp.USER32.dll_LoadBitmapA]
push str.BMP_2
push esi
mov dword [0x40848c], eax
call edi
push 0x406874
push esi
mov dword [0x408124], eax
call edi
mov edx, dword [0x40848c]
push 5
push edx
mov dword [0x408120], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x40848c]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [0x40848c]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov edx, dword [0x40848c]
mov eax, dword [0x408484]
push edx
push eax
call fcn.00402300
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
add esp, 8
push 0
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
call esi
test eax, eax
je 0x404e53
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea edx, [esp + 0xc]
push edx
call edi
lea eax, [esp + 0xc]
push eax
call ebx
push 0
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
call esi
test eax, eax
jne 0x404e33
pop ebx
mov eax, dword [esp + 0x10]
pop edi
pop esi
add esp, 0x44
ret 0x10
Function at 0x4054aa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x408104]
jne 0x4054b4
repz ret
jmp fcn.004057d6
Function at 0x407900
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 8]
mov dword [esp + 8], eax
lea eax, [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x10]
mov dword [esp], eax
mov dword [esp + 0xc], 0
call sub.msvcrt.dll___getmainargs
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll___set_app_type
mov eax, dword [ebp - 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.004079c0
mov dword [esp], eax
call sub.msvcrt.dll_exit
nop
nop
nop
nop
push ebp
mov ebp, esp
call sub.msvcrt.dll___iob_func
mov edx, dword [ebp + 8]
pop ebp
shl edx, 5
add eax, edx
ret
Function at 0x41df27
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x47ca28
call fcn.00478a94
sub esp, 0x2bc
push ebx
push esi
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x44], edi
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], 1
call fcn.0041ded0
mov dword [ebp - 4], 1
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push 0x5c
pop edx
cmp word [ecx + eax*2 - 2], dx
je 0x41df88
push edx
push 1
lea ecx, [ebp - 0x28]
call fcn.0041db53
push dword [ebp + 8]
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x5c]
call fcn.0041e7e0
cmp dword [eax + 0x14], 8
pop ecx
jb 0x41df9f
mov eax, dword [eax]
lea ecx, [ebp - 0x2c8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push ebx
push 1
lea ecx, [ebp - 0x5c]
mov esi, eax
call fcn.0041dab3
xor ecx, ecx
cmp esi, 0xffffffff
setne cl
test ecx, ecx
je 0x41e03a
xor eax, eax
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], ebx
call fcn.0041e530
mov byte [ebp - 4], 2
test byte [ebp - 0x2c8], 0x10
jne 0x41e019
lea eax, [ebp - 0x40]
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x74]
call fcn.0041e7e0
pop ecx
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.0041e40b
push ebx
push 1
lea ecx, [ebp - 0x74]
call fcn.0041dab3
push ebx
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0041dab3
lea eax, [ebp - 0x2c8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41dfc6
cmp esi, 0xffffffff
je 0x41e046
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.0041dab3
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x41e062
Capabilities:
Create directory

Disassembly:
mov eax, 0x47c9ed
call fcn.00478a94
sub esp, 0x5c
push ebx
push ebp
push esi
xor ebx, ebx
xor eax, eax
push edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], ax
mov edx, ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x74], ebx
call fcn.0041ded0
push ecx
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x18]
mov byte [esp + 0x78], 1
call fcn.0041edf4
pop ecx
mov byte [esp + 0x74], 2
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
sub eax, ecx
push 0x18
cdq
pop ebp
idiv ebp
mov edi, ebx
test eax, eax
je 0x41e126
mov esi, ebx
lea edx, [esi + ecx]
push ecx
lea ecx, [esp + 0x54]
call fcn.0041e852
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x80], 3
call fcn.0041e608
push ebx
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0x7c], 2
call fcn.0041dab3
cmp dword [esp + 0x34], 8
lea eax, [esp + 0x20]
cmovae eax, dword [esp + 0x20]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
sub eax, ecx
cdq
idiv ebp
inc edi
add esi, ebp
cmp edi, eax
jb 0x41e0c8
lea ecx, [esp + 0x14]
call fcn.0041e473
push ebx
push 1
lea ecx, [esp + 0x40]
call fcn.0041dab3
push ebx
push 1
lea ecx, [esp + 0x28]
call fcn.0041dab3
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x41e158
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov eax, 0x47c9a0
call fcn.00478a94
sub esp, 0x2d4
push ebx
mov edx, ecx
push esi
lea ecx, [ebp - 0x58]
call fcn.0041ded0
and dword [ebp - 4], 0
push 0x40599c
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x88]
call fcn.0041e8bc
cmp dword [eax + 0x14], 8
pop ecx
jb 0x41e194
mov eax, dword [eax]
lea ecx, [ebp - 0x2dc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push 0
push 1
lea ecx, [ebp - 0x88]
mov esi, eax
call fcn.0041dab3
cmp esi, 0xffffffff
je 0x41e2b7
mov ebx, dword [ebp - 0x2dc]
and dword [ebp - 0x30], 0
xor eax, eax
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x2b0]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
call fcn.0041e530
mov edx, 0x4059a4
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0041e958
test al, al
jne 0x41e28a
mov edx, 0x4059a8
lea ecx, [ebp - 0x40]
call fcn.0041e958
test al, al
jne 0x41e28a
push 0x4059b0
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x70]
call fcn.0041e8bc
pop ecx
lea ecx, [ebp - 0x40]
push ecx
mov edx, eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0041e932
pop ecx
push 0
push 1
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.0041dab3
test bl, 1
je 0x41e25d
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
mov eax, ebx
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test bl, 0x10
je 0x41e26c
lea ecx, [ebp - 0x28]
call fcn.0041e158
jmp 0x41e27e
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0041dab3
push 0
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.0041dab3
lea eax, [ebp - 0x2dc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41e1bc
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 1
lea ecx, [ebp - 0x58]
call fcn.0041dab3
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret