joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ef57c
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ba8
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x4ef6ff
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4ef6cf
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [edi], 0x128
push edi
push esi
call sub.kernel32.dll_Process32First
mov ebx, eax
jmp 0x4ef6bd
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00404968
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00409b4c
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.004ef52c
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.004ef52c
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00404b04
je 0x4ef69f
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00404968
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.004ef52c
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.004ef52c
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00404b04
jne 0x4ef6b4
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
push edi
push esi
call sub.kernel32.dll_Process32Next
mov ebx, eax
test ebx, ebx
jne 0x4ef600
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ef6d9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ef706
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.0040471c
lea eax, [ebp - 4]
call fcn.004046f8
ret
Function at 0x4ef728
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x144], ecx
mov dword [ebp - 0x148], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4ef856
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x101
call sub.kernel32.dll_GetLogicalDriveStringsA
test eax, eax
je 0x4ef82f
lea eax, [ebp - 0x105]
mov dword [ebp - 4], eax
jmp 0x4ef823
push 0x39
lea eax, [ebp - 0x13e]
push eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x148]
mov edx, dword [ebp - 4]
call fcn.004048f0
mov eax, dword [ebp - 0x148]
mov ecx, 2
mov edx, 1
call fcn.00404c18
mov eax, dword [ebp - 0x144]
call fcn.00404bb8
push eax
call sub.kernel32.dll_QueryDosDeviceA
lea eax, [ebp - 0x13e]
push eax
call sub.kernel32.dll_lstrlenA_1
mov ebx, eax
push ebx
push esi
lea eax, [ebp - 0x13e]
push eax
call sub.SHLWAPI.DLL_StrCmpNIA
test eax, eax
jne 0x4ef81f
lea eax, [ebp - 0x14c]
lea edx, [esi + ebx + 1]
call fcn.004048f0
mov eax, dword [ebp - 0x14c]
push eax
lea eax, [ebp - 0x150]
mov edx, dword [ebp - 4]
call fcn.004048f0
mov edx, dword [ebp - 0x150]
mov eax, edi
pop ecx
call fcn.00404a04
jmp 0x4ef838
add dword [ebp - 4], 4
mov eax, dword [ebp - 4]
cmp byte [eax], 0
jne 0x4ef787
mov eax, edi
mov edx, esi
call fcn.004048f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ef85d
lea eax, [ebp - 0x150]
mov edx, 4
call fcn.0040471c
ret

Function at 0x4ef864
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4ef8c3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x108]
push eax
push ebx
call sub.PSAPI.dll_GetProcessImageFileNameA
test eax, eax
jne 0x4ef8ab
mov eax, dword [ebp - 4]
call fcn.004046f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ef8d5
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x108]
call fcn.004ef728
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ef8d5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ef8dc
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
push 0x4ef970
call sub.kernel32.dll_GetModuleHandleA_2
mov esi, eax
test esi, esi
jne 0x4ef903
push 0x4ef970
call sub.kernel32.dll_LoadLibraryA
mov esi, eax
test esi, esi
je 0x4ef964
push 0x4ef980
push esi
call sub.kernel32.dll_GetProcAddress_1
mov edi, eax
push 0x4ef990
push esi
call sub.kernel32.dll_GetProcAddress_1
mov esi, eax
test edi, edi
je 0x4ef964
lea eax, [ebp - 4]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call edi
cmp dword [ebp - 4], 0
je 0x4ef93b
test esi, esi
jne 0x4ef93f
xor ebx, ebx
jmp 0x4ef941
mov bl, 1
test bl, bl
je 0x4ef964
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetNativeSystemInfo
mov ax, word [ebp - 0x28]
cmp ax, 9
je 0x4ef962
cmp ax, 6
je 0x4ef962
xor ebx, ebx
jmp 0x4ef964
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4efa84
Capabilities:
Create process on windows
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.00404ba8
mov eax, dword [ebp + 8]
call fcn.00404ba8
xor eax, eax
push ebp
push 0x4efce4
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4efcb1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x138], 0x128
lea eax, [ebp - 0x138]
push eax
push edi
call sub.kernel32.dll_Process32First
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x4efc99
mov eax, dword [ebp - 0x130]
cmp eax, dword [ebp - 8]
jne 0x4efc86
call fcn.0040bcc8
add esp, 0xfffffff8
fstp qword [esp]
wait
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004981c0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x1f4
jge 0x4efca1
cmp byte [0x4ff514], 1
jne 0x4efb52
cmp dword [ebp - 0x10], 0x1f4
jge 0x4efb66
mov eax, 0x1f4
sub eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_Sleep_1
jmp 0x4efb66
cmp dword [ebp - 0x10], 0xa
jge 0x4efb66
mov eax, 0xa
sub eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_Sleep_1
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 0xc]
call fcn.00409b4c
mov eax, dword [ebp - 0x13c]
lea edx, [ebp + 8]
call fcn.00408dd4
mov eax, dword [ebp + 8]
call fcn.004ef57c
push 0xc8
call sub.kernel32.dll_Sleep_1
mov eax, dword [ebp + 8]
mov edx, 0x4efcfc
call fcn.00404b04
je 0x4efbb2
mov eax, dword [ebp + 8]
mov edx, 0x4efd14
call fcn.00404b04
jne 0x4efbdb
push 1
push 0
mov eax, dword [0x4ff520]
call fcn.00404bb8
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404bb8
push eax
push 0x4efd28
push 0
call sub.shell32.dll_ShellExecuteA
jmp 0x4efca1
mov eax, dword [ebp + 8]
mov edx, 0x4efd38
call fcn.00404b04
jne 0x4efc01
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34c]
mov si, 0xffeb
call fcn.00403ab4
jmp 0x4efca1
mov eax, dword [ebp + 8]
mov edx, 0x4efd50
call fcn.00404b04
je 0x4efc4c
mov eax, dword [ebp + 8]
mov edx, 0x4efd6c
call fcn.00404b04
je 0x4efc4c
mov eax, dword [ebp + 8]
mov edx, 0x4efd80
call fcn.00404b04
je 0x4efc4c
mov eax, dword [ebp + 8]
mov edx, 0x4efd94
call fcn.00404b04
je 0x4efc4c
mov eax, dword [ebp + 8]
mov edx, 0x4efdac
call fcn.00404b04
jne 0x4efc60
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x344]
mov si, 0xffeb
call fcn.00403ab4
jmp 0x4efca1
push 1
push 0
mov eax, dword [0x4ff518]
call fcn.00404bb8
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404bb8
push eax
push 0x4efd28
push 0
call sub.shell32.dll_ShellExecuteA
jmp 0x4efca1
lea eax, [ebp - 0x138]
push eax
push edi
call sub.kernel32.dll_Process32Next
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4efafa
push edi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4efcbb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4efceb
lea eax, [ebp - 0x13c]
call fcn.004046f8
lea eax, [ebp - 0xc]
call fcn.004046f8
lea eax, [ebp + 8]
call fcn.004046f8
ret
Function at 0x4f1fc8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf8
push ebx
xor ecx, ecx
mov dword [ebp - 0x408], ecx
mov dword [ebp - 4], ecx
xor eax, eax
push ebp
push 0x4f20a6
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0
push 0x4f20b4
push 0
push edx
call sub.user32.dll_FindWindowExA
push 0
push 0x4f20bc
push 0
push eax
call sub.user32.dll_FindWindowExA
push 0
push 0x4f20cc
push 0
push eax
call sub.user32.dll_FindWindowExA
push 0
push 0x4f20e0
push 0
push eax
call sub.user32.dll_FindWindowExA
lea edx, [ebp - 0x404]
push edx
push 0x3ff
push 0xd
push eax
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x408]
lea edx, [ebp - 0x404]
mov ecx, 0x400
call fcn.00404968
mov eax, dword [ebp - 0x408]
lea edx, [ebp - 4]
call fcn.00408dd4
mov edx, dword [ebp - 4]
mov eax, 0x4f20f0
call fcn.0040e8c4
test eax, eax
jg 0x4f2083
mov edx, dword [ebp - 4]
mov eax, 0x4f210c
call fcn.0040e8c4
test eax, eax
jle 0x4f2085
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f20ad
lea eax, [ebp - 0x408]
call fcn.004046f8
lea eax, [ebp - 4]
call fcn.004046f8
ret

Function at 0x4f5288
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, eax
mov dword [esp + 4], 1
push esp
push 0xf003f
push 0
push 0x4f530c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [esp + 8], pe_nt_image_headers32
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0xc]
push eax
push 0
push 0x4f5350
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4f52ee
mov eax, ebx
lea edx, [esp + 0xc]
mov ecx, pe_nt_image_headers32
call fcn.00404968
jmp 0x4f52fa
mov eax, ebx
mov edx, 0x4f535c
call fcn.0040474c
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
add esp, 0x10c
pop ebx
ret

Function at 0x4f538c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ba8
xor eax, eax
push ebp
push 0x4f541a
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4f53f5
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00404bb8
push eax
lea eax, [ebp - 8]
call fcn.004f5288
mov eax, dword [ebp - 8]
call fcn.00404bb8
push eax
push 0x4f5428
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f53ff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f5421
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040471c
ret
Function at 0x40163f
Capabilities:
Terminate process

Disassembly:
push 0x438
mov eax, 0x4022d0
call fcn.00401d0d
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0x43c], eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea eax, [ebp - 0x434]
push eax
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x438], ebx
mov dword [ebp - 4], ebx
call fcn.004021c9
cmp eax, ebx
jne 0x401697
mov eax, 0x80070003
or dword [ebp - 4], 0xffffffff
jmp 0x40179d
push dword [ebp - 0x434]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jle 0x4016b1
mov eax, 0x800700a1
jmp 0x40168e
push dword [ebp - 0x434]
mov edi, 0x105
push edi
mov esi, 0x403020
push esi
call fcn.00401571
cmp eax, ebx
jne 0x40168e
lea eax, [ebp - 0x444]
push eax
call fcn.004018ac
cmp eax, ebx
jne 0x40168e
push dword [ebp - 0x440]
mov ebx, 0x4011ec
push dword [ebp - 0x444]
lea eax, [ebp - 0x220]
push esi
push ebx
push edi
push eax
call fcn.004015e0
add esp, 0x18
test eax, eax
jl 0x40168e
mov eax, dword [ebp - 0x444]
mov ecx, dword [ebp - 0x440]
add eax, 1
adc ecx, 0
push ecx
push eax
push esi
push ebx
lea eax, [ebp - 0x42c]
push edi
push eax
call fcn.004015e0
add esp, 0x18
test eax, eax
jl 0x40168e
cmp dword [ebp + 8], 1
jle 0x40174d
mov eax, dword [ebp - 0x43c]
push dword [eax + 4]
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
mov dword [ebp - 0x438], eax
cmp dword [ebp + 8], 2
jle 0x40175e
mov eax, dword [ebp - 0x43c]
mov eax, dword [eax + 8]
jmp 0x401764
mov eax, dword [ebp - 0x430]
push eax
push dword [ebp - 0x438]
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00401385
jmp 0x40168e
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4018ac
Capabilities:
Delete registry value
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x403020
mov dword [ebp - 0x470], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
xor ebx, ebx
push eax
mov dword [ebp - 0x464], ebx
mov dword [ebp - 0x460], ebx
xor edi, edi
call fcn.00401571
test eax, eax
jl 0x401a34
push 0x401294
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0040186b
mov esi, eax
test esi, esi
jl 0x401a34
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x46c], eax
cmp eax, 0xffffffff
jne 0x401961
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40194b
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, 0x80070002
jne 0x401a32
xor esi, esi
inc esi
jmp 0x401a32
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x430]
push 0x401278
push eax
call dword [sym.imp.msvcrt.dll_swscanf]
mov eax, dword [ebp - 0x464]
mov ecx, dword [ebp - 0x460]
add esp, 0xc
sub eax, edi
sbb ecx, ebx
js 0x4019a4
jg 0x401995
test eax, eax
jbe 0x4019a4
cmp ecx, 0x7fff
jl 0x4019b9
jg 0x4019a4
cmp eax, 0xffffffff
jb 0x4019b9
cmp ecx, 0xffff8000
jl 0x4019b9
jg 0x4019b3
cmp eax, 1
jb 0x4019b9
mov eax, edi
or eax, ebx
jne 0x4019c5
mov edi, dword [ebp - 0x464]
mov ebx, dword [ebp - 0x460]
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x46c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401961
mov eax, dword [ebp - 0x470]
mov dword [eax], edi
mov dword [eax + 4], ebx
lea eax, [ebp - 0x468]
push eax
push 0x20006
push 0
push 0x401248
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401a26
push 0x40122c
push dword [ebp - 0x468]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x468]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x46c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401ced
leave
ret 4
Function at 0x1001c480
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
push esi
push edi
push 0
push 0
mov esi, ecx
mov eax, dword [esi + 4]
push 0xb
push eax
call ebx
mov ecx, dword [esi + 0x24]
push 0
push 0
push 0x1304
push ecx
call ebx
cmp eax, 1
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
jne 0x1001c4ba
mov edx, dword [esi + 0x24]
push 0
push edx
call ebp
test byte [esi + 0x7c], 1
mov edi, dword [esp + 0x14]
mov ecx, esi
je 0x1001c4d5
push edi
call fcn.1000a570
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x1001c4e0
push 0
push edi
call fcn.1000a570
push eax
call ebp
push edi
mov ecx, esi
call fcn.1000a0f0
push eax
call fcn.1001f27c
mov eax, dword [esi + 0x24]
add esp, 4
push 0
push edi
push 0x1308
push eax
call ebx
mov eax, dword [esi + 0x50]
cmp edi, eax
jne 0x1001c56e
test edi, edi
mov dword [esi + 0x50], 0xffffffff
jle 0x1001c517
add edi, 0xffffffff
push edi
jmp 0x1001c57b
mov ecx, dword [esi + 0x24]
push 0
push 0
push 0x1304
push ecx
call ebx
test eax, eax
jg 0x1001c514
mov edx, dword [esi + 4]
push 0
push 1
push 0xb
push edx
call ebx
mov eax, dword [esi + 4]
push 1
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, esi
call fcn.1000abd0
mov ecx, esi
call fcn.1000b610
mov edx, dword [esi + 0x50]
push edx
mov ecx, esi
call fcn.10009fd0
pop edi
pop esi
pop ebp
pop ebx
ret 4
jge 0x1001c573
add eax, 0xffffffff
mov dword [esi + 0x50], 0xffffffff
push eax
mov ecx, esi
call fcn.1000b6e0
mov edx, dword [esi + 0x50]
push edx
mov ecx, esi
call fcn.10009fd0
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x1001e809
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100397c0]
jne 0x1001e813
repz ret
jmp fcn.10022987
Function at 0x10022703
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x10039928]
je 0x1002271e
inc edi
cmp edi, 0x17
jb 0x1002270f
cmp edi, 0x17
jae 0x1002289e
push ebp
push 3
call fcn.10028db0
cmp eax, 1
pop ecx
je 0x1002286a
push 3
call fcn.10028db0
test eax, eax
pop ecx
jne 0x10022752
cmp dword [0x1003adc4], 1
je 0x1002286a
cmp ebx, 0xfc
je 0x1002289d
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x1003af70
push ebp
call fcn.10020731
add esp, 0xc
test eax, eax
je 0x10022788
push esi
push esi
push esi
push esi
push esi
call fcn.10020050
add esp, 0x14
push 0x104
mov esi, 0x1003af89
push esi
push 0
mov byte [0x1003b08d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100227cc
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.10020731
add esp, 0xc
test eax, eax
je 0x100227cc
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10020050
add esp, 0x14
push esi
call fcn.10021440
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10022811
push esi
call fcn.10021440
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x1003b284
push 0x1002fce4
sub ecx, eax
push ecx
push eax
call fcn.10020796
add esp, 0x14
test eax, eax
je 0x10022811
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10020050
add esp, 0x14
jmp 0x10022813
xor esi, esi
push 0x100310c0
push ebx
push ebp
call fcn.10020849
add esp, 0xc
test eax, eax
je 0x10022833
push esi
push esi
push esi
push esi
push esi
call fcn.10020050
add esp, 0x14
push dword [edi*8 + 0x1003992c]
push ebx
push ebp
call fcn.10020849
add esp, 0xc
test eax, eax
je 0x10022855
push esi
push esi
push esi
push esi
push esi
call fcn.10020050
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.10028bf3
add esp, 0xc
jmp 0x1002289d
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1002289d
cmp ebp, 0xffffffff
je 0x1002289d
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1003992c]
push dword [esi]
call fcn.10021440
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10028bf3
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10023d33
xor ebx, ebx
cmp dword [0x1003b794], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10028cc9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10028da9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x10028da9
push eax
call fcn.10023cc5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1003b794], eax
call esi
push eax
call fcn.10023cc5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1003b798], eax
call esi
push eax
call fcn.10023cc5
mov dword [0x1003b79c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.100224b0
test eax, eax
pop ecx
pop ecx
je 0x10028c97
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10020050
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10028cc9
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10023cc5
cmp eax, ebx
pop ecx
mov dword [0x1003b7a4], eax
je 0x10028cc9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10023cc5
pop ecx
mov dword [0x1003b7a0], eax
mov eax, dword [0x1003b7a0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x10028d4e
cmp dword [0x1003b7a4], ecx
je 0x10028d4e
push eax
call fcn.10023d3c
push dword [0x1003b7a4]
mov esi, eax
call fcn.10023d3c
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x10028d4e
cmp edi, ebx
je 0x10028d4e
call esi
cmp eax, ebx
je 0x10028d1b
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10028d1b
test byte [ebp - 0x18], 1
jne 0x10028d4e
lea eax, [ebp - 0x10]
push eax
call fcn.100224e7
test eax, eax
pop ecx
je 0x10028d36
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10020050
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x10028d45
or dword [ebp + 0x10], 0x200000
jmp 0x10028d89
or dword [ebp + 0x10], 0x40000
jmp 0x10028d89
mov eax, dword [0x1003b798]
cmp eax, dword [ebp - 8]
je 0x10028d89
push eax
call fcn.10023d3c
cmp eax, ebx
pop ecx
je 0x10028d89
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10028d89
mov eax, dword [0x1003b79c]
cmp eax, dword [ebp - 8]
je 0x10028d89
push eax
call fcn.10023d3c
cmp eax, ebx
pop ecx
je 0x10028d89
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1003b794]
call fcn.10023d3c
cmp eax, ebx
pop ecx
je 0x10028da9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10028dab
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402f24
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040471c
test esi, esi
jne 0x402f5b
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.0040480c
jmp 0x402f7c
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402dc0
mov dword [esp], eax
test esi, esi
je 0x402f7c
cmp dword [ebx], 0
je 0x402f7c
dec esi
jmp 0x402f63
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x40373c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x502020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4037d4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4037b4
xor eax, eax
push ebp
push 0x4037ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4037f0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4037b4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x502020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x502020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4044f4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x50904c], 0
je 0x404555
cmp word [0x509220], 0xd7b2
jne 0x40451d
cmp dword [0x509228], 0
jbe 0x40451d
mov eax, 0x50921c
call dword [0x509238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x50206c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40457c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x502030], 0
jne 0x404571
push 0
push 0x502064
push 0x50206c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4046d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402b4c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x50904d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404698
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc