joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4024d8
Capabilities:
Print debug messages
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
push ebx
push esi
push edi
push 0x47c8e0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x76c
push 0x47c0e0
call fcn.00402116
pop ecx
pop ecx
push str.GetModuleFileNameA
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.A3F0D
push 0x2cfff
push 0x44f0e0
mov dword [ebp - 0x14], eax
call fcn.00401e6b
and byte [ebp - 0x118], 0
add esp, 0xc
xor eax, eax
lea edi, [ebp - 0x117]
push 0x40
mov ebx, 0x104
pop ecx
mov esi, str._SpnetcnEkmdpFmkcod
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x118]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x118]
push eax
push esi
call fcn.0040e9b0
push esi
call fcn.0040ee50
add esp, 0xc
cmp byte [eax + 0x47c683], 0x5c
jne 0x40258e
push esi
call fcn.0040ee50
and byte [eax + 0x47c683], 0
pop ecx
and byte [ebp - 0x21c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x21b]
and byte [ebp - 0xb], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.Dvnbu_dzd
lea eax, [ebp - 0x10]
push esi
push eax
lea eax, [ebp - 0x21c]
mov byte [ebp - 0x10], 0x25
push eax
mov byte [ebp - 0xf], 0x73
mov byte [ebp - 0xe], 0x5c
mov byte [ebp - 0xd], 0x25
mov byte [ebp - 0xc], 0x73
call fcn.0040edef
xor esi, esi
push ebx
lea eax, [ebp - 0x320]
push esi
push eax
call fcn.0040e4b0
add esp, 0x1c
lea eax, [ebp - 0x320]
push ebx
push eax
push esi
call dword [ebp - 0x14]
lea eax, [ebp - 0x320]
push 0x47c8c8
push eax
call fcn.0040eddc
pop ecx
cmp eax, esi
pop ecx
jne 0x402617
push esi
call fcn.0040ed2e
pop ecx
push 1
call fcn.0040ec1d
and byte [ebp - 4], 0
mov byte [ebp - 8], 0x4d
mov byte [ebp - 7], 0x61
mov byte [ebp - 6], 0x69
mov byte [ebp - 5], 0x6e
lea eax, [ebp - 8]
push eax
call fcn.00401ea7
mov dword [esp], 0x36ee80
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40262b
Function at 0x422c10
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00411870
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x422cdb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x422cdb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x422c8e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x422c99
or bh, 8
and edi, 0x8000000
je 0x422cb4
mov eax, dword [0x484bdc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x422cdb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4230b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4230db
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4230ff
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x42311a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x4284c1
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4284f9
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.0042b917
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0042b8ef
jmp 0x428505
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x428509
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x482dc0
mov ecx, edi
call fcn.0042b5f9
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x42855c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x42856f
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.0042b917
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0042b8ef
jmp 0x42856f
mov ecx, esi
call fcn.0042ac2f
test eax, eax
je 0x42856f
push edi
mov ecx, eax
call fcn.004284c1
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x42a2c3
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 0x42a305
call fcn.00436bb2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x42a305
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x42a2fc
xor eax, eax
jmp 0x42a30d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0042a313
pop edi
pop esi
pop ebx
ret 4
Function at 0x1001f28e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x1001f29d
pop dword [ebp - 0x2c]
mov eax, 0x1001f29d
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x427af
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0x4592
mov edx, eax
mov edi, 0xa57718a
add edi, 0x5c10076
add edi, dword [ebp - 0x2c]
mov esi, 0x5db156b0
sub esi, 0xf37a51d0
xor dword [ebp - 0xc], 0xf7f5f4db
mov ebx, dword [edi]
xor ebx, esi
mov dword [ebp - 0x10], 0x1b7806c2
mov dword [edx], ebx
mov dword [ebp - 0x28], 0x8d504400
add edx, 0x24323d6c
sub edx, 0x24323d68
add edi, 4
loop 0x1001f2ec
add eax, 0x4ec91bc7
add eax, 0xb137ed54
mov ebx, eax
add eax, 0x5d37dcdb
add eax, 0xa2c8232a
mov ecx, 0x10000000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x10071ed0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x2d], 0
jne 0x10071f6b
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push esi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x10071f22
mov byte [edi + 0x2d], 0xff
test esi, esi
je 0x10071f22
cmp esi, ebx
jge 0x10071f22
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 0
je 0x10071f65
add dword [edi + 0x1c], ebx
cmp dword [edi + 0x1c], 0xffff
jle 0x10071f65
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x100783dc]
call esi
mov ecx, dword [edi + 0x18]
push 1
push dword [edi + 0x20]
mov esi, dword [ecx]
push eax
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x100783dc]
call dword [esi + 0xc]
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
jmp 0x10071f7d
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop edi
leave
ret 0xc

