joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4185a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43177d
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x43e100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x43f4a8
mov dword [ebp - 0x24], 0x43f4a8
mov byte [ebp - 0x20], 0
call fcn.0041fd38
add esp, 4
test eax, eax
jne 0x418709
cmp dword [0x43f4d4], 0x7fffffff
je 0x418710
mov byte [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0x43f488
mov edx, dword [ebp + 8]
mov dword [ebp - 4], eax
movzx eax, dl
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, dh
xor ecx, eax
movzx eax, byte [ebp + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebp + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, 0x43f488
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004128f0
mov eax, dword [eax + 4]
test eax, eax
je 0x4186ed
cmp eax, dword [0x43f48c]
je 0x4186ed
lea eax, [ebp + 8]
mov ecx, 0x43f488
push eax
call fcn.0041a460
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
push 0x18
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
call fcn.004205ef
add esp, 4
test eax, eax
je 0x4186ac
movups xmm0, xmmword [ebp - 0x40]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x30]
movq qword [eax + 0x10], xmm0
jmp 0x4186ae
xor eax, eax
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
push ecx
push 0
push eax
push 0x412ac0
push 0
push 0
call sub.msvcrt.dll__beginthreadex
add esp, 0x18
mov dword [ebp - 0x18], eax
test eax, eax
je 0x418728
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x418721
push ecx
push eax
call fcn.0041db1f
add esp, 8
test eax, eax
jne 0x418721
push 0x43f4a8
call fcn.0041fd49
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
push 5
call fcn.0041dd7e
push 6
mov dword [0x43f4d4], 0x7ffffffe
call fcn.0041dd7e
push 1
call fcn.0041dd7e
push 6
mov dword [ebp - 0x14], 0
call fcn.0041dd7e
int3
Function at 0x4190b0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4318d0
mov eax, dword fs:[0]
push eax
sub esp, 0x454
mov eax, dword [0x43e100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0x43726c
push str.kernel32.dll
push ebx
mov dword [ebp - 0x460], ebx
mov dword [ebp - 0x45c], 0
call fcn.00416c00
push edx
push eax
push ebx
call fcn.00416f20
mov ecx, dword [0x43f310]
mov dword [ebp - 0x458], eax
or eax, edx
mov dword [ebp - 0x454], edx
mov dword [ebp - 0x450], 0
mov dword [ebp - 0x44c], 0xffffffff
mov dword [ebp - 0x448], ecx
jne 0x4191fc
test ebx, ebx
mov eax, ebx
cmove eax, dword [0x43f30c]
push eax
call dword [0x433364]
push eax
push 0x18
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4191c2
push 0x424
lea eax, [ebp - 0x434]
mov dword [ebp - 0x438], 0x428
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x438]
push eax
push esi
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x4191bb
lea eax, [ebp - 0x418]
push str.kernel32.dll
push eax
call sub.msvcrt.dll__wcsicmp
add esp, 8
test eax, eax
je 0x41921f
lea eax, [ebp - 0x438]
push eax
push esi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x419192
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movlpd qword [ebp - 0x440], xmm0
mov eax, dword [ebp - 0x440]
mov edx, dword [ebp - 0x43c]
push 0x43726c
push edx
push eax
push ebx
call fcn.004173b0
mov dword [ebp - 0x458], eax
mov dword [ebp - 0x454], edx
mov dword [ebp - 0x448], 0
cmp dword [edi + 0x14], 7
mov dword [ebp - 4], 0
jbe 0x41920b
mov edi, dword [edi]
push edi
lea ecx, [ebp - 0x460]
call fcn.00412210
or eax, edx
je 0x41922f
mov bl, 1
jmp 0x419231
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x41c]
cdq
jmp 0x4191d9
xor bl, bl
mov esi, dword [ebp - 0x45c]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x419277
mov edx, dword [esi + 8]
mov eax, edx
mov ecx, dword [esi + 0xc]
or eax, ecx
mov dword [ebp - 4], 1
je 0x41926c
cmp dword [esi], 0
je 0x41926c
push 0x4000
push dword [esi + 0x10]
push ecx
push edx
push dword [esi + 4]
call fcn.00419430
push 0x18
push esi
call fcn.0042061f
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042082a
mov esp, ebp
pop ebp
ret
Function at 0x41bb30
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
lea edx, [ebp + 0x14]
sub esp, 0x40
push ebx
push esi
push edi
test ecx, ecx
jle 0x41bb58
mov eax, dword [ebp + 0x14]
lea edx, [ebp + 0x1c]
dec ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0xc], eax
jmp 0x41bb60
xorps xmm0, xmm0
movlpd qword [ebp - 0x10], xmm0
test ecx, ecx
jle 0x41bb79
dec ecx
add edx, 8
mov dword [ebp + 0x10], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x14], eax
jmp 0x41bb81
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
test ecx, ecx
jle 0x41bb9a
dec ecx
add edx, 8
mov dword [ebp + 0x10], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x1c], eax
jmp 0x41bba2
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
test ecx, ecx
jle 0x41bbbb
dec ecx
add edx, 8
mov dword [ebp + 0x10], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x24], eax
jmp 0x41bbc3
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
mov eax, edx
mov dword [ebp - 4], 0
cdq
xorps xmm0, xmm0
mov dword [ebp - 0x40], eax
mov eax, ecx
mov dword [ebp - 0x3c], edx
cdq
movlpd qword [ebp - 0x38], xmm0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 8], 0
mov word [ebp - 8], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 4], esp
and esp, 0xfffffff0
push 0x33
call 0x41bc04
add dword [esp], 5
retf

Function at 0x42107a
Capabilities:
Parse pe header

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

Function at 0x421680
Capabilities:
Get process heap force flags

Disassembly:
call fcn.004215b0
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
mov edx, dword [ecx + 0xa4]
shl edx, 0x10
or edx, dword [ecx + 0xa8]
cmp edx, 0x50001
jae 0x4216aa
add eax, 0x74
ret
cmp edx, 0x60000
jae 0x4216b6
add eax, 0x78
ret
add eax, 0x88
ret

Function at 0x4216c0
Capabilities:
Get process heap force flags

Disassembly:
call fcn.004215b0
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
mov edx, dword [ecx + 0xa4]
shl edx, 0x10
or edx, dword [ecx + 0xa8]
cmp edx, 0x60000
jae 0x4216ea
add eax, 0x7c
ret
add eax, 0x8c
ret
Function at 0x421950
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x43e100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x421977
mov ecx, 5
int 0x29
push 2
call fcn.0042111e
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 0x421a82
test esi, esi
jne 0x421a82
push 2
call fcn.0042111e
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.0042082a
mov esp, ebp
pop ebp
ret

Function at 0x42ac30
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 0x42ac5a
mov eax, 2
pop ebp
ret
push esi
call fcn.004215b0
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.0x42ac7a
jmp dword [eax*4 + 0x42acb0]
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.004218f0
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x42b690
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.0041f170
mov esi, dword [ebp + 8]
test al, al
je 0x42b6ae
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.0042b6c0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x42b7f0
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 0x42b84c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42b84c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42b84c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42b84c
cmp dword [ecx + 0x74], 0xe
jbe 0x42b84c
cmp dword [ecx + 0xe8], 0
je 0x42b84c
push dword [ebp + 8]
call fcn.0042b6c0
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 0x2a6fd78
call fcn.0042b4a0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x42b881
push dword [ebp + 8]
call fcn.0042b690
mov esp, ebp
pop ebp
ret

Function at 0x42b8c0
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 0x42b91c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42b91c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42b91c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42b91c
cmp dword [ecx + 0x74], 0xe
jbe 0x42b91c
cmp dword [ecx + 0xe8], 0
je 0x42b91c
push dword [ebp + 8]
call fcn.0042b6c0
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 0x2a6fd78
call fcn.0042b4a0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x42b951
push dword [ebp + 8]
call fcn.0042b690
mov esp, ebp
pop ebp
ret

Function at 0x42ff50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42ff7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42ff7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40d588
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408d3c
mov dword [ebp - 0x14], eax
cmp dword [0x45a2f8], esi
jne 0x40d67b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d608
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d75b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d75b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d75b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x45a2f8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x45a2fc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x45a300], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45a308], eax
test eax, eax
je 0x40d678
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45a304], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d6a0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d693
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d6b5
push 4
pop eax
jmp 0x40d75d
cmp dword [ebp - 0x14], esi
je 0x40d6b5
push dword [0x45a2f8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d69a
mov eax, dword [0x45a304]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d713
cmp dword [0x45a308], edi
je 0x40d713
push eax
call ebx
push dword [0x45a308]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d713
test eax, eax
je 0x40d713
call ecx
test eax, eax
je 0x40d708
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d708
test byte [ebp - 8], 1
jne 0x40d713
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d743
mov eax, dword [0x45a2fc]
cmp eax, edi
je 0x40d740
push eax
call ebx
test eax, eax
je 0x40d740
call eax
mov esi, eax
test esi, esi
je 0x40d740
mov eax, dword [0x45a300]
cmp eax, edi
je 0x40d740
push eax
call ebx
test eax, eax
je 0x40d740
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x45a2f8]
call ebx
test eax, eax
je 0x40d75b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d75d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004040f0
mov esp, ebp
pop ebp
ret
Function at 0x1005a116
Capabilities:
Terminate process

