joyce8/EMBER2024-capa huggingface dataset:
Function at 0x68bd20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x68bd58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x68bd60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x68bd94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x68bd94
push eax
push esi
call fcn.0068e20b
add esp, 8
pop esi
ret 0x10

Function at 0x68bda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x68be22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x68be15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x6a4320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0068ddff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x68bdda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x68be30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x68bec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x68beb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x6a4320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0068ddff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x68beab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x68be6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x68c000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x68c131
push esi
call fcn.0068f145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.0067e080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x68c131
push 0
push ebp
call fcn.0067e3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.0067e260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x68c08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.0067e2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x68c121
push 0x6a4918
push edi
call fcn.0068d3f0
push eax
push ebx
push esi
call fcn.0068bf60
push 0x6a48f8
push edi
call fcn.0068d3f0
push eax
push ebx
push esi
call fcn.0068bf60
push 0x6a48d8
push edi
call fcn.0068d3f0
push eax
push ebx
push esi
call fcn.0068bf60
push 0x6a48c0
push edi
call fcn.0068d3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.0068bf60
push 0x6a48a0
push edi
call fcn.0068d3f0
push eax
push ebx
push esi
call fcn.0068bf60
push 0x6a4888
push edi
call fcn.0068d3f0
push eax
push ebx
push esi
call fcn.0068bf60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x68d1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.0068d140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0068d140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0068d140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0068d140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x68dbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x68dc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x69f87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x68dc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x68dc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x404100
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x18c8
call fcn.00411920
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [0x498688]
push ebx
push esi
mov dword [ebp - 8], ecx
mov ecx, dword [0x49868c]
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], ecx
call fcn.004040f0
mov ebx, dword [ebp - 0xc]
mov edx, dword [0x498690]
mov eax, dword [0x498694]
mov edi, dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
add ebx, 0x23f
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], 0x20
jmp 0x404170
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov esi, dword [ebp - 8]
mov eax, dword [0x49fe24]
shl esi, 4
add esi, dword [ebp - 0x20]
cmp eax, 0xfa9
jne 0x40419c
mov dword [0x49fe20], 0xedeb2e40
jmp 0x4041b7
cmp eax, 0x3eb
jne 0x4041b7
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [0x49f8b0], 0
mov ecx, dword [ebp - 8]
add ecx, ebx
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x24]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x49fe24], 0x9e6
mov dword [0x49fe1c], 0xf4ea3dee
jne 0x4041ef
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x49fe24], 0x213
jne 0x40428b
push 0
lea eax, [ebp - 0xcc8]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrencyFormatW]
lea ecx, [ebp - 0x4c8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x10c8]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommBreak]
push 0
push 0
push 0
call edi
push 0
push 0
lea ecx, [ebp - 0x18c8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0
push 0
call edi
lea edx, [ebp - 0x2c]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea eax, [ebp - 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, dword [ebp - 0x10]
sub esi, dword [ebp - 4]
cmp dword [0x49fe24], 0xc
mov dword [ebp - 0x10], esi
jne 0x4042a5
push 0
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
mov edx, esi
shr edx, 5
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
mov eax, esi
shl eax, 4
add eax, dword [ebp - 0x18]
lea ecx, [ebx + esi]
xor eax, ecx
xor eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
sub dword [ebp - 8], eax
add ebx, 0x61c88647
sub dword [ebp - 0x14], 1
jne 0x404170
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
pop edi
pop esi
mov dword [eax], edx
mov dword [eax + 4], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404300
Capabilities:
Connect pipe
Create process on windows
Create reverse shell
Read pipe
Set environment variable
Set thread local storage value
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00411920
mov eax, dword [0x49fe24]
mov ecx, dword [0x49f8b4]
shr eax, 3
test eax, eax
jbe 0x40441e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [0x49fe24], 0x959
jne 0x404404
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
push 0
push 0
call ebx
push 0
lea ecx, [ebp - 0xc08]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea edx, [ebp - 0x808]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
lea eax, [ebp - 0x1008]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [ebp - 4]
push ecx
call fcn.00404100
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x404340
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a8cf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x497470]
jne 0x40a8d9
repz ret
jmp fcn.00410773

Function at 0x40be1c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004076e2
and dword [ebp - 4], 0
cmp dword [0x49d89c], 0
mov ebx, eax
jne 0x40becd
push 0x4034d4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40bf7e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4034c8
push edi
call esi
test eax, eax
je 0x40bf7e
push eax
call fcn.00407670
mov dword [esp], 0x4034b8
push edi
mov dword [0x49d89c], eax
call esi
push eax
call fcn.00407670
mov dword [esp], 0x4034a4
push edi
mov dword [0x49d8a0], eax
call esi
push eax
call fcn.00407670
mov dword [esp], 0x403488
push edi
mov dword [0x49d8a4], eax
call esi
push eax
call fcn.00407670
pop ecx
mov dword [0x49d8ac], eax
test eax, eax
je 0x40becd
push 0x403470
push edi
call esi
push eax
call fcn.00407670
pop ecx
mov dword [0x49d8a8], eax
mov eax, dword [0x49d8a8]
cmp eax, ebx
je 0x40bf25
cmp dword [0x49d8ac], ebx
je 0x40bf25
push eax
call fcn.004076eb
push dword [0x49d8ac]
mov esi, eax
call fcn.004076eb
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40bf25
test edi, edi
je 0x40bf25
call esi
test eax, eax
je 0x40bf1c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40bf1c
test byte [ebp - 0xc], 1
jne 0x40bf25
or dword [ebp + 0x10], 0x200000
jmp 0x40bf5e
mov eax, dword [0x49d8a0]
cmp eax, ebx
je 0x40bf5e
push eax
call fcn.004076eb
pop ecx
test eax, eax
je 0x40bf5e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40bf5e
mov eax, dword [0x49d8a4]
cmp eax, ebx
je 0x40bf5e
push eax
call fcn.004076eb
pop ecx
test eax, eax
je 0x40bf5e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x49d89c]
call fcn.004076eb
pop ecx
test eax, eax
je 0x40bf7e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40bf80
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x612df0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x163000]
push edi
or ebp, 0xffffffff
jmp 0x612e12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x612e19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x612e08
mov eax, 1
add ebx, ebx
jne 0x612e2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x612e3c
jne 0x612e5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x612e5b
dec eax
add ebx, ebx
jne 0x612e48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x612e20
add ebx, ebx
jne 0x612e57
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x612ead
xor ecx, ecx
sub eax, 3
jb 0x612e73
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x612ee2
sar eax, 1
mov ebp, eax
jmp 0x612e7e
add ebx, ebx
jne 0x612e7e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x612e4c
inc ecx
add ebx, ebx
jne 0x612e8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x612e4c
add ebx, ebx
jne 0x612e99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x612e8e
jne 0x612eaa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x612e8e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x612ecc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x612ebe
jmp 0x612e0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x612ecc
add edi, ecx
jmp 0x612e0e
pop esi
mov edi, esi
mov ecx, 0xa231
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x612eea
cmp byte [edi], 0x19
jne 0x612eea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x612eef
lea edi, [esi + 0x200000]
mov eax, dword [edi]
or eax, eax
je 0x612f67
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x22c5a8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x22c74c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x612f1c
mov ecx, edi
jns 0x612f4b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x22c750]
or eax, eax
je 0x612f61
mov dword [ebx], eax
add ebx, 4
jmp 0x612f39
call dword [esi + 0x22c760]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x612f98
cmp al, 0xef
ja 0x612f8b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x612f6d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x612f7a
mov ebp, dword [esi + 0x22c754]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x612fcc
sub esp, 0xffffff80
jmp 0x529bcb
Function at 0x401030
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call fcn.00402990
add esp, 4
test eax, eax
je 0x40105c
push 0x412a18
call fcn.00402c37
add esp, 4
call section..text
push 1
call fcn.00402bf7
pop ebp
ret

