joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b460
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4ea3a0]
test esi, esi
jle 0x40b570
mov edi, dword [0x4ea3a4]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x40b494
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x40b515
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x40b480
mov dword [esp], eax
mov ebx, eax
call sym.___mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x40b597
mov eax, dword [0x4ea3a4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.__GetPEImageBase
add eax, dword [edi + 0xc]
mov edx, dword [0x4ea3a4]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40b577
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x40b50e
sub eax, 4
and eax, 0xfffffffb
jne 0x40b520
add dword [0x4ea3a0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x4ea3a4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40b50e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
lea esi, [esi]
xor esi, esi
jmp 0x40b49e
mov eax, dword [0x4ea3a4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
mov esi, esi
lea edi, [edi]

Function at 0x40b9d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4ea3b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4ea3b0]
sub esp, 4
test ebx, ebx
je 0x40ba25
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40ba1e
test esi, esi
je 0x40ba1e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40ba00
mov dword [esp], 0x4ea3b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x415a80
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
mov edi, edx
push esi
push ebx
lea ebx, [ecx - 1]
mov ecx, 0x66666667
sub esp, 0x2c
mov dword [esp + 0x1c], eax
mov eax, ebx
mov dword [esp + 0x10], ebx
sar eax, 0x1f
mov esi, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov eax, ebx
sar ebx, 0x1f
imul ecx
mov ecx, edx
sar ecx, 2
sub ecx, ebx
mov ebx, 1
je 0x415ad3
mov ebp, 0x66666667
mov eax, ecx
sar ecx, 0x1f
add ebx, 1
imul ebp
sar edx, 2
sub edx, ecx
mov ecx, edx
jne 0x415ac0
mov edx, dword [esi + 0x28]
cmp edx, 0xffffffff
je 0x415b50
mov ecx, dword [esi + 8]
cmp ebx, edx
cmovl ebx, edx
lea edx, [ebx + 2]
mov eax, ecx
sub eax, edx
cmp ecx, edx
mov edx, 0xffffffff
cmovle eax, edx
mov ecx, 1
mov edx, edi
mov dword [esi + 8], eax
mov eax, dword [esp + 0x1c]
add ebx, 1
mov dword [esp], esi
call dbg.__pformat_emit_float
mov eax, dword [esi + 0x28]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
mov edx, eax
and eax, 0x20
or edx, 0x1c0
or eax, 0x45
mov dword [esi + 4], edx
mov edx, esi
call dbg.__pformat_putc
add dword [esi + 8], ebx
mov eax, dword [esp + 0x10]
mov ecx, esi
mov edx, dword [esp + 0x14]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp sym.___pformat_int.isra.0
mov eax, dword [global_two_exp_digits_env]
cmp eax, 0xffffffff
je 0x415b7b
test eax, eax
je 0x415b6b
mov edx, 2
mov dword [esi + 0x28], edx
jmp 0x415adb
call sym.__get_output_format
test al, 1
mov edx, 3
jne 0x415b5e
jmp 0x415b63
mov dword [esp], str.PRINTF_EXPONENT_DIGITS
call sym._getenv
test eax, eax
je 0x415ba1
movsx eax, byte [eax]
sub eax, 0x30
cmp eax, 2
setbe al
movzx eax, al
mov dword [global_two_exp_digits_env], eax
jmp 0x415b5a
xor eax, eax
jmp 0x415b97
Function at 0x41c610
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x4a409c], eax
je 0x41c627
add esp, 0xc
ret
call sym._abort
lea esi, [esi]

Function at 0x41cb20
Capabilities:
Print debug messages

Disassembly:
test eax, eax
je 0x41cb50
push edi
push esi
push ebx
mov ebx, eax
add esp, 0xffffff80
mov dword [esp], eax
call sym._pthread_spin_destroy
cmp eax, 1
je 0x41cb52
mov dword [ebx], 0xffffffff
sub esp, 0xffffff80
pop ebx
pop esi
pop edi
ret
repz ret
lea ebx, [esp + 0x15]
mov esi, str.Error_cleaning_up_spin_keys_for_thread
mov ecx, 0xa
xor eax, eax
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x3d]
mov ecx, 0x43
rep stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [esp + 0x3c]
mov dword [esp + 8], 0xa
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [esp + 0x3c], 0
mov eax, 0x27
jne 0x41cba5
jmp 0x41cbc2
cmp eax, 0x6a
je 0x41cbb3
add eax, 1
cmp byte [ebx + eax], 0
jne 0x41cba0
cmp eax, 0x6a
jne 0x41cbc2
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push eax
call sym._abort
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + eax + 0x16], 0
jmp 0x41cbb3
Function at 0x41cc50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp dword [0x4eae28], 1
je 0x41cc65
call sym.__pthread_once_raw.part.5.constprop.11
mov eax, dword [0x4a409c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x41cc90
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._pop_pthread_mem
mov esi, eax
mov eax, dword [entry3]
test eax, eax
je 0x41cc7c
test esi, esi
je 0x41cc7c
mov dword [esi + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x18], eax
lea eax, [esi + 0x38]
sub esp, 0x10
mov dword [esi + 0x1c], 0xffffffff
call sym._replace_spin_keys.constprop.10
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esi + 0x64], 0
mov dword [esi + 0x14], 0
call ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, eax
call ebx
lea edx, [esi + 0x14]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edx
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je 0x41cd92
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esi + 0x6c], eax
movzx eax, byte [esi + 0x20]
sub esp, 4
mov dword [esi + 0x68], 0
and eax, 0xffffffcf
or eax, 0x10
mov byte [esi + 0x20], al
mov eax, dword [0x4a409c]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x41cd92
add esp, 0x2c
mov ebx, esi
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._abort
mov esi, esi
lea edi, [edi]
Function at 0x41ced0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x41cf00
mov edi, dword [esp + 0x28]
test edi, edi
je 0x41cfa1
add esp, 0x10
mov eax, 1
pop ebx
pop esi
pop edi
ret 0xc
cmp eax, 1
je 0x41cfd0
cmp eax, 3
jne 0x41ceea
mov eax, dword [0x4a409c]
cmp eax, 0xffffffff
je 0x41ceea
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x41ceea
test byte [eax + 0x20], 0x30
je 0x41cff2
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x41d0f4
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x41cf74
mov dword [esp], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x41cf66
mov dword [esp], eax
call esi
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call sym._pthread_mutex_destroy
lea eax, [ebx + 0x38]
call sym._replace_spin_keys.constprop.10
mov esi, dword [ebx + 0xb0]
test esi, esi
jne 0x41d079
mov eax, ebx
call sym._push_pthread_mem.part.2
jmp 0x41d079
mov eax, dword [0x4eae04]
test eax, eax
je 0x41ceea
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov dword [0x4eae04], 0
sub esp, 4
jmp 0x41ceea
mov dword [esp + 4], sym._SetThreadName_VEH_4
mov dword [esp], 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
sub esp, 8
mov dword [0x4eae04], eax
jmp 0x41ceea
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x41d0a0
test eax, eax
je 0x41d010
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0xb4]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x68], 1
test eax, eax
jne 0x41d0d0
test byte [ebx + 0x24], 4
lea edi, [ebx + 0x1c]
lea esi, [ebx + 0x38]
je 0x41d0e0
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x41d055
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [ebx + 0x14], 0
mov dword [esp], edi
call sym._pthread_mutex_destroy
mov eax, esi
call sym._replace_spin_keys.constprop.10
mov ecx, dword [ebx + 0xb0]
test ecx, ecx
je 0x41cf95
mov eax, dword [0x4a409c]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x41ceea
test eax, eax
je 0x41d0b0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
lea eax, [ebx + 0x1c]
mov dword [ebx + 0x18], 0
mov dword [esp], eax
call sym._pthread_mutex_destroy
lea eax, [ebx + 0x38]
call sym._replace_spin_keys.constprop.10
jmp 0x41ceea
call sym.__pthread_cleanup_dest.part.8
jmp 0x41d02c
mov dword [esp], edi
call sym._pthread_mutex_destroy
mov eax, esi
call sym._replace_spin_keys.constprop.10
jmp 0x41ceea
call sym.__pthread_cleanup_dest.part.8
jmp 0x41cf42
Function at 0x41d10a
Capabilities:
Set thread local storage value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x28
mov eax, dword [ecx]
mov dword [esp], 0x4a4094
mov esi, eax
mov dword [ebp - 0x1c], eax
lea ebx, [esi + 0x1c]
call sym._pthread_mutex_lock
mov dword [esp], ebx
call sym._pthread_mutex_lock
cmp dword [0x4eae28], 1
je 0x41d140
call sym.__pthread_once_raw.part.5.constprop.11
mov esi, dword [ebp - 0x1c]
mov eax, dword [0x4a409c]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x3c], eax
mov dword [esp], ebx
call sym._pthread_mutex_unlock
lea eax, [esi + 0x70]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym.__setjmp3
test eax, eax
je 0x41d211
mov dword [esp], 0x4a4094
call sym._pthread_mutex_lock
mov esi, dword [ebp - 0x1c]
lea ebx, [esi + 0x1c]
mov dword [esp], ebx
call sym._pthread_mutex_lock
mov eax, esi
mov esi, dword [esi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x41d1b3
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
je 0x41d25b
mov dword [esp], ebx
call sym._pthread_mutex_unlock
mov dword [esp], ebx
call sym._pthread_mutex_destroy
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x1c], 0xffffffff
mov dword [eax + 0x68], 1
jmp 0x41d1f8
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push eax
mov dword [esp], 0x4a4094
call sym._pthread_mutex_unlock
test eax, eax
je 0x41d1ea
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
mov dword [esp], 0x4a4094
call sym._pthread_mutex_unlock
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 8]
test eax, eax
je 0x41d2a6
mov edx, dword [edx + 4]
mov dword [esp], edx
call eax
mov ebx, eax
mov dword [esp], 0x4a4094
call sym._pthread_mutex_lock
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], ebx
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x41d18f
call sym.__pthread_cleanup_dest.part.8
jmp 0x41d18f
mov edi, dword [ebp - 0x1c]
mov dword [edi], 0xdeadbeef
mov dword [esp], ebx
call sym._pthread_mutex_unlock
mov dword [esp], ebx
call sym._pthread_mutex_destroy
test edi, edi
je 0x41d289
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0xb0], 0
jne 0x41d289
call sym._push_pthread_mem.part.2
mov eax, dword [0x4a409c]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edx
push edx
jmp 0x41d1f8
mov ebx, pe_nt_image_headers32
jmp 0x41d231
Function at 0x41da60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
call sym.___pthread_self_lite
mov ebx, eax
mov dword [eax + 4], esi
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x41dae2
test byte [ebx + 0x20], 0x30
jne 0x41da96
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym._longjmp
mov eax, dword [0x4a409c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
push edx
mov ebx, eax
je 0x41dad9
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x41db26
test eax, eax
mov esi, dword [ebx + 4]
mov dword [ebx + 0x68], 1
je 0x41dacc
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
test byte [ebx + 0x24], 4
mov dword [ebx + 0x18], 0
jne 0x41dae9
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
call sym.__pthread_cleanup_dest.part.8
jmp 0x41da7d
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
cmp dword [ebx + 0xb0], 0
mov dword [ebx + 0x14], 0
je 0x41db4d
mov eax, dword [0x4a409c]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push eax
push eax
jmp 0x41dad9
test eax, eax
mov dword [ebx], 0xdeadbeef
je 0x41db3a
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
cmp dword [ebx + 0xb0], 0
mov dword [ebx + 0x18], 0
mov esi, dword [ebx + 4]
jne 0x41db0c
mov eax, ebx
call sym._push_pthread_mem.part.2
jmp 0x41db0c
Function at 0x422300
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
cmp byte [0x4a5ab4], 0
jne 0x4223ed
mov byte [0x4a5ab4], 1
call sym.___cxa_current_exception_type
test eax, eax
je 0x422431
mov ebx, dword [eax + 4]
cmp byte [ebx], 0x2a
je 0x42241f
lea eax, [esp + 0x1c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], eax
call sym.___cxa_demangle
mov dword [esp], 2
mov edi, eax
mov esi, dword [sym.___acrt_iob_func]
call esi
mov dword [esp + 8], 0x30
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
call sym._fwrite
cmp dword [esp + 0x1c], 0
mov dword [esp], 2
je 0x4223dd
call esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._fputs
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x4a610d
call sym._fwrite
cmp dword [esp + 0x1c], 0
je 0x422427
call sym.___cxa_rethrow
call esi
mov dword [esp], edi
mov dword [esp + 4], eax
call sym._fputs
jmp 0x4223a8
mov dword [esp], 2
call dword [0x4a4074]
mov dword [esp + 8], 0x1d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
call sym._fwrite
call sym._abort
add ebx, 1
jmp 0x422333
mov dword [esp], edi
call sym._free
jmp 0x4223d8
mov dword [esp], 2
call dword [0x4a4074]
mov dword [esp + 8], 0x2d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
call sym._fwrite
call sym._abort
sub edx, 1
mov dword [esp], eax
jne 0x4224d7
call sym.___cxa_begin_catch
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
mov dword [esp], 2
mov ebx, eax
call esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xb
mov dword [esp + 4], 1
mov dword [esp], str.__what__:
call sym._fwrite
mov dword [esp], 2
call esi
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._fputs
mov dword [esp], 2
call esi
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sym._fputc
call sym.___cxa_end_catch
jmp 0x42245e
call sym.___cxa_begin_catch
call sym.___cxa_end_catch
jmp 0x42245e

Function at 0x49db70
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sym.___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call sym.___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
nop
nop
nop
nop
nop
Function at 0x4026a8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40400c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402740
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402720
xor eax, eax
push ebp
push 0x402719
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 0x40275c
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 0x402720
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40400c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40400c], ax
mov esp, ebp
pop ebp
ret

Function at 0x402d88
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x405034], 0
je 0x402de9
cmp word [0x405208], 0xd7b2
jne 0x402db1
cmp dword [0x405210], 0
jbe 0x402db1
mov eax, 0x405204
call dword [0x405220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x404054
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 0x402e10
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x404018], 0
jne 0x402e05
push 0
push 0x40404c
push 0x404054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403080
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 0x4030e6
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.00402f84
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040259c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4030d0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4030ed
lea eax, [ebp - 0x10]
call fcn.00402f04
ret
Function at 0x403780
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
add esp, 0xfffffeb4
mov ebx, esp
lea esi, [esp + 0x30]
push pe_nt_image_headers32
lea eax, [esp + 0x50]
push eax
push 1
mov eax, dword [0x405650]
push eax
call sub.user32.dll_LoadStringA
mov dword [ebx], 0x30
xor eax, eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], 0x403684
xor eax, eax
mov dword [ebx + 0xc], eax
xor eax, eax
mov dword [ebx + 0x10], eax
mov eax, dword [0x405650]
mov dword [ebx + 0x14], eax
push 0x403874
mov eax, dword [0x405650]
push eax
call sub.user32.dll_LoadIconA
mov dword [ebx + 0x18], eax
push 0x40387c
mov eax, dword [0x405650]
push eax
call sub.user32.dll_LoadCursorA
mov dword [ebx + 0x1c], eax
push 0
call sub.gdi32.dll_GetStockObject
mov dword [ebx + 0x20], eax
mov eax, 0x403888
mov dword [ebx + 0x24], eax
mov eax, 0x403894
mov dword [ebx + 0x28], eax
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x2c], eax
push ebx
call sub.user32.dll_RegisterClassExA
push 0xcf0000
push 0xa
push 0xa
push 0x1f4
push 0x12c
push 0
push 0
mov eax, dword [0x405650]
push eax
push 0
lea ecx, [esp + 0x70]
mov edx, 0x403894
xor eax, eax
call fcn.00403438
push 3
push eax
call sub.user32.dll_ShowWindow
jmp 0x40385a
push esi
call sub.user32.dll_TranslateMessage
push esi
call sub.user32.dll_DispatchMessageA
push 0
push 0
push 0
push esi
call sub.user32.dll_GetMessageA
test eax, eax
jne 0x40384e
add esp, 0x14c
pop esi
pop ebx
ret
Function at 0x401af8
Capabilities:
Encode data using xor

