joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455f1c
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x456066
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00455424
xor eax, eax
push ebp
push 0x456049
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x455f81
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x455f81
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x456033
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x455f94
call fcn.00403f50
jmp 0x456050
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x456033
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x456033
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004038ec
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x456033
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040b620
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x456080
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4641c8]
mov dl, 1
mov eax, dword [0x45408c]
call fcn.0040bf6c
call fcn.00403ea4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456050
mov eax, dword [ebp - 4]
call fcn.00455430
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45606d
lea eax, [ebp - 0x28]
call fcn.004044c8
ret
Function at 0x403040
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea ebx, [ebp - 0x18]
sub esp, 0x20
mov esi, dword [ebp + 0xc]
mov dword [esp + 4], ebx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00422040
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov dword [esp], ebx
call fcn.00402ee0
test eax, eax
je 0x403080
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
mov eax, dword [0x442270]
test eax, eax
jne 0x4030a0
mov dword [esp], str.Invalid_address__cant_set_breakpoint_nYou_can_turn_on_deferring_bp_by_address_by_setting__CanDeferOnBPByAddr_to_1_n
call fcn.004242a0
jmp 0x403075
mov dword [esp], str.Unable_to_add_breakpoint__will_check_again_any_time_a_new_DLL_is_loaded_n
call fcn.004242a0
mov ebx, dword [0x4425b8]
mov eax, dword [ebx + 0x12f8]
mov edx, dword [ebx + 0x12f4]
add eax, 1
mov dword [ebx + 0x12f8], eax
lea eax, [eax + eax*2]
shl eax, 3
test edx, edx
je 0x403178
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov ecx, dword fs:[0x18]
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
sub esp, 0x10
mov edx, dword [0x4425b8]
mov dword [ebx + 0x12f4], eax
mov eax, dword [edx + 0x12f8]
mov ecx, dword [edx + 0x12f4]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*8]
mov dword [eax - 0x18], 0
mov edx, dword [0x4425b8]
mov eax, dword [edx + 0x12f8]
mov ebx, dword [edx + 0x12f4]
lea eax, [eax + eax*2]
lea eax, [ebx + eax*8]
mov dword [eax - 0x14], esi
mov eax, dword [edx + 0x12f8]
mov esi, dword [edx + 0x12f4]
mov edx, dword [ebp - 0x18]
lea eax, [eax + eax*2]
lea eax, [esi + eax*8]
mov dword [eax - 0x10], edx
mov edx, dword [ebp - 0x14]
mov dword [eax - 0xc], edx
mov edx, dword [ebp - 0x10]
mov dword [eax - 8], edx
mov edx, dword [ebp - 0xc]
mov dword [eax - 4], edx
lea esp, [ebp - 8]
mov eax, 1
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
jmp 0x4030fe
Function at 0x4031b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x38]
push ebx
sub esp, 0x4c
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0041be80
test eax, eax
je 0x403370
cmp eax, 2
je 0x403360
mov dword [esp], str.Unable_to_add_breakpoint__will_check_again_when_a_new_DLL_is_loaded_n
call fcn.004242a0
mov eax, dword [0x4425b8]
mov edi, dword [eax + 0x12f8]
mov dword [ebp - 0x3c], eax
test edi, edi
jle 0x4033bd
mov eax, dword [eax + 0x12f4]
xor esi, esi
mov dword [ebp - 0x40], eax
mov ebx, eax
lea esi, [esi]
mov eax, dword [ebx]
test eax, eax
je 0x403249
mov eax, dword [ebx + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strcmp]
test eax, eax
jne 0x403249
mov eax, dword [ebp + 0xc]
cmp dword [ebx + 8], eax
je 0x403360
add esi, 1
add ebx, 0x18
cmp esi, edi
jne 0x403220
mov ecx, dword [ebp - 0x3c]
lea eax, [edi + 1]
mov edx, dword fs:[0x18]
mov dword [ecx + 0x12f8], eax
mov ecx, dword [ebp - 0x40]
lea eax, [eax + eax*2]
shl eax, 3
test ecx, ecx
je 0x403398
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
mov ebx, dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0x10
mov edx, dword [0x4425b8]
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 0x12f4], eax
mov eax, dword [edx + 0x12f8]
mov ecx, dword [edx + 0x12f4]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*8]
mov ecx, dword [ebp + 0x10]
mov dword [eax - 0x18], 1
mov edx, dword [0x4425b8]
mov eax, dword [edx + 0x12f8]
mov esi, dword [edx + 0x12f4]
lea eax, [eax + eax*2]
lea eax, [esi + eax*8]
mov dword [eax - 0x14], ecx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 4], 0
add eax, 1
mov dword [esp + 8], eax
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov ecx, eax
mov eax, dword [0x4425b8]
sub esp, 0xc
mov edx, dword [eax + 0x12f8]
mov eax, dword [eax + 0x12f4]
lea edx, [edx + edx*2]
lea ebx, [eax + edx*8 - 0x18]
mov eax, dword [ebp + 8]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_strcpy]
mov edx, dword [0x4425b8]
mov dword [ebx + 0xc], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [edx + 0x12f8]
mov edi, dword [edx + 0x12f4]
lea eax, [eax + eax*2]
lea eax, [edi + eax*8]
mov dword [eax - 0x10], ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
lea eax, [ebp - 0x30]
mov dword [esp], eax
call fcn.00402ee0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], eax
mov ebx, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [esp + 4], 0
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
jmp 0x40329f
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x12f4]
mov dword [ebp - 0x40], eax
jmp 0x403253
Function at 0x403a50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test eax, eax
jle 0x403aa0
mov edx, dword [0x4425b8]
cmp eax, dword [edx + 0x12f0]
jae 0x403aa0
lea ecx, [eax + eax*2]
shl ecx, 4
add edx, ecx
movzx ecx, word [edx + 0x40]
shr cx, 3
test cx, cx
je 0x403aa0
mov eax, dword [edx + 0x40]
xor ecx, ecx
and eax, 0xfffe
test ebx, ebx
setne cl
or eax, ecx
mov dword [edx + 0x40], eax
mov ebx, dword [ebp - 4]
leave
ret
mov ebx, dword [ebp - 4]
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], str.Invalid_breakpoint_number__d_n
leave
jmp fcn.004242a0

