joyce8/EMBER2024-capa huggingface dataset:
Function at 0x19b8c
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffe8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
push 0x8000000
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.0001322c
push eax
mov eax, dword [0x1b2f8]
mov eax, dword [eax]
call eax
mov dword [ebp - 0xc], eax
push 0
push 0x80000022
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp - 8]
call fcn.0001322c
push eax
mov eax, dword [0x1b2f8]
mov eax, dword [eax]
call eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x19c5d
cmp dword [ebp - 0x10], 0xffffffff
je 0x19c5d
mov dword [ebp - 0x14], 0xfff
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x1018]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_ReadFile
cmp dword [ebp - 0x14], 0
jbe 0x19c45
mov eax, dword [ebp - 0x14]
mov byte [ebp + eax - 0x1018], 0
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x1018]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_WriteFile
cmp dword [ebp - 0x14], 0
jne 0x19bf9
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov esp, ebp
pop ebp
ret
Function at 0x19c64
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbdc
xor eax, eax
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x414], eax
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x40c], eax
mov dword [ebp - 0x404], eax
mov dword [ebp - 0x408], eax
xor eax, eax
push ebp
push 0x19e82
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x400
lea eax, [ebp - 0x400]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
push 0x19e98
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x408]
push eax
xor ecx, ecx
mov edx, 0x19ea4
mov eax, 0x19eb8
call fcn.000147c8
push dword [ebp - 0x408]
push 0x19ec4
lea eax, [ebp - 0x404]
mov edx, 3
call fcn.00013138
mov eax, dword [ebp - 0x404]
call fcn.0001322c
push eax
lea eax, [ebp - 0x400]
push eax
mov eax, dword [0x1b2e4]
mov eax, dword [eax]
call eax
push 0x1b2b0
lea eax, [ebp - 0x400]
push eax
call sub.KERNEL32.DLL_lstrlenA
push eax
lea eax, [ebp - 0x40c]
lea edx, [ebp - 0x400]
mov ecx, 0x400
call fcn.00012fe4
mov eax, dword [ebp - 0x40c]
mov edx, 1
pop ecx
call fcn.00013270
lea edx, [ebp - 0x410]
xor eax, eax
call fcn.0001535c
mov eax, dword [ebp - 0x410]
mov edx, dword [0x1b2b0]
call fcn.00019b8c
push 1
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x414]
push eax
xor ecx, ecx
mov edx, 0x19ed4
mov eax, 0x19ee4
call fcn.000147c8
mov eax, dword [ebp - 0x414]
push eax
mov eax, dword [0x1b2b0]
call fcn.0001322c
xor ecx, ecx
pop edx
call fcn.00019474
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x418]
push eax
xor ecx, ecx
xor edx, edx
mov eax, 0x19ef0
call fcn.000147c8
mov eax, dword [ebp - 0x418]
call fcn.00013078
cmp eax, 7
jle 0x19e0f
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x41c]
push eax
xor ecx, ecx
xor edx, edx
mov eax, 0x19ef0
call fcn.000147c8
mov eax, dword [ebp - 0x41c]
call fcn.00018d00
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x420]
push eax
xor ecx, ecx
xor edx, edx
mov eax, 0x19ef0
call fcn.000147c8
mov eax, dword [ebp - 0x420]
call fcn.00013078
cmp eax, 7
jl 0x19e64
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x424]
push eax
xor ecx, ecx
xor edx, edx
mov eax, 0x19ef0
call fcn.000147c8
mov eax, dword [ebp - 0x424]
call fcn.00018e44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x19e89
lea eax, [ebp - 0x424]
mov edx, 9
call fcn.00012f20
ret
Function at 0x408be3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00407ad3
and dword [ebp - 4], 0
cmp dword [0x435bc8], 0
mov ebx, eax
jne 0x408c94
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408d45
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408d45
push eax
call fcn.00407a61
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x435bc8], eax
call esi
push eax
call fcn.00407a61
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x435bcc], eax
call esi
push eax
call fcn.00407a61
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x435bd0], eax
call esi
push eax
call fcn.00407a61
pop ecx
mov dword [0x435bd8], eax
test eax, eax
je 0x408c94
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00407a61
pop ecx
mov dword [0x435bd4], eax
mov eax, dword [0x435bd4]
cmp eax, ebx
je 0x408cec
cmp dword [0x435bd8], ebx
je 0x408cec
push eax
call fcn.00407adc
push dword [0x435bd8]
mov esi, eax
call fcn.00407adc
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408cec
test edi, edi
je 0x408cec
call esi
test eax, eax
je 0x408ce3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408ce3
test byte [ebp - 0xc], 1
jne 0x408cec
or dword [ebp + 0x10], 0x200000
jmp 0x408d25
mov eax, dword [0x435bcc]
cmp eax, ebx
je 0x408d25
push eax
call fcn.00407adc
pop ecx
test eax, eax
je 0x408d25
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408d25
mov eax, dword [0x435bd0]
cmp eax, ebx
je 0x408d25
push eax
call fcn.00407adc
pop ecx
test eax, eax
je 0x408d25
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x435bc8]
call fcn.00407adc
pop ecx
test eax, eax
je 0x408d45
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408d47
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40aa4e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f328]
jne 0x40aa58
repz ret
jmp fcn.0040c175
Function at 0x408590
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x4085bc
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
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 0x4086a2
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], 0
jl 0x408653
jg 0x4085e5
cmp dword [ebp + 0xc], 0
jbe 0x408653
cmp dword [ebp - 8], 0
jl 0x408653
jg 0x4085f3
cmp dword [ebp - 0xc], 0
jbe 0x408653
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 8]
jg 0x408611
jl 0x408605
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0xc]
jae 0x408611
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
push eax
call fcn.00409f80
add esp, 0xc
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
sbb edx, dword [ebp - 8]
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int_]
cmp dword [ebp + 0x10], 0
jl 0x408696
jg 0x408661
cmp dword [ebp + 0xc], 0
jbe 0x408696
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x4c], 0
je 0x408696
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
sbb edx, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40a490
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x418008]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x38], 0
je 0x40a4b7
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x40a4be
mov al, 1
jmp 0x40a5ab
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x44], edx
call fcn.0040b570
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x30]
call dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
call fcn.0040b570
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x4c]
push edx
call fcn.0040b5d0
add esp, 8
movzx eax, al
test eax, eax
je 0x40a504
xor al, al
jmp 0x40a5ab
mov dword [ebp - 0x54], 0x20
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x50], edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x30]
add eax, 0x40
push eax
mov ecx, dword [ebp - 0x50]
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x40a547
cmp dword [ebp - 0x34], 1
je 0x40a54e
cmp dword [ebp - 0x34], 3
je 0x40a59e
jmp 0x40a5a9
mov ecx, dword [ebp - 0x30]
mov byte [ecx + 0x3d], 0
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x40a57e
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x4c]
push edx
mov eax, dword [ebp - 0x38]
push eax
push 1
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x40a57e
xor al, al
jmp 0x40a5ab
mov edx, dword [ebp - 0x30]
movzx eax, byte [edx + 0x3d]
test eax, eax
jne 0x40a592
mov dword [ebp - 0x3c], 1
jmp 0x40a599
mov dword [ebp - 0x3c], 0
mov al, byte [ebp - 0x3c]
jmp 0x40a5ab
mov ecx, dword [ebp - 0x30]
mov byte [ecx + 0x3d], 0
mov al, 1
jmp 0x40a5ab
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410d57
mov esp, ebp
pop ebp
ret
Function at 0x40f190
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412b3d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x418008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
push 4
lea ecx, [ebp - 0x14]
call fcn.00402560
mov eax, dword [ebp + 8]
push eax
call fcn.00404810
add esp, 4
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.0040fe20
add esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0x40fe90
mov edx, dword [ebp - 0x18]
add edx, 4
push edx
push 0
lea ecx, [ebp - 0x14]
call fcn.004017d0
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov edx, dword [ebp - 0x18]
cmp dword [edx], 0
je 0x40f226
lea ecx, [ebp - 0x14]
call fcn.0040e210
jmp 0x40f238
mov eax, dword [ebp - 0x18]
mov dword [eax + 4], 0
push 6
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040f6f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410d57
mov esp, ebp
pop ebp
ret 4

Function at 0x4116eb
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41172a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41172a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41172a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41172a
cmp dword [ecx + 0x74], 0xe
jbe 0x41172a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x405c83
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4345c0
call fcn.004339e0
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00407553
mov esi, dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 1
je 0x405caf
push edi
call esi
cmp eax, 0xffffffff
jne 0x405cf1
test ebx, ebx
je 0x405cee
lea ecx, [ebp - 0x18]
call fcn.004028e9
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.0040765c
test al, al
push dword [ebp - 0x18]
je 0x405ce8
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401abd
pop ecx
mov eax, esi
jmp 0x405cf1
call fcn.00401abd
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x406306
Capabilities:
Get disk information

Disassembly:
mov eax, 0x434664
call fcn.004339e0
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
call fcn.0041c900
mov edi, dword [sym.imp.kernel32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x14], ebx
je 0x4063d4
mov eax, SysReAllocString
cmp ebx, eax
ja 0x406342
mov eax, ebx
add eax, eax
push eax
call fcn.004066d0
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
push esi
push ebx
call edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x10], ebx
je 0x4063cd
cmp ebx, dword [ebp - 0x14]
ja 0x4063cd
lea ecx, [ebp - 0x2c]
call fcn.004028e9
test ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], edi
jbe 0x4063b5
push 2
xor eax, eax
pop ebx
cmp word [esi + ebx - 2], 0
jne 0x4063aa
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.004066d0
mov ecx, dword [ebp - 0x18]
lea eax, [edi + 1]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x1c], ebx
call fcn.0040150c
mov eax, ebx
inc edi
inc ebx
inc ebx
cmp edi, dword [ebp - 0x10]
jb 0x406380
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0x2c]
call fcn.00401abd
push esi
call fcn.00401abd
cmp dword [ebp - 0x14], ebx
pop ecx
pop ecx
sete al
jmp 0x4063d6
push esi
call fcn.00401abd
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4066d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x4066df
pop dword [ebp - 0x20]
mov eax, 0x8d5ecb46
sub eax, 0x8d1e6467
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x3c442
push 0
mov eax, 0xef942ba4
sub eax, 0xef50ab74
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0x4e6f
xor edi, edi
add edi, eax
mov ebx, 0xd0586621
add ebx, 0x2fec5fdf
add ebx, dword [ebp - 0x20]
mov esi, 0xc28cc72c
xor dword [ebp - 4], 0x5a993d57
mov edx, dword [ebx]
xor dword [ebp - 0x10], edx
xor edx, esi
sub dword [ebp - 0x18], eax
mov dword [edi], edx
sub dword [ebp - 0x10], 0x4cdd80f5
add edi, 0x48019735
add edi, 0xb7fe68cf
add ebx, 0xe8e7c665
add ebx, 0x1718399f
loop 0x406734
add eax, 0x8cccb998
add eax, 0x733472f7
xor ebx, ebx
add ebx, eax
add eax, 0x59ab7a76
add eax, 0xa654858f
mov ecx, 0x400000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x100028c1
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor esi, esi
push esi
push 4
push dword [ebp + 0x1c]
mov dword [ebp - 8], esi
push dword [ebp + 0x18]
push 0x100000
push dword [ebp + 0x10]
call fcn.10006abd
mov edi, eax
add esp, 0x18
mov dword [ebp - 4], edi
test edi, edi
jne 0x10002927
cmp dword [ebp + 0x14], 2
jne 0x10002989
lea eax, [ebp - 4]
mov dword [ebp - 8], 1
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x10]
call fcn.10002993
add esp, 0x10
test eax, eax
je 0x10002924
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 4]
jmp 0x1000296d
mov edi, dword [ebp - 4]
cmp dword [ebp + 8], esi
je 0x1000295b
cmp dword [ebp + 0xc], esi
je 0x1000295b
push dword [ebp - 8]
push 0x20196
push dword [ebp + 0xc]
call fcn.1000381f
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.10003d31
add esp, 0x18
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x1000296f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test edi, edi
je 0x1000297a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1000297a
Function at 0x10002993
Capabilities:
Allocate or change rwx memory
Check os version
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push esi
push 0x110
xor esi, esi
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.100103f0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x100029dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10002abf
cmp dword [ebp - 0x114], 5
jne 0x100029f8
cmp dword [ebp - 0x110], 2
jne 0x100029f8
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100029cf
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, 0x3000
push 0x40
push ebx
push 0x52
push 0
call edi
mov dword [ebp - 4], eax
test eax, eax
jne 0x10002a22
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10002abd
push 0x40
push ebx
push 0x149
push 0
call edi
mov edi, eax
test edi, edi
jne 0x10002a3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10002a9d
push 0x52
push 0x10027f30
push dword [ebp - 4]
call fcn.1000fb00
push 0x129
push 0x10027f88
push edi
call fcn.1000fb00
mov eax, dword [ebp + 8]
lea ebx, [edi + 0x129]
and dword [ebx + 0x18], esi
add esp, 0x18
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0x10]
push ebx
push edi
mov dword [ebx + 0x10], eax
call dword [ebp - 4]
test eax, eax
jne 0x10002a8d
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10002a34
mov ecx, dword [ebx + 0x18]
test ecx, ecx
jne 0x10002a98
push 6
jmp 0x10002a85
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x4000
push 0
push dword [ebp - 4]
call ebx
test edi, edi
je 0x10002abd
push 0x4000
push 0
push edi
call ebx
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000436a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x5c
push esi
call fcn.10011250
pop ecx
pop ecx
test eax, eax
je 0x10004382
lea esi, [eax + 1]
push 0x40
push 0x1000
push 0x180
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x1002aa34], eax
test eax, eax
je 0x10004424
push eax
call fcn.10004672
push 0xff
push esi
push 0x100
push dword [0x1002aa34]
call fcn.100111a4
push dword [0x1002aa34]
call fcn.10010c80
mov ecx, dword [0x1002aa34]
inc eax
mov dword [ecx + 0x100], eax
mov ecx, dword [0x1002aa34]
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0x108], eax
push dword [0x1002aa34]
call fcn.100048ca
add esp, 0x1c
push dword [0x1002aa34]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push dword [0x1002aa34]
mov esi, eax
call fcn.100047f2
mov dword [esp], 0x8000
push 0
push dword [0x1002aa34]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, esi
pop esi
pop ebp
ret
Function at 0x100048ca
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
mov edi, dword [ebp + 8]
push 0x40
push 0x3000
mov eax, dword [edi + 0x108]
mov esi, dword [eax + 0x3c]
add esi, eax
push dword [esi + 0x50]
push dword [esi + 0x34]
call ebx
mov dword [edi + 0x10c], eax
test eax, eax
jne 0x10004911
push 0x40
push 0x3000
push dword [esi + 0x50]
push eax
call ebx
mov dword [edi + 0x10c], eax
mov eax, dword [esi + 0x50]
push str.NtLockVirtualMemory
push 0x1002842c
mov dword [edi + 0x110], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10004952
mov ecx, dword [edi + 0x10c]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x50]
mov dword [ebp + 8], ecx
lea ecx, [ebp + 8]
push 1
push ecx
lea ecx, [ebp - 4]
push ecx
push 0xffffffffffffffff
call eax
push 0
push dword [esi + 0x54]
push dword [edi + 0x108]
push dword [edi + 0x10c]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
and dword [ebp + 8], 0
xor ecx, ecx
movzx eax, word [esi + 0x14]
cmp cx, word [esi + 6]
jae 0x100049b2
lea ebx, [esi + 0x2c]
add ebx, eax
mov eax, dword [ebx]
add eax, dword [edi + 0x108]
push 0
push dword [ebx - 4]
push eax
mov eax, dword [ebx - 8]
add eax, dword [edi + 0x10c]
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [ebp + 8]
lea ebx, [ebx + 0x28]
movzx eax, word [esi + 6]
inc ecx
mov dword [ebp + 8], ecx
cmp ecx, eax
jl 0x10004980
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10004d3c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0x18
push 0x10025478
call fcn.10010150
xor esi, esi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x10004d58
xor eax, eax
jmp 0x10004dec
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov eax, dword [edi + 0x3c]
mov ebx, dword [eax + edi + 0x78]
add ebx, edi
mov eax, dword [ebx + 0x1c]
add eax, edi
mov dword [ebp + 8], eax
mov edx, dword [ebx + 0x20]
add edx, edi
mov dword [ebp - 0x20], edx
mov ecx, dword [ebx + 0x24]
add ecx, edi
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0xc]
test ecx, 0xffff0000
jne 0x10004d95
movzx eax, cx
sub eax, dword [ebx + 0x10]
jmp 0x10004dbc
mov ebx, dword [ebx + 0x18]
mov dword [ebp - 0x28], ebx
mov eax, ebx
dec ebx
mov dword [ebp - 0x28], ebx
test eax, eax
je 0x10004de6
mov eax, dword [edx]
add eax, edi
push ecx
push eax
call fcn.10010bf0
pop ecx
pop ecx
test eax, eax
mov eax, dword [ebp - 0x1c]
jne 0x10004dc6
movzx eax, word [eax]
mov esi, dword [ebp + 8]
mov esi, dword [esi + eax*4]
add esi, edi
jmp 0x10004de3
mov edx, dword [ebp - 0x20]
add edx, 4
mov dword [ebp - 0x20], edx
add eax, 2
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0xc]
jmp 0x10004d9b
mov dword [ebp - 0x24], esi
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.1001018b
ret 8