joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40240f
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push 0x1c
mov eax, 0x4e9968
call fcn.004e96d0
mov ebx, ecx
mov dword [ebp - 0x28], ebx
call fcn.00401288
mov esi, eax
test esi, esi
jne 0x402433
xor al, al
call fcn.004e968e
ret
push 5
pop edx
mov ecx, ebx
call fcn.004012b1
mov ebx, dword [esi + 0x34]
push ebx
push str.___Exe_File_Prefer_Image_Base_at__x_n
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], ebx
call fcn.0040107b
pop ecx
pop ecx
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.NtUnmapViewOfSection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [esi + 0x34]
push 0xffffffffffffffff
call eax
push 0x40
push 0x3000
push dword [esi + 0x50]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
jne 0x4024cb
cmp dword [ebp - 0x24], eax
jne 0x40249c
push ebx
push str.____Allocate_Image_Base_At__x_Failure._n
call fcn.0040107b
pop ecx
pop ecx
jmp 0x40242b
push str.___Try_to_Allocate_Memory_for_New_Image_Base_n
call fcn.0040107b
pop ecx
push 0x40
push 0x3000
push dword [esi + 0x50]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
jne 0x4024cb
push str.____Allocate_Memory_For_Image_Base_Failure._n
call fcn.0040107b
jmp 0x402499
push str.___Mapping_Section_...
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
pop ecx
push dword [esi + 0x54]
mov dword [esi + 0x34], edi
push dword [ebp - 0x28]
push edi
call sub.VCRUNTIME140.dll_memcpy
and dword [ebp - 0x24], 0
xor eax, eax
add esp, 0xc
cmp ax, word [esi + 6]
jae 0x402535
lea ebx, [esi + 0x10c]
lea eax, [ebx - 0x14]
push eax
push str._______Mapping_Section__s_n
call fcn.0040107b
push dword [ebx - 4]
mov eax, dword [ebx]
add eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebx - 8]
add eax, edi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 0x24]
lea ebx, [ebx + 0x28]
movzx eax, word [esi + 6]
add esp, 0x14
inc ecx
mov dword [ebp - 0x24], ecx
cmp ecx, eax
jl 0x4024fb
mov ebx, dword [ebp - 0x18]
mov ecx, edi
call fcn.004012cb
cmp edi, ebx
je 0x402566
mov edx, dword [esi + 0x50]
mov ecx, edi
push 0
push ebx
xor ebx, ebx
push ebx
push edi
call fcn.0040149a
add esp, 0x10
test al, al
je 0x402568
push str.___Relocation_Fixed.
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
pop ecx
jmp 0x402568
xor ebx, ebx
mov esi, dword [esi + 0x28]
push 8
add esi, edi
pop edi
push edi
call fcn.004e7e10
pop ecx
mov dword [ebp - 0x18], eax
mov dword [eax], esi
mov dword [eax + 4], 0x402407
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 7
push ecx
push ebx
push eax
push 0x404b6d
push ebx
push ebx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4025cc
mov dword [ebp - 4], edi
cmp dword [ebp - 0x1c], 0
je 0x4025c4
push dword [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCP140.dll__Thrd_detach]
pop ecx
pop ecx
test eax, eax
je 0x40242d
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov dword [ebp - 0x1c], ebx
push 6
jmp 0x4025c6
Function at 0x4032d8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4032fb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
jmp 0x4033ba
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
test ecx, ecx
je 0x403321
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x403326
xor ecx, ecx
mov dword [ebp - 8], eax
mov eax, ecx
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x403386
jg 0x40333b
test esi, esi
je 0x403386
test ecx, ecx
jl 0x403381
jg 0x403345
test eax, eax
je 0x403381
cmp edi, ecx
jg 0x403357
jl 0x40334f
cmp esi, eax
jae 0x403357
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 0xc]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [ebp - 4]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x403389
mov ecx, dword [ebp + 8]
jmp 0x403393
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x4033ae
jg 0x403393
test esi, esi
je 0x4033ae
cmp dword [ebx + 0x4c], 0
je 0x4033ae
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4033bf
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
test esi, esi
jg 0x4033e9
jl 0x4033e0
test ebx, ebx
jne 0x4033e9
xor eax, eax
xor edx, edx
jmp 0x4034a5
cmp dword [ecx + 0x38], 0
je 0x4033fd
push esi
push ebx
push edx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
jmp 0x4034a5
mov eax, dword [ecx + 0x1c]
push edi
mov edi, ebx
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40343d
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jbe 0x40343d
cmp dword [eax], ebx
mov esi, ebx
cmovb esi, dword [eax]
push esi
push dword [ebp - 0xc]
push edx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 8]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0x10]
cmp dword [ecx + 0x4c], 0
je 0x40349b
call fcn.00404191
mov edx, dword [ebp - 4]
mov eax, edi
cmp edi, 0xfff
jbe 0x403485
push dword [ecx + 0x4c]
push 0xfff
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, dword [ebp - 4]
mov ecx, 0xfff
add edx, eax
add esp, 0x10
sub edi, eax
mov dword [ebp - 4], edx
cmp eax, ecx
jne 0x40349b
cmp edi, ecx
mov ecx, dword [ebp - 8]
ja 0x403455
mov eax, edi
test eax, eax
je 0x40349b
push dword [ecx + 0x4c]
push edi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
sub edi, eax
sub ebx, edi
mov eax, ebx
sbb esi, 0
mov edx, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x403720
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x8307c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x403746
xor eax, eax
jmp 0x40380b
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x40376f
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x40376f
dec dword [edx]
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
mov eax, ebx
jmp 0x40380b
cmp dword [esi + 0x4c], 0
je 0x403809
mov ecx, esi
call fcn.00404191
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x40379d
movsx eax, bl
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
pop ecx
pop ecx
cmove ebx, edi
jmp 0x403768
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x4037d8
sub eax, 1
je 0x4037d8
dec eax
sub eax, 1
jne 0x403809
movsx eax, byte [ebp - 0x25]
jmp 0x40378a
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x34], eax
je 0x4037fc
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x34], eax
jne 0x403809
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
cmovne edi, ebx
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e7e02
leave
ret 4

Function at 0x4041b4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x8307c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x40420c
cmp byte [esi + 0x3d], bl
je 0x40420c
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x404246
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, ebx
je 0x40421d
sub eax, 1
je 0x404220
dec eax
sub eax, 1
jne 0x404246
mov byte [esi + 0x3d], bl
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e7e02
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40423e
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x404246
cmp byte [esi + 0x3d], bl
sete al
jmp 0x40420e
xor al, al
jmp 0x40420e
Function at 0x406389
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
mov edx, dword [ebp + 8]
push edi
mov edi, ecx
not edx
movzx eax, byte [edi]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x7c00e0]
inc edi
sub esi, 1
jne 0x406397
pop edi
not edx
pop esi
mov eax, edx
pop ebp
ret

Function at 0x4063b7
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov edx, ebx
test edi, edi
je 0x40641b
mov al, byte [esi]
dec edi
inc esi
cmp al, 0x23
jne 0x4063e3
cmp edi, 2
jb 0x4063e3
cmp byte [esi], al
jne 0x4063e3
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x7c00e0]
test edi, edi
jne 0x4063cc
jmp 0x406422
cmp al, 0x23
jne 0x406409
cmp byte [esi], al
jne 0x406409
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x7c00e0]
mov al, byte [esi]
inc esi
test al, al
jne 0x4063fb
pop edi
not edx
pop esi
mov eax, edx
pop ebx
pop ebp
ret

Function at 0x40653c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
jne 0x406560
push 0x645
push str.E:ProjelerImGui_Loader_Base_masterimguiimgui.cpp
push str.filename__mode
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov edi, dword [ebp + 8]
test edi, edi
je 0x40656a
and dword [edi], 0
mov edx, 0x7be110
mov ecx, esi
call fcn.0040642b
mov esi, eax
test esi, esi
je 0x40660a
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call ebx
mov dword [ebp + 8], eax
pop ecx
cmp eax, 0xffffffff
je 0x406603
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x406603
push esi
call ebx
mov ebx, eax
pop ecx
cmp ebx, 0xffffffff
je 0x406603
push 0
push dword [ebp + 8]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x406603
mov ecx, ebx
call fcn.00408b59
mov dword [ebp + 8], eax
test eax, eax
je 0x406603
push esi
push ebx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov ecx, esi
cmp eax, ebx
je 0x4065f3
call fcn.0040652d
mov ecx, dword [ebp + 8]
call fcn.00408b71
jmp 0x40660a
call fcn.0040652d
test edi, edi
je 0x4065fe
mov dword [edi], ebx
mov eax, dword [ebp + 8]
jmp 0x40660c
mov ecx, esi
call fcn.0040652d
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x417100
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
cmp dword [esi + 0x3030], 0
lea edi, [esi + 0x3034]
mov ecx, edi
je 0x41715d
push 0
call fcn.00420c13
push dword [ebp + 8]
mov ecx, edi
push ebx
call fcn.00406c61
mov edx, dword [edi]
mov ecx, 0x836fc1
push dword [esi + 0x3030]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [esi + 0x303c]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
jmp 0x417166
push dword [ebp + 8]
push ebx
call fcn.00406c61
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41783a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x83731c]
push esi
mov esi, ecx
push edi
and dword [eax + 0x2fe4], 0
test esi, esi
je 0x417889
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
call fcn.0041788d
mov edx, 0x7be114
mov ecx, esi
mov edi, eax
call fcn.0040642b
mov esi, eax
test esi, esi
je 0x417889
push esi
push dword [ebp - 4]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
mov ecx, esi
call fcn.0040652d
pop edi
pop esi
leave
ret
Function at 0x42728b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4272a5
mov dword [esi + 4], edi
mov dword [esi], edi
call fcn.00408b71
mov dword [esi + 8], edi
lea ecx, [esi + 0xc]
call fcn.00404c71
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4272c2
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], edi
call fcn.00408b71
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x4272e3
mov dword [esi + 0x40], edi
mov dword [esi + 0x3c], edi
call fcn.00408b71
mov dword [esi + 0x44], edi
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x4272f8
mov dword [esi + 0x4c], edi
mov dword [esi + 0x48], edi
call fcn.00408b71
mov dword [esi + 0x50], edi
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x42730d
mov dword [esi + 0x58], edi
mov dword [esi + 0x54], edi
call fcn.00408b71
mov dword [esi + 0x5c], edi
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.00429762
Function at 0x42fb19
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x8307c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.00408c52
mov edi, eax
xor ebx, ebx
mov eax, dword [edi + 0x90]
cmp dword [eax + 0x34], ebx
jle 0x42fb4a
cmp dword [eax + 0x14], ebx
jne 0x42fb62
cmp dword [eax + 0x18], ebx
jne 0x42fb62
push 0x15e
push str.E:ProjelerImGui_Loader_Base_masterimguiimgui_impl_win32.cpp
push str.io.Fonts__IsBuilt_____Font_atlas_not_built__It_is_generally_built_by_the_renderer_backend._Missing_call_to_renderer__NewFrame___function__e.g._ImGui_ImplOpenGL3_NewFrame__._
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push dword [0x837398]
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
movd xmm1, eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 8], xmm1
movss dword [edi + 0xc], xmm0
cmp byte [0x83308c], bl
je 0x42fbaa
call fcn.0042fadf
lea eax, [ebp - 0x10]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [0x8373a0]
mov edx, dword [ebp - 0xc]
sbb edx, dword [0x8373a4]
call fcn.004e8ad0
mov edx, dword [0x8373ac]
mov ecx, dword [0x8373a8]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x24], xmm0
call fcn.004e8ad0
movss xmm1, dword [ebp - 0x24]
cvtsd2ss xmm0, xmm0
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
divss xmm1, xmm0
movss dword [edi + 0x10], xmm1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [0x8373a0], eax
mov dword [0x8373a4], ecx
call esi
shr eax, 0xf
and al, 1
push 0x10
mov byte [edi + 0xf8], al
call esi
shr eax, 0xf
and al, 1
push 0x12
mov byte [edi + 0xf9], al
call esi
shr eax, 0xf
and al, 1
mov byte [edi + 0xfb], bl
mov byte [edi + 0xfa], al
call fcn.0042f5c5
cmp byte [edi + 0xaf], bl
je 0x42fc5b
or eax, 0xffffffff
jmp 0x42fc66
mov eax, dword [0x83731c]
mov eax, dword [eax + 0x1f58]
cmp dword [0x833290], eax
je 0x42fc78
mov dword [0x833290], eax
call fcn.0042f519
call fcn.0042f728
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e7e02
leave
ret
Function at 0x43abc6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x8307c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 6
pop ecx
mov esi, 0x7b9a68
lea edi, [ebp - 0x74]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x7b9a84
lea edi, [ebp - 0x4c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x7b9a84
lea edi, [ebp - 0x58]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, str.sxCcCZrXWc_
lea edi, [ebp - 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor esi, esi
push esi
call fcn.00490970
cmp byte [ebp - 0x41], 0
mov ebx, eax
push 0x31
pop edi
je 0x43ac34
mov ecx, esi
xor edx, edx
mov eax, ecx
div edi
add dl, 0x32
xor byte [ebp + ecx - 0x4c], dl
inc ecx
cmp ecx, 0xc
jl 0x43ac21
cmp byte [ebp - 0x36], 0
je 0x43ac4f
mov ecx, esi
xor edx, edx
mov eax, ecx
div edi
add dl, 0x32
xor byte [ebp + ecx - 0x40], dl
inc ecx
cmp ecx, 0xb
jl 0x43ac3c
cmp byte [ebp - 0x4d], 0
je 0x43ac6a
mov ecx, esi
xor edx, edx
mov eax, ecx
div edi
add dl, 0x32
xor byte [ebp + ecx - 0x58], dl
inc ecx
cmp ecx, 0xc
jl 0x43ac57
cmp byte [ebp - 0x5a], 0
je 0x43ac85
mov ecx, esi
xor edx, edx
mov eax, ecx
div edi
add dl, 0x32
xor byte [ebp + ecx - 0x74], dl
inc ecx
cmp ecx, 0x1b
jl 0x43ac72
push esi
push esi
push esi
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
call fcn.00492040
xor eax, eax
lea edi, [ebp - 0x4c]
stosd dword es:[edi], eax
mov esi, str.SELECT__FROM_server_where_datask_pb_ver_
push 0xb
pop ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x58]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x34]
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
push eax
push ebx
movsb byte es:[edi], byte [esi]
call fcn.004965f0
push ebx
call fcn.004936b0
pop edi
pop esi
pop ebx
test eax, eax
je 0x43acfb
push eax
call fcn.00490300
test eax, eax
je 0x43acfd
mov edx, dword [eax + 4]
mov ecx, 0x833074
call fcn.004045e8
test al, al
setne al
jmp 0x43acfd
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e7e02
leave
ret
Function at 0x445220
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4452ac
push esi
call fcn.00458c70
add esp, 4
test al, al
jne 0x4452ac
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x445243
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.00462150
add esp, 0xc
test eax, eax
je 0x445277
sub eax, esi
push eax
push 0x2e
push esi
call fcn.00462150
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x445279
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
mov ebx, 0x1505
add edi, esi
cmp esi, edi
jae 0x4452a5
mov al, byte [esi]
push eax
call fcn.00455120
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x445287
pop edi
movzx eax, bl
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4500a0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi + 0x6db], 0
je 0x45013d
cmp dword [esi + 0x1ac], 0
je 0x4500f7
push esi
call fcn.004400b0
push 1
push esi
mov byte [esp + 0x14], al
call fcn.00440330
push dword [esi + 0x15c]
mov eax, dword [esi + 0x1ac]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call eax
push dword [esp + 0x28]
push esi
call fcn.00440330
add esp, 0x28
pop esi
ret
mov ecx, dword [esp + 0xc]
mov eax, ecx
sub eax, 0
je 0x45010c
sub eax, 1
je 0x45010c
sub eax, 1
jne 0x45013d
push dword [esi + 0x158]
lea eax, [ecx*2 + 0x4f1ad0]
push 1
add eax, ecx
push 2
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
push dword [esi + 0x158]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x20
pop esi
ret
Function at 0x451f10
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
jne 0x451f2a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x4f1cfc
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcspbrk
add esp, 8
test eax, eax
je 0x451f72
test ebp, ebp
je 0x451f63
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x451f98
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x451f98
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x452072
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x451fb5
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x452068
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x452068
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x451ff6
sub ecx, edx
sar ecx, 1
mov dword [ebx + ecx*2], 0x5c
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x452011
sub ecx, edx
sar ecx, 1
add ecx, ecx
sub ecx, esi
add ecx, ebx
nop word [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x452030
test ebp, ebp
je 0x45205f
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x7d0004]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push ebx
call dword [0x7d0004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret