joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4030c1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x4030e1
cmp dword [edi + 0x54], 0
jne 0x4030e1
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0040b70a
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00403088
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x4067dd
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x406816
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00406778
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00402130
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x408407
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40844a
call fcn.0040b70a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40844a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x408465
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00407fbe
test ebx, ebx
mov esi, eax
je 0x408463
test edi, edi
je 0x408463
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40d530
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 0x40d55e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40d57c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040d49a
jmp 0x40d57c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40d57c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0040d49a
test edi, edi
mov eax, edi
jne 0x40d566
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x44dda0]
test ecx, ecx
je 0x40d63f
jmp 0x40d52f
ret 8

Function at 0x40fc17
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44aae4]
jne 0x40fc21
repz ret
jmp fcn.00413caa
Function at 0x41cf80
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00413e81
xor ebx, ebx
cmp dword [0x44eaac], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x41d055
push 0x43cd60
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x41cfc0
xor eax, eax
jmp 0x41d119
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43cd54
push edi
call esi
cmp eax, ebx
je 0x41cfb9
push eax
call fcn.00413e1e
mov dword [esp], 0x43cd44
push edi
mov dword [0x44eaac], eax
call esi
push eax
call fcn.00413e1e
mov dword [esp], 0x43cd30
push edi
mov dword [0x44eab0], eax
call esi
push eax
call fcn.00413e1e
mov dword [0x44eab4], eax
lea eax, [ebp - 8]
push eax
call fcn.00413243
test eax, eax
pop ecx
pop ecx
je 0x41d023
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00415cd1
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x41d055
push 0x43cd14
push edi
call esi
push eax
call fcn.00413e1e
cmp eax, ebx
pop ecx
mov dword [0x44eabc], eax
je 0x41d055
push 0x43ccfc
push edi
call esi
push eax
call fcn.00413e1e
pop ecx
mov dword [0x44eab8], eax
mov eax, dword [0x44eab8]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x41d0ce
cmp dword [0x44eabc], esi
je 0x41d0ce
push eax
call fcn.00413e8a
pop ecx
call eax
cmp eax, ebx
je 0x41d09b
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x44eabc]
call fcn.00413e8a
pop ecx
call eax
test eax, eax
je 0x41d09b
test byte [ebp - 0x18], 1
jne 0x41d0ce
lea eax, [ebp - 0xc]
push eax
call fcn.0041327a
test eax, eax
pop ecx
je 0x41d0b6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00415cd1
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x41d0c5
or dword [ebp + 0x10], 0x200000
jmp 0x41d0ff
or dword [ebp + 0x10], 0x40000
jmp 0x41d0ff
mov eax, dword [0x44eab0]
cmp eax, esi
je 0x41d0ff
push eax
call fcn.00413e8a
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41d0ff
mov eax, dword [0x44eab4]
cmp eax, esi
je 0x41d0ff
push dword [ebp - 4]
push eax
call fcn.00413e8a
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x44eaac]
call fcn.00413e8a
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4211ac
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x44aae4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00421141
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004104c0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4211fb
cmp dword [ebp - 0x1c], 5
jb 0x421213
jmp 0x42120f
cmp dword [ebp - 0x10], 1
jne 0x421213
cmp dword [ebp - 0x1c], 4
ja 0x42120f
jne 0x421213
cmp dword [ebp - 0x18], 0
jbe 0x421213
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x43cde4
call fcn.00421032
test eax, eax
jge 0x421234
mov byte [0x44ec68], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040fc17
add ebp, 0x78
leave
ret

Function at 0x4242e0
Capabilities:
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [0x44ec5c]
cmp dword [eax], 0
je 0x4243dd
push 1
call dword [sym.imp.KERNEL32.dll_DebugSetProcessKillOnExit]
test eax, eax
jne 0x424318
mov dword [ebp - 4], str.Failed_to_set_flag_on_DebugSetProcessKillOnExit...
push 0x4465f0
lea ecx, [ebp - 4]
push ecx
call fcn.004130b6
mov edx, dword [0x44ec5c]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DebugActiveProcessStop]
test eax, eax
jne 0x42433e
push str.Unable_to_detach_us_from_main_process...
push 2
mov ecx, dword [0x44ec54]
call fcn.00427830
mov ecx, dword [0x44ec5c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x44ec3c]
mov ecx, dword [eax + 0x2f0]
push ecx
mov edx, dword [0x44ec3c]
mov eax, dword [edx + 0x2fc]
push eax
mov ecx, dword [0x44ec3c]
mov edx, dword [ecx + 0x2f8]
push edx
call dword [sym.imp.KERNEL32.dll_ContinueDebugEvent]
mov ecx, dword [0x44ec3c]
call fcn.0042eca0
mov eax, dword [0x44ec5c]
cmp dword [eax], 0
je 0x4243c3
push 0
mov ecx, dword [0x44ec5c]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x4243b8
push str.Unable_to_terminate_process
push 2
mov ecx, dword [0x44ec54]
call fcn.00427830
jmp 0x4243c3
mov eax, dword [0x44ec5c]
mov dword [eax], 0
mov ecx, dword [0x44ec5c]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x44ec3c]
call fcn.00430810
mov eax, dword [0x44ec5c]
cmp dword [eax + 4], 0
je 0x4243f8
mov ecx, dword [0x44ec5c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.004104c0
add esp, 0xc
push 0x44
push 0
mov ecx, dword [ebp - 8]
add ecx, 0x10
push ecx
call fcn.004104c0
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x424c40
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x44aae4]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x34c], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push 0
lea ecx, [ebp - 0x348]
push ecx
push 0x400000
push 0x14
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
push edx
mov ecx, dword [0x44ec38]
call fcn.00433160
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
push 1
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
push eax
push 1
lea ecx, [ebp - 5]
push ecx
call fcn.00410438
add esp, 0x10
movzx edx, byte [ebp - 5]
cmp edx, 0xc3
je 0x424cb5
movzx eax, byte [ebp - 5]
cmp eax, 0xc2
jne 0x424cbc
mov eax, 1
jmp 0x424cd3
movzx ecx, byte [ebp - 5]
cmp ecx, 0xcc
jne 0x424ccc
xor eax, eax
jmp 0x424cd3
jmp 0x424c5f
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0040fc17
mov esp, ebp
pop ebp
ret 8
Function at 0x427c90
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4374aa
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x44aae4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x30], ecx
push str.Writing_the_new_IAT_on_the_file...
push 1
mov ecx, dword [0x44ec54]
call fcn.00427830
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
mov eax, dword [0x44ec44]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x427d1e
mov dword [ebp - 0x24], str.Error_creating_file...
push 0x4465f0
lea edx, [ebp - 0x24]
push edx
call fcn.004130b6
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1c], eax
push 0
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0x18], ecx
push 0
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x14]
imul ecx, ecx, 0x64
push ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x427d82
mov dword [ebp - 0x28], str.Error_Writing_to_file...
push 0x4465f0
lea edx, [ebp - 0x28]
push edx
call fcn.004130b6
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x14]
imul edx, edx, 0x64
push edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x427dce
mov dword [ebp - 4], 0xffffffff
jmp 0x427ddc
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x427e00
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4374c5
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1134
call fcn.00413580
mov eax, dword [0x44aae4]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1144], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x12c]
push eax
push 0x1000
lea ecx, [ebp - 0x1130]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
jne 0x427e85
mov dword [ebp - 0x113c], str.Failed_enumerating_process_modules...
push 0x4465f0
lea eax, [ebp - 0x113c]
push eax
call fcn.004130b6
mov ecx, dword [ebp - 0x12c]
shr ecx, 2
mov dword [ebp - 0x18], ecx
push 0x104
push 0
lea edx, [ebp - 0x128]
push edx
call fcn.004104c0
add esp, 0xc
mov dword [ebp - 0x1134], 0
jmp 0x427ec2
mov eax, dword [ebp - 0x1134]
add eax, 1
mov dword [ebp - 0x1134], eax
mov ecx, dword [ebp - 0x1134]
cmp ecx, dword [ebp - 0x18]
jae 0x427f12
push 0x104
lea edx, [ebp - 0x128]
push edx
mov eax, dword [ebp - 0x1134]
mov ecx, dword [ebp + eax*4 - 0x1130]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.PSAPI.DLL_GetModuleBaseNameA
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x128]
push ecx
call fcn.00410250
add esp, 8
test eax, eax
je 0x427f10
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
jmp 0x427eb3
jmp 0x427f3e
mov dword [ebp - 4], 0xffffffff
jmp 0x427f4f
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0040fc17
mov esp, ebp
pop ebp
ret 8
Function at 0x429830
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43777d
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x44aae4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], 0
push 1
push 0
mov eax, dword [ebp + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp - 0x14], eax
push str.yesye
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x14]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
jne 0x4298e6
mov edx, dword [ebp - 0x30]
cmp dword [edx], 0x4550
je 0x4298fb
mov dword [ebp - 0x3c], str.Appears_to_be_an_Invalid_PE_file...
push 0x4465f0
lea eax, [ebp - 0x3c]
push eax
call fcn.004130b6
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x34]
mov dword [ecx + 0x114], eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x14]
add edx, dword [ecx + 0x78]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x78]
mov dword [eax + 0x11c], edx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x11c], 0
jne 0x429946
mov dword [ebp - 0x40], str.Export_table_not_found__or_doesnt_exists...
push 0x4465f0
lea ecx, [ebp - 0x40]
push ecx
call fcn.004130b6
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x11c]
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + eax + 0x28]
mov eax, dword [ebp + 8]
mov dword [eax + 0x12c], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x18]
mov dword [ecx + 0x120], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x20]
mov dword [ecx + 0x124], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x24]
mov dword [ecx + 0x128], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x14]
mov dword [ecx + 0x118], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x10]
mov dword [ecx + 0x130], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x48]
call fcn.00428660
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4299f3
mov dword [ebp - 4], 0xffffffff
jmp 0x429a01
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42b910
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
mov eax, dword [0x44aae4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2dc], ecx
mov dword [ebp - 0x2d8], 0x10010
mov eax, dword [0x44ec5c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea edx, [ebp - 0x2d8]
push edx
mov eax, dword [0x44ec5c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x42b95e
jmp 0x42b99c
push 0
push 1
push 0
lea edx, [ebp - 0x2c0]
push edx
mov ecx, dword [ebp - 0x2dc]
call fcn.00401790
lea eax, [ebp - 0x2d8]
push eax
mov ecx, dword [0x44ec5c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov eax, dword [0x44ec5c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040fc17
mov esp, ebp
pop ebp
ret

Function at 0x42be30
Capabilities:
Allocate or change rwx memory
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4375b6
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x44aae4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
push 0x40
push 0x1000
mov eax, dword [ebp + 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x42bea7
mov dword [ebp - 0x24], str.Error_allocating_memory...
push 0x4465f0
lea ecx, [ebp - 0x24]
push ecx
call fcn.004130b6
jmp 0x42bec8
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 0x10]
push eax
push str.Allocated_0x_08X_bytes_at:_0x_08X
push 0x32
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x138]
push edx
call fcn.0040fe9e
add esp, 0x14
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x42bf02
mov dword [ebp - 0x28], str.Error_while_getting_handle_to_packed_file.
push 0x4465f0
lea ecx, [ebp - 0x28]
push ecx
call fcn.004130b6
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp + 0x14]
je 0x42bf49
mov dword [ebp - 0x2c], str.Unable_to_read_the_number_of_bytes_requested...
push 0x4465f0
lea eax, [ebp - 0x2c]
push eax
call fcn.004130b6
jmp 0x42bf7f
mov dword [ebp - 4], 0xffffffff
jmp 0x42bf8d
cmp dword [ebp - 0x14], 0
je 0x42bf9d
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42d370
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 8]
push eax
push str.Setting_breakpoint_at:_0x_08X
push 0x32
mov ecx, dword [0x44ec3c]
mov edx, dword [ecx + 0x2ec]
push edx
call fcn.0040fe9e
add esp, 0x10
mov byte [ebp - 5], 0xcc
mov dword [ebp - 4], 0
mov eax, dword [0x44ec5c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp dword [ebp + 8], 0
je 0x42d3fb
lea edx, [ebp - 4]
push edx
push 1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x44ec5c]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea ecx, [ebp - 4]
push ecx
push 1
lea edx, [ebp - 5]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x44ec5c]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x42d3fb
xor eax, eax
jmp 0x42d40f
mov eax, dword [0x44ec5c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x42d990
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43760a
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x44aae4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x42d9fb
mov dword [ebp - 0x24], str.Unable_to_find_the_resource...
push 0x4465f0
lea edx, [ebp - 0x24]
push edx
call fcn.004130b6
mov eax, dword [ebp - 0x18]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
jmp 0x42da3d
mov dword [ebp - 4], 0xffffffff
jmp 0x42da4b
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x42da70
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437625
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x44aae4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x31], 0
mov dword [ebp - 4], 0
mov eax, dword [0x44ec5c]
mov dword [eax + 4], 0
mov ecx, dword [0x44ec5c]
mov dword [ecx + 0xc], 0
mov dword [ebp - 0x30], 0x1c
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x42daf8
mov dword [ebp - 0x3c], str.Failed_to_take_a_snapshot_from_threads_running...
push 0x4465f0
lea edx, [ebp - 0x3c]
push edx
call fcn.004130b6
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x42dbcd
mov edx, dword [0x44ec5c]
mov eax, dword [ebp - 0x24]
cmp eax, dword [edx + 8]
jne 0x42dbae
mov ecx, dword [ebp - 0x28]
push ecx
push 0
push 0x1f03ff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edx, dword [0x44ec5c]
mov dword [edx + 4], eax
mov eax, dword [0x44ec5c]
cmp dword [eax + 4], 0
jne 0x42db59
mov dword [ebp - 0x40], str.Failed_to_get_a_handle_to_main_thread_of_child_process...
push 0x4465f0
lea ecx, [ebp - 0x40]
push ecx
call fcn.004130b6
mov edx, dword [0x44ec5c]
mov eax, dword [ebp - 0x28]
mov dword [edx + 0xc], eax
mov ecx, dword [0x44ec5c]
cmp dword [ecx + 0xc], 0
jne 0x42db88
mov dword [ebp - 0x44], str.Failed_to_get_main_thread_ID_of_child_process...
push 0x4465f0
lea edx, [ebp - 0x44]
push edx
call fcn.004130b6
jmp 0x42dbaa
mov eax, dword [0x44ec5c]
mov ecx, dword [eax + 0xc]
push ecx
push str.Child_process_main_thread_ID:_0x_X
push 0x32
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0x2ec]
push eax
call fcn.0040fe9e
add esp, 0x10
mov byte [ebp - 0x31], 1
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
je 0x42dbcb
movzx eax, byte [ebp - 0x31]
test eax, eax
je 0x42db0d
jmp 0x42dbe2
mov dword [ebp - 0x48], str.Couldnt_found_any_thread_in_the_snapshot...
push 0x4465f0
lea ecx, [ebp - 0x48]
push ecx
call fcn.004130b6
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42dc28
mov dword [ebp - 4], 0xffffffff
jmp 0x42dc36
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret