joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ea72
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.004118a0
xor eax, eax
cmp dword [ebp + 8], eax
push ebx
mov byte [ebp - 0x2004], al
je 0x40eac6
push 0x2000
push eax
lea eax, [ebp - 0x2003]
push eax
call sub.msvcrt.dll_memset
push dword [edi]
lea ebx, [ebp - 0x2004]
push dword [ebp + 0x14]
call fcn.00406763
add esp, 0x14
push dword [ebp + 0x18]
mov eax, ebx
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x40eb0b
push esi
mov esi, 0x2000
push esi
push eax
lea eax, [ebp - 0x2003]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0x18]
lea eax, [ebp - 0x2004]
push esi
push eax
push 0x412466
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [ebp + 0x14]
lea ebx, [ebp - 0x2004]
push edi
call fcn.004067dc
pop ecx
pop ecx
pop esi
pop ebx
leave
ret

Function at 0x40eb0e
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push dword [ebp + 0x18]
je 0x40eb2c
push dword [esi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040ea26
add esp, 0x10
pop ebp
ret
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esi], eax
pop ebp
ret

Function at 0x40ee59
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
call fcn.0040edac
xor ebx, ebx
cmp dword [0x41751c], ebx
je 0x40ee9b
call fcn.00406278
cmp dword [eax + 0x10], 1
jne 0x40ee8c
cmp esi, 0x19
je 0x40ee9b
cmp esi, 0x17
je 0x40ee9b
cmp esi, 0x16
je 0x40ee9b
push ebx
push esi
push edi
push ebx
call dword [0x41751c]
jmp 0x40ef33
push 0x103
lea eax, [ebp - 0x127]
push ebx
push eax
mov byte [ebp - 0x128], bl
call sub.msvcrt.dll_memset
add esp, 0xc
cmp esi, 0x19
je 0x40eec5
cmp esi, 0x17
je 0x40eec5
cmp esi, 0x16
jne 0x40eed5
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push CreateStatusWindowA
jmp 0x40eee3
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call fcn.0040eb3f
add esp, 0xc
cmp eax, ebx
jne 0x40ef1d
lea ecx, [ebp - 0x24]
mov eax, esi
call fcn.0040eddb
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
mov eax, 0x104
call fcn.0040eb80
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x128]
push eax
push edi
call sub.msvcrt.dll_strcpy
xor eax, eax
cmp byte [edi], bl
pop ecx
pop ecx
setne al
pop ebx
leave
ret
Function at 0x40f435
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
push ebx
push esi
push edi
mov edi, 0x104
xor ebx, ebx
push edi
mov esi, eax
lea eax, [ebp - 0x417]
push ebx
push eax
mov byte [ebp - 0x418], bl
call sub.msvcrt.dll_memset
push 0xff
lea eax, [ebp - 0x30f]
push ebx
push eax
mov byte [ebp - 0x310], bl
call sub.msvcrt.dll_memset
lea eax, [ebp - 4]
push eax
push str.SOFTWAREMozilla
push CreateStatusWindowA
mov byte [esi], bl
call fcn.0040eb3f
add esp, 0x24
test eax, eax
jne 0x40f5e6
push 0xff
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x108]
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call fcn.0040ec05
add esp, 0x18
jmp 0x40f5d5
push 7
lea eax, [ebp - 0x108]
push str.mozilla
push eax
call sub.msvcrt.dll__mbsnbicmp
add esp, 0xc
test eax, eax
jne 0x40f5bd
push edi
lea eax, [ebp - 0x20f]
push ebx
push eax
mov byte [ebp - 0x210], bl
call sub.msvcrt.dll_memset
push 0x3ff
lea eax, [ebp - 0x817]
push ebx
push eax
mov byte [ebp - 0x818], bl
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x108]
push eax
push str._s_bin
lea eax, [ebp - 0x818]
push 0x3ff
push eax
call sub.msvcrt.dll__snprintf
push edi
lea eax, [ebp - 0x210]
push eax
push str.PathToExe
lea eax, [ebp - 0x818]
push eax
push dword [ebp - 4]
call fcn.0040ebc1
lea eax, [ebp - 0x210]
push 0x5c
push eax
call sub.msvcrt.dll__mbsrchr
add esp, 0x44
cmp eax, ebx
je 0x40f563
mov byte [eax], bl
cmp byte [ebp - 0x210], bl
je 0x40f5bd
lea eax, [ebp - 0x210]
push eax
call fcn.0040f3ba
test eax, eax
je 0x40f5bd
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push eax
call sub.msvcrt.dll__mbsicmp
test eax, eax
pop ecx
pop ecx
jle 0x40f5bd
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x310]
push eax
call sub.msvcrt.dll_strcpy
add esp, 0x10
inc dword [ebp - 8]
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0040ec05
add esp, 0xc
test eax, eax
je 0x40f4c9
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x418]
push eax
push esi
call sub.msvcrt.dll_strcpy
cmp byte [esi], bl
pop ecx
pop ecx
jne 0x40f63f
push edi
push esi
push str._programfiles_Mozilla_Thunderbird
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push esi
call fcn.0040f3ba
test eax, eax
jne 0x40f612
mov byte [esi], bl
cmp byte [esi], bl
jne 0x40f63f
call fcn.00406172
push esi
call fcn.0040f3ba
test eax, eax
jne 0x40f627
mov byte [esi], bl
cmp byte [esi], bl
jne 0x40f63f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
call fcn.0040f3ba
test eax, eax
jne 0x40f63f
mov byte [esi], bl
xor eax, eax
cmp byte [esi], bl
pop edi
pop esi
setne al
pop ebx
leave
ret
Function at 0x40f64b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
xor ebx, ebx
cmp dword [esi + 0x24], ebx
push edi
jne 0x40f7e1
push 0x117
lea eax, [ebp - 0x117]
push ebx
push eax
mov byte [ebp - 0x118], bl
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [ebp + 8], ebx
lea eax, [ebp - 0x118]
je 0x40f694
push dword [ebp + 8]
push eax
call sub.msvcrt.dll_strcpy
pop ecx
pop ecx
jmp 0x40f699
call fcn.0040f435
cmp byte [ebp - 0x118], bl
je 0x40f741
push 0x104
lea eax, [ebp - 0x21f]
push ebx
push eax
mov byte [ebp - 0x220], bl
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x220]
push eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x118]
push str._sqlite3.dll
push eax
call sub.msvcrt.dll_strcat
lea eax, [ebp - 0x118]
push eax
call fcn.0040614b
add esp, 0x20
test eax, eax
jne 0x40f71b
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x118]
push eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x118]
push str.mozsqlite3.dll
push eax
call sub.msvcrt.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
mov dword [esi + 0x24], eax
jne 0x40f75e
push 8
push ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x40f75b
mov edi, str.sqlite3.dll
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
mov dword [esi + 0x24], eax
jne 0x40f75e
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x40f7ea
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.sqlite3_open
push eax
call edi
push str.sqlite3_prepare
push dword [esi + 0x24]
mov dword [esi], eax
call edi
push str.sqlite3_step
push dword [esi + 0x24]
mov dword [esi + 4], eax
call edi
push str.sqlite3_column_text
push dword [esi + 0x24]
mov dword [esi + 8], eax
call edi
push str.sqlite3_column_int
push dword [esi + 0x24]
mov dword [esi + 0xc], eax
call edi
push str.sqlite3_column_int64
push dword [esi + 0x24]
mov dword [esi + 0x10], eax
call edi
push str.sqlite3_finalize
push dword [esi + 0x24]
mov dword [esi + 0x14], eax
call edi
push str.sqlite3_close
push dword [esi + 0x24]
mov dword [esi + 0x18], eax
call edi
push str.sqlite3_exec
push dword [esi + 0x24]
mov dword [esi + 0x1c], eax
call edi
mov dword [esi + 0x20], eax
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret 4
xor eax, eax
jmp 0x40f7e4
Function at 0x410bc7
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
call fcn.00405ecb
cmp eax, 0xffffffff
pop ecx
mov dword [ebp + 0xc], eax
je 0x410c3f
push ebx
push esi
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 2
jbe 0x410c34
lea eax, [esi + 2]
push edi
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
push ebx
push ebx
push 2
push dword [ebp + 0xc]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esi - 2]
push eax
push edi
push dword [ebp + 0xc]
call fcn.004066f6
add esp, 0xc
lea eax, [edi + esi]
push edi
push dword [ebp + 8]
mov byte [eax - 2], bl
mov byte [eax - 1], bl
mov byte [eax], bl
call fcn.00410a8a
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
pop ebp
ret 8

Function at 0x410d1b
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x31c
push ebx
push esi
push edi
mov ebx, 0x104
push ebx
lea eax, [esp + 0x15]
push 0
push eax
mov byte [esp + 0x1c], 0
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
push 0x1c
pop esi
lea edi, [esp + 0x10]
mov dword [eax + 4], 1
call fcn.0040ee59
push str.MicrosoftWindows_Mail
call fcn.00406734
mov esi, dword [ebp + 8]
pop ecx
mov eax, edi
push eax
mov ecx, esi
call fcn.00410c43
mov dword [esi + 4], 2
push 0x1c
pop esi
call fcn.0040ee59
push str.MicrosoftWindows_Live_Mail
call fcn.00406734
pop ecx
mov ecx, dword [ebp + 8]
mov eax, edi
push eax
call fcn.00410c43
push ebx
lea eax, [esp + 0x225]
push 0
push eax
mov byte [esp + 0x22c], 0
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
lea eax, [esp + 0x11d]
push 0
push eax
mov byte [esp + 0x124], 0
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
lea eax, [esp + 0x224]
push eax
push str.Store_Root
push 0x4142b4
push 0x80000001
call fcn.0040ebc1
add esp, 0x14
push ebx
lea eax, [esp + 0x11c]
push eax
lea eax, [esp + 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [esp + 0x118]
push eax
call sub.msvcrt.dll_strlen
test eax, eax
pop ecx
jle 0x410e25
lea eax, [esp + eax + 0x117]
cmp byte [eax], 0x5c
jne 0x410e25
mov byte [eax], 0
lea eax, [esp + 0x118]
push eax
lea eax, [esp + 0x14]
push eax
call sub.msvcrt.dll__strcmpi
test eax, eax
pop ecx
pop ecx
je 0x410e4d
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x118]
push eax
call fcn.00410c43
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x411366
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfb4
push ebx
push esi
push edi
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x88f]
push ebx
push eax
mov byte [ebp - 0x890], bl
call sub.msvcrt.dll_memset
mov esi, 0x41e
push esi
lea eax, [ebp - 0xcaf]
push ebx
push eax
mov byte [ebp - 0xcb0], bl
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x48f]
push ebx
push eax
mov byte [ebp - 0x490], bl
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0xc]
add esp, 0x24
lea edi, [ebp - 0x890]
call fcn.00410e8a
push dword [ebp + 8]
mov dword [ebp + 0xc], eax
call sub.msvcrt.dll_strlen
cmp dword [ebp + 0xc], 8
pop ecx
mov edi, eax
jle 0x411528
cmp edi, ebx
jle 0x411528
push edi
push dword [ebp + 8]
lea eax, [ebp - 0xcb0]
push eax
call sub.msvcrt.dll_memcpy
push 8
lea eax, [ebp - 0x890]
push eax
lea eax, [ebp + edi - 0xcb0]
push eax
call sub.msvcrt.dll_memcpy
lea eax, [ebp - 0x70]
call fcn.0040bc49
lea ecx, [ebp - 0xcb0]
push ecx
lea eax, [edi + 8]
lea ecx, [ebp - 0x70]
call fcn.0040bc6d
lea eax, [ebp - 0x490]
push eax
lea esi, [ebp - 0x70]
call fcn.0040bd0b
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0xcb0]
push eax
lea eax, [ebp - 0x480]
push eax
call sub.msvcrt.dll_memcpy
mov eax, esi
call fcn.0040bc49
lea ecx, [ebp - 0x490]
push ecx
lea eax, [edi + 0x18]
mov ecx, esi
call fcn.0040bc6d
lea eax, [ebp - 0x14]
push eax
call fcn.0040bd0b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x488]
push eax
lea ecx, [ebp - 0x490]
lea eax, [ebp - 0xfb0]
call fcn.0040535a
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0xfb0]
push eax
lea eax, [ebp - 0xc]
call fcn.004053d6
mov ecx, dword [ebp + 0xc]
add esp, 0x40
xor esi, esi
cmp ecx, 0x18
jl 0x4114bb
lea eax, [ecx - 0x18]
cdq
and edx, 7
add eax, edx
mov esi, eax
sar esi, 3
inc esi
cmp esi, ebx
jle 0x4114ed
lea eax, [ebp - 0x888]
mov dword [ebp + 8], eax
add edi, 8
mov dword [ebp - 4], esi
lea eax, [ebp - 0xfb0]
push eax
mov eax, dword [ebp + 8]
call fcn.004053d6
add dword [ebp + 8], 8
add edi, 8
dec dword [ebp - 4]
pop ecx
jne 0x4114ce
mov ecx, dword [ebp + 0xc]
lea eax, [esi*8 + 8]
lea edx, [eax + 8]
cmp edx, ecx
jle 0x4114fe
lea eax, [ecx - 8]
cmp eax, ebx
jle 0x411518
mov esi, dword [ebp + 0x10]
lea edi, [ebp - 0x888]
sub edi, esi
mov ecx, eax
mov dl, byte [edi + esi]
xor byte [esi], dl
inc esi
dec ecx
jne 0x41150f
mov ecx, dword [ebp + 0x10]
mov byte [eax + ecx], bl
mov ecx, dword [ebp + 0x14]
xor eax, eax
inc eax
mov dword [ecx], eax
mov ebx, eax
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x10
Function at 0x411654
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x4123e0
call fcn.00411840
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x411691
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x411691
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4116a9
cmp eax, 0x20b
je 0x411696
mov dword [ebp - 0x1c], ebx
jmp 0x4116bd
cmp dword [ecx + 0x84], 0xe
jbe 0x411691
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x4116b7
cmp dword [ecx + 0x74], 0xe
jbe 0x411691
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x417b6c], 0xffffffff
or dword [0x417b70], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x416b8c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x416b88]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x417b68], eax
call fcn.00401a4d
cmp dword [section..data], ebx
jne 0x411718
push fcn.00401a4d
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0041182c
push 0x4123b0
push 0x4123ac
call sub.msvcrt.dll__initterm
mov eax, dword [0x416b84]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x416b80]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x4123a8
push 0x412394
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x4117ae
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x411782
cmp al, 0x22
jne 0x411774
cmp byte [esi], 0x22
jne 0x41178b
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x411795
cmp al, 0x20
jbe 0x411787
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x4c], 1
je 0x4117b9
movzx eax, word [ebp - 0x48]
jmp 0x4117bc
cmp byte [esi], 0x20
jbe 0x41178b
inc esi
mov dword [ebp - 0x34], esi
jmp 0x4117ae
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x4117d9
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x41180e
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00411879
ret
Function at 0x401d07
Capabilities:
Delete directory

Disassembly:
push ebx
xor eax, eax
push eax
call fcn.0040e2a0
mov ebx, dword [esp]
cmp ebx, 1
jne 0x401d32
push dword [0x418054]
call fcn.004053bb
and eax, eax
je 0x401d32
push dword [0x418054]
call fcn.0040542a
call fcn.00403719
push dword [0x4180a0]
call fcn.0040aa44
push dword [0x4180c0]
call sub.KERNEL32.DLL_RemoveDirectoryW
push dword [0x4180a8]
call sub.KERNEL32.DLL_RemoveDirectoryW
push dword [esp + 0xc]
jmp 0x4011b6

Function at 0x401d9f
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040e2a0
mov eax, 0x4170f8
mov dword [0x41806c], eax
mov dword [esp], 0
jmp 0x401dc0
mov eax, 3
cmp eax, dword [esp]
jl 0x401e2e
mov eax, dword [0x41806c]
movsx eax, byte [eax]
mov dword [esp + 4], eax
inc dword [0x41806c]
push edx
call fcn.0040e160
pop edx
push eax
push edx
call fcn.0040e160
pop edx
push eax
mov ebx, dword [esp + 0xc]
imul ebx, ebx, 0xffffffff
push ebx
call fcn.00405f10
lea eax, [esp + 0xc]
push eax
call fcn.0040e1a0
mov edx, dword [esp + 0xc]
push edx
call fcn.0040e160
pop edx
push eax
push edx
call fcn.0040e300
mov edx, dword [esp + 0xc]
push edx
call fcn.0040e300
lea eax, [esp + 0x10]
push eax
call fcn.0040e1a0
inc dword [esp]
jno 0x401dc0
push 0x400
call fcn.00409e60
mov dword [esp + 0x10], eax
push edx
call fcn.0040e160
pop edx
push eax
push edx
call fcn.0040e160
pop edx
push eax
call fcn.0040aa52
lea eax, [esp + 0x18]
push eax
call fcn.0040e1a0
push dword [esp + 0x10]
push 0
mov eax, 0x417020
push eax
push dword [esp + 0x20]
call sub.KERNEL32.DLL_GetTempFileNameW
push edx
call fcn.0040e160
pop edx
push eax
push edx
call fcn.0040e160
pop edx
push eax
push dword [esp + 0x18]
call fcn.00409e80
lea eax, [0x4180a8]
push eax
call fcn.0040e1a0
push dword [0x4180a8]
call fcn.0040aa44
push dword [0x4180a8]
call fcn.0040a985
push dword [esp + 0x10]
push 0
mov eax, 0x417020
push eax
push dword [0x4180a8]
call sub.KERNEL32.DLL_GetTempFileNameW
push edx
call fcn.0040e160
pop edx
push eax
push edx
call fcn.0040e160
pop edx
push eax
push dword [esp + 0x18]
call fcn.00409e80
lea eax, [0x4180c0]
push eax
call fcn.0040e1a0
push dword [0x4180c0]
call fcn.0040aa44
push dword [0x4180c0]
call fcn.0040a985
push dword [esp + 0x10]
push 0
mov eax, 0x417020
push eax
push dword [0x4180c0]
call sub.KERNEL32.DLL_GetTempFileNameW
push dword [0x4180c0]
call sub.SHLWAPI.DLL_PathAddBackslashW
push edx
call fcn.0040e160
pop edx
push eax
push edx
call fcn.0040e160
pop edx
push eax
push dword [esp + 0x18]
call fcn.00409e80
lea eax, [0x4180a0]
push eax
call fcn.0040e1a0
push dword [0x4180a0]
call fcn.0040aa44
push dword [esp + 0xc]
push dword [0x4180a0]
call sub.SHLWAPI.DLL_PathRenameExtensionW
push dword [esp + 0x10]
call fcn.00409e40
jmp 0x401f74
push dword [esp + 0xc]
call fcn.0040e230
push dword [esp + 0x14]
call fcn.0040e230
push dword [esp + 8]
call fcn.0040e230
add esp, 0x18
pop ebx
ret
Function at 0x402658
Capabilities:
Accept command line arguments

Disassembly:
push ebx
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40265e
call fcn.0040e2a0
push dword [esp + 0x2c]
call fcn.004051a0
mov eax, 0x4170b7
mov dword [0x41806c], eax
mov dword [esp], 0
jmp 0x40268c
mov eax, 6
cmp eax, dword [esp]
jl 0x4026fa
mov eax, dword [0x41806c]
movsx eax, byte [eax]
mov dword [esp + 4], eax
inc dword [0x41806c]
push edx
call fcn.0040e160
pop edx
push eax
push edx
call fcn.0040e160
pop edx
push eax
mov ebx, dword [esp + 0xc]
imul ebx, ebx, 0xffffffff
push ebx
call fcn.00405f10
lea eax, [esp + 0xc]
push eax
call fcn.0040e1a0
mov edx, dword [esp + 0xc]
push edx
call fcn.0040e160
pop edx
push eax
push edx
call fcn.0040e300
mov edx, dword [esp + 0xc]
push edx
call fcn.0040e300
lea eax, [esp + 0x10]
push eax
call fcn.0040e1a0
inc dword [esp]
jno 0x40268c
push edx
call fcn.0040e160
pop edx
push eax
push edx
call fcn.0040e160
pop edx
push eax
call sub.KERNEL32.DLL_GetCommandLineW
push eax
call fcn.00409e80
lea eax, [esp + 0x14]
push eax
call fcn.0040e1a0
mov edx, dword [esp + 0x10]
push edx
call fcn.0040e160
pop edx
push eax
push edx
call fcn.0040e300
lea eax, [esp + 0x18]
push eax
call fcn.0040e1a0
mov eax, dword [esp + 0x14]
push eax
call sub.SHLWAPI.DLL_PathRemoveArgsW
mov dword [esp + 0x18], eax
push dword [esp + 0x14]
call fcn.00405d60
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x1c]
and ebx, ebx
jle 0x4027b8
push edx
call fcn.0040e160
pop edx
push eax
mov edx, 0x417026
push edx
call fcn.0040e300
push edx
call fcn.0040e160
pop edx
push eax
push edx
call fcn.0040e160
pop edx
push eax
push edx
call fcn.0040e160
pop edx
push eax
push edx
call fcn.0040e160
pop edx
push eax
mov ebx, dword [esp + 0x30]
inc ebx
push ebx
push dword [esp + 0x28]
call fcn.004060b0
call fcn.00405182
add dword [esp], edx
call fcn.00406000
pop eax
lea eax, [esp + 0x24]
push eax
call fcn.0040e1a0
push dword [esp + 0x20]
push dword [esp + 0x10]
call fcn.00409b8a
mov edx, dword [esp + 0x20]
push edx
call fcn.0040e160
pop edx
push eax
push edx
call fcn.0040e300
pop eax
push eax
call fcn.00405170
pop edx
add eax, edx
jmp 0x4027ed
push dword [esp + 0x14]
call fcn.0040e230
push dword [esp + 8]
call fcn.0040e230
push dword [esp + 0x10]
call fcn.0040e230
push dword [esp + 0xc]
call fcn.0040e230
push dword [esp + 0x20]
call fcn.0040e230
add esp, 0x24
pop ebx
ret

Function at 0x40281f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
xor eax, eax
push eax
push eax
call fcn.0040e2a0
push dword [esp + 0x10]
push dword [esp + 0x10]
call sub.KERNEL32.DLL_LoadResource
mov dword [esp], eax
push dword [esp + 0x10]
push dword [esp + 0x10]
call sub.KERNEL32.DLL_SizeofResource
mov dword [0x41805c], eax
push dword [0x41805c]
call fcn.00409e60
mov dword [esp + 4], eax
push dword [0x41805c]
push dword [esp + 8]
push dword [esp + 8]
call fcn.00409f40
push dword [esp]
call sub.KERNEL32.DLL_FreeResource
mov eax, dword [esp + 4]
jmp 0x40287c
add esp, 8
ret 8
Function at 0x402f92
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x402f98
call fcn.0040e2a0
lea eax, [esp]
push eax
call sub.KERNEL32.DLL_GetNativeSystemInfo
lea ebp, [esp]
cmp word [ebp], 0
je 0x402fc4
mov eax, 1
jmp 0x402fc6
xor eax, eax
add esp, 0x24
pop ebp
ret