Function at 0x401060
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call fcn.00402740
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
je 0x4010c3
call fcn.00402740
sub eax, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x12
cmp eax, edx
jge 0x4010c3
call fcn.004029d0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4010c1
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
cmp dword [ebp - 8], ecx
je 0x4010b4
cmp dword [ebp - 8], 0
jne 0x4010bf
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
cmp eax, 0x40
jne 0x4010bf
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
jmp 0x4010c1
jmp 0x4010c3
jmp 0x40106e
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
test eax, eax
je 0x4010e6
push 0x412a40
call fcn.00402c37
add esp, 4
call section..text
push 1
call fcn.00402bf7
mov esp, ebp
pop ebp
ret
Function at 0x401ec0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call fcn.00402740
mov dword [ebp - 4], eax
call fcn.004029d0
mov byte [ebp - 0x10], al
movsx eax, byte [ebp - 0x10]
cmp eax, 0xffffffff
jne 0x401eee
call fcn.00402740
sub eax, dword [ebp - 4]
cmp eax, 0x12
jge 0x401eee
jmp 0x401ece
movsx ecx, byte [ebp - 0x10]
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
cmp ecx, eax
jne 0x401f14
mov ecx, dword [ebp + 8]
push ecx
push 0x4218c8
call fcn.00402c37
add esp, 8
mov eax, 1
jmp 0x401f50
movsx edx, byte [ebp - 0x10]
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax]
cmp edx, ecx
jne 0x401f37
mov edx, dword [ebp + 0xc]
push edx
push 0x4218cc
call fcn.00402c37
add esp, 8
xor eax, eax
jmp 0x401f50
push 0x4218d0
call fcn.00402c37
add esp, 4
call section..text
push 1
call fcn.00402bf7
mov esp, ebp
pop ebp
ret

Function at 0x402940
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
cmp dword [0x421a98], 0xffffffff
je 0x402978
push 0
lea ecx, [ebp - 8]
push ecx
push 1
lea edx, [ebp - 4]
push edx
mov eax, dword [0x421a98]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x40297d
or eax, 0xffffffff
jmp 0x40297f
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4029d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
cmp dword [0x421a98], 0xffffffff
je 0x402a09
push 0
lea eax, [ebp - 8]
push eax
push 1
lea ecx, [ebp - 1]
push ecx
mov edx, dword [0x421a98]
push edx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x402a09
cmp dword [ebp - 8], 1
je 0x402a0e
or eax, 0xffffffff
jmp 0x402a12
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x402b36
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x422194], esi
push edi
jne 0x402b56
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x422190], esi
mov byte [0x42218c], al
jne 0x402bbc
mov ecx, dword [0x42370c]
test ecx, ecx
je 0x402b9d
mov eax, dword [0x423708]
sub eax, 4
cmp eax, ecx
jmp 0x402b96
mov eax, dword [eax]
test eax, eax
je 0x402b88
call eax
mov eax, dword [0x423708]
sub eax, 4
cmp eax, dword [0x42370c]
mov dword [0x423708], eax
jae 0x402b80
mov eax, 0x40a020
mov esi, 0x40a02c
cmp eax, esi
mov edi, eax
jae 0x402bbc
mov eax, dword [edi]
test eax, eax
je 0x402bb5
call eax
add edi, 4
cmp edi, esi
jb 0x402bad
mov eax, 0x40a030
mov esi, 0x40a034
cmp eax, esi
mov edi, eax
jae 0x402bdb
mov eax, dword [edi]
test eax, eax
je 0x402bd4
call eax
add edi, 4
cmp edi, esi
jb 0x402bcc
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x402bf5
push dword [ebp + 8]
mov dword [0x422194], 1
call fcn.00402a9c
pop ebp
ret
Function at 0x402fa5
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x408120
call fcn.004049f4
mov edi, 0x94
mov eax, edi
call fcn.00404b50
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x422154], ecx
mov eax, dword [esi + 4]
mov dword [0x422160], eax
mov edx, dword [esi + 8]
mov dword [0x422164], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x422158], esi
cmp ecx, 2
je 0x403005
or esi, 0x8000
mov dword [0x422158], esi
shl eax, 8
add eax, edx
mov dword [0x42215c], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x40303e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40303e
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x403056
cmp eax, 0x20b
je 0x403043
mov dword [ebp - 0x1c], edi
jmp 0x40306a
cmp dword [ecx + 0x84], 0xe
jbe 0x40303e
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x403064
cmp dword [ecx + 0x74], 0xe
jbe 0x40303e
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push edi
call fcn.004049a1
pop ecx
test eax, eax
jne 0x403096
cmp dword [0x4221a4], 2
je 0x403083
call fcn.004043e6
push 0x1c
call fcn.0040426f
push 0xff
call fcn.00402a9c
pop ecx
pop ecx
call fcn.00403228
mov dword [ebp - 4], edi
call fcn.00403c88
test eax, eax
jge 0x4030af
push 0x1b
call fcn.00402f80
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x4226e0], eax
call fcn.00404865
mov dword [0x42219c], eax
call fcn.004047c3
test eax, eax
jge 0x4030d5
push 8
call fcn.00402f80
pop ecx
call fcn.00404590
test eax, eax
jge 0x4030e6
push 9
call fcn.00402f80
pop ecx
push 1
call fcn.00402acc
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x4030fc
push eax
call fcn.00402f80
pop ecx
mov eax, dword [0x422174]
mov dword [0x422178], eax
push eax
push dword [0x42216c]
push dword [0x422168]
call fcn.004010f0
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x40312b
push esi
call fcn.00402bf7
call fcn.00402c19
jmp 0x40315d
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.00404a2f
ret