joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4072de
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
sub esp, 0x224
lea ebp, [esp - 4]
mov eax, dword [0x43b690]
xor eax, ebp
mov dword [ebp + 0x224], eax
push 0x114
mov eax, 0x42b281
call fcn.00413eb5
mov eax, dword [ebp + 0x230]
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x14], esi
push esi
lea ecx, [ebp]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x1c], eax
mov dword [ebp + 0x18], 7
call fcn.004034fd
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
xor eax, eax
push 0x206
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
push esi
push eax
call fcn.00415ab0
add esp, 0xc
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, esi
jne 0x407378
lea eax, [ebp]
push eax
mov ecx, edi
call fcn.00405a78
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 0
push esi
push ebx
lea ecx, [ebp]
call fcn.00404665
mov eax, edi
jmp 0x4074ba
push str.SHGetKnownFolderPath
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x407400
lea ecx, [ebp - 0x18]
push ecx
push esi
push esi
push 0x432d30
mov dword [ebp - 0x18], esi
call eax
cmp eax, esi
jge 0x4073a9
lea eax, [ebp]
push eax
mov ecx, edi
call fcn.00405a78
jmp 0x407360
push dword [ebp - 0x18]
lea eax, [ebp - 0x11c]
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x120], eax
call fcn.004040a9
mov byte [ebp - 4], 2
push dword [ebp - 0x120]
lea eax, [ebp + 0x1c]
push eax
call fcn.00416869
pop ecx
pop ecx
mov byte [ebp - 4], bl
lea eax, [ebp - 0x11c]
cmp dword [ebp - 0x120], eax
je 0x4073f5
push dword [ebp - 0x120]
call fcn.004162b8
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x40740f
lea eax, [ebp + 0x1c]
push eax
push esi
push esi
push 0x23
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.Thunder_Network_
lea eax, [ebp + 0x1c]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp + 0x1c]
push eax
call edi
cmp eax, 0xffffffff
je 0x40743f
test al, 0x10
jne 0x40744f
push 0
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x407499
push str.XMP4_
lea eax, [ebp + 0x1c]
push eax
call esi
lea eax, [ebp + 0x1c]
push eax
call edi
cmp eax, 0xffffffff
je 0x407469
test al, 0x10
jne 0x407479
push 0
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x407499
cmp dword [ebp - 0x1c], 0
je 0x40748d
push dword [ebp - 0x1c]
lea eax, [ebp + 0x1c]
push eax
call fcn.0041683b
pop ecx
pop ecx
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.00405cb6
mov ecx, dword [ebp - 0x10]
lea eax, [ebp]
push eax
call fcn.00405a78
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 0
push 0
push ebx
lea ecx, [ebp]
call fcn.00404665
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x224]
xor ecx, ebp
call fcn.00413ea6
add ebp, 0x228
leave
ret
Function at 0x4074dd
Capabilities:
Accept command line arguments

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.00416810
push 0xffffffffffffffff
push 0x42b2b4
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x43b690]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x100c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
xor edi, edi
push eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x1c], eax
xor eax, eax
inc eax
cmp dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
jle 0x407604
mov esi, 0x7fe
xor eax, eax
push esi
mov word [ebp], ax
lea eax, [ebp + 2]
push edi
push eax
call fcn.00415ab0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
push dword [eax + ecx*4]
lea eax, [ebp]
push eax
call fcn.00416869
lea eax, [ebp]
push eax
call fcn.00416af4
xor eax, eax
push esi
mov word [ebp + 0x800], ax
lea eax, [ebp + 0x802]
push edi
push eax
call fcn.00415ab0
push dword [ebp - 0x20]
lea eax, [ebp + 0x800]
push eax
call fcn.00416869
lea eax, [ebp + 0x800]
push eax
call fcn.00416af4
add esp, 0x30
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00406082
mov dword [ebp - 4], edi
lea ecx, [ebp + 0x800]
push ecx
mov ecx, eax
call fcn.004043b3
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0x3c]
call fcn.00404665
test bl, bl
jne 0x4075fd
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jl 0x407553
jmp 0x407604
mov dword [ebp - 0x18], 1
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.00413ea6
add ebp, 0x1004
leave
ret
Function at 0x40b459
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [0x43e89c]
push ebp
push esi
mov esi, ecx
test eax, eax
je 0x40b46d
xor eax, eax
jmp 0x40b525
mov eax, dword [esi + 0x24]
push ebx
or ebx, 0xffffffff
push edi
cmp eax, ebx
jne 0x40b4cd
push 0x11
push 0
push str.C:TSLOG_CONFIG_
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov dword [esi + 0x24], eax
cmp eax, ebx
je 0x40b520
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, str.C:TSLOG_CONFIGTSLOG.ini
push ebp
call edi
cmp eax, ebx
jne 0x40b4c2
mov ebx, str.C:TSLOG_CONFIGTSLOG.txt
push ebx
call edi
cmp eax, 0xffffffff
jne 0x40b4c2
push ebp
call edi
cmp eax, 0xffffffff
jne 0x40b4c2
push ebx
call edi
cmp eax, 0xffffffff
je 0x40b4f3
push 0
mov ecx, esi
call fcn.0040a719
jmp 0x40b520
xor edi, edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, edi
je 0x40b4f7
cmp eax, 0x102
je 0x40b4f3
push 0x11
push edi
push str.C:TSLOG_CONFIG_
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov dword [esi + 0x24], eax
xor eax, eax
jmp 0x40b523
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
push edi
mov ecx, esi
mov dword [esi + 0x24], ebx
call fcn.0040a719
test eax, eax
je 0x40b520
push 0x11
push edi
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 ebx
pop esi
pop ebp
ret
Function at 0x40d21b
Capabilities:
Print debug messages

Disassembly:
push ebp
sub esp, 0x41c
lea ebp, [esp - 4]
mov eax, dword [0x43b690]
xor eax, ebp
mov dword [ebp + 0x41c], eax
push 0xa8
mov eax, 0x42b953
call fcn.00413eb5
mov edi, ecx
mov eax, dword [edi + 4]
mov ecx, dword [0x43e898]
lea eax, [eax + ecx*2]
push eax
push 0x430dd0
push str._s_s
lea eax, [ebp + 0x1c]
push 0xff
push eax
call fcn.004157ed
xor esi, esi
add esp, 0x14
cmp dword [0x43cc08], esi
jne 0x40d3c1
xor eax, eax
push 0x1fe
mov word [ebp + 0x21c], ax
lea eax, [ebp + 0x21e]
push esi
push eax
call fcn.00415ab0
add esp, 0xc
call fcn.00401880
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x430da4
lea eax, [ebp + 0x21c]
push 0x100
push eax
call fcn.004157ed
add esp, 0x14
push 0x42ef00
lea ecx, [ebp - 0x44]
call fcn.00406082
mov edi, eax
mov dword [ebp - 4], esi
lea eax, [ebp + 0x21c]
push eax
lea ecx, [ebp - 0x98]
call fcn.00406082
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
push edi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00405d84
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x1c]
push ecx
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.00406711
mov byte [ebp - 4], 3
push 0x4306cc
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00406711
mov byte [ebp - 4], 4
push 0x4306a0
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00406711
mov byte [ebp - 4], 5
push 0x43069c
push eax
lea eax, [ebp]
push eax
call fcn.00406711
add esp, 0x3c
mov byte [ebp - 4], 7
push esi
push ebx
lea ecx, [ebp - 0x60]
call fcn.00404665
mov byte [ebp - 4], 8
push esi
push ebx
lea ecx, [ebp - 0x7c]
call fcn.00404665
mov byte [ebp - 4], 9
push esi
push ebx
lea ecx, [ebp - 0xb4]
call fcn.00404665
mov byte [ebp - 4], 0xa
push esi
push ebx
lea ecx, [ebp - 0x28]
call fcn.00404665
mov byte [ebp - 4], 0xb
push esi
push ebx
lea ecx, [ebp - 0x98]
call fcn.00404665
mov byte [ebp - 4], 0xc
push esi
push ebx
lea ecx, [ebp - 0x44]
call fcn.00404665
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x40d3aa
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or dword [ebp - 4], 0xffffffff
push esi
push ebx
lea ecx, [ebp]
call fcn.00404665
jmp 0x40d41f
mov eax, dword [edi + 0x14]
cmp eax, esi
je 0x40d407
xor ecx, ecx
cmp dword [edi], esi
sete cl
push ecx
push eax
push dword [edi + 0xc]
call fcn.0040ca8c
add esp, 0xc
push 1
push esi
push esi
push eax
push esi
push dword [edi]
lea eax, [ebp + 0x1c]
push eax
call fcn.0040afdf
pop ecx
pop ecx
mov ecx, eax
call fcn.0040b528
mov eax, dword [0x43cc08]
add eax, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x40d41f
push dword [edi + 8]
lea eax, [ebp + 0x1c]
push dword [edi]
push eax
call fcn.0040afdf
pop ecx
pop ecx
push eax
call fcn.0040ba11
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x41c]
xor ecx, ebp
call fcn.00413ea6
add ebp, 0x420
leave
ret
Function at 0x40d879
Capabilities:
Download url
Receive data

Disassembly:
push 0xc
push 0x437068
call fcn.004158c0
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 0x40d8ed
mov dword [ebp - 4], 0xfffffffe
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x1c]
call fcn.00415905
ret
Function at 0x40dad7
Capabilities:
Check if file exists