Function at 0x100721a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100bb864]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10176174], 0
mov eax, dword [ebp + 8]
je 0x100721c8
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x100721e2
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.1001f28e
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.100762d0
leave
ret 4

Function at 0x100723b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x100bb864]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10176174], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x100723e6
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x10072445
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call fcn.1001f28e
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.1001f28e
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.1001f28e
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100762d0
leave
ret 0x10
Function at 0x10072460
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100bb864]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10176174], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x1007248c
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x100724bd
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x100724bb
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.1001f28e
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x100724bd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100762d0
leave
ret 8
Function at 0x401164
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x401f44
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x401177
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x4013e6
Capabilities:
Accept command line arguments

Disassembly:
mov esi, dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
xor edi, edi
push edi
push edi
call esi
push eax
call sub.KERNEL32.DLL_GetCommandLineA
push eax
push 0x403145
push 0x4050a4
push 0x118
push edi
push 0x404e99
push edi
call esi
push eax
push fcn.00403204
push 0x2000000
call fcn.004017c8
add esp, 0xc
push eax
call fcn.00408b60
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1778]
xor ecx, ebp
call fcn.00408ba0
leave
ret 4

Function at 0x401b79
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x472060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x218], edi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
test eax, eax
jne 0x401bb7
mov eax, 0x80004005
jmp 0x401c3e
push esi
lea eax, [ebp - 0x210]
push eax
push 0x2000000
xor esi, esi
push esi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401c3b
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, 0x104
jmp 0x401bf2
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call fcn.00401b79
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x210]
mov dword [ebp - 0x214], ebx
call edi
test eax, eax
je 0x401be0
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x218]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00401ad8
leave
ret 8

Function at 0x401c50
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push esi
mov esi, dword [0x4720d0]
push edi
mov edi, 0x4720d0
cmp esi, edi
je 0x401c8d
jmp 0x401c83
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov edx, eax
or edx, ecx
je 0x401c81
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
and dword [esi + 8], 0
and dword [esi + 0xc], 0
mov esi, dword [esi]
test esi, esi
jne 0x401c65
mov dword [0x4720d0], edi
pop edi
pop esi
ret
Function at 0x401ce4
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
xor ebx, ebx
push ebx
push 0x30
lea eax, [ebp - 0x48]
push eax
push 3
mov byte [esi], bl
call dword [0x409af8]
test eax, eax
jne 0x401d6e
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x3c]
sbb ecx, dword [ebp - 0x44]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
cmp word [ebp - 0x14], bx
jne 0x401d6e
cmp word [ebp - 0x12], bx
jne 0x401d6e
cmp word [ebp - 0x10], 0xa
jge 0x401d6e
mov eax, dword [0x4720d0]
cmp eax, 0x4720d0
je 0x401d71
test byte [eax + 0x1c], 8
je 0x401d71
movsx ecx, word [ebp - 0xc]
push ecx
movsx ecx, word [ebp - 0xe]
push ecx
movsx ecx, word [ebp - 0x10]
push ecx
push ebx
push ebx
push 0x402b0b
push 0x21
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00401000
jmp 0x401d71
mov byte [esi], 1
xor eax, eax
pop ebx
leave
ret

