joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406e91
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x422821
call fcn.00414798
mov eax, 0x1034
call fcn.00414900
mov eax, dword [0x431d24]
and dword [ebp - 0x101c], 0
and dword [ebp - 0x1018], 0
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1024], eax
lea eax, [ebp - 0x1018]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x1020], eax
xor eax, eax
inc eax
cmp dword [ebp - 0x1018], eax
mov dword [ebp - 0x1014], eax
jle 0x406fd7
push ebx
push edi
xor eax, eax
xor ebx, ebx
mov word [ebp - 0x1010], bx
mov ecx, 0x1ff
lea edi, [ebp - 0x100e]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x1014]
stosw word es:[edi], ax
mov eax, dword [ebp - 0x1020]
push dword [eax + ecx*4]
lea eax, [ebp - 0x1010]
push eax
call fcn.00414a86
lea eax, [ebp - 0x1010]
push eax
call fcn.0041493d
push dword [ebp - 0x1024]
xor eax, eax
mov word [ebp - 0x810], bx
mov ecx, 0x1ff
lea edi, [ebp - 0x80e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x810]
push eax
call fcn.00414a86
lea eax, [ebp - 0x810]
push eax
call fcn.0041493d
add esp, 0x18
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1040]
call fcn.00405af3
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x810]
push ecx
mov ecx, eax
call fcn.00404049
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
or dword [ebp - 4], 0xffffffff
xor edi, edi
push 0
inc edi
push edi
lea ecx, [ebp - 0x1040]
call fcn.00403c42
test bl, bl
jne 0x406fcf
inc dword [ebp - 0x1014]
mov eax, dword [ebp - 0x1014]
cmp eax, dword [ebp - 0x1018]
jl 0x406ef7
jmp 0x406fd5
mov dword [ebp - 0x101c], edi
pop edi
pop ebx
push dword [ebp - 0x1020]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x101c]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00413d8f
leave
ret
Function at 0x407483
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
mov eax, 0x4228b8
call fcn.00414798
sub esp, 0x33c
mov eax, dword [0x431d24]
xor eax, ebp
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x238], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x23c], esi
push esi
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x21c], 7
call fcn.0040352e
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov word [ebp - 0x218], si
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
push str.shell32.dll
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, esi
jne 0x407511
mov ecx, dword [ebp - 0x238]
lea eax, [ebp - 0x234]
push eax
call fcn.004056d9
jmp 0x407551
push str.SHGetKnownFolderPath
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x4075c1
lea ecx, [ebp - 0x240]
push ecx
push esi
push esi
push 0x42436c
mov dword [ebp - 0x240], esi
call eax
cmp eax, esi
jge 0x407561
mov ecx, dword [ebp - 0x238]
lea eax, [ebp - 0x234]
push eax
call fcn.004056d9
mov dword [ebp - 0x23c], ebx
mov byte [ebp - 4], 0
push esi
jmp 0x40769f
push dword [ebp - 0x240]
lea eax, [ebp - 0x344]
lea ecx, [ebp - 0x348]
mov dword [ebp - 0x348], eax
call fcn.004034dc
mov byte [ebp - 4], 2
push dword [ebp - 0x348]
lea eax, [ebp - 0x218]
push eax
call fcn.00414a86
pop ecx
pop ecx
mov byte [ebp - 4], bl
lea eax, [ebp - 0x344]
cmp dword [ebp - 0x348], eax
je 0x4075b3
push dword [ebp - 0x348]
call fcn.00414068
pop ecx
push dword [ebp - 0x240]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x4075d3
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push 0x23
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.Thunder_Network_
lea eax, [ebp - 0x218]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x218]
push eax
call esi
cmp eax, 0xffffffff
je 0x40760c
test al, 0x10
jne 0x40761f
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x407681
push str.XMP4_
lea eax, [ebp - 0x218]
push eax
call edi
lea eax, [ebp - 0x218]
push eax
call esi
cmp eax, 0xffffffff
je 0x40763f
test al, 0x10
jne 0x407652
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x407681
cmp dword [ebp - 0x244], 0
je 0x40766f
push dword [ebp - 0x244]
lea eax, [ebp - 0x218]
push eax
call fcn.00414a5c
pop ecx
pop ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.0040587c
mov ecx, dword [ebp - 0x238]
lea eax, [ebp - 0x234]
push eax
call fcn.004056d9
mov dword [ebp - 0x23c], ebx
mov byte [ebp - 4], 0
push 0
lea ecx, [ebp - 0x234]
push ebx
call fcn.00403c42
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x238]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.00413d8f
leave
ret
Function at 0x40abb8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push ebp
push esi
xor ebx, ebx
cmp dword [0x434a28], ebx
push edi
mov esi, ecx
je 0x40abcf
xor eax, eax
jmp 0x40ac8c
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
jne 0x40ac30
push 0x11f
push ebx
push str.C:TSLOG_CONFIG_
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
cmp eax, 0xffffffff
mov dword [esi + 0x24], eax
je 0x40ac89
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, str.C:TSLOG_CONFIGTSLOG.ini
push ebp
call edi
cmp eax, 0xffffffff
jne 0x40ac26
mov ebx, str.C:TSLOG_CONFIGTSLOG.txt
push ebx
call edi
cmp eax, 0xffffffff
jne 0x40ac24
push ebp
call edi
cmp eax, 0xffffffff
jne 0x40ac24
push ebx
call edi
cmp eax, 0xffffffff
je 0x40abc8
xor ebx, ebx
push ebx
mov ecx, esi
call fcn.00409d70
jmp 0x40ac89
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x40ac5c
cmp eax, 0x102
je 0x40abc8
push 0x11f
push ebx
push str.C:TSLOG_CONFIG_
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov dword [esi + 0x24], eax
jmp 0x40abc8
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
or dword [esi + 0x24], 0xffffffff
push ebx
mov ecx, esi
call fcn.00409d70
test eax, eax
je 0x40ac89
push 0x11f
push ebx
push str.C:TSLOG_CONFIG_
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov dword [esi + 0x24], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40cc5a
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x422c1e
call fcn.00414798
sub esp, 0x4c8
mov eax, dword [0x431d24]
push esi
push edi
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edi, ecx
mov eax, dword [edi + 4]
mov ecx, dword [0x434a58]
lea eax, [eax + ecx*2]
push eax
push 0x427ebc
push str._s_s
lea eax, [ebp - 0x410]
push 0xff
push eax
call fcn.00413b3d
xor esi, esi
add esp, 0x14
cmp dword [0x432ed4], esi
jne 0x40ce1c
push ebx
push 0x7f
mov word [ebp - 0x210], si
pop ecx
xor eax, eax
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.004016cc
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x427e90
lea eax, [ebp - 0x210]
push 0x100
push eax
call fcn.00413b3d
add esp, 0x14
push 0x425eb8
lea ecx, [ebp - 0x464]
call fcn.00405af3
mov edi, eax
mov dword [ebp - 4], esi
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x4b8]
call fcn.00405af3
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
push edi
push eax
lea eax, [ebp - 0x448]
push eax
call fcn.004058d9
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x410]
push ecx
push eax
lea eax, [ebp - 0x4d4]
push eax
call fcn.00406349
mov byte [ebp - 4], 3
push 0x427784
push eax
lea eax, [ebp - 0x49c]
push eax
call fcn.00406349
mov byte [ebp - 4], 4
push 0x427758
push eax
lea eax, [ebp - 0x480]
push eax
call fcn.00406349
mov byte [ebp - 4], 5
push 0x427754
push eax
lea eax, [ebp - 0x42c]
push eax
call fcn.00406349
add esp, 0x3c
mov byte [ebp - 4], 0xc
push esi
push ebx
lea ecx, [ebp - 0x480]
call fcn.00403c42
mov byte [ebp - 4], 0xb
push esi
push ebx
lea ecx, [ebp - 0x49c]
call fcn.00403c42
mov byte [ebp - 4], 0xa
push esi
push ebx
lea ecx, [ebp - 0x4d4]
call fcn.00403c42
mov byte [ebp - 4], 9
push esi
push ebx
lea ecx, [ebp - 0x448]
call fcn.00403c42
mov byte [ebp - 4], 8
push esi
push ebx
lea ecx, [ebp - 0x4b8]
call fcn.00403c42
mov byte [ebp - 4], 7
push esi
push ebx
lea ecx, [ebp - 0x464]
call fcn.00403c42
cmp dword [ebp - 0x414], 8
mov eax, dword [ebp - 0x428]
jae 0x40ce01
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or dword [ebp - 4], 0xffffffff
push esi
push ebx
lea ecx, [ebp - 0x42c]
call fcn.00403c42
pop ebx
jmp 0x40ce80
mov eax, dword [edi + 0x14]
cmp eax, esi
je 0x40ce65
xor ecx, ecx
cmp dword [edi], esi
sete cl
push ecx
push eax
push dword [edi + 0xc]
call fcn.0040c3f0
add esp, 0xc
push 1
push esi
push esi
push eax
push esi
push dword [edi]
lea eax, [ebp - 0x410]
push eax
call fcn.0040a727
pop ecx
pop ecx
mov ecx, eax
call fcn.0040ac91
mov eax, dword [0x432ed4]
add eax, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x40ce80
push dword [edi + 8]
lea eax, [ebp - 0x410]
push dword [edi]
push eax
call fcn.0040a727
pop ecx
pop ecx
push eax
call fcn.0040b1ac
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
xor ecx, ebp
pop esi
call fcn.00413d8f
leave
ret
Function at 0x40d2be
Capabilities:
Download url
Receive data

Disassembly:
push 0xc
push 0x428508
call fcn.00413c04
xor esi, esi
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call sub.urlmon.dll_URLDownloadToCacheFileW
xor ecx, ecx
test eax, eax
setge cl
mov dword [ebp - 0x1c], ecx
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40d332
or dword [ebp - 4], 0xffffffff
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x1c]
call fcn.00413c3f
ret
Function at 0x40d5f2
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x422c68
call fcn.00414798
sub esp, 0x234
mov eax, dword [0x431d24]
push ebx
xor eax, ebp
push esi
xor ebx, ebx
mov dword [ebp - 0x10], eax
push edi
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x21c], ebp
xor edi, edi
inc edi
push edi
push dword [ebp - 0x21c]
push str.int___cdecl_ToolBox_XmpSetup::GetInstallType_void_
call fcn.0040c3f0
mov esi, eax
add esp, 0xc
cmp esi, ebx
mov eax, 0x428940
jne 0x40d641
mov esi, eax
push ebx
push ebx
push ebx
push ebx
push eax
push 0x4288f8
push esi
lea ecx, [ebp - 0x240]
call fcn.0040b233
mov dword [ebp - 4], ebx
cmp esi, ebx
jne 0x40d660
push ebp
pop ebp
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], 0x104
mov dword [ebp - 0x228], ebx
mov byte [ebp - 4], 1
push 0x20019
push str.SOFTWAREThunder_NetworkXmp
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x228]
call fcn.00403188
cmp eax, ebx
mov esi, 0x428878
jne 0x40d6db
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
push str.Path
lea ecx, [ebp - 0x228]
call fcn.004031f5
cmp eax, ebx
jne 0x40d6db
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, edi
jne 0x40d6db
mov dword [ebp - 0x224], edi
jmp 0x40d7ea
lea eax, [ebp - 0x21c]
push eax
push str.lastuninstalltime
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x21c], ebx
call fcn.004031bd
push esi
mov edi, eax
call fcn.0040655f
test eax, eax
pop ecx
jne 0x40d730
push 1
push dword [ebp - 0x21c]
push str._XmpSetup_lastuninstalltime_
push ebx
push esi
call fcn.0040a727
pop ecx
pop ecx
mov ecx, eax
call fcn.0040c98b
mov ecx, eax
call fcn.0040123d
mov ecx, eax
call fcn.0040b202
cmp edi, ebx
jne 0x40d7ea
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x40d7ea
push ebx
mov dword [ebp - 0x220], eax
call fcn.0041573c
push esi
mov edi, eax
call fcn.0040655f
test eax, eax
pop ecx
pop ecx
jne 0x40d786
push 1
push edi
push str._XmpSetup_time_now_
push ebx
push esi
call fcn.0040a727
pop ecx
pop ecx
mov ecx, eax
call fcn.0040c98b
mov ecx, eax
call fcn.004011c0
mov ecx, eax
call fcn.0040b202
push esi
call fcn.0040655f
test eax, eax
pop ecx
jne 0x40d7c5
push 1
push dword [ebp - 0x220]
push edi
call fcn.0041572b
fstp qword [esp]
push 0x4287f8
push ebx
push esi
call fcn.0040a727
pop ecx
pop ecx
mov ecx, eax
call fcn.0040c98b
mov ecx, eax
call fcn.004012ba
mov ecx, eax
call fcn.0040b202
push dword [ebp - 0x220]
push edi
call fcn.0041572b
fcomp qword [0x4287f0]
pop ecx
pop ecx
fnstsw ax
test ah, 5
jp 0x40d7ea
mov dword [ebp - 0x224], 1
push esi
call fcn.0040655f
test eax, eax
pop ecx
jne 0x40d820
push 1
push dword [ebp - 0x224]
push str._XmpSetup_install_type_
push ebx
push esi
call fcn.0040a727
pop ecx
pop ecx
mov ecx, eax
call fcn.0040c98b
mov ecx, eax
call fcn.004010c6
mov ecx, eax
call fcn.0040b202
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x228]
call fcn.00403171
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x240]
call fcn.0040cc5a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x224]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413d8f
leave
ret
Function at 0x40e2c7
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push esi
call fcn.0040df11
cmp dword [esi + 0x18], 8
pop ecx
mov bl, al
jb 0x40e2e1
mov eax, dword [esi + 4]
jmp 0x40e2e4
lea eax, [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x40e300
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call fcn.0040df11
pop ecx
mov bl, al
pop esi
mov al, bl
pop ebx
ret

Function at 0x40e3f3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp eax, ecx
je 0x40e426
lea edx, [ebp + 8]
push edx
push ecx
push eax
push 0x40d345
push ecx
push ecx
mov dword [eax], 0xa31
mov dword [ebp + 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
pop ebp
ret

Function at 0x40f1f7
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x422eeb
call fcn.00414798
sub esp, 0x1c
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x10], ebp
push ebx
push dword [ebp - 0x10]
push str.int___thiscall_CCmdlineParser::Parser_const_wchar_t__
call fcn.0040c3f0
mov edi, eax
add esp, 0xc
cmp edi, ebx
mov eax, 0x429370
jne 0x40f22f
mov edi, eax
push ebx
push ebx
push ebx
push esi
push eax
push 0x429340
push edi
lea ecx, [ebp - 0x28]
call fcn.0040b233
mov dword [ebp - 4], ebx
cmp edi, ebx
jne 0x40f24b
push ebp
pop ebp
mov ecx, esi
call fcn.0040d85c
mov edi, dword [ebp + 8]
cmp edi, ebx
jne 0x40f261
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
push edi
call fcn.0041391d
lea eax, [eax + eax + 2]
push eax
call fcn.00410fb6
cmp eax, ebx
pop ecx
pop ecx
mov dword [esi + 0x1c], eax
je 0x40f2aa
cmp edi, ebx
je 0x40f282
push edi
push eax
jmp 0x40f28c
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push dword [esi + 0x1c]
call fcn.00414a86
pop ecx
pop ecx
mov ecx, esi
call fcn.0040d8e8
test eax, eax
jne 0x40f2a7
mov ecx, esi
call fcn.0040d85c
jmp 0x40f2aa
xor ebx, ebx
inc ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040cc5a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x40f906
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x422f25
call fcn.00414798
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], edi
call fcn.00408bcf
xor ebx, ebx
mov dword [ebp - 4], ebx
lea esi, [edi + 0xc]
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x10], ebp
push ebx
push dword [ebp - 0x10]
push str.__thiscall_CCmdlineParser::CCmdlineParser_const_wchar_t__
call fcn.0040c3f0
mov dword [ebp - 0x10], eax
add esp, 0xc
cmp dword [ebp - 0x10], ebx
mov eax, 0x4296c8
jne 0x40f95c
mov dword [ebp - 0x10], eax
push ebx
push ebx
push ebx
push edi
push eax
push 0x429688
push dword [ebp - 0x10]
lea ecx, [ebp - 0x2c]
call fcn.0040b233
mov byte [ebp - 4], 2
cmp dword [ebp - 0x10], ebx
jne 0x40f97c
push ebp
pop ebp
call fcn.004091dd
mov ecx, edi
call fcn.004056ff
mov ecx, esi
call fcn.00405b50
mov eax, dword [ebp + 8]
cmp eax, ebx
mov dword [edi + 0x1c], ebx
jne 0x40f99f
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
mov ecx, edi
call fcn.0040f1f7
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.0040cc5a
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x4157be
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x42a140
call fcn.00413c04
mov edi, 0x94
mov eax, edi
call fcn.00414900
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 [0x434e98], ecx
mov eax, dword [esi + 4]
mov dword [0x434ea4], eax
mov edx, dword [esi + 8]
mov dword [0x434ea8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x434e9c], esi
cmp ecx, 2
je 0x41581e
or esi, 0x8000
mov dword [0x434e9c], esi
shl eax, 8
add eax, edx
mov dword [0x434ea0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x415859
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x415859
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x415871
cmp eax, 0x20b
je 0x41585e
mov dword [ebp - 0x1c], esi
jmp 0x415885
cmp dword [ecx + 0x84], 0xe
jbe 0x415859
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x41587f
cmp dword [ecx + 0x74], 0xe
jbe 0x415859
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004193f9
pop ecx
test eax, eax
jne 0x415899
push 0x1c
call fcn.0041579a
pop ecx
call fcn.0041a1b9
test eax, eax
jne 0x4158aa
push 0x10
call fcn.0041579a
pop ecx
call fcn.0041c17f
mov dword [ebp - 4], esi
call fcn.0041bf81
test eax, eax
jge 0x4158c3
push 0x1b
call fcn.00415775
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x436524], eax
call fcn.0041be5f
mov dword [0x434cb0], eax
call fcn.0041bdbd
test eax, eax
jge 0x4158e9
push 8
call fcn.00415775
pop ecx
call fcn.0041bb8a
test eax, eax
jge 0x4158fa
push 9
call fcn.00415775
pop ecx
push 1
call fcn.0041b5c8
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x415910
push eax
call fcn.00415775
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041bb2d
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x415931
movzx eax, word [ebp - 0x40]
jmp 0x415934
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040f9ca
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x415952
push edi
call fcn.0041b6f5
call fcn.0041b717
jmp 0x415984
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00413c3f
ret
Function at 0x418de6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x418e14
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x418e1b
cmp ebx, dword [eax + 4]
jae 0x418e1b
xor eax, eax
jmp 0x41900b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x418e2c
xor eax, eax
inc eax
jmp 0x41900a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x418e42
cmp ecx, edx
jae 0x418f87
cmp dword [eax + 4], 0
je 0x418e4b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x418e33
cmp dword [ebp + 8], 0
je 0x418e6d
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x418f87
cmp eax, esi
jae 0x418f87
mov eax, dword [0x434e28]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x418e92
cmp dword [esi*4 + 0x434e30], edi
je 0x418f8b
inc esi
cmp esi, eax
jl 0x418e80
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x419007
cmp dword [ebp - 8], 0x1000000
jne 0x419007
test byte [ebp - 0xc], 0xcc
je 0x418f10
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x419007
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x419007
cmp word [eax + 0x18], 0x10b
jne 0x419007
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x419007
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x418f10
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x418f10
test byte [ecx + 0x27], 0x80
jne 0x418f87
push 1
push 0x434e70
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x418e24
mov ecx, dword [0x434e28]
test ecx, ecx
mov edx, ecx
jle 0x418f44
lea eax, [ecx*4 + 0x434e2c]
cmp dword [eax], edi
je 0x418f44
dec edx
sub eax, 4
test edx, edx
jg 0x418f38
test edx, edx
jne 0x418f75
push 0xf
pop ebx
cmp ecx, ebx
jg 0x418f51
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x418f69
lea eax, [edx*4 + 0x434e30]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x418f57
cmp ecx, 0x10
jge 0x418f75
inc ecx
mov dword [0x434e28], ecx
push 0
push 0x434e70
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x418e24
xor eax, eax
jmp 0x41900a
test esi, esi
jle 0x418e24
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x434e70
call ebx
test eax, eax
jne 0x418e24
cmp dword [esi*4 + 0x434e30], edi
je 0x418fe1
mov eax, dword [0x434e28]
lea esi, [eax - 1]
test esi, esi
jl 0x418fcf
cmp dword [esi*4 + 0x434e30], edi
je 0x418fcb
dec esi
jns 0x418fbf
test esi, esi
jge 0x418fdf
cmp eax, 0x10
jge 0x418fda
inc eax
mov dword [0x434e28], eax
lea esi, [eax - 1]
jmp 0x418fe1
je 0x418ff9
xor ecx, ecx
test esi, esi
jl 0x418ff9
lea eax, [ecx*4 + 0x434e30]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x418fe7
push 0
push 0x434e70
call ebx
jmp 0x418e24
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret