joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440b4a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x45a880]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00436eec
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00436eec
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x440bc1
cmp word [ecx], dx
je 0x440bc1
mov eax, dword [0x44f50c]
push edi
dec eax
push eax
push 0x44f3f8
call fcn.00440ae9
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x440c34
cmp word [eax], dx
je 0x440c34
mov eax, dword [edi]
test eax, eax
je 0x440be5
cmp word [eax], dx
je 0x440be5
lea eax, [ebp - 0x10]
push eax
call fcn.004404cc
jmp 0x440bee
lea eax, [ebp - 0x10]
push eax
call fcn.00440567
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x440c5e
mov eax, dword [0x44f3f4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x44f0e8
call fcn.00440ae9
add esp, 0xc
test al, al
je 0x440c5e
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x440c29
cmp word [eax], di
je 0x440c29
lea eax, [ebp - 0x10]
push eax
call fcn.004404cc
pop ecx
jmp 0x440c60
lea eax, [ebp - 0x10]
push eax
call fcn.00440567
jmp 0x440c26
mov eax, dword [edi]
test eax, eax
je 0x440c4b
cmp word [eax], dx
je 0x440c4b
lea eax, [ebp - 0x10]
push eax
call fcn.00440481
pop ecx
jmp 0x440c5e
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x440d29
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0044096e
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x440d29
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x440d29
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x440d29
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x440cb6
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004387f7
test ebx, ebx
je 0x440d24
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004387f7
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x440d29
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x440d29
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004439d7
add esp, 0x10
xor eax, eax
inc eax
jmp 0x440d2b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042449a
leave
ret
Function at 0x445390
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4453bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4453bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4023ba
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov edi, ecx
mov dword [ebp - 0x14], edx
push str.Py_Initialize
push edi
call esi
push str.Py_SetProgramName
push edi
mov dword [ebp - 4], eax
call esi
push str.Py_Finalize
push edi
mov dword [ebp - 0xc], eax
call esi
push str.PyRun_SimpleString
push edi
mov dword [ebp - 8], eax
call esi
push str.PyErr_Print
push edi
mov dword [ebp - 0x10], eax
call esi
cmp dword [ebp - 4], 0
mov ebx, eax
je 0x402449
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x402449
cmp dword [ebp - 8], 0
je 0x402449
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x402449
test ebx, ebx
je 0x402449
push 0x46e6c0
call eax
call dword [ebp - 4]
mov ecx, edi
call fcn.00401f7b
push dword [ebp - 0x14]
call esi
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x402442
call ebx
call dword [ebp - 8]
mov eax, esi
jmp 0x40244c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44a010
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0
push 0
push 3
push 0
push 3
push 0x40000000
push str.CONOUT_
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
mov dword [0x64f054], esi
je 0x44a05f
mov ecx, dword [0x64fd3c]
push 0x64fa58
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov eax, esi
pop edi
pop esi
pop ecx
ret

Function at 0x56e32c
Capabilities:
Check http status code

Disassembly:
xor al, 0x13
push eax
dec edi
jno fcn.0056e398
xchg dword [ebx + 0x63a58500], esi
aam 0x24
and al, 0xd6
Function at 0x100c117
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x1003800
call fcn.01007d0c
xor esi, esi
cmp dword [0x10107f0], esi
jne 0x100c15b
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100c146
mov dword [0x10107f0], edi
jmp 0x100c15b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x100c15b
mov dword [0x10107f0], 2
mov eax, dword [0x10107f0]
cmp eax, 2
je 0x100c23c
cmp eax, esi
je 0x100c23c
cmp eax, 1
jne 0x100c1a0
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x100c189
mov eax, dword [0x101070c]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x100c1a7
xor eax, eax
jmp 0x100c24e
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.01007e70
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x100c1dd
cmp edi, esi
jne 0x100c1f8
lea eax, [ebx + ebx]
push eax
call fcn.010080ad
pop ecx
mov edi, eax
cmp edi, esi
je 0x100c1a0
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100c22b
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x100c215
push esi
push esi
jmp 0x100c21b
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x100c237
push edi
call fcn.01007fe8
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x100c24e
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.01007d47
ret

Function at 0x1018176
Capabilities:
Encode data using xor

Disassembly:
inc dword [ebp + 0x4ad0]
call esi
xor eax, edi
je fcn.01018176
jmp 0x101ccaa
xor edi, eax
rdtsc
ret

Function at 0x101cd43
Capabilities:
Resolve function by parsing pe exports

Disassembly:
ret
jne 0x10180a7
lea esi, [ebx]
lea edi, [ebx]
jmp 0x101cd4a
cmp byte [edi], 1
ja 0x101cce9
xor eax, 0x10be49e1
sbb eax, dword [esp + 4]
jmp 0x101800a
push ebx
movzx eax, word [esi]
pop esi
add esi, dword [edi + eax*4]
ret 4
push 0xffffffffffffffff
add esi, dword [edx + 0x20]
pop ecx
lodsd eax, dword [esi]
jmp 0x101cc9e
movzx eax, byte [edi]
lea edi, [edi + 1]
sub dword [esp], eax
pop eax
jmp 0x101802c
inc ecx
cmp ecx, dword [edx + 0x18]
lea edi, [eax + ebx]
jmp 0x101cce0
je 0x1018009
push 0
pop eax
imul eax, eax, 0xf
push eax
jmp 0x101818b
mov esi, ebx
mov eax, ebx
add eax, dword [ebx + 0x3c]
add edx, dword [eax + 0x78]
jmp 0x10180a1
mov edx, ebx
jmp 0x101cd0b
add edi, dword [edx + 0x1c]
add esi, dword [edx + 0x24]
lea esi, [esi + ecx*2]
jmp 0x1018051
Function at 0x40a750
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a096c
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x5e632c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.boost::detail::thread_data_base.0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.00447790
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xc], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.0040abe0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x1c], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.00434d40
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00434d40
mov byte [ebp - 4], 3
push 0
push 1
call fcn.00401510
add esp, 8
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x40
call fcn.00447790
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x44], 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x414630
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0x67452301
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], 0xefcdab89
mov edx, dword [ebp - 4]
mov dword [edx + 8], 0x98badcfe
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0x10325476
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0xc3d2e1f0
mov edx, dword [ebp - 4]
mov dword [edx + 0x54], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x58], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x5c], 0
mov esp, ebp
pop ebp
ret
Function at 0x414df0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x5e632c]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0xd0], ecx
lea ecx, [ebp - 0x68]
call fcn.00414610
call fcn.00414de0
mov dword [ebp - 4], eax
push 0x14
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x90]
push ecx
call fcn.004bb670
add esp, 0xc
push 0x14
lea edx, [ebp - 0x90]
push edx
lea ecx, [ebp - 0x68]
call fcn.00414810
push 4
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x68]
call fcn.00414810
push 0
call fcn.0058bfe0
add esp, 4
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], edx
push 8
lea ecx, [ebp - 0x98]
push ecx
lea ecx, [ebp - 0x68]
call fcn.00414810
call fcn.004bbd6d
mov dword [ebp - 0x9c], eax
push 4
lea edx, [ebp - 0x9c]
push edx
lea ecx, [ebp - 0x68]
call fcn.00414810
call fcn.004bbde7
mov dword [ebp - 0xa8], eax
call fcn.004bbde7
mov dword [ebp - 0xa4], eax
call fcn.004bbde7
mov dword [ebp - 0xa0], eax
push 0xc
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x68]
call fcn.00414810
mov ecx, dword [ebp - 0xd0]
cmp dword [ecx + 0x18], 0
je 0x414ef7
mov edx, dword [ebp - 0xd0]
mov eax, dword [edx + 0x18]
push eax
push 0x14
push 1
lea ecx, [ebp - 0xbc]
push ecx
call fcn.004bc0a5
add esp, 0x10
push eax
mov ecx, dword [ebp - 0xd0]
call fcn.0043dcd0
push 0x14
lea edx, [ebp - 0xbc]
push edx
lea ecx, [ebp - 0x68]
call fcn.00414810
push 4
call fcn.004b9286
add esp, 4
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xc0], eax
push 4
mov ecx, dword [ebp - 0xc0]
push ecx
lea ecx, [ebp - 0x68]
call fcn.00414810
push 4
lea edx, [ebp - 0xc0]
push edx
lea ecx, [ebp - 0x68]
call fcn.00414810
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xcc], eax
mov ecx, dword [ebp - 0xcc]
push ecx
call fcn.004b8ffd
add esp, 4
push 0x14
mov edx, dword [ebp - 0xd0]
push edx
lea ecx, [ebp - 0x68]
call fcn.00414810
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x68]
call fcn.00414bd0
mov dword [ebp - 0xc4], 0
jmp 0x414f99
mov ecx, dword [ebp - 0xc4]
add ecx, 1
mov dword [ebp - 0xc4], ecx
cmp dword [ebp - 0xc4], 5
jge 0x414fee
mov edx, dword [ebp - 0xc4]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc4]
mov edx, dword [eax + edx*4]
xor edx, dword [ebp + ecx*4 - 0x7c]
mov eax, dword [ebp - 0xc4]
mov ecx, dword [ebp - 4]
mov dword [ecx + eax*4], edx
mov edx, dword [ebp - 0xc4]
mov eax, dword [ebp - 0xd0]
mov ecx, dword [ebp - 0xc4]
mov edx, dword [eax + edx*4]
xor edx, dword [ebp + ecx*4 - 0x7c]
mov eax, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0xd0]
mov dword [ecx + eax*4], edx
jmp 0x414f8a
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004b9002
mov esp, ebp
pop ebp
ret
Function at 0x4164a0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e5d8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5e632c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x17], eax
mov word [ebp - 0x13], ax
mov byte [ebp - 0x11], al
mov dword [ebp - 0x28], 0
push 0x5cbf84
lea ecx, [ebp - 0x20]
call fcn.004053f0
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0x288
mov dword [ebp - 0x30], 0
jmp 0x41652b
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x30], 2
jge 0x416593
mov edx, dword [ebp - 0x24]
push edx
call fcn.004bb2ee
add esp, 4
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x416591
mov ecx, dword [ebp - 0x24]
push ecx
push 0
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004bbbe0
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x6f
jne 0x41658f
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
push eax
call fcn.004b9c69
add esp, 4
mov dword [ebp - 0x1c], 0
jmp 0x416591
jmp 0x416593
jmp 0x416522
cmp dword [ebp - 0x28], 0
jne 0x416622
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], ecx
cmp dword [ebp - 0x2c], 0
je 0x416622
push 6
push str.vmware
mov edx, dword [ebp - 0x2c]
add edx, 0x10c
push edx
call fcn.004da152
add esp, 0xc
test eax, eax
je 0x416618
push 8
mov eax, dword [ebp - 0x2c]
add eax, 0x194
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.004bb670
add esp, 0xc
movzx edx, byte [ebp - 0x11]
push edx
movzx eax, byte [ebp - 0x12]
push eax
movzx ecx, byte [ebp - 0x13]
push ecx
movzx edx, byte [ebp - 0x14]
push edx
movzx eax, byte [ebp - 0x15]
push eax
movzx ecx, byte [ebp - 0x16]
push ecx
movzx edx, byte [ebp - 0x17]
push edx
movzx eax, byte [ebp - 0x18]
push eax
push str._02x__02x__02x__02x__02x__02x__02x__02x
lea ecx, [ebp - 0x20]
push ecx
call fcn.004059c0
add esp, 0x28
jmp 0x416622
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov dword [ebp - 0x2c], eax
jmp 0x4165a3
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00405470
mov edx, dword [ebp - 0x3c]
or edx, 1
mov dword [ebp - 0x3c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0042f130
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b9002
mov esp, ebp
pop ebp
ret 4
Function at 0x416940
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x41696a
mov ecx, dword [ebp - 4]
and ecx, 0x10
je 0x41696a
mov dword [ebp - 8], 1
jmp 0x416971
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x416980
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59f091
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x5e632c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x268]
push ecx
call fcn.00416f80
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x26c]
call fcn.00405540
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x268]
call fcn.0042c9f0
movzx edx, al
test edx, edx
je 0x416a1c
mov dword [ebp - 0x270], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x26c]
call fcn.0042f130
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x268]
call fcn.0042f130
mov eax, dword [ebp - 0x270]
jmp 0x416bc7
push 0x5cbb98
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x274]
push ecx
call fcn.004192c0
add esp, 0xc
mov dword [ebp - 0x280], eax
lea edx, [ebp - 0x264]
push edx
mov ecx, dword [ebp - 0x280]
call fcn.004287b0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x274]
call fcn.0042f130
cmp dword [ebp - 0x10], 0xffffffff
je 0x416b88
push 0x5cbb9c
lea eax, [ebp - 0x238]
push eax
call fcn.004bc363
add esp, 8
test eax, eax
je 0x416a9e
push 0x5cbba0
lea ecx, [ebp - 0x238]
push ecx
call fcn.004bc363
add esp, 8
test eax, eax
jne 0x416aa3
jmp 0x416b65
lea edx, [ebp - 0x238]
push edx
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x278]
push ecx
call fcn.004192c0
add esp, 0xc
mov dword [ebp - 0x284], eax
mov edx, dword [ebp - 0x284]
mov dword [ebp - 0x288], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x288]
push eax
lea ecx, [ebp - 0x26c]
call fcn.00401b80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x278]
call fcn.0042f130
mov ecx, dword [ebp - 0x264]
and ecx, 0x10
je 0x416b18
lea ecx, [ebp - 0x26c]
call fcn.004287b0
push eax
call fcn.00416980
add esp, 4
jmp 0x416b65
mov edx, dword [ebp - 0x264]
and edx, 1
je 0x416b53
mov eax, dword [ebp - 0x264]
and eax, 0xfffffffe
push eax
lea ecx, [ebp - 0x26c]
call fcn.004287b0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x26c]
call fcn.004287b0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x416b65
lea ecx, [ebp - 0x26c]
call fcn.004287b0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x264]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x416a6e
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x268]
call fcn.004287b0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0x27c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x26c]
call fcn.0042f130
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x268]
call fcn.0042f130
mov eax, dword [ebp - 0x27c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b9002
mov esp, ebp
pop ebp
ret
Function at 0x416d40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x416d72
mov ecx, dword [ebp - 0xc]
and ecx, 0x10
neg ecx
sbb ecx, ecx
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x416d9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
je 0x416d9c
cmp dword [ebp - 8], 3
je 0x416d9c
cmp dword [ebp - 8], 0x7b
je 0x416d9c
mov edx, dword [ebp + 8]
push edx
call fcn.00416730
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x416db0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59f04a
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5e632c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.00416c80
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0042c9f0
movzx edx, al
test edx, edx
je 0x416e20
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042f130
mov eax, dword [ebp - 0x14]
jmp 0x416f71
lea ecx, [ebp - 0x10]
call fcn.004053b0
cmp eax, 3
jl 0x416e8b
lea ecx, [ebp - 0x10]
call fcn.004287b0
push eax
call fcn.00416940
add esp, 4
test eax, eax
jne 0x416e8b
lea ecx, [ebp - 0x10]
call fcn.004287b0
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004019a0
add esp, 8
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x34], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x2c]
or edx, 1
mov dword [ebp - 0x2c], edx
lea ecx, [ebp - 0x10]
call fcn.004287b0
push eax
mov ecx, dword [ebp - 0x34]
call fcn.00419020
test eax, eax
je 0x416e8b
mov dword [ebp - 0x38], 0
jmp 0x416e92
mov dword [ebp - 0x38], 1
mov al, byte [ebp - 0x38]
mov byte [ebp - 0x15], al
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
and ecx, 1
je 0x416eb3
and dword [ebp - 0x2c], 0xfffffffe
lea ecx, [ebp - 0x1c]
call fcn.0042f130
movzx edx, byte [ebp - 0x15]
test edx, edx
je 0x416ed9
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042f130
mov eax, dword [ebp - 0x20]
jmp 0x416f71
lea ecx, [ebp - 0x10]
call fcn.004287b0
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004019a0
add esp, 8
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x2c]
or edx, 2
mov dword [ebp - 0x2c], edx
mov ecx, dword [ebp - 0x40]
call fcn.004287b0
push eax
call fcn.00416db0
add esp, 4
test eax, eax
je 0x416f37
push 0
lea ecx, [ebp - 0x10]
call fcn.004287b0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x416f37
mov dword [ebp - 0x44], 1
jmp 0x416f3e
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
and ecx, 2
je 0x416f5f
and dword [ebp - 0x2c], 0xfffffffd
lea ecx, [ebp - 0x28]
call fcn.0042f130
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042f130
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x417320
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x5e632c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x240], 0
push 0
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0xffffffff
je 0x4173bf
mov dword [ebp - 0x238], 0x22c
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x23c]
push ecx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4173b2
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x214]
push eax
call fcn.004bc363
add esp, 8
test eax, eax
jne 0x41739b
mov ecx, dword [ebp - 0x230]
mov dword [ebp - 0x240], ecx
jmp 0x4173b2
lea edx, [ebp - 0x238]
push edx
mov eax, dword [ebp - 0x23c]
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x417376
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x240]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b9002
mov esp, ebp
pop ebp
ret