joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f20
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406cd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
xor eax, eax
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
mov dword [ebp - 4], eax
lea edi, [eax + 0xe]
mov eax, str.__qwertyuiop_r_n
lea esi, [ebp - 0x28]
call fcn.00403aa0
push 0x19
mov eax, str.Content_Type:_text_plain_
mov ecx, esi
call fcn.00403470
push 0x14
mov eax, str.charset_gb2312__r_n_r_n
mov ecx, esi
call fcn.00403470
push 0
lea eax, [ebx + 0x90]
push eax
or eax, 0xffffffff
mov edi, esi
call fcn.004033c0
push 4
mov eax, str._r_n_r_n
mov ecx, esi
call fcn.00403470
mov eax, dword [ebp - 0x28]
mov esi, 0x10
cmp dword [ebp - 0x14], esi
jae 0x401fae
mov eax, edi
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebx + 0x4c0]
push 0
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
setne bl
cmp dword [ebp - 0x14], esi
jb 0x401fda
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, bl
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4024d0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406cd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
xor eax, eax
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
mov dword [ebp - 4], eax
lea edi, [eax + 0xe]
mov eax, str.__qwertyuiop__
lea esi, [ebp - 0x28]
call fcn.00403aa0
push 5
mov eax, str._r_n._r_n
mov ecx, esi
call fcn.00403470
mov eax, dword [ebp - 0x28]
mov edi, 0x10
cmp dword [ebp - 0x14], edi
jae 0x40252f
mov eax, esi
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebx + 0x4c0]
push 0
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x4025f5
push 0x401
lea esi, [ebx + 0xb8]
push 0
push esi
call sub.MSVCR100.dll_memset
mov eax, dword [ebx + 0x4c0]
add esp, 0xc
push 0
push 0x400
push esi
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4025f5
mov byte [eax + ebx + 0xb8], 0
mov edi, 6
mov eax, str.QUIT_r_n
lea esi, [ebp - 0x28]
call fcn.00403aa0
mov eax, dword [ebp - 0x28]
mov esi, 0x10
cmp dword [ebp - 0x14], esi
jae 0x4025a6
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebx + 0x4c0]
push 0
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x4025ce
mov edi, ebx
call fcn.00401880
test al, al
je 0x4025ce
mov bl, 1
jmp 0x4025d0
xor bl, bl
cmp dword [ebp - 0x14], esi
jb 0x4025e2
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x14], edi
jb 0x402607
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x403780
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x406c48
push eax
mov dword fs:[0], esp
sub esp, 0x20
cmp dword [ebx + 0x44], 0
je 0x403933
cmp byte [ebx + 0x49], 0
je 0x403933
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
jne 0x4037cf
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push esi
push edi
lea esi, [ebp - 0x2c]
call fcn.00403360
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x4037f2
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebx + 0x44]
push edx
push eax
lea eax, [ebx + 0x4c]
push eax
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x403833
dec eax
je 0x403837
sub eax, 2
lea esi, [ebp - 0x2c]
je 0x403911
call fcn.00402680
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x403847
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x10]
sub esi, edx
je 0x403875
cmp edi, 0x10
jae 0x403856
lea eax, [ebp - 0x2c]
mov edx, dword [ebx + 0x54]
push edx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x403906
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x40390e
test esi, esi
jne 0x4037e6
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x403928
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x403928
cmp edi, esi
jae 0x4038ef
push ecx
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.00403bc0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x4037e6
mov ecx, eax
cmp edi, 0x10
jae 0x4038cb
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x4038e6
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x4037e0
test esi, esi
jne 0x4038c1
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x4038fe
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x4037e0
lea esi, [ebp - 0x2c]
jmp 0x40381c
lea esi, [ebp - 0x2c]
call fcn.00402680
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push str.string_too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
mov ecx, dword [ebp - 0xc]
mov al, 1
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x404d50
Capabilities:
Terminate process

Disassembly:
push esi
push 0
push str.5B3838F5_0C81_46D9_A4C0_6EA28CA3E942
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x404d72
call fcn.00403f00
test eax, eax
jne 0x404d98
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00403ff0
mov esi, eax
test esi, esi
je 0x404d9d
push esi
call fcn.00404150
add esp, 4
test eax, eax
je 0x404d9d
push eax
push esi
call fcn.004041e0
add esp, 8
xor eax, eax
pop esi
ret
call fcn.00404950
xor eax, eax
pop esi
ret
Function at 0x406458
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a028]
jne 0x406462
repz ret
jmp fcn.00406974

Function at 0x433080
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
jmp 0x433098
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jae 0x433176
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00433a50
add esp, 8
sar eax, 0xc
cmp eax, 3
jne 0x433171
mov dword [ebp - 0x10], 0xfff
mov dword [ebp - 0xc], 0x9922c
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00433a50
add esp, 8
and eax, dword [ebp - 0x10]
add eax, 0x8702
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
cmp dword [ebp - 4], 0
jne 0x43314a
push 0x154b
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x43314a
xor eax, eax
jmp 0x433176
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
add ecx, dword [eax]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + edx - 0x8702]
add eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
add edx, dword [ecx]
mov ecx, dword [ebp - 8]
mov dword [edx + ecx - 0x8702], eax
jmp 0x43308f
mov esp, ebp
pop ebp
ret

Function at 0x433a50
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0x240be8
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0x240be8
push 0x15b9
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x433a85
xor eax, eax
jmp 0x433a8f
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
movzx eax, word [eax + edx*2]
mov esp, ebp
pop ebp
ret
Function at 0x10001300
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000135b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000135b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x10001348
cmp esi, edx
jae 0x1000135b
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x10001336
cmp esi, edx
jae 0x1000135b
xor eax, eax
cmp word [esi], ax
pop edi
cmove esi, eax
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x10003970
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10037018]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x1003795c]
push esi
push 0
cmp ecx, 0xffffffff
je 0x100039ce
cmp dword [ebp + 0x1c], 0x10
lea edx, [ebp - 8]
push edx
push dword [ebp + 0x18]
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100039c7
push eax
push eax
push 3
push eax
push eax
push 0xc0000000
push str..pipemmtextcap
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1003795c], eax
mov esi, 1
jmp 0x100039ed
push 0
push 3
push 0
push 0
push 0xc0000000
push str..pipemmtextcap
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1003795c], eax
xor esi, esi
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x10003a23
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10003a19
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10003a19
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10014003
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10013ff5
mov esp, ebp
pop ebp
ret
Function at 0x10005730
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ecx, 0x10037910
push 0
call fcn.10015056
mov edi, eax
mov esi, 1
test edi, edi
je 0x10005898
mov ebx, dword [ebp + 8]
mov eax, ebx
shr eax, 4
mov dword [ebp - 4], eax
inc eax
movzx eax, ax
mov dword [ebp + 8], eax
nop dword [eax]
push 0
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x10005791
push ebx
mov edx, eax
mov ecx, edi
call fcn.10001300
add esp, 4
test eax, eax
jne 0x100057ac
push esi
mov ecx, 0x10037910
inc esi
call fcn.10015056
mov edi, eax
test edi, edi
je 0x10005898
mov eax, dword [ebp + 8]
jmp 0x10005770
test edi, edi
je 0x10005898
mov eax, dword [ebp - 4]
inc eax
push 6
movzx eax, ax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x10005898
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10005898
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10005898
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and ebx, 0xf
jbe 0x10005819
cmp esi, ecx
jae 0x10005898
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ebx, 1
jne 0x10005803
cmp esi, ecx
jae 0x10005898
cmp word [esi], 0
je 0x10005898
movzx eax, word [esi]
lea ecx, [esi + 2]
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
js 0x100058a3
mov ebx, dword [ebp - 8]
mov edx, 1
mov ecx, dword [ebx]
sub edx, dword [ecx - 4]
mov ecx, dword [ecx - 8]
sub ecx, edi
or edx, ecx
jge 0x10005861
push edi
mov ecx, ebx
call fcn.10005a60
movzx eax, word [esi]
push 0
push 0
push edi
push dword [ebx]
push eax
lea eax, [esi + 2]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x100058a3
mov dword [eax - 0xc], edi
mov eax, dword [ebx]
mov byte [edi + eax], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.100012b0
int3
Function at 0x10010eb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10011060
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10010f7d
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x10010efa
mov eax, dword [ebp - 4]
cmp eax, dword [0x10037004]
ja 0x10010efa
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10010eca
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10010f20
jmp 0x10010f7d
cmp dword [ebp - 0x14], 0x10000
jne 0x10010f63
cmp dword [ebp - 0x18], 0x10000
jb 0x10010f63
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10010f56
mov eax, dword [ebp - 8]
jmp 0x10010f7f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10010f78
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10011060
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10010eca
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10010f90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10011090
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10011055
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x10010fd5
mov eax, dword [ebp - 4]
cmp eax, dword [0x10037004]
ja 0x10010fd5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10010fa5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10010ffb
jmp 0x10011055
cmp dword [ebp - 0x14], 0x10000
jne 0x1001103e
cmp dword [ebp - 0x18], 0x10000
jb 0x1001103e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10011031
mov eax, dword [ebp - 8]
jmp 0x10011057
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10011050
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10011090
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10010fa5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100110c0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100114b0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x10037524], 0
jne 0x100110fd
cmp dword [0x10037520], 0
je 0x100110fd
mov eax, dword [0x10037520]
mov dword [0x10037524], eax
cmp dword [0x10037524], 0
je 0x1001117a
mov ecx, dword [0x10037524]
cmp dword [ecx + 8], 0
je 0x1001117a
mov edx, dword [0x10037524]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1001117a
mov ecx, dword [0x10037524]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1001117a
mov eax, dword [0x10037524]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x10011149
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10011150
xor eax, eax
jmp 0x10011299
mov ecx, dword [0x10037524]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x10011299
mov edx, dword [0x10037520]
mov dword [0x10037524], edx
jmp 0x10011196
mov eax, dword [0x10037524]
mov ecx, dword [eax + 4]
mov dword [0x10037524], ecx
cmp dword [0x10037524], 0
je 0x100111d6
cmp dword [0x10037524], 0
je 0x100111d4
mov edx, dword [0x10037524]
cmp dword [edx + 8], 0
je 0x100111d4
mov eax, dword [0x10037524]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x100111d4
mov edx, dword [0x10037524]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x100111d4
jmp 0x1001112e
jmp 0x10011188
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100112a0
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10011297
mov eax, dword [ebp - 0x18]
mov dword [0x10037524], eax
mov ecx, dword [0x10037524]
mov dword [ecx], 0x52727464
mov edx, dword [0x10037524]
mov dword [edx + 8], 0
mov eax, dword [0x10037524]
mov ecx, dword [0x10037520]
mov dword [eax + 4], ecx
mov edx, dword [0x10037524]
mov dword [0x10037520], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x10037524]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10011267
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x10011287
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1001125e
mov eax, dword [0x10037524]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1001112e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10012b60
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x1003756c], 0
je 0x10012b76
xor eax, eax
jmp 0x10012d92
cmp dword [0x10037568], 0
je 0x10012b89
mov eax, dword [0x10037568]
jmp 0x10012d92
push 0x24
push 0
push 0x10037544
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x10037544], eax
push 0
push 0
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x10037548], eax
cmp dword [0x10037548], 0
jne 0x10012c2e
mov dword [0x1003756c], 1
cmp dword [0x10037548], 0
je 0x10012be1
mov eax, dword [0x10037548]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x1003754c], 0
mov dword [0x10037550], 0
mov dword [0x10037554], 0
mov dword [0x10037558], 0
mov dword [0x1003755c], 0
mov dword [0x10037560], 0
mov dword [0x10037564], 0
xor eax, eax
jmp 0x10012d92
push str.ImagehlpApiVersionEx
mov ecx, dword [0x10037548]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1003754c], eax
push str.SymInitialize
mov edx, dword [0x10037548]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10037550], eax
push str.SymSetOptions
mov eax, dword [0x10037548]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10037554], eax
push str.SymGetOptions
mov ecx, dword [0x10037548]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10037558], eax
push str.SymLoadModule64
mov edx, dword [0x10037548]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1003755c], eax
push str.SymGetModuleInfo64
mov eax, dword [0x10037548]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10037560], eax
push str.SymFromName
mov ecx, dword [0x10037548]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10037564], eax
push 8
push 0
lea edx, [ebp - 0xc]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, 0xc
mov word [ebp - 0xc], ax
cmp dword [0x1003754c], 0
je 0x10012d13
cmp dword [0x10037550], 0
je 0x10012d13
cmp dword [0x1003755c], 0
je 0x10012d13
cmp dword [0x10037560], 0
je 0x10012d13
cmp dword [0x10037564], 0
jne 0x10012d18
jmp 0x10012bc2
lea ecx, [ebp - 0xc]
push ecx
call dword [0x1003754c]
movzx edx, word [ebp - 0xc]
cmp edx, 0xc
jge 0x10012d30
jmp 0x10012bc2
push 0
push 0
mov eax, dword [0x10037544]
push eax
call dword [0x10037550]
test eax, eax
jne 0x10012d49
jmp 0x10012bc2
cmp dword [0x10037558], 0
je 0x10012d83
cmp dword [0x10037554], 0
je 0x10012d83
call dword [0x10037558]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
and ecx, 0xfffffff8
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
or edx, 0x2704
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
call dword [0x10037554]
mov dword [0x10037568], 0x10037544
mov eax, dword [0x10037568]
mov esp, ebp
pop ebp
ret
Function at 0x4125ec
Capabilities:
Terminate process

Disassembly:
call fcn.004125f9
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x438c92
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x438a14
mov ecx, 0x91d4f950
call fcn.00438cd3
mov ecx, ecx
sub edx, ecx
mov ecx, ecx
xor dword [esi], eax
inc ecx
or edx, ecx
add ecx, 0x737bc58d
add esi, 1
mov edx, ecx
mov ecx, 0xc38b4056
cmp esi, ebx
jne fcn.00438c92
sub edx, edx
mov edx, 0xd29b02a4
ret
Function at 0x6bc01729
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
add eax, 1
mov dword [ebp - 0xc], eax
mov dword [esp], str.kernel32.dll
call sym._GetModuleHandleA_4
sub esp, 4
mov dword [esp + 4], str.LoadLibraryA
mov dword [esp], eax
call sym._GetProcAddress_8
sub esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0x14], eax
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x18], eax
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov edx, dword [ebp - 0x18]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov dword [esp + 0xc], 0x8000
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._VirtualFreeEx_16
sub esp, 0x10
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret