joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401482
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea eax, [ebp - 0x124]
sub esp, 0x14c
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [0x42bc10]
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], ebx
or eax, 8
mov dword [esp + 0xc], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
jne 0x4015a6
mov eax, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea edi, [ebp - 0x11d]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x124]
mov dword [esp + 0xc], 0x105
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [ebp - 0x12c]
sub esp, 0x10
test eax, eax
jne 0x401540
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp - 0x124]
je 0x401525
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
mov eax, 1
jmp 0x4015a6
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.00401482
sub esp, 0xc
test eax, eax
je 0x4014db
mov eax, dword [ebp - 0x124]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov dword [esp], 4
call fcn.00408299
test eax, eax
push edi
je 0x401581
mov edx, dword [0x42bc10]
mov dword [esp + 0xc], 0
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 8], edx
call eax
sub esp, 0x10
jmp 0x4015a6
cmp dword [0x42bc10], 0
mov eax, 1
jne 0x4015a6
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
push edx
push edx
setne al
movzx eax, al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x4039fe
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x64
cmp dword [ebp + 8], 0
je 0x403a2d
mov eax, dword [0x41bc60]
test eax, eax
je 0x403a1e
mov dword [esp], eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push ecx
mov dword [0x41bc60], 0
jmp 0x403ae4
cmp dword [0x41bc60], 0
je 0x403a48
mov dword [esp], 0
call fcn.00408848
push edx
jmp 0x403ae4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x42bc80]
jbe 0x403ae4
cmp dword [0x42bca4], 0
je 0x403a9b
test byte [0x42bc14], 1
je 0x403ae4
lea ebx, [ebp - 0x48]
call fcn.0040392c
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str....__d__
call dword [sym.imp.USER32.dll_wsprintfA]
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.00406fcb
jmp 0x403ae2
mov eax, dword [0x42bca8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x40395e
mov dword [esp + 8], 0
mov dword [esp + 4], 0x6f
mov dword [esp], eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
sub esp, 0x14
mov dword [0x41bc60], eax
mov dword [esp + 4], 5
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push eax
push eax
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x403ae9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0xc]
sub esp, 0x34
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [0x40a014]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x403b2a
xor eax, eax
cmp dword [ebp - 0xc], ebx
sete al
mov ebx, dword [ebp - 4]
leave
ret 8
Function at 0x403b63
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [ebp + 8]
add ebx, dword [0x427d18]
sub ebx, dword [0x427d1c]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
mov dword [0x42bc80], eax
test ebx, ebx
jle 0x403d35
mov eax, dword [0x427d14]
lea edi, [ebp - 0x1c]
mov dword [esp], eax
call fcn.00403b31
mov eax, dword [0x427d1c]
push ecx
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [0x40a010]
mov dword [esp], eax
call esi
mov dword [0x427d0c], ebx
sub esp, 0x10
mov dword [0x427d08], 0
mov dword [ebp - 0x2c], esi
mov ebx, dword [0x427d10]
sub ebx, dword [0x427d14]
mov eax, 0x4000
mov dword [esp], 0x423c80
cmp ebx, 0x4000
cmovg ebx, eax
mov dword [esp + 4], ebx
call fcn.00403ae9
test eax, eax
push edx
push edx
je 0x403d45
add dword [0x427d14], ebx
mov dword [0x427c98], 0x423c80
mov dword [0x427c9c], ebx
cmp dword [0x42bc20], 0
je 0x403c68
cmp dword [0x42bc00], 0
jne 0x403c68
mov eax, dword [ebp + 8]
add eax, dword [0x427d18]
sub eax, dword [0x427d1c]
mov ecx, dword [0x427d0c]
mov dword [esp], 0
sub ecx, eax
mov dword [0x427d08], ecx
call fcn.004039fe
mov ecx, 0x427c80
mov dword [0x427ca0], 0x41bc80
mov dword [0x427ca4], 0x8000
call fcn.0040893d
test eax, eax
js 0x403cec
mov esi, dword [0x427ca0]
sub esi, 0x41bc80
je 0x403cdf
mov eax, dword [0x40a010]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], 0x41bc80
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x403cf3
cmp esi, dword [ebp - 0x1c]
jne 0x403cf3
add dword [0x427d1c], esi
cmp dword [0x427c9c], 0
jne 0x403c2d
jmp 0x403cfa
cmp dword [0x427c9c], 0
jne 0x403cec
test ebx, ebx
jne 0x403cfa
mov eax, 0xfffffffd
jmp 0x403d48
mov eax, 0xfffffffe
jmp 0x403d48
mov edx, dword [0x427d18]
mov eax, dword [ebp + 8]
add eax, edx
sub eax, dword [0x427d1c]
test eax, eax
jg 0x403be3
mov eax, dword [0x40a010]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [ebp - 0x2c]
sub esp, 0x10
mov dword [esp], 1
call fcn.004039fe
xor eax, eax
jmp 0x403d48
or eax, 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
Function at 0x403d52
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [ebp + 8]
test eax, eax
js 0x403d92
add eax, dword [0x42bc78]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [0x427d18], eax
mov dword [esp + 4], eax
mov eax, dword [0x40a010]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
mov dword [esp], 4
call fcn.00403b63
test eax, eax
push ecx
mov edx, eax
js 0x403ef7
lea eax, [ebp - 0x20]
lea edi, [ebp - 0x24]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 4
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [esp + 4], eax
mov eax, dword [0x40a010]
mov dword [esp + 0xc], edi
mov dword [esp], eax
call ebx
sub esp, 0x14
test eax, eax
je 0x403ea8
cmp dword [ebp - 0x24], 4
jne 0x403ea8
mov eax, dword [ebp - 0x20]
add dword [0x427d18], 4
mov dword [esp], eax
call fcn.00403b63
test eax, eax
push edx
mov esi, eax
mov edx, eax
js 0x403ef7
cmp dword [ebp + 0x10], 0
jne 0x403eba
mov dword [ebp - 0x2c], ebx
jmp 0x403e64
cmp ebx, dword [ebp - 0x24]
jne 0x403ea8
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x423c80
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x403eaf
cmp ebx, dword [ebp - 0x1c]
jne 0x403eaf
mov eax, dword [ebp - 0x24]
sub dword [ebp - 0x20], eax
add dword [0x427d18], eax
add esi, eax
mov eax, dword [ebp - 0x20]
test eax, eax
jle 0x403eb6
mov edx, 0x4000
cmp eax, 0x4000
mov dword [esp + 0x10], 0
mov ebx, edx
mov dword [esp + 0xc], edi
mov dword [esp + 4], 0x423c80
cmovle ebx, eax
mov eax, dword [0x40a010]
mov dword [esp + 8], ebx
mov dword [esp], eax
call dword [ebp - 0x2c]
sub esp, 0x14
test eax, eax
jne 0x403e1a
mov edx, 0xfffffffd
jmp 0x403ef7
mov edx, 0xfffffffe
jmp 0x403ef7
mov edx, esi
jmp 0x403ef7
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 0x20], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov esi, eax
mov eax, dword [ebp + 0x10]
cmovle esi, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [0x40a010]
mov dword [esp + 8], esi
mov dword [esp], eax
call ebx
sub esp, 0x14
test eax, eax
je 0x403ea8
mov edx, dword [ebp - 0x24]
add dword [0x427d18], edx
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
Function at 0x4076b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea eax, [ebp - 0x38]
lea edi, [ebp - 0x2c]
sub esp, 0x3c
mov esi, dword [ebp + 8]
mov byte [ebp - 0x2c], 1
mov byte [ebp - 0x2b], 0
mov word [ebp - 0x2a], 4
mov dword [ebp - 0x28], 0x40b6b0
mov dword [ebp - 0x24], 0x40b6b0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x40b6a0
mov dword [ebp - 0x38], 0xc
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
push edx
push edx
je 0x407714
xor eax, eax
jmp 0x407741
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
jne 0x407741
mov dword [esp + 8], edi
mov dword [esp + 4], 0x80000007
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
sub esp, 0xc
test eax, eax
jne 0x407710
call ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4

Function at 0x407779
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [0x42b740], 0x44
lea eax, [ebp - 0x18]
mov dword [esp + 0x20], 0x42b740
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor edx, edx
sub esp, 0x28
test eax, eax
je 0x4077f5
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
push eax
mov eax, edx
leave
ret 4

Function at 0x407a46
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
push edx
je 0x407a71
and eax, 0xfffffffe
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push eax
push eax
mov ebx, dword [ebp - 4]
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
push edx
mov edx, 0
cmove eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
mov ebx, dword [ebp - 4]
leave
ret 0xc
Function at 0x407ad4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea edi, [ebp - 0x1c]
mov esi, 0x65
sub esp, 0x2c
mov ebx, dword [ebp + 8]
dec esi
je 0x407b2b
mov dword [ebp - 0x1c], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x1a
xor edx, edx
mov dword [esp + 0xc], ebx
div ecx
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], 0
mov dword [esp + 4], edi
add byte [ebp - 0x1a], dl
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
sub esp, 0x10
test eax, eax
je 0x407ae8
mov eax, ebx
jmp 0x407b30
mov byte [ebx], 0
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8

Function at 0x407b3a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea edx, [ebp - 0x14]
sub esp, 0x34
cmp dword [ebp + 0x18], 1
mov ebx, dword [ebp + 0x14]
mov byte [ebx], 0
mov dword [esp + 0x10], edx
sbb eax, eax
mov dword [esp + 8], 0
xor al, al
add eax, 0x20119
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
jne 0x407bdc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x400
mov dword [esp + 0x10], ebx
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 0x18
test eax, eax
jne 0x407bc5
mov eax, dword [ebp - 0xc]
dec eax
cmp eax, 1
jbe 0x407bc8
mov byte [ebx], 0
mov eax, dword [ebp - 0x14]
mov byte [ebx + 0x3ff], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
mov ebx, dword [ebp - 4]
leave
ret 0x14
Function at 0x40815b
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [esp], 0x42af40
mov dword [esp + 4], eax
call fcn.00407cb6
push ebx
push ebx
mov dword [esp], 0x42af40
call fcn.00407935
test eax, eax
push esi
jne 0x40818d
xor eax, eax
jmp 0x408205
mov dword [esp], eax
mov ebx, eax
call fcn.00407d37
test byte [0x42bc84], 0x80
push ecx
je 0x4081ab
mov al, byte [ebx]
test al, al
je 0x408189
cmp al, 0x5c
je 0x408189
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub ebx, 0x42af40
mov dword [esp], 0x42af40
call esi
push ecx
cmp ebx, eax
mov dword [esp], 0x42af40
jge 0x4081ea
call fcn.00408123
test eax, eax
push edx
je 0x4081db
test byte [eax], 0x10
je 0x408189
mov dword [esp], 0x42af40
call fcn.004078ce
push eax
jmp 0x4081b7
call fcn.00407cf2
push eax
mov dword [esp], 0x42af40
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
inc eax
push edx
setne al
movzx eax, al
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 4

Function at 0x40820e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp - 0x126]
sub esp, 0x134
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push edx
push edx
lea edx, [eax - 1]
cmp edx, 0x103
ja 0x40824b
xor edx, edx
cmp byte [ebp + eax - 0x127], 0x5c
sete dl
jmp 0x408252
xor eax, eax
mov edx, 1
mov ecx, dword [ebp + 8]
add edx, 0x40b4a0
add eax, ebx
mov dword [esp + 8], edx
mov dword [esp + 4], str._s_s.dll
mov dword [esp], eax
mov dword [esp + 0xc], ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov dword [esp], ebx
mov dword [esp + 8], 8
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
sub esp, 0xc
mov ebx, dword [ebp - 4]
leave
ret 4
Function at 0x408898
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42b7a4], 0
push ebp
mov ebp, esp
push esi
push ebx
mov edx, dword [ebp + 0xc]
je 0x4088b5
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
jmp 0x4088e3
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
and eax, 1
neg eax
shr esi, 1
and eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x4088be
mov dword [ecx*4 + 0x42b7a0], eax
inc ecx
cmp ecx, 0x100
jne 0x4088b7
jmp 0x4088a9
cmp edx, ebx
je 0x4088fc
inc edx
mov cl, al
shr eax, 8
xor cl, byte [edx - 1]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x42b7a0]
jmp 0x4088e3
pop ebx
not eax
pop esi
pop ebp
ret 0xc
Function at 0x1001b9e6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1001ba09
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_SaveDC]
jmp 0x1001ba3c
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x1001ba3c
push 0
push 0
push 0
push 0
push 0x138a
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esp, ebp
pop ebp
ret
Function at 0x1002333c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x10023377
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x10023375
push 0
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
push 0
push 0
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
jmp 0x100233aa
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x100233aa
push 0
push 0
push 0
push 0
push 0x138a
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esp, ebp
pop ebp
ret
Function at 0x100342e5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x10034413
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
push 0x14
push 0
push 0x21a0
push 0x1f3a
call fcn.10029624
pop ecx
pop ecx
call eax
push eax
push 0x21a0
push 0x266c
call fcn.10029624
pop ecx
pop ecx
call eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
push 0x16c9
push 0x5418
lea eax, [ebp - 0xc]
push eax
push 1
push 0x4510
lea eax, [ebp - 8]
push eax
call fcn.10034215
add esp, 0x18
mov eax, dword [ebp - 8]
mov eax, dword [eax]
and dword [eax + 0xc], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
and dword [eax + 8], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
and dword [eax + 0x10], 0
push 4
push 0x1000
mov eax, dword [ebp - 0x10]
push dword [eax + 0x50]
mov eax, dword [ebp - 0xc]
push dword [eax]
push 0x21a0
push 0x2406
call fcn.10029624
pop ecx
pop ecx
call eax
push 4
push 0x1000
mov eax, dword [ebp - 0x10]
push dword [eax + 0x54]
mov eax, dword [ebp - 0xc]
push dword [eax]
push 0x21a0
push 0x2406
call fcn.10029624
pop ecx
pop ecx
call eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 0x10]
add eax, dword [ecx + 0x54]
push eax
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
push dword [eax]
call fcn.1002978f
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x18]
add eax, dword [ecx + 0x3c]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov dword [ecx], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 1
call fcn.1003428d
add esp, 0xc
jmp 0x1003443c
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1003443c
push 0
push 0
push 0
push 0
push 0x138a
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esp, ebp
pop ebp
ret
Function at 0x10034cf2
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
push 0x4aee
lea eax, [ebp - 0x10]
push eax
push 1
push 0x72
lea eax, [ebp + 8]
push eax
call fcn.10034440
add esp, 0x14
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x10034d29
xor eax, eax
jmp 0x10034e8f
push 0x7dcc
lea eax, [ebp + 8]
push eax
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
call fcn.100349f2
add esp, 0x14
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x10034d56
xor eax, eax
jmp 0x10034e8f
push 0x54e7
lea eax, [ebp - 0xc]
push eax
push 1
push dword [ebp - 8]
call fcn.10034171
add esp, 0x10
cmp dword [ebp - 0xc], 0
jne 0x10034d79
xor eax, eax
jmp 0x10034e8f
push dword [ebp - 0x10]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push 1
lea eax, [ebp - 0xc]
push eax
call fcn.100342e5
add esp, 0x18
lea eax, [ebp - 8]
push eax
push 0x3839
push 0x21b6
push 0x75f2
push 0x32c9
push 0x56cd
lea eax, [ebp + 8]
push eax
push 0x61a9
push 0x6cef
push 0x425d
push 1
lea eax, [ebp - 4]
push eax
call fcn.10034a53
add esp, 0x30
push 1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.10034ba1
add esp, 0x10
cmp dword [ebp - 0x14], 0
je 0x10034e09
push dword [ebp - 0x14]
push 0x12c6
push 0
push dword [ebp - 4]
push 0xa48
call fcn.10034440
add esp, 0x14
push dword [ebp - 4]
call fcn.1003405d
pop ecx
test eax, eax
jne 0x10034e1a
xor eax, eax
jmp 0x10034e8f
push 1
lea eax, [ebp - 4]
push eax
push 0x1b04
push 0x738b
call fcn.10034bfd
add esp, 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x10034e77
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x10034e51
xor eax, eax
jmp 0x10034e8f
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x10034e6a
xor eax, eax
jmp 0x10034e8f
push 1
lea eax, [ebp - 4]
push eax
call fcn.10034cb0
pop ecx
pop ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x10034e88
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x10034e8c
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x1004a5cf
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1004a5f7
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add eax, 4
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x1004a614
push 0
push 0
push 0
push 0
push 0x138a
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esp, ebp
pop ebp
ret
Function at 0x1005c510
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 5]
and ecx, 0xf
movzx edx, byte [0x1267f8cb]
or ecx, edx
mov byte [ebp - 1], cl
movzx ax, byte [ebp - 1]
movzx ecx, ax
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 4]
push ecx
push 0x1267ff90
call fcn.10058fd0
add esp, 8
mov esp, ebp
pop ebp
ret 4

Function at 0x10062300
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1009339c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x20], ax
xor ecx, ecx
mov word [ebp - 0x1e], cx
cmp dword [ebp + 8], 0xffffffff
jne 0x10062324
jmp 0x10062393
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x10062338
jmp 0x10062393
movsx ecx, word [ebp - 0x1c]
movsx edx, word [ebp - 0x1a]
imul ecx, edx
mov dword [ebp - 0x24], ecx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
push 0x20
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
test eax, eax
jne 0x10062364
jmp 0x10062393
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
movzx ecx, word [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
test eax, eax
jne 0x10062385
jmp 0x10062393
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10073f95
mov esp, ebp
pop ebp
ret