joyce8/EMBER2024-capa huggingface dataset:
Function at 0x489dc0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x489e0c
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x489e0c
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x489df6
push eax
call ebp
test ax, ax
jl 0x489e04
inc esi
add edi, 4
cmp esi, 6
jb 0x489de8
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.00489ac0
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x48cc00
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x48cc60
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x48cc60
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x48cc60
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x48cc60
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x48cca0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x4987e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4987eb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x4988ee
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x7e2688]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x7e2688]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x7e2688]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x7e2688]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x7e2688]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x7e2688]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x7e2688]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x7e2688]
xor eax, edx
inc ecx
dec edi
jne 0x498806
pop edi
test esi, esi
je 0x498910
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x7e2688]
xor eax, edx
inc ecx
dec esi
jne 0x4988f2
pop esi
pop ebx
not eax
ret
Function at 0x4a1390
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
jne 0x4a13a0
mov esi, 1
push esi
call fcn.004b7ad7
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4a13f2
call fcn.004b93c0
mov edi, eax
call fcn.004a3ef0
mov ecx, dword [edi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov edi, eax
and edi, 8
je 0x4a13d6
mov edx, dword [0x806cc8]
mov dword [0x806cc4], edx
test al, 0x18
je 0x4a13e7
push esi
push 0x24
push 5
call fcn.004a4740
add esp, 0xc
test edi, edi
je 0x4a140d
push 1
call fcn.004b909b
test byte [esp + 0x14], 0x20
je 0x4a140d
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x4a2510
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov edx, dword [ebp + 0x10]
test edx, edx
push ebx
push esi
push edi
je 0x4a2604
cmp byte [edx], 0
je 0x4a25f7
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
add eax, 8
or ecx, 0xffffffff
mov dword [esp + 0xc], eax
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x20]
push ecx
mov esi, ebx
call fcn.004a2490
mov edi, dword [ebp + 0xc]
push 8
lea edx, [esp + 0x20]
push edi
push edx
call fcn.004a2490
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
xor eax, edx
push eax
xor ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.004a2400
mov eax, dword [esp + 0x30]
add esp, 0x24
cmp edi, eax
jae 0x4a25c1
sub eax, edi
mov edi, eax
lea eax, [esp + 0x20]
push eax
call fcn.004a2440
fmul qword [0x7e2d38]
push ecx
fstp qword [esp]
call fcn.004b6428
fadd qword [0x7e2d30]
add esp, 8
call fcn.004b64f8
mov byte [ebx], al
inc ebx
dec edi
jne 0x4a2594
lea ecx, [esp + 0x20]
push ecx
call fcn.004a2440
fmul qword [0x7e2d38]
push ecx
fstp qword [esp]
call fcn.004b6428
add esp, 8
call fcn.004b64f8
cmp esi, ebx
je 0x4a25ed
xor byte [esi], al
inc esi
cmp esi, ebx
jne 0x4a25e6
mov byte [ebx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov byte [edx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
pop esi
mov byte [eax], 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a29d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
lea eax, [ebx + 0x134]
push edi
lea esi, [ebx + 0x34]
mov dword [esp + 0x14], eax
xor edi, edi
mov ecx, dword [ebx + 0x1c]
mov ebp, edi
and ebp, 0xff
mov al, byte [ecx + ebp + 1]
test al, 3
je 0x4a2a00
mov byte [edi + esi], 2
jmp 0x4a2a37
test al, 4
je 0x4a2a0a
mov byte [edi + esi], 0xd
jmp 0x4a2a37
mov edx, dword [ebx + 0x240]
push edi
push ebx
call dword [edx + 4]
add esp, 8
cmp eax, 1
jle 0x4a2a23
mov byte [edi + esi], 2
jmp 0x4a2a37
mov eax, dword [ebx + 0x1c]
test byte [eax + ebp + 1], 0x17
jne 0x4a2a33
mov byte [edi + esi], 0x19
jmp 0x4a2a37
mov byte [edi + esi], 1
inc edi
cmp edi, 0x100
jb 0x4a29e7
mov ecx, dword [esp + 0x14]
mov al, 7
mov byte [esi + 0x21], al
mov byte [esi + 0x3d], al
mov byte [esi + 0x3e], al
mov al, 0x10
mov byte [esi + 0x7c], al
mov byte [esi + 0x26], al
mov byte [esi + 0x24], 2
mov byte [esi + 0x5f], 2
mov byte [esi + 0x27], 9
mov byte [esi + 0x2e], 0xf
mov byte [esi + 0x3c], 8
mov byte [esi + 0x23], 0xa
mov byte [esi + 0x3b], 0x15
mov byte [esi + 0x3a], 0x16
mov byte [esi], 0x11
mov byte [esi + 0x5c], 0x12
mov byte [esi + 0x2f], 0x13
mov byte [esi + 0x2a], 0x14
mov byte [esi + 0x40], 0x17
mov byte [esi + 0x60], 0x1a
mov byte [esi + 0x22], 0x20
mov eax, esi
sub ecx, esi
mov edi, 0x100
mov dl, byte [eax]
cmp dl, 2
je 0x4a2aab
cmp dl, 0xd
je 0x4a2aab
xor edx, edx
jmp 0x4a2ab0
mov edx, 1
mov byte [ecx + eax], dl
inc eax
dec edi
jne 0x4a2a9b
mov al, 0x1d
mov byte [esi + 0x58], al
mov byte [esi + 0x78], al
mov al, 0x1f
pop edi
mov byte [esi + 0x62], 0x1e
mov byte [esi + 0x4e], al
mov byte [esi + 0x6e], al
pop esi
pop ebp
pop ebx
ret

Function at 0x4a2ad0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push ebx
push 0x4000
call fcn.004a1390
mov esi, eax
add esp, 8
test esi, esi
jne 0x4a2af1
pop edi
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esp + 0x10]
push ebx
push 0
push eax
call fcn.004a4130
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x4a2b16
push esi
call fcn.004a1420
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
ret
push ebp
push 0x4000
push esi
push edi
call fcn.004c36ca
push ebx
push edi
mov ebp, eax
call fcn.004a41a0
push 0x4a2b50
push ebp
push esi
call fcn.004a54d0
push esi
call fcn.004a1420
add esp, 0x24
pop ebp
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x4a3e60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push 0x8fb1c0
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x8fb0f0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x4a3edb
push 0x4c
push 1
call fcn.004b8521
mov esi, eax
add esp, 8
test esi, esi
jne 0x4a3ea3
push 0x8fb1c0
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret
mov ecx, dword [0x8fb0f0]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x8f0570]
inc eax
lea edx, [esi + 0xc]
mov dword [0x8f0570], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 4]
push 0
push eax
call fcn.004a79a0
add esp, 8
mov byte [esi + 0x3c], 1
push 0x8fb1c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret

Function at 0x4a4360
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.004b93c0
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.004c36ca
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x4a445a
call fcn.004b93c0
cmp dword [eax], 0
je 0x4a43a7
call fcn.004b93c0
mov ebp, dword [eax]
jmp 0x4a43aa
or ebp, 0xffffffff
call fcn.004a3ef0
test esi, esi
mov dword [eax], ebp
jne 0x4a43bf
call fcn.004b93c0
cmp dword [eax], 4
je 0x4a440f
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x4a43f2
cmp esi, 0xffffffff
je 0x4a4434
test al, 6
je 0x4a43f2
call fcn.004a3ef0
mov ecx, dword [eax]
push ecx
push ebx
call fcn.004a79d0
add esp, 4
push eax
push 0x24
push 9
call fcn.004a4740
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x4a4452
test al, 6
je 0x4a4400
test ah, 2
je 0x4a4452
test esi, esi
jbe 0x4a445e
test ah, 2
je 0x4a445e
add dword [esp + 0x18], esi
sub edi, esi
call fcn.004b93c0
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.004c36ca
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x4a445a
jmp 0x4a4394
call fcn.004a3ef0
mov eax, dword [eax]
push eax
push ebx
call fcn.004a79d0
add esp, 4
push eax
push 0x24
push 2
call fcn.004a4740
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x20]
test al, 6
je 0x4a446b
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test ah, 2
je 0x4a4474
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x4ba485
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4ba4a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004b934d
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4ba4c8
test byte [esp + 8], 2
je 0x4ba4c8
call fcn.004b93c0
mov dword [eax], 0xd
call fcn.004b93c9
mov dword [eax], 5
jmp 0x4ba4a1
xor eax, eax
ret
Function at 0x4cd272
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4cd2aa
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.004cb2fc
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004cb2d4
jmp 0x4cd2b6
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4ce964
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 0x4ce9a6
call fcn.004d48e4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4ce9a6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ce99d
xor eax, eax
jmp 0x4ce9ae
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ce9b4
pop edi
pop esi
pop ebx
ret 4

Function at 0x4d4e14
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 0x4d4e42
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d4e60
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d4d7a
jmp 0x4d4e60
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d4e60
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d4d7a
test edi, edi
mov eax, edi
jne 0x4d4e4a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401218
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4021e8
push 0x4013a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
push 2
call sym.imp.MSVCRT.dll___set_app_type
nop
pop ecx
or dword [0x403134], 0xffffffff
or dword [0x403138], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x403128]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x403124]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x403130], eax
call fcn.0040139d
cmp dword [0x403044], ebx
jne 0x40129b
push 0x40139a
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00401388
push 0x403014
push 0x403010
call sub.MSVCRT.dll__initterm
mov eax, dword [0x403120]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push dword [0x40311c]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x40300c
push section..data
call sub.MSVCRT.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.MSVCRT.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x40132e
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x401302
cmp al, 0x22
jne 0x4012f4
cmp byte [esi], 0x22
jne 0x40130b
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x401315
cmp al, 0x20
jbe 0x401307
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x401339
movzx eax, word [ebp - 0x2c]
jmp 0x40133c
cmp byte [esi], 0x20
jbe 0x40130b
inc esi
mov dword [ebp - 0x74], esi
jmp 0x40132e
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x78], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x401180
Capabilities:
Delete directory

Disassembly:
mov al, byte [esp + 8]
test al, al
jne 0x401194
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
ret
mov ecx, dword [esp + 4]
push ecx
call fcn.00401910
add esp, 4
mov eax, 1
ret

Function at 0x4011b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4011ca
test al, 0x10
jne 0x4011ca
mov eax, 1
ret
xor eax, eax
ret

Function at 0x4011e0
Capabilities:
Move file

Disassembly:
sub esp, 0x98
mov eax, dword [0x410240]
xor eax, esp
push ebx
mov ebx, dword [esp + 0xa0]
mov dword [esp + 0x98], eax
push esi
mov esi, dword [esp + 0xa8]
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x18]
cmp eax, 2
jne 0x401250
test esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
je 0x401232
push 5
push 0
push esi
call edi
push 5
push esi
push ebx
call edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00404293
add esp, 0x98
ret
push str.wininit.ini
push esi
push ebx
push str.rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [esp + 0x9c]
pop esi
pop ebx
xor ecx, esp
call fcn.00404293
add esp, 0x98
ret

Function at 0x401290
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
mov eax, dword [esp + 0xc]
test eax, eax
push esi
mov esi, dword [esp + 0xc]
jne 0x4012b1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4012b1
test al, 0x10
jne 0x4012b1
xor eax, eax
pop esi
ret
mov eax, dword [esp + 8]
push 3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop esi
ret
Function at 0x4012d0
Capabilities:
Check if file exists
Create directory
Enumerate files on windows
Enumerate files recursively
Get file attributes
Move file

Disassembly:
push 0xffffffffffffffff
push 0x40cd8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd48
mov eax, dword [0x410240]
xor eax, esp
push ebp
mov ebp, dword [esp + 0xd60]
push esi
mov esi, dword [esp + 0xd60]
push edi
push esi
mov dword [esp + 0xd54], eax
lea eax, [esp + 0x954]
push str._s.
push eax
call fcn.004042cf
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x954]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401445
mov dword [esp + 0xc], edi
mov dword [esp + 0xd5c], 0
lea ecx, [ecx]
lea eax, [esp + 0x3c]
push 0x40d1f8
push eax
call fcn.00403fe6
add esp, 8
test eax, eax
je 0x401426
lea ecx, [esp + 0x3c]
push 0x40d1f4
push ecx
call fcn.00403fe6
add esp, 8
test eax, eax
je 0x401426
lea edx, [esp + 0x3c]
push edx
push esi
lea eax, [esp + 0x558]
push str._s_s
push eax
call fcn.004042cf
lea ecx, [esp + 0x4c]
push ecx
push ebp
lea edx, [esp + 0x168]
push str._s_s
push edx
call fcn.004042cf
mov al, byte [esp + 0x30]
add esp, 0x20
test al, 0x10
lea eax, [esp + 0x550]
je 0x401415
push ebp
push eax
call fcn.0040407a
add esp, 8
test eax, eax
je 0x401426
lea ecx, [esp + 0x150]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4013eb
test al, 0x10
jne 0x4013fb
push 0
lea edx, [esp + 0x154]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [esp + 0x150]
push eax
lea ecx, [esp + 0x554]
push ecx
call fcn.004012d0
add esp, 8
jmp 0x401426
push 3
lea edx, [esp + 0x154]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401350
test edi, edi
je 0x401445
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0xd54]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xd48]
pop ebp
xor ecx, esp
call fcn.00404293
add esp, 0xd54
ret

Function at 0x401640
Capabilities:
Copy file

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
ret
Function at 0x401910
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x544
mov eax, dword [0x410240]
xor eax, esp
push esi
mov esi, dword [esp + 0x54c]
push edi
push esi
mov dword [esp + 0x54c], eax
lea eax, [esp + 0x14c]
push str._s.
push eax
call fcn.004042cf
add esp, 0xc
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401a04
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
jmp 0x401970
lea eax, [esp + 0x38]
push 0x40d1f8
push eax
call fcn.00403fe6
add esp, 8
test eax, eax
je 0x4019e5
lea ecx, [esp + 0x38]
push 0x40d1f4
push ecx
call fcn.00403fe6
add esp, 8
test eax, eax
je 0x4019e5
lea edx, [esp + 0x38]
push edx
push esi
lea eax, [esp + 0x154]
push str._s_s
push eax
call fcn.004042cf
mov al, byte [esp + 0x1c]
add esp, 0x10
test al, 0x10
je 0x4019d1
lea ecx, [esp + 0x14c]
push ecx
call fcn.00401910
add esp, 4
jmp 0x4019e5
push 0
lea edx, [esp + 0x150]
push 0
push edx
call fcn.00401660
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push edi
call ebp
test eax, eax
jne 0x401970
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop ebp
mov ecx, dword [esp + 0x548]
pop edi
pop esi
xor ecx, esp
call fcn.00404293
add esp, 0x544
ret

Function at 0x401bf0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d250
push 0x40538c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x144
mov eax, dword [0x410240]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x154], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14c], ecx
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x150], esi
cmp esi, 0xffffffff
jne 0x401c50
xor eax, eax
jmp 0x401cfc
mov dword [ebp - 0x148], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x144], edi
mov ecx, 0x49
xor eax, eax
lea edi, [ebp - 0x140]
rep stosd dword es:[edi], eax
mov ebx, 0x128
mov dword [ebp - 0x144], ebx
lea edx, [ebp - 0x144]
push edx
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x401cea
lea ebx, [ebx]
mov eax, dword [ebp - 0x154]
push eax
lea ecx, [ebp - 0x120]
push ecx
call fcn.0040407a
add esp, 8
test eax, eax
jne 0x401cc4
mov edx, dword [ebp - 0x13c]
mov eax, dword [ebp - 0x14c]
mov dword [eax], edx
mov dword [ebp - 0x148], 1
jmp 0x401cea
mov ecx, 0x4a
xor eax, eax
lea edi, [ebp - 0x144]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x144], ebx
lea ecx, [ebp - 0x144]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401c90
mov dword [ebp - 4], 0xffffffff
call fcn.00401d1d
mov eax, dword [ebp - 0x148]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00404293
mov esp, ebp
pop ebp
ret
Function at 0x401d30
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x401d39
ret
lea ecx, [esp + 4]
push ecx
push eax
mov dword [esp + 0xc], 0
call fcn.00401bf0
add esp, 8
test eax, eax
jne 0x401d59
mov eax, 1
ret
mov edx, dword [esp + 4]
mov dword [esp + 4], edx
jmp fcn.00401b20

Function at 0x4022b0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x60]
lea edx, [esp + 0x18]
push edx
push eax
push eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x74]
or eax, 0x8000000
push eax
push 0
push 0
push 0
push ecx
push 0
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
jne 0x40230b
add esp, 0x54
ret
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x40231f
mov edx, dword [esp]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
mov eax, 1
pop esi
add esp, 0x54
ret

Function at 0x402340
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov eax, dword [esp + 4]
push eax
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
ret