Disassembly:
push 0x401c60
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
inc eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax + ecx + 0x53], bh
or eax, 0x49810156
lodsb al, byte [esi]
adc dword [edx + 0x17], edx
push edi
rcl dword [eax + 0x97], 0
add byte [eax], al
add dword [eax], eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
dec ecx
insd dword es:[edi], dx
popal
push ebx
popal
jbe 0x401ba2
jb 0x401b9e
mov esp, 0xbabdbe
add byte [eax], al
add byte [eax], al
add dword [eax], eax
add al, 0
mov eax, 0x4049
add byte [eax], al
add bh, bh
inc ecx
add byte [edx], al
add byte [eax], al
add byte [eax + 0x401b], bh
add byte [eax], al
mov eax, 0x401b
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax + 0x5400401b], bh
add byte [eax], al
add byte [eax + eax], al
add byte [eax], al
push eax
add byte [eax], al
add dl, bh
cmpps xmm1, xmm0, 0x77
aaa
sahf
inc esp
mov bh, cl
cmp eax, 0x7178b1d4
pop es
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
or byte [0], 0
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [edx], bl
and al, byte [eax]
add byte [eax], al
add byte [eax], al
add byte [ebp + esi*4 + 0x40], dh
add byte [eax + eax], cl
add byte [eax], dl
add byte [eax], al
movsb byte es:[edi], byte [esi]
mov es, esp
xor byte [ebp - 0x54], dl
dec esp
dec esi
xchg edi, eax
xor ch, dl
jbe 0x401bce
inc eax
fadd st(7)
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add eax, dword [eax]
add byte [eax], al
add byte [ebx], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
sub byte [edi], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
dec esp
scasb al, byte es:[edi]
inc eax
add byte [eax + eax + 0x42560000], bl
xor eax, 0x761ff021
bound esi, qword [esi]
imul ebp, dword [edi + 0x2e], 0x64
insb byte es:[edi], dx
insb byte es:[edi], dx
add byte [eax], al
add byte [eax], al
add byte [esi], bh
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
or al, byte [eax]
adc al, byte [eax + eax]
add byte [eax], al
add byte [eax], al
add byte [eax + 0xc0041c5], ah
sbb eax, 0xf8a70040
jo 0x401c98
add bh, bh
invalid