Function at 0x401d80
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x40531c
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x401d93
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x401ffc
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x47201c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00401e00
lea eax, [ebp - 0x210]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00403508
xor esi, esi
test eax, eax
jl 0x402091
push ebx
push 0x20019
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
cmp ebx, esi
je 0x4020cf
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
push eax
call sub.KERNEL32.DLL_GetCommandLineA
push eax
push 0x405059
push fcn.00403508
push 0x3d
push esi
push 0x404e99
push esi
push edi
push 0x4081b2
jmp 0x4020bc
push 3
pop ebx
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
push eax
call sub.KERNEL32.DLL_GetCommandLineA
push eax
push 0x405059
push fcn.00403508
push 0x43
push esi
push 0x404e99
push esi
push edi
push 0x408989
push 0x2000000
call fcn.004017c8
add esp, 0xc
push eax
call fcn.00408b60
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00408ba0
leave
ret 8
Function at 0x40218a
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
push edi
xor edi, edi
push edi
push edi
call esi
push eax
call sub.KERNEL32.DLL_GetCommandLineA
push eax
push 0x4020f1
mov ebx, 0x4050a4
push ebx
push 0x144
push edi
mov edi, 0x404e99
push edi
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push fcn.00404468
push 0x4000000
call fcn.004017c8
add esp, 0x14
push eax
call fcn.00408b60
push 4
push 4
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00402fe4
test eax, eax
mov dword [ebp - 4], eax
jge 0x40223b
push 0
push 0
call esi
push eax
call sub.KERNEL32.DLL_GetCommandLineA
push eax
push 0x4020f1
push ebx
push 0x148
push 0
push edi
push 0
push dword [ebp - 4]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push fcn.00402fe4
push 0x2000000
call fcn.004017c8
add esp, 0x18
push eax
call fcn.00408b60
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4023ac
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
cmp edi, esi
jbe 0x402432
cmp edi, 2
jbe 0x402422
cmp edi, 4
jne 0x402432
mov edi, dword [ebp + 8]
push 0xa
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [edi]
call fcn.00401ffc
mov ebx, eax
add esp, 0x10
cmp ebx, esi
je 0x402473
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
push eax
call sub.KERNEL32.DLL_GetCommandLineA
push eax
push fcn.00401a54
push fcn.00403508
push 0x99
push esi
push 0x404e99
push esi
push ebx
push dword [edi]
push fcn.0040218a
push 0x4000000
call fcn.004017c8
add esp, 0x10
jmp 0x40246a
push dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00401e00
jmp 0x402473
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
push eax
call sub.KERNEL32.DLL_GetCommandLineA
push eax
push fcn.00401a54
push fcn.00403508
push 0x9f
push esi
push 0x404e99
push esi
push edi
push 0x404e99
push 0x4000000
call fcn.004017c8
add esp, 0xc
push eax
call fcn.00408b60
push 0xb
pop esi
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x4026dc
Capabilities:
Accept command line arguments
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
push ebx
xor edi, edi
push edi
push dword [ebp + 0x10]
mov dword [ebx], edi
push edi
push dword [ebp + 0xc]
mov dword [esi], edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x40278f
mov eax, dword [ebx]
add eax, 4
push eax
call sub.KERNEL32.DLL_GetCommandLineA
cmp eax, edi
pop ecx
mov dword [esi], eax
je 0x4027de
push dword [ebx]
push edi
push eax
call fcn.004073f4
add esp, 0xc
push ebx
push dword [esi]
push dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
mov dword [ebp - 4], eax
je 0x4027de
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
push eax
call sub.KERNEL32.DLL_GetCommandLineA
push eax
push 0x4045fd
push fcn.00403508
push 0x61
push edi
push 0x404e99
push edi
push dword [ebp - 4]
push 0x40355e
push 0x2000000
call fcn.004017c8
add esp, 0xc
push eax
call fcn.00408b60
push dword [esi]
call sub.KERNEL32.DLL_VirtualProtect
pop ecx
mov dword [esi], edi
jmp 0x4027de
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
push eax
call sub.KERNEL32.DLL_GetCommandLineA
push eax
push 0x4045fd
push fcn.00403508
xor ecx, ecx
cmp dword [ebp - 4], 2
push 0x6c
push edi
setne cl
push 0x404e99
push edi
push dword [ebp - 4]
mov eax, 0x2000000
push dword [ebp + 0xc]
dec ecx
and ecx, eax
add ecx, eax
push fcn.0040218a
push ecx
call fcn.004017c8
add esp, 0x10
push eax
call fcn.00408b60
mov eax, dword [ebp - 4]
pop edi
leave
ret 0xc