joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410320
Capabilities:
Check if file exists

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x423e68
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov edi, dword [esp + 0x2c]
mov esi, ecx
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41035e
pop edi
pop esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
push ebx
push ebp
push 0x4000
push edi
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CStdioFile::CStdioFile
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
call sub.MFC42u.DLL_CFile::GetLength
mov edi, eax
lea eax, [edi + edi + 2]
push eax
call sub.MFC42u.DLL_operatornew
add esp, 4
mov ebx, eax
lea ecx, [esp + 0x10]
push edi
push ebx
call sub.MFC42u.DLL_CStdioFile::Read
lea ecx, [esp + 0x10]
mov ebp, eax
call sub.MFC42u.DLL_CStdioFile::Close
mov ecx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x85c
push ecx
call edi
test eax, eax
je 0x4103cf
mov edx, dword [esi + 0x20]
push 0
push 0
push 0x87b
push edx
call edi
mov eax, dword [esi + 0x20]
push 0
push 0
push 0x915
push eax
call edi
mov ecx, dword [esi + 0x20]
push 0
push 0
push 0x7dc
push ecx
call edi
mov edx, dword [esi + 0x20]
push 0
push 0
push 0x87f
push edx
call edi
mov eax, dword [esi + 0x20]
push 0
push 0
push 0x7d4
push eax
call edi
mov ecx, dword [esi + 0x20]
push 0
push 0xffffffffffffffff
push 0x7fd
push ecx
call edi
mov edx, dword [esi + 0x20]
push ebx
push ebp
push 0x7d1
push edx
call edi
mov eax, dword [esi + 0x20]
push 0
push 1
push 0x7dc
push eax
call edi
mov ecx, dword [esi + 0x20]
push 0
push 0
push 0xcd
push ecx
call edi
mov edx, dword [esi + 0x20]
push 0
push 0
push 0x7de
push edx
call edi
mov eax, dword [esi + 0x20]
push 0
push 0
push 0x7e9
push eax
call edi
mov ecx, dword [esi + 0x20]
push 0
push 0
push 0x95f
push ecx
call edi
mov ecx, esi
call fcn.00410240
push ebx
call fcn.0041fda0
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00420130
mov ecx, dword [esp + 0x24]
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 4

Function at 0x416e00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, 4
push esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
xor esi, esi
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x416e6a
lea ecx, [esp + 0xc]
lea edx, [esp + 4]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push edx
push eax
push esi
push str.EnableLUA
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x416e5f
cmp dword [esp + 4], esi
je 0x416e5f
mov esi, 1
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x417480
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x21c
lea eax, [esp]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push esi
push edi
push eax
push ebp
call sub.MFC42u.DLL_CFile::GetStatus
test eax, eax
jne 0x417556
call sub.MFC42u.DLL_AfxGetModuleState
mov ecx, dword [esp + 0x230]
mov esi, dword [eax + 8]
and ecx, 0xffff
push 0x432f04
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4174d7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret
push edi
push esi
call fcn.00417570
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4174f2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x417509
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x417521
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret
push 0x432efc
push ebp
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x417541
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret
push esi
push ebx
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x21c
ret

Function at 0x417570
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x100
mov al, 0x65
mov cl, 0x6f
mov byte [esp + 3], al
mov byte [esp + 7], al
mov byte [esp + 0xd], al
lea eax, [esp]
push eax
push str.kernel32.dll
mov byte [esp + 8], 0x53
mov byte [esp + 9], 0x69
mov byte [esp + 0xa], 0x7a
mov byte [esp + 0xc], cl
mov byte [esp + 0xd], 0x66
mov byte [esp + 0xe], 0x52
mov byte [esp + 0x10], 0x73
mov byte [esp + 0x11], cl
mov byte [esp + 0x12], 0x75
mov byte [esp + 0x13], 0x72
mov byte [esp + 0x14], 0x63
mov byte [esp + 0x16], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4175f4
mov ecx, dword [esp + 0x108]
mov edx, dword [esp + 0x104]
push ecx
push edx
call eax
add esp, 0x100
ret
xor eax, eax
add esp, 0x100
ret
Function at 0x4186e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4248e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [esp + 0x48]
push ebx
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x1c]
xor esi, esi
push eax
push ecx
mov word [esp + 0x24], si
call ebx
cmp eax, esi
jge 0x418725
mov word [esp + 0x1c], 0xa
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x2c]
push edx
push eax
mov dword [esp + 0x4c], esi
mov word [esp + 0x34], si
call ebx
cmp eax, esi
jge 0x418749
mov word [esp + 0x2c], 0xa
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x1c]
mov eax, dword [edi]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x58]
push esi
push esi
push ecx
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x5c]
push 1
push 0x400
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 2
mov dword [esp + 0x30], esi
mov edx, dword [eax]
push 0x42a5a8
push ecx
push eax
mov byte [esp + 0x68], 1
call dword [edx + 0x18]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [esp + 0x2c]
push edx
mov esi, eax
call edi
lea eax, [esp + 0x1c]
push eax
call edi
mov ecx, dword [esp + 0x3c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10

Function at 0x41d8c0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x425272
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x804
push esi
push edi
mov dword [esp + 8], 0
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x824]
lea ecx, [esp + 0xc]
stosw word es:[edi], ax
mov eax, dword [esp + 0x828]
mov dword [esp + 0x814], 3
push eax
mov eax, dword [esp + 0x824]
push 0x400
push ecx
push 0x4341e8
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [esp + 0x81c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.0041ff80
mov dword [esp + 8], 1
lea ecx, [esp + 0x820]
mov byte [esp + 0x814], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x824]
mov byte [esp + 0x814], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x828]
mov byte [esp + 0x814], 0
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x80c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x810
ret
Function at 0x41f590
Capabilities:
Create thread
Resume thread
Terminate thread

Disassembly:
sub esp, 0x200
push esi
call fcn.00415d50
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x41f5af
mov eax, dword [eax + 8]
sub eax, ecx
test eax, 0xfffffffc
jne 0x41f5b9
xor eax, eax
pop esi
add esp, 0x200
ret
push 0x20
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x41f5d2
pop esi
add esp, 0x200
ret
lea edx, [esi + 0x14]
push edi
mov ecx, 8
xor eax, eax
mov edi, esi
push edx
push 4
push esi
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x218]
push 0x41f690
push eax
push eax
mov dword [esi + 8], ecx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov dword [esi + 4], eax
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
add esp, 0x18
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 4]
lea ecx, [esp + 8]
push eax
push str.Globalxscript__d
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 8]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [esi + 0xc], eax
pop edi
jne 0x41f666
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
pop esi
add esp, 0x200
ret
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [esi + 0xc]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, esi
pop esi
add esp, 0x200
ret

Function at 0x420720
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a5b8
push 0x420692
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
cmp word [ecx], 0x5a4d
jne 0x4207bb
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
jne 0x4207bb
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
mov esi, dword [ebp + 0xc]
cmp esi, edi
jb 0x4207bb
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x4207bb
mov dword [ebp - 4], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420870
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x437fd8], eax
je 0x420886
mov eax, 0x10dd
pop ecx
ret
push ebp
push esi
mov esi, dword [0x437fe8]
xor ebp, ebp
cmp esi, ebp
push edi
je 0x4208d9
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0xc]
push eax
xor eax, eax
mov al, byte [edx + 0x17]
push ecx
mov ecx, dword [esi + 0xc]
push eax
push ecx
call fcn.00421d40
cmp dword [esi + 4], ebp
jne 0x4208c8
mov eax, dword [esi + 0x10]
cmp eax, ebp
je 0x4208c8
push eax
call fcn.00420950
add esp, 4
mov dword [esi + 0x10], ebp
mov edi, dword [esi]
push esi
call fcn.0041fda0
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x420895
mov dword [0x437fe8], ebp
call fcn.00420920
mov esi, dword [0x437fe4]
cmp esi, ebp
je 0x42090d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [esi + 4]
push edx
call ebx
mov edi, dword [esi]
push esi
call fcn.0041fda0
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x4208f5
pop ebx
pop edi
mov dword [0x437fe4], ebp
mov dword [0x437fd8], ebp
pop esi
xor eax, eax
pop ebp
pop ecx
ret
Function at 0x420c40
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x437fdc]
push esi
test eax, eax
push edi
jne 0x420cb6
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 0xc]
cmp edi, eax
je 0x420cb4
push 8
call sub.MFC42u.DLL_operatornew
mov esi, eax
add esp, 4
test esi, esi
jne 0x420c70
mov edi, 8
jmp 0x420c8d
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x420ca4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.0041fda0
add esp, 4
mov dword [0x437fdc], edi
mov eax, edi
pop edi
mov dword [0x437fe0], 0
pop esi
ret 4
mov dword [esi + 4], edi
mov eax, dword [0x437fe4]
mov dword [esi], eax
mov dword [0x437fe4], esi
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x421230
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a5c8
push 0x420692
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4212ba
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x34]
cmp word [eax], 0x5a4d
jne 0x4212b3
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov dword [ebp - 0x3c], ecx
cmp dword [ecx], 0x4550
jne 0x4212b3
cmp word [ecx + 0x14], 0
mov dword [ebp - 4], 0xffffffff
je 0x4212ba
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x421410
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a5e8
push 0x420692
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
test eax, eax
mov esi, 0x10000
je 0x421448
lea esi, [eax + 0x10000]
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
or ebx, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_VirtualQuery]
push 0x1c
lea eax, [ebp - 0x38]
push eax
push esi
call edi
test eax, eax
jbe 0x4214d2
cmp dword [ebp - 0x28], 0x1000
jne 0x42148f
mov eax, dword [ebp - 0x24]
test ah, 1
jne 0x42148f
mov dword [ebp - 4], 0
mov dword [ebp - 0x3c], esi
cmp word [esi], 0x5a4d
je 0x42149a
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x2c]
lea esi, [edx + ecx]
jmp 0x42145d
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [ebp - 0x40], eax
cmp dword [eax], 0x4550
mov dword [ebp - 4], ebx
jne 0x42148f
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4214f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a5f8
push 0x420692
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
xor edi, edi
cmp eax, edi
jne 0x421530
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], edi
cmp word [ecx], 0x5a4d
je 0x421544
push 0xc1
jmp 0x421638
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x24], eax
cmp dword [eax], 0x4550
je 0x42155e
push 0xbf
jmp 0x421638
mov cx, word [eax + 0x14]
cmp cx, di
je 0x421633
and ecx, 0xffff
lea ecx, [ecx + eax + 0x18]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], edi
xor edx, edx
mov dx, word [eax + 6]
cmp edi, edx
jae 0x421633
lea eax, [edi + edi*4]
mov ecx, dword [ebp - 0x20]
lea eax, [ecx + eax*8]
mov esi, str.User32
mov ecx, eax
mov bl, byte [ecx]
mov dl, bl
cmp bl, byte [esi]
jne 0x4215bd
test dl, dl
je 0x4215b9
mov bl, byte [ecx + 1]
mov dl, bl
cmp bl, byte [esi + 1]
jne 0x4215bd
add ecx, 2
add esi, 2
test dl, dl
jne 0x421599
xor ecx, ecx
jmp 0x4215c2
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x42161e
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x421633
mov edx, dword [eax + 0x10]
test edx, edx
je 0x421633
mov edx, dword [ebp - 0x1c]
lea esi, [ecx + edx]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov eax, dword [esi]
cmp eax, 0x40
jb 0x421633
cmp dword [esi + 4], 0x727444
jne 0x421633
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x4215fa
mov dword [esi + 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
inc edi
mov dword [ebp - 0x28], edi
mov eax, dword [ebp - 0x24]
jmp 0x42157b
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x421920
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 4]
push ebx
push esi
push edi
mov eax, dword [ecx + 0x3c]
mov edi, dword [esp + 0x14]
add eax, ecx
xor ecx, ecx
mov cx, word [eax + 0x14]
mov edx, dword [ecx + eax + 0x24]
lea ecx, [ecx + eax + 0x18]
cmp edi, edx
jae 0x421948
mov eax, edi
pop edi
pop esi
pop ebx
ret
xor edx, edx
xor esi, esi
mov dx, word [eax + 6]
test edx, edx
jbe 0x42196c
mov eax, dword [ecx + 0xc]
cmp edi, eax
jb 0x421964
mov ebx, dword [ecx + 8]
add ebx, eax
cmp edi, ebx
jb 0x421973
add ecx, 0x28
inc esi
cmp esi, edx
jb 0x421954
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0xc]
sub eax, edx
add eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x421a50
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x200
push ebx
mov ebx, dword [esp + 0x208]
push ebp
mov ebp, dword [esp + 0x210]
push esi
push edi
push 0x5c
push ebx
mov dword [ebp], 0
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
jne 0x421ae3
lea eax, [esp + 0x10]
push 0x200
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x43136c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
jmp 0x421b01
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x4341cc
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x421b74
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push esi
mov edi, eax
call ebx
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
add esp, 0x20
test ebx, ebx
je 0x421b5d
push esi
push edi
push 1
push ebx
mov dword [ebp], edi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x200
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x200
ret
Function at 0x421c20
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov eax, dword [0x438050]
push esi
test eax, eax
jne 0x421c7d
push str.ZwProtectVirtualMemory
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 5
mov esi, eax
push 0x43803c
push str.ntdll.dll
push esi
call fcn.00421b90
add esp, 0x10
test eax, eax
je 0x421c9b
add esi, 5
mov byte [0x438041], 0x68
mov dword [0x438042], esi
mov byte [0x438046], 0xc3
mov dword [0x438050], 1
push 0x40
push 0x3000
push 0xb
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x421cab
or eax, 0xffffffff
pop esi
ret 0x14
mov eax, dword [0x438050]
test eax, eax
jne 0x421c7d
or eax, 0xffffffff
pop esi
ret 0x14
mov ecx, dword [0x43803c]
mov eax, esi
push edi
mov dword [eax], ecx
mov edx, dword [0x438040]
mov dword [eax + 4], edx
mov cx, word [0x438044]
mov word [eax + 8], cx
mov dl, byte [0x438046]
mov ecx, dword [esp + 0x18]
mov byte [eax + 0xa], dl
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
call esi
push 0x8000
push 0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
pop edi
pop esi
ret 0x14

Function at 0x421d40
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x204
lea eax, [esp + 0x104]
push ebx
push ebp
push esi
push edi
push eax
call fcn.00421e60
add esp, 4
lea ecx, [esp + 0x114]
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x421e11
mov ebx, dword [esp + 0x220]
mov ebp, dword [esp + 0x224]
lea edx, [esp + 0x218]
lea ecx, [esp + 0x10]
mov dword [esp + 0x19], edx
push 0
push ecx
lea edx, [esp + 0x1c]
push 0x15
lea eax, [esp + 0x228]
push edx
push esi
mov dword [esp + 0x24], 0
mov byte [esp + 0x28], 1
mov dword [esp + 0x29], 0xffffffff
mov dword [esp + 0x31], eax
mov dword [esp + 0x35], ebx
mov dword [esp + 0x39], ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 2
jne 0x421e45
mov eax, dword [esp + 0x21c]
mov ecx, dword [esp + 0x218]
push ebp
push ebx
push eax
push ecx
push 0xffffffffffffffff
call fcn.00421d10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x204
ret 0x10
mov edx, dword [esp + 0x224]
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 0x21c]
push edx
mov edx, dword [esp + 0x21c]
push eax
push ecx
push edx
push 0xffffffffffffffff
call fcn.00421d10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x204
ret 0x10
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x204
ret 0x10