joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408c90
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430c30]
jne 0x408c9a
repz ret
jmp fcn.0040b7ac

Function at 0x40af77
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.00405127
and dword [ebp - 4], 0
cmp dword [0x431fc4], 0
mov ebx, eax
jne 0x40b028
push 0x402ab4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b0d9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402aa8
push edi
call esi
test eax, eax
je 0x40b0d9
push eax
call fcn.004050b5
mov dword [esp], 0x402a98
push edi
mov dword [0x431fc4], eax
call esi
push eax
call fcn.004050b5
mov dword [esp], 0x402a84
push edi
mov dword [0x431fc8], eax
call esi
push eax
call fcn.004050b5
mov dword [esp], 0x402a68
push edi
mov dword [0x431fcc], eax
call esi
push eax
call fcn.004050b5
pop ecx
mov dword [0x431fd4], eax
test eax, eax
je 0x40b028
push 0x402a50
push edi
call esi
push eax
call fcn.004050b5
pop ecx
mov dword [0x431fd0], eax
mov eax, dword [0x431fd0]
cmp eax, ebx
je 0x40b080
cmp dword [0x431fd4], ebx
je 0x40b080
push eax
call fcn.00405130
push dword [0x431fd4]
mov esi, eax
call fcn.00405130
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b080
test edi, edi
je 0x40b080
call esi
test eax, eax
je 0x40b077
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b077
test byte [ebp - 0xc], 1
jne 0x40b080
or dword [ebp + 0x10], 0x200000
jmp 0x40b0b9
mov eax, dword [0x431fc8]
cmp eax, ebx
je 0x40b0b9
push eax
call fcn.00405130
pop ecx
test eax, eax
je 0x40b0b9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b0b9
mov eax, dword [0x431fcc]
cmp eax, ebx
je 0x40b0b9
push eax
call fcn.00405130
pop ecx
test eax, eax
je 0x40b0b9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x431fc4]
call fcn.00405130
pop ecx
test eax, eax
je 0x40b0d9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b0db
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407180
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 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4072b6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4072d1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
mov ecx, 0x2c664652
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
mov ecx, 0x40763a48
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x42e1f9
Capabilities:
Terminate process

Disassembly:
jmp 0x432b50
jmp fcn.0043e4a0
cmp ecx, dword [0x4a00e4]
jne 0x432b5a
repz ret
jmp 0x42e6d6
Function at 0x401040
Capabilities:
Connect to http server
Create http request
Print debug messages
Send data
Send http request

Disassembly:
push 0
push 0
push 0
push 0
push 0x411020
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [0x41112c], eax
je 0x4010b7
mov ecx, dword [esp + 0xc]
push 0
push 0
push 3
push 0
push 0
push 0x50
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [0x411128], eax
je 0x4010b7
mov edx, dword [esp + 4]
push 0
push 0x84000000
push 0
push 0
push 0
push edx
push 0x40c1f0
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
test eax, eax
mov dword [0x411124], eax
je 0x4010b7
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x401103
push esi
push str.HttpClient_got_error
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x41112c]
test eax, eax
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x4010d5
push eax
call esi
mov eax, dword [0x411128]
test eax, eax
je 0x4010e1
push eax
call esi
mov dword [0x41112c], 0
mov dword [0x411128], 0
mov dword [0x411124], 0
xor eax, eax
pop esi
ret
mov eax, dword [0x411124]
ret

Function at 0x401110
Capabilities:
Read data from internet
Receive data

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x18]
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 8], 1
mov dword [esp], ecx
je 0x40112a
mov dword [eax], ecx
cmp dword [0x411124], ecx
jne 0x401138
xor eax, eax
add esp, 0xc
ret
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, edi
cmp esi, ecx
mov dword [esp + 0xc], ecx
je 0x4011af
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [sym.imp.WININET.dll_InternetReadFile]
mov edx, dword [0x411124]
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
sub ecx, esi
push esi
add ecx, edi
push ecx
push edx
call ebp
cmp eax, 1
jne 0x40117d
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4011ad
add dword [esp + 0x10], eax
jmp 0x401181
test eax, eax
je 0x4011a5
sub esi, dword [esp + 0x10]
mov dword [esp + 0x14], 0
jne 0x401154
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
pop ebp
pop ebx
pop edi
mov dword [ecx], eax
mov eax, dword [esp + 0xc]
pop esi
add esp, 0xc
ret
mov dword [esp + 0x18], 0
pop ebp
pop ebx
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x20]
pop edi
mov dword [ecx], eax
mov eax, dword [esp + 0xc]
pop esi
add esp, 0xc
ret
Function at 0x401430
Capabilities:
Accept command line arguments

Disassembly:
push ebp
lea ebp, [esp - 0x10c]
sub esp, 0x10c
push 0xffffffffffffffff
push 0x40b600
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x410040]
xor eax, ebp
mov dword [ebp + 0x108], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push str._CKPPUpdater.exe__ParseArgs
call fcn.00402010
xor ebx, ebx
push 0x104
lea eax, [ebp + 1]
push ebx
push eax
mov byte [ebp], bl
call fcn.00402590
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineA]
add esp, 0x10
call esi
test eax, eax
jne 0x4014a3
push str._CKPPUpdater.exe__ParseArgs___GetCommandLine___is_NULL
jmp 0x401678
call esi
push eax
call fcn.0040b569
mov edi, eax
add esp, 4
cmp edi, ebx
mov dword [ebp - 0x14], edi
jne 0x4014c1
push str._CKPPUpdater.exe__ParseArgs___pCommandLine_is_NULL
jmp 0x401678
push 0x40c3f8
mov dword [ebp - 4], ebx
push edi
call fcn.00402eb4
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x40165f
push 0x105
lea ecx, [ebp]
push ebx
push ecx
call fcn.00402590
push 0x104
lea edx, [esi + 2]
push edx
lea eax, [ebp]
push eax
call fcn.00402d90
add esp, 0x18
push 0x40c3f4
lea ecx, [ebp]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
movsx eax, byte [esi]
add eax, 0xffffff9d
cmp eax, 0x14
ja case.0x401525.101
movzx edx, byte [eax + 0x4016c0]
jmp dword [edx*4 + 0x4016a8]
lea eax, [ebp]
push eax
push 0x40c3f0
push 0x411130
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x411130
push str._CKPPUpdater.exe__ParseArgs___ProductString___s
call fcn.00402010
add esp, 0x14
push 0x40c3f8
push ebx
jmp 0x4014ca
lea ecx, [ebp]
push 0x40c3b8
push ecx
call fcn.0040a984
add esp, 8
test eax, eax
jne 0x40159a
mov eax, str.TRUE
push eax
push str._CKPPUpdater.exe___ParseArgs___SilenceSetup___s
mov dword [0x411330], 1
call fcn.00402010
add esp, 8
push 0x40c3f8
push ebx
jmp 0x4014ca
mov eax, str.FALSE
push eax
push str._CKPPUpdater.exe___ParseArgs___SilenceSetup___s
mov dword [0x411330], ebx
call fcn.00402010
add esp, 8
push 0x40c3f8
push ebx
jmp 0x4014ca
lea edx, [ebp]
push edx
call fcn.00402d85
push eax
push str._CKPPUpdater.exe__ParseArgs___StartDelay___d
mov dword [0x411334], eax
call fcn.00402010
add esp, 0xc
push 0x40c3f8
push ebx
jmp 0x4014ca
lea eax, [ebp]
push eax
call fcn.00402d85
mov ecx, dword [0x411334]
push ecx
push str._CKPPUpdater.exe__ParseArgs___RetryCount_for_NetworkError___d
mov dword [section..data], eax
call fcn.00402010
add esp, 0xc
push 0x40c3f8
push ebx
jmp 0x4014ca
lea edx, [ebp]
push edx
call fcn.00402d85
mov dword [0x410004], eax
mov eax, dword [0x411334]
push eax
push str._CKPPUpdater.exe__ParseArgs___RetryWait_for_NetworkError_:__d
call fcn.00402010
add esp, 0xc
push 0x40c3f8
push ebx
jmp 0x4014ca
mov dword [ebp - 4], 0xffffffff
cmp edi, ebx
je 0x401673
push edi
call fcn.00402ce6
add esp, 4
push str._CKPPUpdater.exe__ParseArgs___Complete
call fcn.00402010
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x108]
xor ecx, ebp
call fcn.00402aa5
add ebp, 0x10c
mov esp, ebp
pop ebp
ret
Function at 0x4016e0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x40b63b
mov eax, dword fs:[0]
push eax
mov eax, 0x1054
call fcn.00402f80
mov eax, dword [0x410040]
xor eax, esp
mov dword [esp + 0x1050], eax
push ebx
push esi
push edi
mov eax, dword [0x410040]
xor eax, esp
push eax
lea eax, [esp + 0x1064]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1078]
mov ebx, dword [esp + 0x1074]
push esi
push ebx
push str._CKPPUpdater.exe__DownloadUpdates___Url___s__Path___s
call fcn.00402010
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.00401e10
xor edi, edi
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1070], edi
call fcn.00401ff0
lea ecx, [esp + 0x18]
call fcn.00401eb0
test eax, eax
jne 0x40178c
push str._CKPPUpdater.exe__DownloadUpdates___Not_Http
call fcn.00402010
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x106c], 0xffffffff
call fcn.00401ed0
xor eax, eax
jmp 0x401877
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4017bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CKPPUpdater.exe__DownloadUpdates___Failed_to_CreateFile__err___ls
call fcn.00402010
add esp, 8
jmp 0x401771
lea ecx, [esp + 0x18]
call fcn.00401e90
push eax
push edi
lea ecx, [esp + 0x20]
call fcn.00401ea0
push eax
call fcn.00401040
add esp, 0xc
test eax, eax
jne 0x4017e7
push str._CKPPUpdater.exe__DownloadUpdates___Failed_to_SendRequest
jmp 0x401769
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x64]
push 0x1000
push ecx
mov dword [esp + 0x1c], edi
call fcn.00401110
add esp, 0xc
cmp eax, edi
je 0x40184a
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [esp]
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x40184a
push edi
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x6c]
push eax
push esi
mov dword [esp + 0x28], edi
call ebx
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x64]
push 0x1000
push edx
mov dword [esp + 0x1c], edi
call fcn.00401110
add esp, 0xc
cmp eax, edi
jne 0x401810
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str._CKPPUpdater.exe__DownloadUpdates___Complete
call fcn.00402010
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x106c], 0xffffffff
call fcn.00401ed0
mov eax, 1
mov ecx, dword [esp + 0x1064]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1050]
xor ecx, esp
call fcn.00402aa5
add esp, 0x1060
ret
Function at 0x4020d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
push edi
push eax
push esi
push ebx
push ebp
push str._REGISTRY__CRegistry::GetValue___lpszValueName___s__lpcbData___p_cbData___d
mov edi, ecx
mov dword [esp + 0x24], 0
call fcn.00402010
mov eax, dword [edi]
add esp, 0x14
test eax, eax
je 0x40212f
push esi
push ebx
push 0
push 0
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40211b
lea edi, [eax + 1]
jmp 0x402133
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._REGISTRY__CRegistry::GetValue___Failed_to_RegQueryValueEx__err___ld
call fcn.00402010
add esp, 8
mov edi, dword [esp + 0x10]
mov ecx, dword [esi]
push ecx
push edi
push str._REGISTRY__CRegistry::GetValue___bRet___d__bytes___d
call fcn.00402010
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc

Function at 0x402190
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 1
push 0
push str.SOFTWAREClientKeeperPhishingPro
push 0x80000002
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4021e7
mov edx, dword [esp + 8]
push esi
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x14]
push str.InstallPath
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ecx
ret

Function at 0x4021f0
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x410040]
xor eax, esp
mov dword [esp + 0x94], eax
push 0x90
lea eax, [esp + 8]
push 0
push eax
call fcn.00402590
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esp + 0x94]
xor eax, eax
cmp dword [esp + 4], 6
sete al
xor ecx, esp
call fcn.00402aa5
add esp, 0x98
ret
Function at 0x402250
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x220
mov eax, dword [0x410040]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x230]
push edi
push 0x104
lea eax, [esp + 0x129]
push 0
push eax
mov dword [esp + 0x20], esi
mov byte [esp + 0x130], 0
call fcn.00402590
mov dword [esp + 0x1c], 0x1a
call fcn.004021f0
mov ecx, dword [esp + 0x244]
push ecx
mov edi, eax
push 0
push esi
mov dword [esp + 0x30], edi
call fcn.00402590
add esp, 0x18
test edi, edi
mov byte [esp + 0x1c], 0
je 0x4022c6
mov dword [esp + 0x10], 0x1c
push 0x104
lea edx, [esp + 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x124]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x4022e3
mov ecx, dword [str._shell32.dll]
mov edx, dword [0x40cb20]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [eax], ecx
mov ecx, dword [0x40cb24]
mov dword [eax + 4], edx
mov dl, byte [0x40cb28]
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
lea eax, [esp + 0x124]
push eax
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.SHGetFolderPathA
push esi
call ebp
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
jne 0x4023a7
test esi, esi
je 0x402345
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x104
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x124]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x402362
mov edx, dword [str.SHFOLDER.DLL]
mov ecx, dword [0x40cafc]
mov dword [eax], edx
mov edx, dword [0x40cb00]
mov dword [eax + 4], ecx
mov cx, word [0x40cb04]
mov dword [eax + 8], edx
lea edx, [esp + 0x124]
push edx
mov word [eax + 0xc], cx
call edi
push str.SHGetFolderPathA
push eax
call ebp
test eax, eax
je 0x402410
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push edx
push 0
call eax
cmp byte [esp + 0x1c], 0
je 0x402417
cmp dword [esp + 0x18], 0
je 0x4023e0
push 0x40caf4
lea eax, [esp + 0x20]
push eax
call ebx
push 0
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str.ClientKeeper
lea edx, [esp + 0x20]
push edx
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
lea eax, [esp + 0x20]
push eax
call esi
push str.PhishingPro
lea ecx, [esp + 0x20]
push ecx
call ebx
push 0
lea edx, [esp + 0x20]
push edx
call esi
cmp byte [esp + 0x1c], 0
jne 0x40242c
mov eax, dword [esp + 0x238]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00402190
add esp, 8
push 0x40cad0
lea edx, [esp + 0x20]
push edx
call ebx
mov eax, dword [esp + 0x238]
mov edx, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
push edx
call fcn.004030d1
add esp, 0xc
push str.Logos
lea eax, [esp + 0x20]
push eax
call ebx
push 0
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00402aa5
add esp, 0x220
ret
Function at 0x402490
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x14c
mov eax, dword [0x410040]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
mov ebx, dword [esp + 0x15c]
push ebp
push esi
mov esi, dword [esp + 0x15c]
push edi
mov edi, dword [esp + 0x164]
xor ebp, ebp
push 0x38
lea eax, [esp + 0x1c]
push ebp
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], ebp
call fcn.00402590
add esp, 0xc
cmp esi, ebp
push 0x105
jne 0x4024f2
lea ecx, [esp + 0x54]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
jmp 0x402500
lea edx, [esp + 0x54]
push esi
push edx
call fcn.004030d1
add esp, 0xc
lea ecx, [esp + 0x14]
lea eax, [esp + 0x50]
push ecx
mov dword [esp + 0x18], 0x3c
mov dword [esp + 0x1c], 0x40
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
cmp dword [esp + 0x16c], ebp
je 0x402569
mov eax, dword [esp + 0x4c]
cmp eax, ebp
je 0x402569
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0x158]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00402aa5
add esp, 0x14c
ret

Function at 0x402aa5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410040]
jne 0x402aaf
repz ret
jmp fcn.00404a0c
Function at 0x406ed7
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 + 0x410990]
je 0x406ef2
inc edi
cmp edi, 0x17
jb 0x406ee3
cmp edi, 0x17
jae 0x407072
push ebp
push 3
call fcn.0040a100
cmp eax, 1
pop ecx
je 0x40703e
push 3
call fcn.0040a100
test eax, eax
pop ecx
jne 0x406f26
cmp dword [0x41006c], 1
je 0x40703e
cmp ebx, 0xfc
je 0x407071
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x411c70
push ebp
call fcn.00408cb9
add esp, 0xc
test eax, eax
je 0x406f5c
push esi
push esi
push esi
push esi
push esi
call fcn.004055b9
add esp, 0x14
push 0x104
mov esi, 0x411c89
push esi
push 0
mov byte [0x411d8d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x406fa0
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00408cb9
add esp, 0xc
test eax, eax
je 0x406fa0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004055b9
add esp, 0x14
push esi
call fcn.004054e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x406fe5
push esi
call fcn.004054e0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x411f84
push 0x40d27c
sub ecx, eax
push ecx
push eax
call fcn.00408c06
add esp, 0x14
test eax, eax
je 0x406fe5
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004055b9
add esp, 0x14
jmp 0x406fe7
xor esi, esi
push 0x40d278
push ebx
push ebp
call fcn.00408b4c
add esp, 0xc
test eax, eax
je 0x407007
push esi
push esi
push esi
push esi
push esi
call fcn.004055b9
add esp, 0x14
push dword [edi*8 + 0x410994]
push ebx
push ebp
call fcn.00408b4c
add esp, 0xc
test eax, eax
je 0x407029
push esi
push esi
push esi
push esi
push esi
call fcn.004055b9
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00409f43
add esp, 0xc
jmp 0x407071
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x407071
cmp ebp, 0xffffffff
je 0x407071
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x410994]
push dword [esi]
call fcn.004054e0
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 0x409f43
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00404445
xor ebx, ebx
cmp dword [0x412118], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40a019
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40a0f9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40e3c0
push edi
call esi
cmp eax, ebx
je 0x40a0f9
push eax
call fcn.004043d7
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x412118], eax
call esi
push eax
call fcn.004043d7
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41211c], eax
call esi
push eax
call fcn.004043d7
mov dword [0x412120], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00406c64
test eax, eax
pop ecx
pop ecx
je 0x409fe7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004055b9
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40a019
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004043d7
cmp eax, ebx
pop ecx
mov dword [0x412128], eax
je 0x40a019
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004043d7
pop ecx
mov dword [0x412124], eax
mov eax, dword [0x412124]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40a09e
cmp dword [0x412128], ecx
je 0x40a09e
push eax
call fcn.0040444e
push dword [0x412128]
mov esi, eax
call fcn.0040444e
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40a09e
cmp edi, ebx
je 0x40a09e
call esi
cmp eax, ebx
je 0x40a06b
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a06b
test byte [ebp - 0x18], 1
jne 0x40a09e
lea eax, [ebp - 0x10]
push eax
call fcn.00406c9b
test eax, eax
pop ecx
je 0x40a086
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004055b9
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40a095
or dword [ebp + 0x10], 0x200000
jmp 0x40a0d9
or dword [ebp + 0x10], 0x40000
jmp 0x40a0d9
mov eax, dword [0x41211c]
cmp eax, dword [ebp - 8]
je 0x40a0d9
push eax
call fcn.0040444e
cmp eax, ebx
pop ecx
je 0x40a0d9
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40a0d9
mov eax, dword [0x412120]
cmp eax, dword [ebp - 8]
je 0x40a0d9
push eax
call fcn.0040444e
cmp eax, ebx
pop ecx
je 0x40a0d9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x412118]
call fcn.0040444e
cmp eax, ebx
pop ecx
je 0x40a0f9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a0fb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6d9370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x6d938e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x702074
push ecx
mov edi, eax
call fcn.006ed198
mov esi, eax
add esp, 8
test esi, esi
jne 0x6d93cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.006ed02e
push esi
call fcn.006ecfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret