joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408d3f
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov eax, dword [ebp + 8]
mov dword [esp], 0x450ca0
mov dword [esp + 4], eax
call fcn.00408823
push ebx
push ebx
mov dword [esp], 0x450ca0
call fcn.004081b7
push edx
test eax, eax
jne 0x408d70
xor eax, eax
jmp 0x408dec
mov dword [esp], eax
mov ebx, eax
call fcn.00408948
push ecx
test byte [0x42310c], 0x80
je 0x408da7
mov al, byte [ebx]
test al, al
je 0x408d6c
cmp al, 0x5c
jne 0x408da7
jmp 0x408d6c
call fcn.00408d07
push edx
test eax, eax
jne 0x408dca
mov dword [esp], 0x450ca0
call fcn.00408151
push eax
mov dword [esp], 0x450ca0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, ebx
push ecx
sub edx, 0x450ca0
mov dword [esp], 0x450ca0
cmp edx, eax
jl 0x408d90
jmp 0x408dd1
test byte [eax], 0x10
jne 0x408d9a
jmp 0x408d6c
call fcn.00408857
push eax
mov dword [esp], 0x450ca0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
inc eax
push edx
setne al
movzx eax, al
mov ebx, dword [ebp - 4]
leave
ret 4

Function at 0x408df3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp - 0x126]
sub esp, 0x134
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push edx
push edx
lea edx, [eax - 1]
cmp edx, 0x103
ja 0x408e30
xor edx, edx
cmp byte [ebp + eax - 0x127], 0x5c
sete dl
jmp 0x408e37
xor eax, eax
mov edx, 1
mov ecx, dword [ebp + 8]
add edx, 0x40cb40
add eax, ebx
mov dword [esp + 4], str._s_s.dll
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_wsprintfA]
xor eax, eax
mov dword [esp], ebx
mov dword [esp + 8], 8
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebx, dword [ebp - 4]
sub esp, 0xc
leave
ret 4
Function at 0x409810
Capabilities:
Hash data with crc32

Disassembly:
push ebp
cmp dword [0x454d04], 0
mov ebp, esp
push esi
mov edx, dword [ebp + 0xc]
push ebx
jne 0x40984d
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
shr esi, 1
and eax, 1
je 0x409838
mov eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x40982a
mov dword [ecx*4 + 0x454d00], eax
inc ecx
cmp ecx, 0x100
jne 0x409823
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
cmp edx, ebx
je 0x40986f
mov cl, byte [edx]
inc edx
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x454d00]
jmp 0x409857
pop ebx
not eax
pop esi
pop ebp
ret 0xc

Function at 0x461f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x455015
lea edi, [esi - 0x54015]
push edi
or ebp, 0xffffffff
jmp 0x461f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461f38
mov eax, 1
add ebx, ebx
jne 0x461f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x461f50
jne 0x461f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f50
xor ecx, ecx
sub eax, 3
jb 0x461f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461ff2
mov ebp, eax
add ebx, ebx
jne 0x461f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x461f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x461fbc
inc ecx
add ebx, ebx
jne 0x461fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x461f9d
jne 0x461fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x461fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x461fcd
jmp 0x461f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x461fdc
add edi, ecx
jmp 0x461f3e
pop esi
mov edi, esi
mov ecx, 0x32d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x461ffa
cmp byte [edi], 0
jne 0x461ffa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x461fff
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x46206e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x621f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46202c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62258]
or eax, eax
je 0x462068
mov dword [ebx], eax
add ebx, 4
jmp 0x462049
call dword [esi + 0x6225c]
popal
jmp 0x4095a4
Function at 0x420b5b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x420b9a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x420b9a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x420b9a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x420b9a
cmp dword [ecx + 0x74], 0xe
jbe 0x420b9a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x433310
Capabilities:
Parse pe header

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

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x1596459
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x11961f70
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x419a20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.IaDsgWGk
lea edi, [esi - 0x10000]
push edi
or ebp, 0xffffffff
jmp 0x419a42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419a49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419a38
mov eax, 1
add ebx, ebx
jne 0x419a5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419a50
jne 0x419a6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419a50
xor ecx, ecx
sub eax, 3
jb 0x419a80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419af2
mov ebp, eax
add ebx, ebx
jne 0x419a8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x419a98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x419abc
inc ecx
add ebx, ebx
jne 0x419aa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x419a9d
jne 0x419ab9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419a9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x419adc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x419acd
jmp 0x419a3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x419adc
add edi, ecx
jmp 0x419a3e
pop esi
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x419b44
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x199f4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19a74]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x419af9
mov ecx, edi
jns 0x419b28
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19a7c]
or eax, eax
je 0x419b3e
mov dword [ebx], eax
add ebx, 4
jmp 0x419b16
call dword [esi + 0x19a78]
mov ebp, dword [esi + 0x19a80]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x419b78
sub esp, 0xffffff80
jmp section.VHqxTUpa

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

Disassembly:
pushal
nop
nop
mov eax, section..rsrc
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x3351076
nop
nop
test eax, eax
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x6bdf59b8
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x406770
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a133
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x410040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.LUNA_UPDATER_SINGLE
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
cmp eax, 0xb7
jne 0x4067c9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x406887
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.LUNA_UPDATER_BLOCK
push 0
push 0x41052c
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
mov dword [ebp - 0xf0], esi
push str.LunaTranslator_runtime
lea ecx, [ebp - 0xe8]
mov dword [ebp - 4], 0
call fcn.004021f0
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 1
call fcn.00403ff0
test eax, eax
je 0x40681a
mov ebx, 3
jmp 0x406873
push 0xfde9
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xe9]
call fcn.00403120
push 2
mov byte [ebp - 4], 2
call fcn.00408e80
cmp dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x28]
push eax
cmova ecx, dword [ebp - 0x28]
push 0x40bd10
push ecx
call sub.msvcrt.dll_freopen
add esp, 0x10
lea ecx, [ebp - 0xe8]
push str._nimport_sys_nimport_os_nPYSTAND__os.environ_PYSTAND__nPYSTAND_HOME__os.environ_PYSTAND_HOME__nPYSTAND_RUNTIME__os.environ_PYSTAND_RUNTIME__nPYSTAND_SCRIPT__os.environ_PYSTAND_SCRIPT__nsys.path_origin___n_for_n_in_sys.path__nsys.PYSTAND__PYSTAND_nsys.PYSTAND_HOME__PYSTAND_HOME_nsys.PYSTAND_SCRIPT__PYSTAND_SCRIPT_ndef_MessageBox_msg__info__Message_:_n____import_ctypes_n____ctypes.windll.user32.MessageBoxW_None__str_msg___str_info___0__n____return_0_nos.MessageBox__MessageBox_nsys.stdoutsys.stderr_n_nsys.argv___PYSTAND_SCRIPT___sys.argv_1:__ntext__open_PYSTAND_SCRIPT__rb_.read___nenviron____file__:_PYSTAND_SCRIPT____name__:___main___nenviron___package_____None_n_ncode__compile_text__PYSTAND_SCRIPT__exec__nexec_code__environ__n
call fcn.00404700
lea ecx, [ebp - 0x28]
mov ebx, eax
call fcn.00402a00
lea ecx, [ebp - 0xe8]
call fcn.00402cd0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004078a4
mov esp, ebp
pop ebp
ret

Function at 0x4082da
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x408319
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x408319
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x408319
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x408319
cmp dword [ecx + 0x74], 0xe
jbe 0x408319
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x408850
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x410040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x408877
mov ecx, 5
int 0x29
push 2
call fcn.0040837e
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x408982
test esi, esi
jne 0x408982
push 2
call fcn.0040837e
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004078a4
mov esp, ebp
pop ebp
ret

Function at 0x408ba0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.00408bd0
mov esi, dword [ebp + 8]
test al, al
je 0x408bbe
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.00408be0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x408d10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 2
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x408d6c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x408d6c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x408d6c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x408d6c
cmp dword [ecx + 0x74], 0xe
jbe 0x408d6c
cmp dword [ecx + 0xe8], 0
je 0x408d6c
push dword [ebp + 8]
call fcn.00408be0
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x410b1c
call fcn.004089b0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x408da1
push dword [ebp + 8]
call fcn.00408ba0
mov esp, ebp
pop ebp
ret
Function at 0x408de0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x408e3c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x408e3c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x408e3c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x408e3c
cmp dword [ecx + 0x74], 0xe
jbe 0x408e3c
cmp dword [ecx + 0xe8], 0
je 0x408e3c
push dword [ebp + 8]
call fcn.00408be0
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x410b1c
call fcn.004089b0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x408e71
push dword [ebp + 8]
call fcn.00408ba0
mov esp, ebp
pop ebp
ret

Function at 0x408f60
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60000
jae 0x408f8a
mov eax, 2
pop ebp
ret
push esi
call fcn.004086a0
mov esi, eax
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x70]
mov ecx, edx
and cl, 2
movzx ecx, cl
neg ecx
sbb ecx, ecx
inc eax
cmp eax, 3
ja case.default.0x408faa
jmp dword [eax*4 + 0x408fe0]
or edx, 2
lea eax, [ecx + 2]
mov dword [esi + 0x70], edx
pop esi
pop ebp
ret
and edx, 0xfffffffd
mov dword [esi + 0x70], edx
lea eax, [ecx + 2]
pop esi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
call fcn.004087e0
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x408ff0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
mov eax, dword [0x410040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4090eb
push 0x2d
push esi
call sub.msvcrt.dll_strchr
add esp, 8
test eax, eax
je 0x4090eb
xor ecx, ecx
mov al, byte [ecx + esi]
lea edx, [ecx + ecx]
test al, al
je 0x40904a
cbw
inc ecx
mov word [ebp + edx - 0x204], ax
cmp ecx, 0x100
jne 0x409028
jmp 0x4090eb
cmp edx, 0x200
jae 0x409151
xor eax, eax
mov word [ebp + edx - 0x204], ax
lea eax, [ebp - 0x204]
push 0x2d
push eax
call sub.msvcrt.dll_wcsrchr
add esp, 8
test eax, eax
je 0x4090eb
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
lea eax, [ebp - 0x504]
push 0xff
push eax
push 0x1001
lea eax, [ebp - 0x204]
push eax
call edi
test eax, eax
je 0x4090ea
lea edx, [ebp - 0x504]
mov ecx, 0x5f
lea edx, [edx + eax*2]
mov word [edx - 2], cx
mov ecx, 0x100
sub ecx, eax
lea eax, [ebp - 0x204]
push ecx
push edx
push 0x1002
push eax
call edi
test eax, eax
je 0x4090ea
lea edi, [ebp - 0x504]
xor eax, eax
nop
movzx ecx, word [edi + eax*2]
lea edx, [ebp - 0x304]
test cx, cx
je 0x409133
mov byte [edx + eax], cl
inc eax
cmp eax, 0x100
jne 0x4090d0
pop edi
mov eax, dword [0x410b24]
test eax, eax
jne 0x409111
push str.setlocale
call fcn.00409880
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40910c
or eax, 0xffffffff
mov dword [0x410b24], eax
lea ecx, [eax + 1]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x40913f
push esi
push ebx
call ecx
add esp, 8
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004078a4
mov esp, ebp
pop ebp
ret
mov byte [edx + eax], 0
lea esi, [ebp - 0x304]
jmp 0x4090ea
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.004078a4
mov esp, ebp
pop ebp
ret
call fcn.00407a1d
int3
Function at 0x401156
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov ch, byte [eax]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], 8
mov cl, byte [eax + 1]
movzx edx, cx
xor ecx, ecx
mov ch, byte [eax + 2]
mov cl, byte [eax + 3]
movzx ecx, cx
mov dword [ebp + 0xc], ecx
xor ecx, ecx
mov ch, byte [eax + 4]
mov cl, byte [eax + 5]
movzx ecx, cx
mov dword [ebp - 4], ecx
xor ecx, ecx
mov ch, byte [eax + 6]
add edi, 0x68
mov cl, byte [eax + 7]
movzx eax, cx
mov dword [ebp - 8], eax
mov si, word [edi]
call fcn.00401000
mov si, word [edi + 6]
mov edx, dword [ebp - 8]
movzx ebx, ax
mov ax, word [edi + 2]
add word [ebp + 0xc], ax
mov ax, word [edi + 4]
add word [ebp - 4], ax
mov dword [ebp + 8], ebx
call fcn.00401000
mov edx, dword [ebp - 4]
mov si, word [edi + 8]
movzx eax, ax
xor edx, ebx
mov dword [ebp - 8], eax
call fcn.00401000
mov edx, dword [ebp - 8]
xor edx, dword [ebp + 0xc]
mov si, word [edi + 0xa]
movzx ebx, ax
add edx, ebx
call fcn.00401000
movzx eax, ax
xor dword [ebp + 8], eax
mov edx, dword [ebp + 8]
add ebx, eax
xor eax, dword [ebp - 4]
xor dword [ebp - 8], ebx
xor ebx, dword [ebp + 0xc]
movzx eax, ax
mov dword [ebp + 0xc], eax
movzx eax, bx
add edi, 0xc
dec dword [ebp - 0xc]
mov dword [ebp - 4], eax
jne 0x4011a3
mov si, word [edi]
call fcn.00401000
mov si, word [edi + 6]
mov edx, dword [ebp - 8]
movzx eax, ax
mov dword [ebp + 8], eax
mov ax, word [edi + 2]
add ax, bx
movzx eax, ax
mov dword [ebp - 4], eax
mov ax, word [edi + 4]
add word [ebp + 0xc], ax
call fcn.00401000
mov edx, dword [ebp + 8]
movzx ecx, ax
mov eax, dword [ebp + 0x10]
mov byte [eax + 1], dl
mov dl, byte [ebp - 3]
mov byte [eax + 2], dl
mov dl, byte [ebp - 4]
mov byte [eax + 3], dl
mov dl, byte [ebp + 0xd]
pop edi
mov byte [eax + 4], dl
mov dl, byte [ebp + 0xc]
pop esi
mov byte [eax], dh
mov byte [eax + 5], dl
mov byte [eax + 6], ch
mov byte [eax + 7], cl
pop ebx
leave
ret
Function at 0x40144a
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x10c
mov eax, dword [0x40e010]
xor eax, ebp
mov dword [ebp + 0x70], eax
mov eax, dword [ebp + 0x7c]
push 0x10
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x60]
push 0x40a1c0
push eax
mov dword [ebp - 0x68], 4
call fcn.00401066
mov eax, dword [0x40a1b8]
add esp, 0xc
test eax, eax
jbe 0x4015c8
test al, 7
mov ecx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x74], ecx
mov ecx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x80], ecx
mov ecx, dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0x7c], ecx
mov ecx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x78], ecx
mov ecx, dword [sym.imp.KERNEL32.dll_VirtualFree]
push esi
mov esi, eax
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x98], 0x4013bc
mov dword [ebp - 0x94], 0x4013c9
mov dword [ebp - 0x90], 0x4013d6
mov dword [ebp - 0x8c], 0x4013ed
je 0x401502
shr eax, 3
lea esi, [eax*8 + 8]
lea eax, [esi + 0x80]
push eax
call fcn.004017c9
test eax, eax
pop ecx
mov dword [ebp - 0x6c], eax
je 0x4015c6
push edi
mov edi, dword [0x40a1bc]
push esi
push 0x40a1d0
push eax
mov dword [ebp - 0x64], eax
call fcn.00401890
add esp, 0xc
test esi, esi
jbe 0x401555
dec esi
shr esi, 3
inc esi
push dword [ebp - 0x64]
lea eax, [ebp - 0x60]
push dword [ebp - 0x64]
push eax
call fcn.00401156
add dword [ebp - 0x64], 8
add esp, 0xc
dec esi
jne 0x40153c
push dword [ebp - 0x68]
lea eax, [edi + 0x400]
push 0x1000
push eax
push 0
call ebx
mov esi, eax
test esi, esi
je 0x40158e
push edi
push esi
push dword [0x40a1b8]
push dword [ebp - 0x6c]
call fcn.0040127d
add esp, 0x10
cmp eax, edi
je 0x40158e
push esi
call fcn.0040166e
pop ecx
xor esi, esi
push dword [ebp - 0x6c]
call fcn.0040166e
test esi, esi
pop ecx
je 0x4015c5
lea eax, [ebp - 0x68]
push eax
push 0x40
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0x70]
lea eax, [ebp - 0x98]
push 0
push eax
call esi
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
call fcn.00401ce2
add ebp, 0x74
leave
ret

Function at 0x401ce2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e010]
jne 0x401cec
repz ret
jmp fcn.00404360