Disassembly:
push 0x248
mov eax, 0x42b9d9
call fcn.00413f1e
xor ebx, ebx
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.0040ca8c
mov esi, eax
add esp, 0xc
mov eax, 0x431798
cmp esi, ebx
jne 0x40db18
mov esi, eax
push ebx
push ebx
push ebx
push ebx
push eax
push 0x431750
push esi
lea ecx, [ebp - 0x254]
call fcn.0040ba90
mov dword [ebp - 4], ebx
cmp esi, ebx
jne 0x40db37
push ebp
pop ebp
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], 0x104
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], ebx
mov byte [ebp - 4], 1
push 0x20019
push str.SOFTWAREThunder_NetworkXmp
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x22c]
call fcn.004031ee
mov esi, 0x4316d0
cmp eax, ebx
jne 0x40dbb8
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
push str.Path
lea ecx, [ebp - 0x22c]
call fcn.00403267
cmp eax, ebx
jne 0x40dbb8
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, edi
jne 0x40dbb8
mov dword [ebp - 0x224], edi
jmp 0x40dce3
lea eax, [ebp - 0x220]
push eax
push str.lastuninstalltime
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x220], ebx
call fcn.0040322f
push esi
mov edi, eax
call fcn.004069f6
pop ecx
test eax, eax
jne 0x40dc0d
push 1
push dword [ebp - 0x220]
push str._XmpSetup_lastuninstalltime_
push ebx
push esi
call fcn.0040afdf
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.004013c8
mov ecx, eax
call fcn.0040ba5f
cmp edi, ebx
jne 0x40dce3
mov eax, dword [ebp - 0x220]
cmp eax, ebx
je 0x40dce3
push ebx
mov dword [ebp - 0x234], eax
call fcn.00413753
push esi
mov edi, eax
mov dword [ebp - 0x238], edx
call fcn.004069f6
pop ecx
pop ecx
test eax, eax
jne 0x40dc69
push 1
push edi
push str._XmpSetup_time_now_
push ebx
push esi
call fcn.0040afdf
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.0040134b
mov ecx, eax
call fcn.0040ba5f
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x40dcb4
push eax
push dword [ebp - 0x234]
push dword [ebp - 0x238]
push edi
call fcn.0041368c
add esp, 0x10
push 1
push ecx
push ecx
fstp qword [esp]
push 0x431650
push ebx
push esi
call fcn.0040afdf
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.00401445
mov ecx, eax
call fcn.0040ba5f
xor eax, eax
push eax
push dword [ebp - 0x234]
push dword [ebp - 0x238]
push edi
call fcn.0041368c
fcomp qword [0x431648]
add esp, 0x10
fnstsw ax
test ah, 5
jp 0x40dce3
mov dword [ebp - 0x224], 1
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x40dd19
push 1
push dword [ebp - 0x224]
push str._XmpSetup_install_type_
push ebx
push esi
call fcn.0040afdf
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.00401251
mov ecx, eax
call fcn.0040ba5f
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x22c]
call fcn.004031d3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x254]
call fcn.0040d21b
mov eax, dword [ebp - 0x224]
call fcn.00413fa1
ret
Function at 0x40e79c
Capabilities:
Check if file exists

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

Function at 0x40e8bb
Capabilities:
Create thread

Disassembly:
push 0x10
mov eax, 0x42bb9f
call fcn.00413eb5
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
push 0x20019
push str.SOFTWAREThunder_NetworkXmp
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], esi
call fcn.004031ee
mov edi, dword [ebp + 8]
cmp eax, esi
jne 0x40e910
lea eax, [ebp - 0x10]
push eax
push str.lastuninstalltime
lea ecx, [ebp - 0x1c]
call fcn.0040322f
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 0x10]
mov dword [edi + 0x10], eax
cmp edi, esi
je 0x40e93b
lea eax, [ebp - 0x14]
push eax
push esi
push edi
push 0x40d903
push esi
push esi
mov dword [edi], 0xa31
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004031d3
call fcn.00413f8d
ret

Function at 0x40f469
Capabilities:
Accept command line arguments

Disassembly:
push 0x1c
mov eax, 0x42ba09
call fcn.00413eb5
mov esi, ecx
xor ebx, ebx
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.0040ca8c
mov edi, eax
add esp, 0xc
mov eax, 0x432200
cmp edi, ebx
jne 0x40f49d
mov edi, eax
push ebx
push ebx
push ebx
push esi
push eax
push 0x4321d0
push edi
lea ecx, [ebp - 0x28]
call fcn.0040ba90
mov dword [ebp - 4], ebx
cmp edi, ebx
jne 0x40f4b9
push ebp
pop ebp
mov ecx, esi
call fcn.0040dd42
mov edi, dword [ebp + 8]
cmp edi, ebx
jne 0x40f4cf
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
push edi
call fcn.00414010
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041169a
pop ecx
pop ecx
mov dword [esi + 0x38], eax
cmp eax, ebx
jne 0x40f509
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040d21b
xor eax, eax
call fcn.00413f8d
ret 4
cmp edi, ebx
je 0x40f511
push edi
push eax
jmp 0x40f51b
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push dword [esi + 0x38]
call fcn.00416869
pop ecx
pop ecx
mov ecx, esi
call fcn.0040ddc1
test eax, eax
jne 0x40f544
mov ecx, esi
call fcn.0040dd42
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040d21b
mov eax, ebx
jmp 0x40f501
xor ebx, ebx
inc ebx
jmp 0x40f534
Function at 0x40fba3
Capabilities:
Accept command line arguments

Disassembly:
push 0x20
mov eax, 0x42bcf1
call fcn.00413eb5
mov esi, ecx
mov dword [ebp - 0x14], esi
call fcn.004091b5
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [esi + 0x20]
call fcn.00408a04
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x10], ebp
push edi
push dword [ebp - 0x10]
push str.__thiscall_CCmdlineParser::CCmdlineParser_const_wchar_t__
call fcn.0040ca8c
mov ebx, eax
add esp, 0xc
mov eax, 0x432540
cmp ebx, edi
jne 0x40fbee
mov ebx, eax
push edi
push edi
push edi
push esi
push eax
push 0x432500
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0040ba90
mov byte [ebp - 4], 2
cmp ebx, edi
jne 0x40fc0b
push ebp
pop ebp
call fcn.004098e7
mov ecx, esi
call fcn.00405a9e
lea ecx, [esi + 0x20]
call fcn.00407a82
mov eax, dword [ebp + 8]
mov dword [esi + 0x38], edi
cmp eax, edi
jne 0x40fc2f
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
mov ecx, esi
call fcn.0040f469
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.0040d21b
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00413f8d
ret 4
Function at 0x413ea6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43b690]
jne 0x413eb0
repz ret
jmp fcn.0041d69c

Function at 0x425e9a
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.0041d08f
and dword [ebp - 4], 0
cmp dword [0x43f488], 0
mov ebx, eax
jne 0x425f4b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x425ffc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x425ffc
push eax
call fcn.0041d01d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43f488], eax
call esi
push eax
call fcn.0041d01d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43f48c], eax
call esi
push eax
call fcn.0041d01d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43f490], eax
call esi
push eax
call fcn.0041d01d
pop ecx
mov dword [0x43f498], eax
test eax, eax
je 0x425f4b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041d01d
pop ecx
mov dword [0x43f494], eax
mov eax, dword [0x43f494]
cmp eax, ebx
je 0x425fa3
cmp dword [0x43f498], ebx
je 0x425fa3
push eax
call fcn.0041d098
push dword [0x43f498]
mov esi, eax
call fcn.0041d098
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x425fa3
test edi, edi
je 0x425fa3
call esi
test eax, eax
je 0x425f9a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x425f9a
test byte [ebp - 0xc], 1
jne 0x425fa3
or dword [ebp + 0x10], 0x200000
jmp 0x425fdc
mov eax, dword [0x43f48c]
cmp eax, ebx
je 0x425fdc
push eax
call fcn.0041d098
pop ecx
test eax, eax
je 0x425fdc
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x425fdc
mov eax, dword [0x43f490]
cmp eax, ebx
je 0x425fdc
push eax
call fcn.0041d098
pop ecx
test eax, eax
je 0x425fdc
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43f488]
call fcn.0041d098
pop ecx
test eax, eax
je 0x425ffc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x425ffe
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404e70
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x404eae
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x404ea6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x404eb0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x404e96
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x404f80
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x404fb1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x404fb1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x404fb1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40a37a
Capabilities:
Encode data using xor

Disassembly:
call 0x40a2f3
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x40a323
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x40a33f
xor edx, 0
jmp 0x40a34a
xor edx, edx
jmp 0x40a361
jmp 0x40a36d
xor eax, eax
push 0x8427d7c0
call 0x40a37a
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x40a3b6
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x40a38f
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x40a3cd
add eax, 0
jno 0x40a3d2
add esi, 0
ret 0x10
Function at 0x40b13b
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x40b15d
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x40b2ff
cmp edi, dword [ebp + 0x10]
jb 0x40b2ff
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.0040ac27
inc edi
jmp 0x40b1e6
jmp 0x40b1f3
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.0040ac27
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.0040ac27
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x40b247
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x40b22b
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.0040b275
add dword [eax], 0x39
jle 0x40b251
sub al, 0xf5
mov ch, al
call fcn.0040b28a
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10

Function at 0x40cf62
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x40cf78
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x40cf89
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.0040cfca
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx