joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402964
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
mov edi, ecx
cmp dword [edi + 8], 0
je 0x402996
push 0x406918
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4029a2
call fcn.00403a21
push dword [edi + 8]
mov eax, dword [0x40867c]
push dword [edi + 4]
push dword [eax]
push ecx
call fcn.00403ccd
xor eax, eax
push 0x206
push eax
mov word [esp + 0x10], ax
lea eax, [esp + 0x12]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 8]
push 0
push 0x23
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4065a4
lea eax, [esp + 0xc]
push eax
call esi
call fcn.004039e9
push eax
lea eax, [esp + 0xc]
push eax
call esi
push str._Data_
lea eax, [esp + 0xc]
push eax
call esi
push dword [edi + 8]
mov ecx, dword [0x408680]
push dword [edi + 4]
lea eax, [esp + 0x10]
push eax
call fcn.00403a4e
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
call fcn.004052f0
mov esp, ebp
pop ebp
ret

Function at 0x402a3a
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10b8
call fcn.00405e50
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0
je 0x402a6a
push 0x406938
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x402a76
call fcn.00403a21
lea eax, [ebp - 0x10b8]
push eax
push str.InstallID
push ecx
push ecx
call fcn.00401d7c
xor ebx, ebx
test al, al
je 0x402a99
mov edi, dword [ebp - 0x10b8]
test edi, edi
jne 0x402a9b
mov edi, ebx
mov esi, dword [0x40867c]
push str.http:__tj.woyoo.com:8800_uninstall.ashx_uid_djumpfalse
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
push dword [esi + 0x20]
lea eax, [ebp - 0x10b0]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
call fcn.004039e9
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
test esi, esi
je 0x402b1c
push ebx
push 0x80000000
push ebx
push ebx
lea eax, [ebp - 0x10b0]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, eax
test edi, edi
je 0x402b19
and dword [ebp - 0x10b4], 0
lea eax, [ebp - 0x10b4]
push eax
push 0x64
lea eax, [ebp - 0x68]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
push edi
call ebx
push esi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004052f0
leave
ret
Function at 0x402b2b
Capabilities:
Create directory
Create process on windows
Delete file
Download url
Get common file path
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0
mov dword [ebp - 0x210], eax
je 0x402b60
push 0x40694c
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x402b6c
call fcn.00403a21
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor esi, esi
lea eax, [ebp - 0x20a]
push esi
push eax
call sub.msvcrt.dll_memset
mov ebx, dword [sym.imp.USER32.dll_GetDesktopWindow]
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push 0x23
push eax
call ebx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4065a4
lea eax, [ebp - 0x20c]
push eax
call edi
call fcn.004039e9
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
push str._Data_
lea eax, [ebp - 0x20c]
push eax
call edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x20c]
push eax
call esi
push str.update_
lea eax, [ebp - 0x20c]
push eax
call edi
push 0
lea eax, [ebp - 0x20c]
push eax
call esi
push str.offical.exe
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
push esi
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
test eax, eax
jne 0x402c6b
push 1
push esi
push str._relslt
lea eax, [ebp - 0x20c]
push eax
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x40
push 0x406994
push 0x40699c
call ebx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
inc eax
jmp 0x402c82
push 0x10
push 0x406994
push 0x4069a8
call ebx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004052f0
leave
ret 0xc
Function at 0x402c93
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3f4
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [0x40867c]
push 0xc6
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x3f4], eax
xor eax, eax
push eax
mov word [ebp - 0xcc], ax
lea eax, [ebp - 0xca]
push eax
mov ebx, ecx
call sub.msvcrt.dll_memset
xor esi, esi
add esp, 0xc
cmp dword [ebp - 0x3f4], esi
jle 0x402e85
mov eax, dword [edi + esi*4 + 0x40]
cmp dword [eax + 0x1868], 0
je 0x402e78
lea ecx, [eax + 0x1660]
test ecx, ecx
je 0x402d0e
call fcn.00404b26
test eax, eax
jne 0x402e78
push dword [edi + esi*4 + 0x40]
lea eax, [ebp - 0xcc]
push str.ck_W_vN
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
cmp dword [ebx + 8], 0
je 0x402d3d
lea eax, [ebp - 0xcc]
push eax
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x402d49
call fcn.00403a21
xor eax, eax
push 0x2ce
push eax
mov word [ebp - 0x39c], ax
lea eax, [ebp - 0x39a]
push eax
call sub.msvcrt.dll_memset
mov ecx, dword [edi + esi*4 + 0x40]
add esp, 0xc
lea eax, [ebp - 0x39c]
push eax
lea eax, [ecx + 0x1250]
push eax
lea eax, [ecx + 0x208]
push eax
call fcn.00404116
mov eax, dword [edi + esi*4 + 0x40]
add eax, 0x1458
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x402dc2
push 0x4069e8
lea eax, [ebp - 0x39c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [edi + esi*4 + 0x40]
add eax, 0x1458
push eax
lea eax, [ebp - 0x39c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [edi + esi*4 + 0x40]
lea eax, [ebp - 0xcc]
push str.ck_WL
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
cmp dword [ebx + 8], 0
je 0x402df1
lea eax, [ebp - 0xcc]
push eax
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 5
xor eax, eax
mov word [ebp - 0x3be], ax
pop eax
xor ecx, ecx
mov word [ebp - 0x3c0], ax
lea eax, [ebp - 0x3ac]
push eax
lea eax, [ebp - 0x3f0]
push eax
push ecx
push ecx
push 0x200
push ecx
push ecx
push ecx
lea eax, [ebp - 0x39c]
push eax
push ecx
mov dword [ebp - 0x3f0], 0x44
mov dword [ebp - 0x3ec], ecx
mov dword [ebp - 0x3e8], 0x406394
mov dword [ebp - 0x3e4], ecx
mov dword [ebp - 0x3c4], 1
mov dword [ebp - 0x3bc], ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x402e78
push dword [ebp - 0x3a8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x3ac]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 0x3f4]
jl 0x402ce6
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004052f0
leave
ret
Function at 0x403500
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push edi
mov edx, dword [esi + 0x544]
mov eax, dword [esi + 8]
mov dword [edx + 4], eax
mov edx, dword [esi + 0x544]
mov eax, dword [esi + 0xc]
mov dword [edx + 8], eax
mov eax, dword [0x40867c]
xor edi, edi
cmp dword [eax + 0x30], edi
je 0x40353d
call fcn.00403058
mov eax, dword [esi + 0x544]
push edi
push edi
push eax
push 0x402f88
jmp 0x40354b
mov eax, dword [esi + 0x544]
push edi
push edi
push eax
push 0x402e94
push edi
push edi
mov dword [eax], 0x403475
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
pop edi
pop esi
ret

Function at 0x403590
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
push 0xffffffffffffffeb
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, eax
je 0x4035e1
mov edx, dword [eax + 0x1a4]
mov ecx, dword [eax + 0x1a8]
mov ebx, dword [eax + 0x1ac]
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 4], ecx
test edx, edx
je 0x4035cf
push 0
push edx
call edi
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x4035d8
push 0
push ecx
call edi
test ebx, ebx
je 0x4035e1
push 0
push ebx
call edi
cmp dword [esi], 0
jne 0x403614
mov ecx, esi
call fcn.00403341
push 5
mov ecx, esi
call fcn.0040329d
test eax, eax
je 0x403610
push 0x40355f
push 0
push 0x40a
push dword [esi]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x403632
xor eax, eax
jmp 0x403635
push 0x40355f
push 0
push 0x40a
push dword [esi]
call dword [sym.imp.USER32.dll_SetTimer]
push 5
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403f89
Capabilities:
Acquire debug privileges
Enumerate processes
Get file system object information
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
xor edi, edi
push 2
mov dword [ebp - 0x70c], esi
inc edi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
test ebx, ebx
jne 0x403fc2
xor eax, eax
jmp 0x404105
lea eax, [ebp - 0x708]
push eax
push ebx
mov dword [ebp - 0x708], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x403fbb
lea eax, [ebp - 0x4dc]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x404060
lea eax, [ebp - 0x214]
push eax
push 0x406dac
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x404054
mov eax, dword [ebp - 0x214]
xor ecx, ecx
push ecx
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x210]
push ecx
push ecx
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x224]
push eax
push ecx
push dword [ebp - 0x4dc]
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x218], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x4dc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x2b4
lea eax, [ebp - 0x4d8]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x4d8]
push 0x101
push 0x2b4
push eax
push 0
lea eax, [ebp - 0x6e4]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea eax, [ebp - 0x6e4]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4040ed
push dword [ebp - 0x700]
push eax
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, dword [ebp - 0x70c]
neg eax
sbb eax, eax
and edi, eax
lea eax, [ebp - 0x708]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x404060
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004052f0
leave
ret 4
Function at 0x404116
Capabilities:
Create directory
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x210], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.msvcrt.dll_memset
mov eax, dword [0x40867c]
add esp, 0xc
push dword [eax]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.download_
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
xor ecx, ecx
push ecx
push ecx
lea eax, [ebp - 0x20c]
push eax
push ebx
push ecx
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
pop edi
pop ebx
test eax, eax
jne 0x4041d0
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x4041cc
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov al, 1
jmp 0x4041d2
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004052f0
leave
ret 0xc

Function at 0x4041e0
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor edi, edi
lea eax, [ebp - 0x20a]
push edi
push eax
mov dword [ebp - 0x210], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebx
push edi
push 0x406de8
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x406df0
push 0x12e
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4042d3
push ebx
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4042d3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4042d3
push 0
push 0x80
push 2
push 0
push 2
push 0x40000004
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4042d3
push ebx
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
lea ecx, [ebp - 0x210]
push ecx
push eax
push edi
push esi
mov dword [ebp - 0x210], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x4042d5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004052f0
leave
ret 4
Function at 0x40524c
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0xffffffffffffffeb
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, eax
je 0x405271
mov eax, dword [eax + 0x1a4]
test eax, eax
je 0x405271
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esi], 0
jne 0x405288
mov ecx, esi
call fcn.004050cd
push 5
mov ecx, esi
call fcn.00405034
pop esi
ret
push 5
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
inc eax
pop esi
ret

Function at 0x4058d7
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x4070e0
call fcn.00405bf4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x408694
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x40569c
cmp eax, esi
jne 0x40568f
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x40569f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x405676
xor esi, esi
inc esi
mov eax, dword [0x408690]
cmp eax, esi
jne 0x4056b2
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x4056e1
mov eax, dword [0x408690]
test eax, eax
jne 0x4056db
mov dword [0x408690], esi
push 0x406264
push 0x406258
call fcn.004055e2
pop ecx
pop ecx
test eax, eax
je 0x4056e1
jmp 0x405805
mov dword [0x40833c], esi
mov eax, dword [0x408690]
cmp eax, esi
jne 0x405705
push 0x406254
push 0x40624c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x408690], 2
cmp dword [ebp - 0x20], ebx
jne 0x405712
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x408698], ebx
je 0x405733
push 0x408698
call fcn.00405b24
pop ecx
test eax, eax
je 0x405733
push ebx
push 2
push ebx
call dword [0x408698]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x405805
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x40579d
cmp cx, bx
je 0x405758
cmp dword [ebp - 0x1c], ebx
jne 0x40579d
movzx ecx, word [eax]
cmp cx, bx
je 0x40576d
cmp cx, 0x20
ja 0x40576d
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x405758
test byte [ebp - 0x40], 1
je 0x405779
movzx ecx, word [ebp - 0x3c]
jmp 0x40577c
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call main
mov dword [0x408338], eax
cmp dword [0x40832c], ebx
jne 0x4057e2
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x4057ae
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x405742
cmp dword [0x40833c], ebx
jne 0x4057f0
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x408338]
jmp 0x405811
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00405c39
ret
call fcn.00405d23
jmp 0x405639
Function at 0x4017c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4362d8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x446f30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], ecx
call fcn.00401e50
mov dword [ebp - 0x10], eax
push str.IMAGE
movzx eax, word [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x401811
xor eax, eax
jmp 0x401887
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x40183d
xor eax, eax
jmp 0x401887
push 0
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x38]
call fcn.004179fb
mov dword [ebp - 4], 0
lea edx, [ebp - 0x38]
push edx
mov ecx, dword [ebp - 0x50]
call fcn.00401950
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00417d69
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x401e90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436381
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x446f30]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], 0
push 0x105
call fcn.0040c0b8
add esp, 4
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, dword [ebp - 0x10]
push edx
lea ecx, [ebp - 0x30]
call fcn.004046e0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.0040c0c3
add esp, 4
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp + 8]
call fcn.00404720
mov eax, dword [ebp - 0x3c]
or eax, 1
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00404760
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00421364
mov esp, ebp
pop ebp
ret
Function at 0x401f50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4363c7
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x446f30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], 0
push 0x105
call fcn.0040c0b8
add esp, 4
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
push 0x105
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edx, dword [ebp - 0x30]
push edx
lea ecx, [ebp - 0x2c]
call fcn.004046e0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.0040c0c3
add esp, 4
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00404720
mov eax, dword [ebp - 0x3c]
or eax, 1
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00404760
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421364
mov esp, ebp
pop ebp
ret
Function at 0x4020d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43648a
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x446f30]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xc8], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [ebp - 0x30]
call fcn.004046e0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.004046b0
mov byte [ebp - 4], 2
push 1
push 0x439c38
push 0x439c3c
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x54], esp
lea eax, [ebp - 0x30]
push eax
call fcn.00404720
mov dword [ebp - 0xcc], eax
lea ecx, [ebp - 0x70]
push ecx
call fcn.00402920
add esp, 0x2c
mov dword [ebp - 0xd0], eax
mov edx, dword [ebp - 0xd0]
mov dword [ebp - 0xd4], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xd4]
push eax
lea ecx, [ebp - 0x30]
call fcn.00403e20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.00404760
push 0xffffffffffffffff
push 0x5c
lea ecx, [ebp - 0x30]
call fcn.00403f30
mov dword [ebp - 0x50], eax
push 0xffffffffffffffff
push 0x20
lea ecx, [ebp - 0x30]
call fcn.00403f30
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x4021fb
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x50]
add edx, 1
push edx
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x30]
call fcn.00403f50
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0xdc], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0xdc]
push edx
lea ecx, [ebp - 0x4c]
call fcn.00403e20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x8c]
call fcn.00404760
jmp 0x402251
lea ecx, [ebp - 0x30]
call fcn.00403ec0
sub eax, 1
push eax
mov eax, dword [ebp - 0x50]
add eax, 1
push eax
lea ecx, [ebp - 0xa8]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00403f50
mov dword [ebp - 0xe0], eax
mov edx, dword [ebp - 0xe0]
mov dword [ebp - 0xe4], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0xe4]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00403e20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa8]
call fcn.00404760
lea ecx, [ebp - 0x4c]
call fcn.00403ec0
sub eax, 1
push eax
lea ecx, [ebp - 0x4c]
call fcn.00403e90
movsx ecx, byte [eax]
cmp ecx, 0x20
jne 0x4022c0
lea ecx, [ebp - 0x4c]
call fcn.00403ec0
sub eax, 1
push eax
push 0
lea edx, [ebp - 0xc4]
push edx
lea ecx, [ebp - 0x4c]
call fcn.00403f50
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0xec], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0xec]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.00403e20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc4]
call fcn.00404760
jmp 0x402251
lea edx, [ebp - 0x4c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00404720
mov eax, dword [ebp - 0xc8]
or eax, 1
mov dword [ebp - 0xc8], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.00404760
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00404760
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00421364
mov esp, ebp
pop ebp
ret