Disassembly:
push 8
push 0x100630f0
call fcn.10058c20
push 8
call fcn.1005f451
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x1006a74c], esi
jne 0x1005a14a
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov dword [0x1006a748], esi
mov al, byte [ebp + 0x10]
mov byte [0x1006a744], al
cmp dword [ebp + 0xc], edi
jne 0x1005a194
cmp dword [0x1006d408], edi
je 0x1005a184
mov eax, dword [0x1006d404]
sub eax, 4
mov dword [0x1006d404], eax
cmp eax, dword [0x1006d408]
jb 0x1005a184
mov eax, dword [eax]
cmp eax, edi
je 0x1005a165
call eax
jmp 0x1005a165
push 0x10066020
mov eax, 0x1006601c
call fcn.1005a076
pop ecx
push 0x10066028
mov eax, 0x10066024
call fcn.1005a076
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x1005a1c5
cmp dword [ebp + 0x10], edi
jne 0x1005a1d3
mov dword [0x1006a74c], esi
push dword [ebp + 8]
call fcn.1005a034
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x1005a1d2
push 8
call fcn.1005f451
pop ecx
ret
call fcn.10058c5b
ret

Function at 0x1005aca9
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x100682c0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x100686e0]
je 0x1005acde
inc eax
cmp eax, 0x13
jb 0x1005accf
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x100686e0]
jne 0x1005ae04
mov eax, dword [0x1006a68c]
cmp eax, 1
je 0x1005addc
cmp eax, edx
jne 0x1005ad0e
cmp dword [0x1006a690], 1
je 0x1005addc
cmp ecx, 0xfc
je 0x1005ae04
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1005ad44
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.1005af80
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.1005b1b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1005ad78
mov eax, edi
push eax
call fcn.1005b1b0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x10062ca4
push edi
call fcn.1005b080
add esp, 0x10
push edi
call fcn.1005b1b0
push dword [esi + 0x100686e4]
mov ebx, eax
call fcn.1005b1b0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10057e90
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.1005af80
push edi
push ebx
call fcn.1005af90
push 0x10062ca0
push ebx
call fcn.1005af90
push dword [esi + 0x100686e4]
push ebx
call fcn.1005af90
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.1005f451
add esp, 0x2c
jmp 0x1005ae04
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x100686e4]
push dword [esi]
call fcn.1005b1b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.10057644
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x1005f451
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x1005f460
pop dword [ebp - 0x3c]
mov eax, 0x1005f460
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x39aff
push 0
mov eax, 0xccb5bcf
sub eax, 0xfcc53a9b
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0xf01fff0f
sub ecx, 0xf01fb416
xor esi, esi
add esi, eax
mov edx, 0x10086000
add edx, dword [ebp - 0x3c]
mov ebx, 0x2d8724ec
add ebx, 0x98f09742
sub dword [ebp - 0xc], esi
mov edi, dword [edx]
add dword [ebp - 0x38], 0x5d06c61e
xor edi, ebx
sub dword [ebp - 0x20], edi
mov dword [esi], edi
sub dword [ebp - 0x10], esi
add esi, 0xc1c2a2c6
add esi, 0x3e3d5d3e
add edx, 0x39e82645
add edx, 0xc617d9bf
loop 0x1005f4b6
add eax, 0xbd4190af
add eax, 0x42bf8e08
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x136cbf96
add ecx, 0xfc93406a
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x100604be
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x10064b30
call fcn.10058c20
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x1006ab10], edi
jne 0x10060502
push edi
push edi
push ebx
push edi
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
je 0x100604ed
mov dword [0x1006ab10], ebx
jmp 0x10060502
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
jne 0x10060502
mov dword [0x1006ab10], 2
mov eax, dword [0x1006ab10]
cmp eax, ebx
jne 0x10060522
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
jmp 0x100605e5
cmp eax, 2
je 0x1006052b
cmp eax, edi
jne 0x10060553
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x1006053e
mov eax, dword [0x1006a88c]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x1006055a
xor eax, eax
jmp 0x100605e5
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.10057e90
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x1006058d
cmp esi, edi
jne 0x100605a3
push dword [ebp - 0x20]
call fcn.1005b553
pop ecx
mov esi, eax
cmp esi, edi
je 0x10060553
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
test eax, eax
je 0x100605d6
cmp dword [ebp + 0x14], edi
jne 0x100605c0
push edi
push edi
jmp 0x100605c6
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x100605e2
push esi
call fcn.1005a219
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.10058c5b
ret
Function at 0x405bd8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x43e04c], 0
je 0x405c39
cmp word [0x43e328], 0xd7b2
jne 0x405c01
cmp dword [0x43e330], 0
jbe 0x405c01
mov eax, 0x43e324
call dword [0x43e340]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x405c64
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x43c02c], 0
jne 0x405c55
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x408124
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40828b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406560
cmp si, word [0x43c7cc]
jb 0x4081be
cmp si, word [0x43c9cc]
ja 0x4081be
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4081be
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x43c7cc]
jae 0x408198
mov edi, ebx
dec edi
jmp 0x4081b9
cmp si, word [ebx*8 + 0x43c7cc]
jbe 0x4081a8
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4081b9
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x43c7d0]
call fcn.00408034
jmp 0x4081be
cmp edi, dword [ebp - 0xc]
jae 0x408182
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x40826d
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40826d
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406748
push dword [ebp - 0x164]
push 0x4082a8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406748
push dword [ebp - 0x168]
push 0x4082b8
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406748
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406af4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408292
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406558
ret