Function at 0x404bb0
Capabilities:
Get process heap flags
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea esi, [ebp - 0x210]
sub esp, 0x220
mov dword [esp + 8], 0x104
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.kernel32.dll_K32GetProcessImageFileNameW
sub esp, 0xc
test eax, eax
je 0x404c90
mov dword [esp + 4], 0x5c
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcsrchr]
lea ebx, [eax + 2]
test eax, eax
cmove ebx, esi
cmp word [ebx], 0
je 0x404cd0
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x404c08
sub eax, ebx
cmp eax, 0x9e
jle 0x404c30
mov eax, 0x2e002e
mov edx, 0x2e
mov dword [ebx + 0x98], eax
mov dword [ebx + 0x9c], edx
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x404c38
sub eax, ebx
add eax, 2
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
xor edx, edx
sub esp, 0xc
lea esi, [esi]
movzx ecx, word [ebx + edx]
mov word [eax + edx], cx
add edx, 2
test cx, cx
jne 0x404c70
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], 0x50
mov dword [esp + 8], 0x441060
mov dword [esp + 4], 0x12
mov dword [esp], eax
call fcn.00429aec
mov eax, 0x441060
sub esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov eax, 2
jmp 0x404c46

Function at 0x405ad0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov eax, dword [ebp + 8]
mov dword [esp + 8], 0x404ce0
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 0xc], eax
call dword [sym.imp.kernel32.dll_CreateThread]
sub esp, 0x18
leave
ret
Function at 0x405f50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x4c
mov esi, dword [ecx]
mov edi, dword [ebp + 8]
test esi, esi
jne 0x4060a0
mov esi, eax
test eax, eax
je 0x405f7e
mov dword [esp + 4], eax
mov dword [esp], 0x42dcbb
call fcn.004242a0
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 4]
test ecx, ecx
je 0x405ff0
mov dword [esp + 4], eax
mov dword [esp], str.0x_x_
call fcn.004242a0
mov eax, dword [ebx + 8]
test eax, eax
je 0x405faf
mov dword [esp + 4], eax
mov dword [esp], 0x42dcb8
call fcn.004242a0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x405fd4
mov ecx, dword [ebx + 0x10]
mov edx, 1
mov dword [esp + 4], eax
mov dword [esp], 0x42dcc5
shl edx, cl
mov dword [esp + 8], edx
call fcn.004242a0
mov dword [ebp + 8], 0x42dccc
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.004242a0
mov edx, dword [ebx + 0xc]
test edx, edx
jne 0x405f88
test esi, esi
jne 0x4060c8
and edi, 1
je 0x4060c8
mov dword [esp + 4], eax
lea esi, [ebp - 0x28]
mov dword [esp], str.0x_x___
call fcn.004242a0
mov eax, dword [0x4425b8]
lea ecx, [ebp - 0x30]
mov edx, dword [eax + 0x10]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], ecx
mov ecx, dword [ebx + 4]
mov dword [esp + 4], ecx
mov eax, dword [eax + 8]
mov dword [esp], eax
call dword [edx + 4]
test eax, eax
je 0x4060f0
cmp dword [ebp - 0x28], 4
jne 0x4060f0
mov eax, dword [0x4425b8]
lea ecx, [ebp - 0x2c]
mov edx, dword [eax + 0x10]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], ecx
mov ecx, dword [ebp - 0x30]
mov dword [esp + 4], ecx
mov eax, dword [eax + 8]
mov dword [esp], eax
call dword [edx + 4]
test eax, eax
je 0x40608d
cmp dword [ebp - 0x28], 4
je 0x4060fe
mov dword [esp], str._invalid_destination_
call fcn.004242a0
jmp 0x4060bd
mov eax, dword [ecx + 4]
mov dword [esp], 0x42dcb8
lea eax, [eax + edx*8]
mov eax, dword [eax*4 + 0x42e060]
mov dword [esp + 4], eax
call fcn.004242a0
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x24], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.00417190
jmp 0x4060bd
mov dword [esp], str._invalid_source_
call fcn.004242a0
jmp 0x4060bd
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call fcn.00417190
jmp 0x4060bd
Function at 0x408ec0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 8]
mov ecx, dword [0x44112c]
cmp ecx, ebx
jb 0x408fd0
test ebx, ebx
sete dl
cmp ebx, 0xffffffff
setl al
or dl, al
mov esi, edx
jne 0x408fd0
mov eax, dword [0x441134]
imul edi, ebx, 0x168
mov edx, dword [eax + edi - 0x168]
test edx, edx
je 0x408fd0
cmp ebx, 0xffffffff
je 0x408ff0
mov dword [esp], edx
sub ebx, 1
call fcn.0040b560
mov eax, dword [0x44112c]
mov ecx, dword [0x441134]
lea edx, [eax - 1]
mov dword [ecx + edi - 0x168], 0
cmp ebx, edx
je 0x408f5a
jmp 0x408f76
mov eax, edx
mov dword [ebp - 0x1c], edx
sub ebx, 1
mov esi, 1
lea edx, [edx - 1]
cmp edx, ebx
jne 0x409090
mov edx, ebx
imul edi, edx, 0x168
mov edi, dword [ecx + edi]
test edi, edi
je 0x408f40
mov ebx, esi
test bl, bl
je 0x408f76
mov edi, dword [ebp - 0x1c]
mov dword [0x44112c], edi
mov edx, dword [0x441130]
sub edx, eax
cmp edx, 0xf
jbe 0x408fdc
add eax, 7
and eax, 0xfffffff8
mov dword [0x441130], eax
imul eax, eax, 0x168
mov edx, dword fs:[0x18]
test ecx, ecx
je 0x4090a0
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
sub esp, 0x10
mov dword [0x441134], eax
jmp 0x408fdc
mov dword [esp], str.Invalid_display_number_n
call fcn.004242a0
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
test ecx, ecx
je 0x40902c
xor ebx, ebx
xor esi, esi
lea esi, [esi]
nop
mov edx, dword [eax + ebx]
test edx, edx
je 0x40901b
mov dword [esp], edx
call fcn.0040b560
mov eax, dword [0x441134]
mov dword [eax + ebx], 0
add esi, 1
add ebx, 0x168
cmp esi, dword [0x44112c]
jb 0x409000
mov dword [0x441130], 8
test eax, eax
je 0x4090c8
mov dword [esp + 0xc], 0xb40
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
sub esp, 0x10
mov dword [0x441134], eax
mov eax, 1
mov dword [0x44112c], 0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [0x44112c], eax
jmp 0x408f76
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
jmp 0x408fc5
mov dword [esp + 8], 0xb40
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
jmp 0x40906b
Function at 0x40b560
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
cmp eax, 0xa
ja case.default.0x40b576
jmp dword [eax*4 + 0x434bfc]
mov eax, dword [ebx + 0xc]
xor esi, esi
test eax, eax
jle case.0x40b576.2
mov eax, dword [ebx + esi*4 + 0x10]
add esi, 1
mov dword [esp], eax
call fcn.0040b560
cmp dword [ebx + 0xc], esi
jg 0x40b589
mov edx, dword [ebx + 8]
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, 1
sub esp, 0xc
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
test byte [0x42c710], 1
jne 0x40b6b0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x80003000
call dword [sym.imp.kernel32.dll_RaiseException]
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x40b5c6
mov eax, dword [ebx + 8]
mov dword [esp], eax
call fcn.0040b560
mov edx, dword [ebx + 0xc]
mov eax, dword fs:[0x18]
jmp 0x40b5a6
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call fcn.0040b560
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call fcn.0040b560
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x40b5c6
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call fcn.0040b560
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x40b5c6
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call fcn.0040b560
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x40b5c6
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x434a77
mov dword [esp + 8], str.expr_free
mov dword [esp + 4], 0x42c710
mov dword [esp], 0
call fcn.004091f0
jmp 0x40b5ff
Function at 0x40bbd0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x4c
mov edi, dword [edx + 8]
mov edx, dword [ebp + 0x10]
mov eax, dword [edi + 0x24]
mov dword [esp + 0x18], edx
lea edx, [ebp - 0x1c]
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 8]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov edx, dword [edi + 0x10]
mov dword [esp + 4], edx
mov edx, dword [edi + 8]
mov dword [esp], edx
call dword [eax + 0x40]
test eax, eax
jne 0x40bc30
test byte [0x42c7b0], 2
jne 0x40bcb0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0x20
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x40bd00
mov edx, dword [edi + 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 8], edx
mov edx, dword [esi + 0x10]
mov esi, dword [ebp + 8]
mov dword [eax + 0x14], ecx
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x10], esi
mov esi, dword [ebp + 0x10]
mov dword [eax + 0x1c], edx
lea edx, [ebx + 0x30]
mov dword [eax + 0x18], esi
movd xmm0, dword [ebx + 0x30]
movd xmm1, edx
punpckldq xmm0, xmm1
movq qword [eax], xmm0
mov edx, dword [ebx + 0x30]
mov dword [edx + 4], eax
mov dword [ebx + 0x30], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0xc], str._04lx:_04lx:_Couldnt_insert_breakpoint_at:_p__x_type:_d_n
mov dword [esp + 8], str.gdbctx_insert_xpoint
mov dword [esp + 4], 0x42c7b0
mov dword [esp + 0x10], eax
mov dword [esp], 1
call fcn.0040baa0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x42c7b0], 2
je 0x40bc24
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0xc], str._04lx:_04lx:_Couldnt_allocate_memory_for_breakpoint_at:_p__x_type:_d_n
mov dword [esp + 8], str.gdbctx_insert_xpoint
mov dword [esp + 4], 0x42c7b0
mov dword [esp + 0x10], eax
mov dword [esp], 1
call fcn.0040baa0
jmp 0x40bc24
Function at 0x40c2a0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
sub esp, 0x2c
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax + 0x9c]
test edx, edx
jne 0x40c2bb
mov esi, dword [eax + 0x40]
mov ebx, dword [ecx + 0x1c]
lea edi, [ecx + 0x1c]
cmp edi, ebx
je 0x40c340
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], eax
jmp 0x40c2ef
mov edx, dword [ebp - 0x20]
mov eax, ebx
call fcn.0040c1b0
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ResumeThread]
sub esp, 4
mov ebx, dword [ebx]
cmp ebx, edi
je 0x40c340
cmp esi, 0xffffffff
je 0x40c2f9
cmp dword [ebx + 0x10], esi
jne 0x40c2e9
mov eax, dword [ebx + 0xc8]
test eax, eax
je 0x40c2e9
mov dword [ebx + 0xc8], 0
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
mov edx, dword [ecx + 0x3c]
cmp dword [eax + 0xc], edx
jne 0x40c2d0
mov eax, dword [ecx + 0x40]
cmp dword [ebx + 0x10], eax
jne 0x40c2d0
cmp dword [ebp + 8], 0xffffffff
mov eax, 0x80010001
mov edx, 0x10002
cmove eax, edx
mov dword [ecx + 0x98], eax
jmp 0x40c2d0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40c350
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
mov esi, eax
push ebx
sub esp, 0x4c
mov ebx, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov edx, dword [ebx + 0x18]
mov dword [esp + 0x18], edx
mov edx, dword [ebx + 0x1c]
mov dword [esp + 0x14], edx
mov edx, dword [ebx + 0x14]
mov dword [esp + 0x10], edx
mov edx, dword [ebx + 0x10]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov edx, dword [esi + 0x10]
mov dword [esp + 4], edx
mov edx, dword [esi + 8]
mov dword [esp], edx
call dword [eax + 0x44]
test eax, eax
jne 0x40c3f6
test byte [0x42c7b0], 2
je 0x40c3f6
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, 0xffffffff
test edi, edi
je 0x40c3b8
mov eax, dword [edi + 0x10]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edx
mov edi, dword [ebp - 0x1c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
mov eax, dword [esi + 0xc]
mov dword [esp + 0xc], str._04lx:_04lx:_Couldnt_remove_breakpoint_at:_p__x_type:_d_n
mov dword [esp + 8], str.gdbctx_delete_xpoint
mov dword [esp + 4], 0x42c7b0
mov dword [esp + 0x10], eax
mov dword [esp], 1
call fcn.0040baa0
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
mov dword [edx + 4], eax
mov edx, dword [ebx]
mov dword [eax], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40cbd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ecx, 1
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
lea edi, [esi + 0x18]
mov ebx, edx
mov edx, 0x434e8a
sub esp, 0x1c
call fcn.0040c880
movzx edx, bl
and ebx, 0xf
xor eax, eax
shr edx, 4
mov ecx, 2
mov al, byte [edx + str.0123456789abcdef]
mov ah, byte [ebx + str.0123456789abcdef]
lea ebx, [ebp - 0x20]
mov edx, ebx
mov word [ebp - 0x20], ax
mov eax, edi
call fcn.0040c820
mov edx, str.thread:
mov eax, esi
mov ecx, 7
call fcn.0040c880
mov eax, dword [esi + 0x40]
lea edx, [ebp - 0x18]
lea esi, [esi]
mov ecx, eax
sub edx, 1
shr eax, 4
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdef]
mov byte [edx], cl
cmp edx, ebx
jne 0x40cc38
mov eax, edi
mov ecx, 8
call fcn.0040c820
add esp, 0x1c
mov eax, esi
mov ecx, 1
pop ebx
mov edx, 0x434e94
pop esi
pop edi
pop ebp
jmp fcn.0040c880