joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4122c0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x449334]
test eax, eax
je 0x4122d0
ret
push edi
push esi
push ebx
sub esp, 0xb0
mov eax, dword [0x42a53c]
mov ebx, dword [0x4493e0]
mov dword [0x449334], 1
test ebx, ebx
jne 0x412310
mov dword [0x449334], 0
add esp, 0xb0
pop ebx
pop esi
pop edi
ret
lea edi, [ebx*4]
lea esi, [esp + 0x10]
mov dword [esp + 4], 0x449340
mov dword [esp + 8], edi
mov dword [esp], esi
call sym._memcpy
mov dword [esp + 8], edi
add edi, esi
mov dword [esp + 4], 0
mov dword [esp], 0x449340
mov dword [0x4493e0], 0
call sym._memset
mov dword [esp + 4], ebx
mov dword [esp], str.Found__u_leaked_objects:_n
call sym._GC_err_printf
lea esi, [esi]
lea esi, [esi]
mov ebx, dword [esi]
mov dword [esp], ebx
call sym._GC_default_print_heap_obj_proc
test ebx, ebx
je 0x4123a5
mov eax, ebx
shr eax, 0x16
mov edx, dword [eax*4 + 0x446214]
mov eax, ebx
shr eax, 0xc
and eax, 0x3ff
mov eax, dword [edx + eax*4]
mov ecx, dword [eax + 0x10]
movzx edx, byte [eax + 0xc]
mov eax, ebx
call sym._free_internal.isra.31
add esi, 4
cmp edi, esi
jne 0x412370
mov dword [esp], str.GC_ABORT_ON_LEAK
call sub.msvcrt.dll_getenv
test eax, eax
je 0x4122f2
mov dword [esp], str.Leaked_or_smashed_objects_encountered
call sym._GC_default_on_abort.lto_priv.70
call dword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x4122f2
Function at 0x414590
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push esi
push ebx
sub esp, 0x14
mov ebx, dword [0x42a860]
mov edx, dword [0x42a868]
sub edx, ebx
cmp eax, 0xfffffff7
ja 0x414760
lea esi, [eax + 7]
and esi, 0xfffffff8
cmp esi, edx
jbe 0x414655
cmp esi, 0xffff
ja 0x4146f1
mov ecx, dword [0x42a5d4]
test ecx, ecx
je 0x414670
mov dword [esp + 4], 0x11000
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ebx, [eax + 0xfff]
sub esp, 8
and ebx, 0xfffff000
cmp dword [0x42a8ac], 0x1ff
jbe 0x414616
mov dword [esp], str.Too_many_heap_sections
call sym._GC_default_on_abort.lto_priv.70
call dword [sym.imp.KERNEL32.dll_DebugBreak]
test ebx, ebx
je 0x4146e0
mov eax, dword [0x42a8ac]
add dword [0x42a840], 0x10000
cmp dword [0x42a7dc], 2
lea edx, [eax + 1]
mov dword [eax*4 + 0x43ea14], ebx
mov dword [0x42a8ac], edx
je 0x414730
lea eax, [ebx + 0x10000]
mov dword [0x42a868], eax
add esi, ebx
mov dword [0x42a860], esi
add esp, 0x14
mov eax, ebx
pop ebx
pop esi
ret
cmp dword [0x421848], 1
mov edx, dword [0x42a7e0]
mov dword [esp], 0
sbb eax, eax
and eax, 0xffffffc4
add eax, 0x40
mov dword [esp + 0xc], eax
mov eax, dword [0x42a5d0]
or ah, 0x30
mov dword [esp + 8], eax
xor eax, eax
test edx, edx
sete al
add eax, 0x10000
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
sub esp, 0x10
mov ebx, eax
test eax, 0xfff
je 0x4145f8
mov dword [esp], str.Bad_VirtualAlloc_result
call sym._GC_default_on_abort.lto_priv.70
call dword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x4145f8
mov dword [esp + 4], esi
mov dword [esp], str.GC_Warning:_Out_of_memory___trying_to_allocate_requested_amount___lu_bytes_..._n
call dword [0x42184c]
mov eax, esi
call sym._GC_win32_get_mem
mov ebx, eax
test eax, eax
je 0x414770
add dword [0x42a840], esi
cmp dword [0x42a7dc], 2
jne 0x41465d
mov dword [esp + 4], esi
mov dword [esp], str.Got__lu_bytes_from_OS_n
call sym._GC_log_printf
jmp 0x41465d
mov dword [esp + 4], 0x10000
mov dword [esp], str.Got__lu_bytes_from_OS_n
call sym._GC_log_printf
lea eax, [ebx + 0x10000]
mov dword [0x42a868], eax
jmp 0x414655
mov esi, 0xfffffff8
cmp edx, 0xfffffff7
jbe 0x4146f1
jmp 0x414655
xor ebx, ebx
jmp 0x41465d
Function at 0x416400
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push ebx
sub esp, 0x14
mov ecx, dword [0x42a7e8]
test ecx, ecx
je 0x4164b0
mov edx, dword [0x42a8a0]
test edx, edx
je 0x4164b0
lea esi, [eax + eax*4]
mov ebx, dword [0x449308]
add esi, esi
cmp esi, ebx
jg 0x416447
jmp 0x416496
add ebx, 1
cmp esi, ebx
je 0x416490
call sym._GC_mark_some.constprop.33
test eax, eax
je 0x416440
mov eax, dword [0x42a5c4]
test eax, eax
jne 0x416490
cmp dword [0x41f028], 0xf423f
mov eax, dword [0x449318]
je 0x4165ba
cmp eax, 2
jle 0x4165aa
mov eax, sym._GC_never_stop_func.lto_priv.64
call sym._GC_stopped_mark.lto_priv.86
test eax, eax
jne 0x4165fa
add dword [0x449318], 1
mov ebx, dword [0x449308]
test ebx, ebx
jle 0x4164b9
sub ebx, esi
mov eax, 0
cmovs ebx, eax
mov dword [0x449308], ebx
add esp, 0x14
pop ebx
pop esi
ret
mov eax, dword [0x42a5c4]
test eax, eax
je 0x4164c0
add esp, 0x14
pop ebx
pop esi
ret
call sym._GC_should_collect.lto_priv.74
test eax, eax
je 0x4164b9
mov eax, dword [0x42a7e8]
test eax, eax
je 0x4165e0
mov ebx, dword [0x44931c]
test ebx, ebx
jne 0x4164f1
mov eax, dword [0x4472d8]
cmp eax, dword [0x41f024]
jl 0x4165a0
mov ecx, dword [0x42a7dc]
test ecx, ecx
jne 0x41660a
call sym._GC_promote_black_lists.lto_priv.87
mov edx, 1
xor eax, eax
call sym._GC_reclaim_all.lto_priv.68
mov dword [esp + 4], 0
mov dword [esp], sym._clear_marks_for_block.lto_priv.57
call sym._GC_apply_to_all_blocks.constprop.49
mov dword [0x42a87c], 0
mov dword [0x42a8a0], 5
mov dword [0x42a898], 0
mov dword [0x4472d8], 0
mov dword [0x42a048], 1
cmp dword [0x41f028], 0xf423f
je 0x41656d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4472d4], eax
mov eax, sym._GC_timeout_stop_func
call sym._GC_stopped_mark.lto_priv.86
test eax, eax
jne 0x4165d0
mov edx, dword [0x42a048]
test edx, edx
jne 0x4164b9
add dword [0x449318], 1
jmp 0x4164b9
add eax, 1
mov dword [0x4472d8], eax
jmp 0x416556
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4472d4], eax
mov eax, dword [0x449318]
cmp eax, 2
jg 0x416477
mov eax, sym._GC_timeout_stop_func
jmp 0x41647c
add esp, 0x14
pop ebx
pop esi
jmp sym._GC_finish_collection.lto_priv.85
mov esi, dword [0x42a5c4]
test esi, esi
jne 0x4164b9
add esp, 0x14
mov eax, sym._GC_never_stop_func.lto_priv.64
pop ebx
pop esi
jmp sym._GC_try_to_collect_inner.part.56.lto_priv.67
call sym._GC_finish_collection.lto_priv.85
mov ebx, dword [0x449308]
jmp 0x416496
mov eax, dword [0x42a844]
mov dword [esp], str._Full_mark_for_collection__lu_after__lu_allocd_bytes_n
mov dword [esp + 8], eax
mov eax, dword [0x42a7d8]
add eax, 1
mov dword [esp + 4], eax
call sym._GC_log_printf
jmp 0x4164ff
Function at 0x416850
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x42a5cc]
test eax, eax
je 0x416862
mov eax, dword [0x4493e8]
test eax, eax
je 0x416870
ret
push ebx
sub esp, 8
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call ebx
cmp eax, dword [0x42a4c0]
je 0x416890
add esp, 8
pop ebx
ret
call ebx
mov edx, eax
shr edx, 8
xor edx, eax
movzx edx, dl
mov edx, dword [edx*4 + 0x42a060]
test edx, edx
je 0x416884
cmp eax, dword [edx + 8]
jne 0x416928
mov eax, dword [0x42a558]
test eax, eax
je 0x416921
mov eax, dword [0x42a8d0]
test eax, eax
je 0x4168cd
mov ebx, dword [0x42a8d0]
test ebx, ebx
je 0x4168cd
call sym._GC_notify_or_invoke_finalizers.part.16.lto_priv.80
call sym._GC_noop6.constprop.45
mov ecx, dword [0x42a5c4]
test ecx, ecx
jne 0x41690b
call sym._GC_never_stop_func.lto_priv.64
test eax, eax
jne 0x41690b
mov eax, sym._GC_never_stop_func.lto_priv.64
call sym._GC_try_to_collect_inner.part.56.lto_priv.67
test eax, eax
je 0x41690b
mov eax, dword [0x42a8d0]
test eax, eax
je 0x41690b
mov edx, dword [0x42a8d0]
test edx, edx
je 0x41690b
call sym._GC_notify_or_invoke_finalizers.part.16.lto_priv.80
mov eax, dword [0x42a53c]
test eax, eax
je 0x416884
add esp, 8
pop ebx
jmp sym._GC_print_all_errors.lto_priv.78
call sym._GC_init
jmp 0x4168b5
mov edx, dword [edx]
test edx, edx
jne 0x4168a7
jmp 0x416884

Function at 0x417438
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call sym.___acrt_iob_func
mov edx, eax
mov dword [esp + 8], ebx
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._vfprintf
call sym._abort

Function at 0x417f40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x417f5f
mov eax, 0
jmp 0x417fa3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x417f82
mov eax, 0
jmp 0x417fa3
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x417f9e
mov eax, 0
jmp 0x417fa3
mov eax, 1
leave
ret
Function at 0x417fa5
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x418004
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x417ffc
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x417ffc
mov eax, dword [ebp - 4]
jmp 0x418018
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x417fd9
mov eax, 0
leave
ret
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
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
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x4bc12d6a
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x4bb81057
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4029e4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403f98
test esi, esi
jne 0x402a1a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404088
jmp 0x402a38
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004028f8
mov edi, eax
test esi, esi
je 0x402a38
cmp dword [ebx], 0
je 0x402a38
dec esi
jmp 0x402a21
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4030c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x457020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403158
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403138
xor eax, eax
push ebp
push 0x403131
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403174
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403138
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x457020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x457020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403e1c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x459048], 0
je 0x403e7d
cmp word [0x45921c], 0xd7b2
jne 0x403e45
cmp dword [0x459224], 0
jbe 0x403e45
mov eax, 0x459218
call dword [0x459234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45706c
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 0x403ea4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x457030], 0
jne 0x403e99
push 0
push 0x457064
push 0x45706c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405c80
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405ce6
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404208
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402c84
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405cd0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405ced
lea eax, [ebp - 0x10]
call fcn.00403f98
ret

Function at 0x408510
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404458
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408529
test al, 0x10
jne 0x40852d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b27c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b2b5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404088
jmp 0x40b2be
mov eax, ebx
mov edx, esi
call fcn.00403fec
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b2c8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b2e9
mov al, byte [esp]
jmp 0x40b2eb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b970
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b7e8
mov eax, dword [0x45812c]
cmp byte [eax], 0
je 0x40b9ec
mov eax, dword [0x457f44]
call fcn.00402af0
call fcn.00402824
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408978
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40ba34
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ba22
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x457ef0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x459664]
call fcn.00405194
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40c288
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c35e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404030
lea eax, [ebp - 8]
call fcn.004044a8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404458
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c348
mov eax, ebx
call fcn.004026bc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c341
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404458
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c32b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c370
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c32b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c348
mov eax, dword [ebp - 0x10]
call fcn.004026dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c365
lea eax, [ebp - 8]
call fcn.00403f98
ret

Function at 0x40c8dc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c940
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404208
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408190
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c947
lea eax, [ebp - 0xc]
call fcn.00403f98
ret

Function at 0x41ac38
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x459884
cmp dword [edi], 0
jne 0x41acb4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x459880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45746c
mov ecx, 2
call fcn.004028b8
mov edx, 0x41ac10
lea eax, [esi + 5]
call fcn.0041ac30
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041ac30
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41ac89
mov dword [0x459880], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41c228
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41c22e
ret
Function at 0x41e6fc
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41e74d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41e734
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41e724
jmp 0x41e74d
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41e735
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42723c
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404448
xor eax, eax
push ebp
push 0x42736a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x42733d
xor eax, eax
push ebp
push 0x427336
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404258
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42730b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x4272fa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404258
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404458
mov edx, ebx
pop ecx
call fcn.004028b8
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427301
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x457e98]
mov dl, 1
mov eax, dword [0x407068]
call fcn.0040baf4
call fcn.004039d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427371
lea eax, [ebp - 4]
call fcn.00403f98
ret