joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b2205
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4b231d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4b231d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004ca00f
mov esi, eax
test esi, esi
je 0x4b231d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4b231d
mov ecx, esi
call fcn.004b2190
cmp edi, eax
jge 0x4b231d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4b22a3
mov dword [esp + 0x34], 1
jmp 0x4b22fe
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4b231d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004b1740
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x4ca9b3
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4ca9eb
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004c8a3d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004c8a15
jmp 0x4ca9f7
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4cc0a1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4cc0e3
call fcn.004d1c9d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4cc0e3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4cc0da
xor eax, eax
jmp 0x4cc0eb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004cc0f1
pop edi
pop esi
pop ebx
ret 4
Function at 0x4d21cd
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4d21fb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d2219
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d2133
jmp 0x4d2219
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d2219
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d2133
test edi, edi
mov eax, edi
jne 0x4d2203
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x404c80
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x404cb1
nop dword [eax]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x404ca0
pop edi
mov eax, edx
pop esi
pop ebp
ret 8

Function at 0x40aed0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ebp + 8]
mov eax, ecx
push ebx
push esi
push edi
cmp dword [edx + 0x14], 0xf
mov edi, edx
mov ebx, dword [edx + 0x10]
mov dword [ebp - 4], eax
jbe 0x40aeee
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
test ebx, ebx
je 0x40af14
nop dword [eax]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x40af00
mov eax, dword [ebp - 4]
push esi
push edx
lea ecx, [ebp - 8]
push ecx
mov ecx, eax
call fcn.004070b0
xor ecx, ecx
pop edi
pop esi
cmp dword [eax + 4], ecx
pop ebx
setne cl
mov eax, ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x40b720
Capabilities:
Get system firmware table

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c9b4
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x43e080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push 0xa8
mov dword [ebp - 0x10], edi
call fcn.0042b581
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
test esi, esi
je 0x40b848
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
movups xmmword [esi + 0x18], xmm0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0xf
mov byte [esi + 0x18], 0
movups xmmword [esi + 0x30], xmm0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0xf
mov byte [esi + 0x30], 0
movups xmmword [esi + 0x48], xmm0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0xf
mov byte [esi + 0x48], 0
movups xmmword [esi + 0x60], xmm0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0xf
mov byte [esi + 0x60], 0
movups xmmword [esi + 0x78], xmm0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0xf
mov byte [esi + 0x78], 0
movups xmmword [esi + 0x90], xmm0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0xf
mov byte [esi + 0x90], 0
push 0
push 0
push 0
push 0x52534d42
call dword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov dword [edi], esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [edi], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40bcb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cac3
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x43e080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
lea ecx, [esi + 0x40]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x58], edi
mov dword [esi + 0x60], edx
mov byte [esi + 0x64], 0
mov dword [esi + 0x68], eax
test byte [edi + 8], 8
mov byte [ebp - 4], 2
je 0x40bd95
test dl, 0x10
jne 0x40bd95
mov al, 1
jmp 0x40bd97
xor al, al
mov byte [esi + 0x6c], al
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x70], eax
push dword [edi + 0x18]
call fcn.00425660
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x40e460
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x43e080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push edi
mov edi, dword [ebp + 0x10]
mov ebx, ecx
push 0x400
push 0
push eax
mov dword [ebp - 0x410], 1
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x40c], 0x400
lea eax, [ebp - 0x408]
push eax
push 0x20019
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e540
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x410]
push eax
push 0
push edi
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40e534
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x404]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40e517
test dl, dl
je 0x40e513
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40e517
add eax, 2
add ecx, 2
test dl, dl
jne 0x40e4f7
xor eax, eax
jmp 0x40e51c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40e534
push 0x430976
push dword [ebp + 8]
call fcn.004148d0
mov eax, dword [ebx]
add esp, 8
inc byte [eax]
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042b81e
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40e910
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1110
call fcn.0042b830
mov eax, dword [0x43e080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x1110], eax
lea eax, [ebp - 0x110c]
push eax
push 0x1000
lea eax, [ebp - 0x1108]
push eax
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
je 0x40e9b8
mov ebx, dword [ebp - 0x110c]
xor esi, esi
shr ebx, 2
test ebx, ebx
je 0x40e9b8
nop
push dword [ebp + esi*4 - 0x1108]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40e9b3
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
push edi
call sub.KERNEL32.dll_K32GetModuleBaseNameA
test eax, eax
je 0x40e9ac
push dword [ebp - 0x1110]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
add esp, 8
test eax, eax
je 0x40e9cd
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, ebx
jb 0x40e960
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b81e
mov esp, ebp
pop ebp
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042b81e
mov esp, ebp
pop ebp
ret 4
Function at 0x414e30
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ebp + 8]
mov eax, ecx
push ebx
push esi
push edi
cmp dword [edx + 0x14], 0xf
mov edi, edx
mov ebx, dword [edx + 0x10]
mov dword [ebp - 4], eax
jbe 0x414e4e
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
test ebx, ebx
je 0x414e74
nop dword [eax]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x414e60
mov eax, dword [ebp - 4]
push esi
push edx
lea ecx, [ebp - 8]
push ecx
mov ecx, eax
call fcn.004070b0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
test eax, eax
je 0x414e94
add eax, 0x20
mov esp, ebp
pop ebp
ret 4
push str.invalid_unordered_map_K__T__key
call sub.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const__
int3

Function at 0x415400
Capabilities:
Terminate process

Disassembly:
push str.VirtualBox_nVMware_nVMware_Express_nVMware_ESX_nVMware_GSX_nVMware_Workstation_nVMware_Fusion_nbhyve_nQEMU_nKVM_nKVM_Hyper_V_Enlightenment_nQEMUKVM_Hyper_V_Enlightenment_nQEMUKVM_nVirtual_PC_nMicrosoft_Hyper_V_nMicrosoft_Virtual_PC_Hyper_V_nMicrosoft_x86_to_ARM_nParallels_nXen_HVM_nACRN_nQNX_hypervisor_nHybrid_Analysis_nSandboxie_nDocker_nWine_nVirtual_Apple_nAnubis_nJoeBox_nThreatExpert_nCWSandbox_nComodo_nBochs_nLockheed_Martin_LMHS_nNVMM_nOpenBSD_VMM_nIntel_HAXM_nUnisys_s_Par_nCuckoo_nBlueStacks_nJailhouse_nApple_VZ_nIntel_KGT__Trusty__nMicrosoft_Azure_Hyper_V_nXbox_NanoVisor__Hyper_V__nSimpleVisor_nHyper_V_artifact__not_an_actual_VM__nUser_mode_Linux_nIBM_PowerVM_nGoogle_Compute_Engine__KVM__nOpenStack__KVM__nKubeVirt__KVM__nAWS_Nitro_System__KVM_based__nPodman_nWSL_nOpenVZ_n
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.00404f70
add esp, 8
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x4196b0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov eax, 1
lea edi, [ebp - 0x10]
mov ecx, 0xff
xorps xmm0, xmm0
push ebx
cpuid
mov esi, ebx
movups xmmword [ebp - 0x10], xmm0
pop ebx
nop
mov dword [edi], eax
mov dword [edi + 4], esi
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
mov eax, dword [ebp - 4]
pop edi
shr eax, 0x1c
pop esi
pop ebx
test al, 1
jne 0x4196f2
xor al, al
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, byte [ebp - 0xa]
cmp eax, dword [ebp - 0x20]
setg al
mov esp, ebp
pop ebp
ret

Function at 0x419710
Capabilities:
Terminate process

Disassembly:
push str.Usage:__n_vmaware__option___extra__n__do_not_run_with_any_options_if_you_want_the_full_summary__n_nOptions:_n__h____help________prints_this_help_menu_n__v____version_____print_cli_version_and_other_details_n__d____detect______returns_the_result_as_a_boolean__1__VM__0__baremetal__n__s____stdout______returns_either_0_or_1_to_STDOUT_without_any_text_output__0__VM__1__baremetal__n__b____brand_______returns_the_VM_brand_string__consult_documentation_for_full_output_list__n__p____percent_____returns_the_VM_percentage_between_0_and_100_n__c____conclusion__returns_the_conclusion_message_string_n__l____brand_list__returns_all_the_possible_VM_brand_string_values_n__n____number______returns_the_number_of_VM_detection_techniques_it_performs_n__t____type________returns_the_VM_type__if_a_VM_was_found__n_nExtra:_n___disable_notes________no_notes_will_be_provided_n___spoofable____________allow_spoofable_techniques_to_be_ran__not_included_by_default__n_n
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.00404f70
add esp, 8
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x427d30
Capabilities:
Terminate process

