joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fd80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xcc]
mov ecx, 0x33
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov esi, esp
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, esp
call fcn.0041558c
pop edi
pop esi
pop ebx
add esp, 0xcc
cmp ebp, esp
call fcn.0041558c
mov esp, ebp
pop ebp
ret 8

Function at 0x40fde0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xcc]
mov ecx, 0x33
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov esi, esp
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.0041558c
lea ecx, [eax + eax + 2]
mov esi, esp
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, esp
call fcn.0041558c
pop edi
pop esi
pop ebx
add esp, 0xcc
cmp ebp, esp
call fcn.0041558c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x412e30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xf0]
mov ecx, 0x3c
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
shl ecx, 1
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov esi, esp
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x20]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, esp
call fcn.0041558c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x412e9b
mov eax, dword [ebp - 0x14]
jmp 0x412ee8
cmp dword [ebp - 0x20], 1
je 0x412eae
cmp dword [ebp - 0x20], 2
je 0x412eae
mov eax, 0xd
jmp 0x412ee8
cmp dword [ebp + 0xc], 0
je 0x412edc
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x412ed5
mov eax, dword [ebp - 0x2c]
shr eax, 1
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + eax*2 - 2]
test edx, edx
je 0x412edc
mov eax, 0xd
jmp 0x412ee8
mov eax, dword [ebp - 0x2c]
shr eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x412f10]
call fcn.004155af
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0xf0
cmp ebp, esp
call fcn.0041558c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41530d
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x41bcf0
call fcn.004150c8
xor edi, edi
mov dword [ebp - 0x20], edi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call ebx
cmp word [eax], 0x5a4d
jne 0x41534d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41534d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x415365
cmp eax, 0x20b
je 0x415352
mov dword [ebp - 0x1c], edi
jmp 0x415379
cmp dword [ecx + 0x84], 0xe
jbe 0x41534d
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x415373
cmp dword [ecx + 0x74], 0xe
jbe 0x41534d
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x4238fc], 0xffffffff
or dword [0x423900], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x423878]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x423874]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4238f8], eax
call fcn.004156a0
call fcn.00415740
cmp dword [0x423410], edi
jne 0x4153d9
push fcn.00415740
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.0041572e
push 0x423054
push 0x423050
call sub.MSVCR71.dll__initterm
push 0x4156e4
call fcn.00415185
mov eax, dword [0x423870]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x42386c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___wgetmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, edi
jge 0x41542d
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x42304c
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x415457
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x415511
mov dword [ebp - 0x24], esi
mov ax, word [esi]
cmp ax, 0x20
ja 0x4154c6
cmp ax, di
je 0x41546d
cmp dword [ebp - 0x20], edi
jne 0x4154c6
mov ax, word [esi]
cmp ax, di
je 0x415482
cmp ax, 0x20
ja 0x415482
inc esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x41546d
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x58], 1
je 0x41549e
movzx eax, word [ebp - 0x54]
jmp 0x4154a1
push 0xa
pop eax
push eax
push esi
push edi
push edi
call ebx
push eax
call fcn.0040706a
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], edi
jne 0x4154be
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x41550b
cmp ax, 0x22
jne 0x4154d7
xor eax, eax
cmp dword [ebp - 0x20], edi
sete al
mov dword [ebp - 0x20], eax
inc esi
inc esi
jmp 0x415457
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00415103
ret
Function at 0x41623a
Capabilities:
Parse pe header

Disassembly:
push 0x2c
push 0x41c270
call fcn.004150c8
push 0x1c
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x1c], ecx
cmp word [ecx], 0x5a4d
jne 0x4162a6
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x20], eax
cmp dword [eax], 0x4550
je 0x41627e
xor al, al
or dword [ebp - 4], 0xffffffff
jmp 0x4162ac
mov edx, dword [eax + 0xd8]
lea esi, [edx + ecx]
cmp dword [ebp + 0xc], esi
jb 0x416276
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x416276
mov al, 1
jmp 0x416278
or dword [ebp - 4], 0xffffffff
xor al, al
call fcn.00415103
ret
Function at 0x4163ae
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, eax
cmp esi, 0x7ff80000
push edi
mov ebx, 0x10000
jbe 0x4163d1
lea eax, [esi - 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x4163d4
mov dword [ebp - 4], ebx
cmp esi, 0x80000000
jae 0x4163e7
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 8], eax
jmp 0x4163ee
mov dword [ebp - 8], 0xfff80000
mov eax, dword [0x4238dc]
test eax, eax
mov ecx, dword [0x4238d8]
jne 0x416408
test ecx, ecx
je 0x41641d
mov eax, ecx
mov dword [0x4238dc], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x41641d
cmp edx, dword [ebp - 4]
jb 0x41641d
cmp edx, dword [ebp - 8]
jbe 0x4164f1
mov eax, ecx
test ecx, ecx
jmp 0x416441
test eax, eax
je 0x41643c
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x41643c
cmp ecx, dword [ebp - 4]
jb 0x41643c
cmp ecx, dword [ebp - 8]
jbe 0x4164f1
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x4238dc], eax
jne 0x416423
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, dword [ebp - 4]
mov edi, esi
jbe 0x41658c
cmp edi, 0x70000000
jb 0x416471
cmp edi, 0x80000000
ja 0x416471
mov edi, 0x6fff0000
push 0x1c
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41658c
cmp dword [ebp - 0x30], ebx
jne 0x416490
cmp dword [ebp - 0x34], ebx
jae 0x4164a3
mov edi, dword [ebp - 0x3c]
add edi, 0xffff0000
cmp edi, dword [ebp - 4]
ja 0x41645c
jmp 0x41658c
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x4238dc], eax
je 0x41658c
mov ecx, dword [0x4238d8]
xor edx, edx
mov dword [eax + 4], ecx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov dword [0x4238d8], eax
lea ecx, [eax + 0xffe0]
mov esi, 0x7fd
mov dword [ecx + 0x18], edx
mov edx, ecx
sub ecx, 0x20
dec esi
jne 0x4164e3
mov dword [eax + 8], edx
mov esi, dword [eax + 8]
cmp esi, dword [ebp - 4]
jb 0x416591
cmp esi, dword [ebp - 8]
ja 0x416591
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call sub.MSVCR71.dll_memset
add esp, 0xc
mov eax, esi
jmp 0x416593
cmp esi, 0x70000000
jb 0x416535
cmp esi, 0x80000000
ja 0x416535
mov esi, 0x80010000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x416591
cmp dword [ebp - 0x14], ebx
jne 0x416583
cmp dword [ebp - 0x18], ebx
jb 0x416583
mov ecx, esi
and ecx, 0xffff
je 0x416567
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x18], eax
add dword [ebp - 0x24], eax
mov esi, dword [ebp - 0x24]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x4238dc], eax
jne 0x4164bf
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
lea esi, [eax + ecx]
cmp esi, dword [ebp - 8]
jb 0x416520
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4165b9
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x41c280
call fcn.004150c8
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x416614
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x5a4d
jne 0x416610
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x416610
cmp word [eax + 0x14], 0
jne 0x416605
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x416616
mov eax, ecx
jmp 0x4165ff
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.00415103
ret

Function at 0x41662e
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push edi
xor edi, edi
cmp dword [0x4238e4], edi
jne 0x416651
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x4238e4
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x416658
mov eax, 0x10dd
jmp 0x41669c
push esi
mov esi, dword [0x4238d8]
mov dword [0x4238e0], edi
mov dword [0x4238f4], edi
mov dword [0x4238f0], edi
mov dword [0x4238e8], edi
mov dword [0x4238ec], edi
jmp 0x416695
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
cmp esi, edi
jne 0x41667f
xor eax, eax
pop esi
pop edi
pop ecx
ret

Function at 0x41669f
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4238e4], eax
je 0x4166b5
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x4238f4]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x416700
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x4166f1
mov edi, dword [esi + 0x10]
cmp edi, ebx
je 0x4166f1
call fcn.00416598
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x4166c4
mov dword [0x4238f4], ebx
call fcn.00416387
mov esi, dword [0x4238f0]
cmp esi, ebx
je 0x41672d
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x416715
pop edi
pop esi
mov dword [0x4238f0], ebx
mov dword [0x4238e4], ebx
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x416980
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x4238e8]
test eax, eax
jne 0x4169f0
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x41699c
xor eax, eax
jmp 0x4169ef
push esi
push 8
call fcn.00415062
mov esi, eax
test esi, esi
pop ecx
jne 0x4169b0
push 8
pop edi
jmp 0x4169cb
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x4169dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
pop ecx
and dword [0x4238ec], 0
mov dword [0x4238e8], edi
mov eax, edi
jmp 0x4169ee
mov eax, dword [0x4238f0]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [0x4238f0], esi
xor eax, eax
pop esi
pop edi
ret 4
Function at 0x416c30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4238e4], eax
je 0x416c4c
mov eax, 0x10dd
jmp 0x416d28
mov eax, dword [0x4238e8]
test eax, eax
jne 0x416d28
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x416c69
push 6
pop eax
jmp 0x416d27
cmp dword [edi], 0
push ebx
push esi
jne 0x416c7d
push 6
pop eax
mov dword [0x4238e8], eax
jmp 0x416d1f
push 0x18
call fcn.00415062
mov esi, eax
test esi, esi
pop ecx
jne 0x416c90
push 8
pop edi
jmp 0x416d09
mov edi, dword [edi]
push 0
push dword [ebp + 0xc]
call fcn.0041661c
movzx ecx, byte [edi + 0x17]
mov ebx, dword [edi + 0x18]
xor edx, edx
sub ebx, ecx
cmp ecx, edx
je 0x416cfe
cmp ecx, 0x17
ja 0x416cfe
cmp dword [edi + 0x1c], eax
jne 0x416cfe
lea eax, [ebp - 4]
push eax
push 0x40
push ecx
push ebx
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x416cd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x416d09
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], ebx
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x4238f4]
mov dword [esi], eax
mov dword [0x4238f4], esi
xor eax, eax
jmp 0x416d25
cmp dword [0x4238e0], edx
push 9
pop edi
jne 0x416d0f
mov dword [0x4238e8], edi
test esi, esi
je 0x416d1a
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, edi
mov edi, dword [ebp + 8]
mov dword [0x4238ec], edi
pop esi
pop ebx
pop edi
leave
ret 8

Function at 0x40147b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0x114]
sub esp, 0x134
mov dword [esp], eax
lea ebx, [ebp - 0x10c]
call dword [sym.imp.USER32.dll_GetCursorPos]
push eax
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push eax
push eax
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 4]
leave
sub eax, 3
ret

Function at 0x4014f8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xa0
mov dword [ebp - 0x88], 0
call fcn.0040147b
mov dword [esp], 0x4015cc
mov dword [ebp - 0x8c], 0
mov ebx, eax
lea eax, [ebp - 0x8c]
mov dword [esp + 0xc], eax
mov eax, ebx
or eax, 0x40
mov dword [esp + 8], eax
mov eax, 0x40202e
sub eax, 0x4015cc
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x401593
lea esi, [ebp - 0x88]
mov dword [esp], ebx
call fcn.00401382
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.004013f5
mov cl, bl
mov dword [esp + 8], esi
lea eax, [ebx + 0x1b600]
shl eax, cl
mov dword [esp + 4], eax
mov eax, 0x40300c
shr eax, cl
mov dword [esp], eax
call fcn.00401d31
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x4020e0
Capabilities:
Shutdown system

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push eax
push 0x4061b4
push 0
call sub.DSETUP.dll_DirectXSetupA
add eax, 0xd
cmp eax, 0xe
ja case.0x4020fb.10
jmp dword [eax*4 + 0x402340]
xor eax, eax
pop ebp
pop ebx
ret
xor eax, eax
pop ebp
pop ebx
ret
mov eax, 1
pop ebp
pop ebx
ret
push 0xc8
mov eax, dword [0x4075c4]
push 0x4075d0
push 0xe
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 0
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x406038
push 0x4075d0
push 0
call ebp
mov eax, 1
pop ebp
pop ebx
ret
push 0xc8
mov eax, dword [0x4075c4]
push 0x4075d0
push 0xc
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 0
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x406038
push 0x4075d0
push 0
call ebp
mov eax, 1
pop ebp
pop ebx
ret
push 0xc8
mov eax, dword [0x4075c4]
push 0x4075d0
push 0xd
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 0
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x406038
push 0x4075d0
push 0
call ebp
mov eax, 1
pop ebp
pop ebx
ret
push 0xc8
mov eax, dword [0x4075c4]
push 0x4075d0
push 0x10
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 0
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x406038
push 0x4075d0
push 0
call ebp
mov eax, 1
pop ebp
pop ebx
ret
push 0xc8
mov eax, dword [0x4075c4]
push 0x4075d0
push 0xf
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 0
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x406038
push 0x4075d0
push 0
call ebp
mov eax, 1
pop ebp
pop ebx
ret
push 0xc8
mov eax, dword [0x4075c4]
push 0x4075d0
push 0xa
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 0
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x406038
push 0x4075d0
push 0
call ebp
mov eax, 1
pop ebp
pop ebx
ret
push 0xc8
mov eax, dword [0x4075c4]
push 0x4075d0
push 9
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 0
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x406038
push 0x4075d0
push 0
call ebp
mov eax, 1
pop ebp
pop ebx
ret
push 0xc8
mov eax, dword [0x4075c4]
push 0x4075d0
push 0x11
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 0
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x406038
push 0x4075d0
push 0
call ebp
mov eax, 1
pop ebp
pop ebx
ret
push 0xc8
mov eax, dword [0x4075c4]
push 0x4075d0
push 0xb
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 0
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x406038
push 0x4075d0
push 0
call ebp
mov eax, 1
pop ebp
pop ebx
ret
push 0xc8
mov eax, dword [0x4075c4]
push 0x4075d0
push 8
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 4
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x406038
push 0x4075d0
push 0
call ebp
cmp eax, 6
jne 0x402337
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov eax, 1
pop ebp
pop ebx
ret
Function at 0x4028f0
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x348
lea eax, [esp + 0x248]
push ebx
lea ecx, [esp + 0x14c]
push esi
lea edx, [esp + 0x50]
push edi
push ebp
push eax
lea eax, [esp + 0x14]
push ecx
push edx
mov ecx, dword [0x40621c]
push eax
push ecx
call fcn.00402b40
lea ecx, [esp + 0x24]
add esp, 0x14
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
nop
push ecx
call esi
lea ecx, [esp + 0x58]
push ecx
call esi
push 0x4076a0
push 0x136
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [esp + 0x35c]
push 0xc8
push 0x4077e0
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 1
mov dword [0x4075c4], eax
push eax
call esi
push 0xc8
mov ecx, dword [0x4075c4]
push 0x4073e0
push 5
push ecx
call esi
push 0xc8
mov eax, dword [0x4075c4]
push 0x4074b0
push 6
push eax
call esi
push 0xc8
mov eax, dword [0x4075c4]
push 0x407200
push 7
push eax
call esi
push 0xc8
mov eax, dword [0x4075c4]
push 0x407130
push 2
push eax
call esi
mov dword [0x407578], 0x7f
mov eax, dword [esp + 0x364]
cmp byte [eax], 0x55
jne 0x4029da
call fcn.00401300
jmp 0x402b22
push 0x406038
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
push str.SAMURAI2
call esi
test eax, eax
je 0x4029fc
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x402b22
push 0x406038
push str.Loader
call esi
test eax, eax
je 0x402a18
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x402b22
push 0xc0c0c0
xor esi, esi
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push 0x7f00
mov dword [0x4075c8], eax
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
mov ecx, dword [0x4075c4]
mov dword [esp + 0x2c], eax
mov eax, 0x4061c8
and eax, 0xffff
push eax
push ecx
call dword [sym.imp.USER32.dll_LoadIconA]
push 4
mov ebp, dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], str.Loader
call ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], esi
mov eax, dword [0x4075c4]
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], eax
push ecx
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], 0x402780
mov dword [esp + 0x20], esi
call dword [sym.imp.USER32.dll_RegisterClassA]
push esi
mov ecx, dword [0x4075c4]
push ecx
push esi
push esi
push 0x32
push 0x32
push 0xa
push 0xa
push 0xcf0000
push 0x406038
push str.Loader
push esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
push esi
mov dword [0x407118], eax
push esi
push 0x6bc
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 0x3c]
push esi
push esi
push esi
push ecx
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
call esi
test eax, eax
je 0x402b16
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [esp + 0x3c]
push eax
call edi
lea eax, [esp + 0x3c]
push eax
call ebx
lea eax, [esp + 0x3c]
push 0
push 0
push 0
push eax
call esi
test eax, eax
jne 0x402af7
mov eax, dword [0x4075c8]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x348
ret 0x10