Disassembly:
push 0x436480
push str.vmaware
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.00404f70
add esp, 8
push eax
call fcn.00404f70
add esp, 8
push 0x43647c
push 0x435eb8
push eax
call fcn.00404f70
add esp, 8
push eax
call fcn.00404f70
add esp, 8
push str.Developed_and_maintained_by_kernelwernel__see_https:__github.com_kernelwernel_n
push str.There_is_NO_WARRANTY__to_the_extent_permitted_by_law._n
push str.This_is_free_software:_you_are_free_to_change_and_redistribute_it._n
push str.Derived_project_of_VMAware_library_at_https:__github.com_kernelwernel_VMAwareLicense_GPLv3:_GNU_GPL_version_3_or_later__https:__gnu.org_licenses_gpl.html_._n
push 0x436478
push str.August_2024
push eax
call fcn.00404f70
add esp, 8
push eax
call fcn.00404f70
add esp, 8
push eax
call fcn.00404f70
add esp, 8
push eax
call fcn.00404f70
add esp, 8
push eax
call fcn.00404f70
add esp, 8
push eax
call fcn.00404f70
add esp, 8
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x42c10f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42c14e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42c14e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42c14e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42c14e
cmp dword [ecx + 0x74], 0xe
jbe 0x42c14e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40182b
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
mov dword [ebp - 0x53], 0x20554f59
mov dword [ebp - 0x4f], 0x4e4e4143
mov dword [ebp - 0x4b], 0x4720544f
mov dword [ebp - 0x47], 0x52205445
mov dword [ebp - 0x43], 0x4f204449
mov dword [ebp - 0x3f], 0x48542046
mov dword [ebp - 0x3b], 0x4d205349
mov dword [ebp - 0x37], 0x41574c41
mov dword [ebp - 0x33], 0x202e4552
mov dword [ebp - 0x2f], 0x52454854
mov dword [ebp - 0x2b], 0x53492045
mov dword [ebp - 0x27], 0x204f4e20
mov dword [ebp - 0x23], 0x41435345
mov dword [ebp - 0x1f], 0x2e4550
lea eax, [ebp - 0x157]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x10
mov dword [esp], 0
call sym._SHGetFolderPathA_20
sub esp, 0x14
test eax, eax
je 0x4018dc
mov dword [esp], str.Masast_yolu_alnamad.
call sym._puts
jmp 0x401988
mov dword [esp], 0
call sym._time
mov dword [esp], eax
call sym._srand
mov dword [ebp - 0xc], 0
jmp 0x40197e
mov dword [esp + 4], 0xa
lea eax, [ebp - 0x1b]
mov dword [esp], eax
call sym._generate_random_string
lea eax, [ebp - 0x1b]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x157]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._s_s.txt
mov dword [esp + 4], 0x104
lea eax, [ebp - 0x25b]
mov dword [esp], eax
call sym.___mingw_snprintf
mov dword [esp + 4], 0x40b10d
lea eax, [ebp - 0x25b]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40197a
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
lea eax, [ebp - 0x53]
mov dword [esp], eax
call sym._fputs
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._fclose
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0x63
jle 0x4018fc
leave
ret

Function at 0x40198a
Capabilities:
Add user account

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov dword [ebp - 0x34], 0
mov dword [ebp - 0xc], 0
jmp 0x401a64
mov dword [esp + 4], 0x100
lea eax, [ebp - 0x438]
mov dword [esp], eax
call sym._generate_random_string
mov dword [esp + 4], 0x100
lea eax, [ebp - 0x236]
mov dword [esp], eax
call sym._generate_random_string
lea eax, [ebp - 0x438]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x236]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x34]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x30]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], 0
call sym._NetUserAdd_16
sub esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401a4d
lea eax, [ebp - 0x438]
mov dword [esp + 4], eax
mov dword [esp], str.Kullan
call sym._wprintf
jmp 0x401a60
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], str.Kullanc_oluturulamad._Hata_kodu:__d_n
call sym._printf
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 2
jle 0x4019a6
nop
leave
ret
Function at 0x402120
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x40e044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40e03c]
sub esp, 4
test ebx, ebx
je 0x40216b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x402164
test esi, esi
je 0x402164
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402140
mov dword [esp], 0x40e044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402350
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4023a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402478
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x4023de
cmp eax, 4
jne 0x402400
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x4023ee
cmp edx, 4
je 0x4023ee
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402350
Function at 0x1001f12a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1001f170
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
test eax, eax
je 0x1001f16b
push 0
push 0
push 0
push 0
push 0x95e
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
jmp 0x1001f248
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
cmp dword [eax], ecx
je 0x1001f1c9
mov dword [ebp - 8], 1
jmp 0x1001f1cd
and dword [ebp - 8], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
mov edx, dword [ebp - 8]
lea ecx, [edx + ecx + 0x176df7e4]
cmp dword [eax], ecx
jne 0x1001f1ec
mov dword [ebp - 0xc], 1
jmp 0x1001f1f0
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
jne 0x1001f203
mov dword [ebp - 0x10], 1
jmp 0x1001f207
and dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 0x93c1
jne 0x1001f21b
or eax, 0xffffffff
jne 0x1001f21b
and dword [ebp - 0x44], 0
jmp 0x1001f222
mov dword [ebp - 0x44], 1
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x18]
add eax, dword [ecx]
mov ecx, dword [ebp - 0x18]
cmp eax, dword [ecx]
jl 0x1001f23c
mov dword [ebp - 0x20], 1
jmp 0x1001f240
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret