joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f0d0
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44f27b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44f25c
mov dl, 1
mov eax, dword [0x412424]
call fcn.0040373c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404518
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44f24b
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043d010
test al, al
je 0x44f23e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44f28c
lea eax, [ebp - 0x254]
call fcn.004091fc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44f23e
xor eax, eax
push ebp
push 0x44f237
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44f2c4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44f220
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404788
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44f220
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404788
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44f23e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44f141
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415f88
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44f282
lea eax, [ebp - 0x260]
call fcn.00404518
ret

Function at 0x44fbc4
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x462b6c]
cmp byte [eax + 0xa5], 0
jne 0x44fc35
cmp dword [0x462b84], 0
jne 0x44fbf6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44fb80
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x462b84], eax
cmp dword [0x462b80], 0
jne 0x44fc11
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x462b80], eax
cmp dword [0x462b88], 0
jne 0x44fc35
push esp
push 0
push 0
push 0x44fb24
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x462b88], eax
pop edx
ret
Function at 0x4502c8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x462b6c]
cmp dword [eax + 0x30], 0
je 0x450372
cmp dword [ebx + 0x94], 0
jne 0x45036c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x450258
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45036c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x450332
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45036c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414384
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x450341
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x450ed0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x450f05
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404608
jmp 0x450f12
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040456c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x451ea0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x451ee1
mov eax, esi
call fcn.00438680
test al, al
je 0x451ee1
mov eax, dword [ebx + 0x84]
call fcn.004383a8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x451ee1
push 0
mov eax, dword [ebx + 0x84]
call fcn.004383a8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x454a24
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004049c8
mov edi, dword [ebp + 8]
add edi, 0xffffff00
xor eax, eax
push ebp
push 0x454b3d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 0x22
xor ebx, ebx
xor esi, esi
mov eax, dword [ebp - 4]
call fcn.004047d8
test eax, eax
jle 0x454b0c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0x18]
add eax, 0xde
xor edx, edx
push edx
push eax
lea eax, [ebx + 1]
cdq
call fcn.004053dc
mov ebx, eax
mov eax, dword [ebp - 0x18]
add eax, 0xde
xor edx, edx
push edx
push eax
xor eax, eax
mov al, byte [edi + ebx]
add eax, esi
cdq
call fcn.004053dc
mov esi, eax
mov al, byte [edi + ebx]
mov dl, byte [edi + esi]
mov byte [edi + ebx], dl
mov byte [edi + esi], al
xor eax, eax
mov al, byte [edi + ebx]
xor edx, edx
mov dl, byte [edi + esi]
add eax, edx
mov edx, dword [ebp - 0x18]
add edx, 0xde
mov ecx, edx
xor edx, edx
div ecx
mov al, byte [edi + edx]
mov byte [ebp - 0xd], al
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dl, byte [edx + ecx - 1]
mov cl, byte [ebp - 0xd]
xor dl, cl
call fcn.00404700
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
call fcn.004047e0
inc dword [ebp - 0xc]
dec dword [ebp - 0x1c]
jne 0x454a7f
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.0040456c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454b44
lea eax, [ebp - 0x20]
call fcn.00404518
lea eax, [ebp - 0x14]
call fcn.00404518
lea eax, [ebp - 4]
call fcn.00404518
ret
Function at 0x401e06
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, dword [ebp + 8]
cmp dword [ecx], ebx
je 0x401e48
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov edi, eax
call fcn.00402f40
lea eax, [ebx + 1]
cmp eax, 2
jb 0x401e41
mov dword [esi], ebx
call fcn.00405cb0
push eax
push dword [ebp + 4]
push esi
push ebx
call fcn.00405e40
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x403b60
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x124
mov eax, dword [0x5ce16c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x5d86ec]
mov ecx, dword [0x5db524]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x403bad
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004dd9ae
mov eax, 0x5d86e8
add esp, 0x124
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5d86ec
call fcn.004dd8ba
add esp, 4
mov eax, dword [0x5d86ec]
cmp eax, 0xffffffff
jne 0x403b93
lea eax, [ebp - 0x128]
push 0x118
push 0
push eax
call fcn.004e15d0
add esp, 0xc
lea edi, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0x11c
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x130], 0
cmp eax, 0xa
je 0x403c0d
xor ebx, ebx
cmp eax, 6
jne 0x403c43
push 0x5655e0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.GetProductInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x130]
push ecx
push 0
push 0
push dword [ebp - 0x124]
push dword [ebp - 0x128]
call eax
mov ebx, dword [ebp - 0x130]
push 0x5c
call fcn.004dd435
add esp, 4
mov esi, eax
push 0x5d86f0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ecx, esi
push ebx
push 0x5d86f0
push edi
call fcn.00403c90
mov dword [0x5d86e8], esi
push 0x5d86ec
call fcn.004dd870
add esp, 4
jmp 0x403b93

Function at 0x40affc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
call fcn.0040adb0
test al, al
je 0x40b020
push 0x32
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea edi, [esi + 0x20]
mov ecx, edi
push 0
call fcn.0040b06e
lea ecx, [esi + 0x30]
call fcn.00403300
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x40b044
push eax
call fcn.00401070
add esp, 4
mov ecx, edi
call fcn.0040b092
lea ecx, [esi + 0x18]
call fcn.00402f40
lea ecx, [esi + 0x14]
call fcn.00402f40
lea ecx, [esi + 0x10]
call fcn.00402f40
mov ecx, esi
pop esi
pop edi
pop ebp
jmp fcn.0040acc0
Function at 0x40b45a
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [0x5ce16c]
mov edi, ecx
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
lea ebx, [edi + 0x18]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [edx + ecx]
xor ecx, ecx
push ecx
push eax
push ecx
push 0x8000004
push ecx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, ebx
push eax
call fcn.00401e06
mov esi, dword [edi + 0x18]
xor ecx, ecx
inc ecx
lea eax, [esi + 1]
cmp eax, ecx
ja 0x40b4c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov ebx, 0x19
mov dword [ecx], eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004dd9ae
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
mov dword [ebp - 0x20], edi
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
lea ecx, [ebp - 0x14]
push edx
push edx
push 7
push ecx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x40b5ee
xor eax, eax
push eax
push eax
push eax
push 6
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, dword [ebp + 0x18]
test eax, eax
je 0x40b601
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
test ebx, ebx
je 0x40b54c
test ecx, ecx
je 0x40b54c
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x18]
lea edi, [edx + eax]
push ecx
push ebx
push edi
call fcn.004e0ad0
add esp, 0xc
mov eax, 0xffffff00
mov ecx, dword [edi + eax + 0x100]
test ecx, ecx
je 0x40b547
sub ecx, ebx
mov dword [edi + eax + 0x100], ecx
add eax, 4
jne 0x40b533
mov eax, dword [ebp - 0x14]
mov dword [0x5d8670], eax
sub esp, 0xc
mov edi, dword [ebp - 0x20]
mov dword [esp + 8], 4
mov dword [esp + 4], 0x5d8670
mov ecx, edi
call fcn.0040b3fc
test eax, eax
mov dword [0x5d8670], 0
jne 0x40b5df
mov eax, dword [ebp + 0x10]
mov dword [0x5d8780], eax
sub esp, 0xc
mov ecx, edi
mov dword [esp + 8], 4
mov dword [esp + 4], 0x5d8780
call fcn.0040b3fc
test eax, eax
mov dword [0x5d8780], 0
jne 0x40b5df
mov eax, dword [ebp + 0x14]
mov dword [0x5d8784], eax
sub esp, 0xc
mov ecx, edi
mov dword [esp + 8], 4
mov dword [esp + 4], 0x5d8784
call fcn.0040b3fc
test eax, eax
mov dword [0x5d8784], 0
je 0x40b613
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
jmp 0x40b4b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov ebx, 0x1a
jmp 0x40b4b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov ebx, 0x1b
jmp 0x40b4b3
mov esi, dword [ebp + 8]
lea eax, [edi + 0x20]
mov dword [ebp - 0x1c], eax
push 0x1c
call fcn.004dd435
add esp, 4
mov ebx, eax
mov ecx, eax
push esi
push dword [edi + 0x24]
push dword [edi + 8]
push dword [edi]
call fcn.0042311c
mov ecx, dword [ebp - 0x1c]
push ebx
call fcn.0040b06e
mov ecx, dword [edi + 0x20]
push 0x400
push dword [ebp + 0x10]
push dword [ebp - 0x18]
call fcn.004231fc
mov ebx, 4
test al, al
je 0x40b4b3
mov ecx, edi
call fcn.0040af40
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
jmp 0x40b4b3
Function at 0x40df10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x10
mov edx, dword [0x5ce16c]
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x18]
lea edi, [ebp - 0x10]
xor edx, ebp
mov dword [ebp - 0xc], edx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x18], 0
push edx
push esi
push edi
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
jne 0x40df78
mov eax, dword [ebp - 0x10]
mov esi, 0x3f4
add eax, 0xfffffffd
cmp eax, 1
ja 0x40df78
cmp dword [ebp - 0x14], 4
jne 0x40df78
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
xor esi, esi
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004dd9ae
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebp
ret 8
Function at 0x41009e
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x60
mov eax, dword [0x5ce16c]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0x2c], 0
je 0x4101ad
mov esi, ecx
lea edx, [ecx + 0x24]
lea eax, [ebp - 0x58]
lea edi, [ebp - 0x5c]
mov ecx, edi
push eax
push 2
call fcn.004101cd
add esp, 8
mov edx, dword [edi]
test edx, edx
je 0x4101b4
cmp dword [edx], 0
mov dword [ebp - 0x68], esi
je 0x4101a0
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x60], edx
lea eax, [eax + 0x18]
mov dword [ebp - 0x6c], eax
xor eax, eax
test dword [edx + eax*8 + 8], 0xc0000020
mov dword [ebp - 0x64], eax
jne 0x410194
cmp dword [ebp + 8], 0
je 0x410154
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp dword [eax + 4], ecx
je 0x410154
xor ebx, ebx
xor edi, edi
mov eax, dword [ebp - 0x64]
add ecx, ebx
mov esi, dword [edx + eax*8 + 4]
call fcn.00410ab4
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov edx, dword [ebp - 0x60]
test eax, eax
jne 0x410194
mov eax, dword [ebp + 8]
inc edi
add ebx, 0x44
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 2
imul eax, eax, 0xf0f0f0f1
cmp edi, eax
jb 0x41011c
mov eax, dword [ebp - 0x64]
lea edi, [ebp - 0x54]
mov ecx, edi
push dword [edx + eax*8 + 4]
call fcn.004107f8
mov esi, dword [ebp - 0x68]
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
cmp edx, eax
je 0x410187
mov ebx, 0x44
push ebx
push edi
push eax
call fcn.004e0ad0
add esp, 0xc
add dword [esi + 0x1c], ebx
jmp 0x410191
mov ecx, dword [ebp - 0x6c]
push edi
push edx
call fcn.00404e70
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x64]
inc eax
cmp eax, dword [edx]
jb 0x4100f7
push edx
call fcn.004ddd6f
add esp, 4
xor esi, esi
jmp 0x4101b7
mov esi, 0x3f0
jmp 0x4101b7
mov esi, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004dd9ae
mov eax, esi
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x42033e
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov ecx, dword [0x5ce16c]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x2c]
mov esi, 5
xor ecx, ebp
cmp eax, 3
mov dword [ebp - 0x10], ecx
mov dword [edx], 0xffffffff
jne 0x4203d6
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x28]
mov edx, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
cmp dword [edi + 0x14], 7
jbe 0x420382
mov edi, dword [edi]
mov ebx, dword [ebx]
push 0
push esi
push edx
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp eax, 0xffffffff
je 0x4203c3
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edi, edi
lea ecx, [ebp - 0x14]
push 3
push edi
push edi
push ecx
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
cmp eax, 1
lea eax, [ebp - 0x14]
sbb edi, edi
or edi, dword [eax]
jmp 0x4203c6
xor edi, edi
dec edi
mov eax, dword [ebp + 0x2c]
mov dword [eax], edi
xor eax, eax
cmp edi, 0xffffffff
sete al
lea esi, [eax + eax*4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004dd9ae
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x420700
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov ecx, dword [ebp + 8]
mov eax, dword [0x5ce16c]
mov edi, 5
lea ecx, [ecx - 5]
xor eax, ebp
cmp ecx, 1
mov dword [ebp - 0x10], eax
ja 0x420854
mov eax, dword [ebp + 0x14]
xor edi, edi
mov ecx, 7
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x54], 0x44
cmp dword [eax + 0x14], ecx
jbe 0x420772
mov eax, dword [eax]
mov ebx, dword [ebp + 0x10]
push eax
call fcn.004e9536
add esp, 4
mov edx, 7
mov ecx, dword [esi + 0x10]
cmp dword [esi + 0x14], edx
jbe 0x42078d
mov esi, dword [esi]
test ecx, ecx
mov edx, dword [ebp + 0x1c]
cmove esi, ecx
mov ecx, 7
cmp dword [ebx + 0x14], ecx
mov ecx, dword [ebp + 0xc]
jbe 0x4207a4
mov ebx, dword [ebx]
mov ecx, dword [ecx]
mov dword [ebp - 0x5c], ecx
lea ecx, [ebp - 0x54]
push edx
push ecx
push esi
push edi
push edi
push edi
push edi
push edi
mov dword [ebp - 0x58], eax
push eax
push ebx
mov esi, edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, 5
test eax, eax
je 0x420844
mov eax, dword [ebp + 8]
mov ebx, 0x101c01
cmp eax, 6
mov eax, 0x1fffff
cmove ebx, eax
mov eax, dword [esi]
mov dword [ebp - 0x60], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 1
push 0
push ebx
push esi
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ebx, dword [esi + 4]
test eax, eax
je 0x42083d
mov eax, esi
mov esi, 0x100c43
mov ecx, 0x1fffff
add eax, 4
cmp dword [ebp + 8], 6
mov edi, eax
cmove esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 1
push 0
push esi
push edi
push dword [ebp - 0x5c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea edi, [ecx + ecx*4]
jmp 0x420844
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x420854
push eax
call fcn.00401070
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004dd9ae
mov eax, edi
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x420868
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x20]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
xor ecx, ecx
mov edi, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x10], ebx
mov dword [ebx], ecx
xor ebx, ebx
push edi
mov edi, eax
push esi
push edx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x4208d9
mov edi, dword [edi]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 3
push ebx
push ebx
push dword [ebp - 0x10]
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea eax, [ecx + ecx*4]
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x42257e
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x68
mov edx, dword [0x5ce16c]
mov al, byte [ebp + 8]
mov ebx, ecx
xor edx, ebp
test al, al
mov dword [ebp - 0x10], edx
je 0x4225ce
xor esi, esi
mov edi, 0x566fb6
mov ecx, ebx
inc esi
push 0
push 0x43ca40
push esi
push str.NtMapViewOfSection
push edi
call fcn.00422072
mov ecx, ebx
push esi
push 0x43cc10
push esi
push str.NtUnmapViewOfSection
push edi
call fcn.00422072
jmp 0x4225d8
cmp dword [ebx + 8], 0
je 0x4226cf
mov eax, dword [ebx]
mov edi, dword [eax]
push 1
push 0x2000
push 0x10000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, dword [ebx + 8]
mov dword [ebp - 0x6c], eax
shl esi, 6
lea eax, [esi + 0x50]
mov dword [ebp - 0x70], eax
push eax
call fcn.00421f50
add esp, 4
mov dword [ebp - 0x74], ebx
mov ebx, eax
and eax, 0xfffff000
add esi, 0x104f
add eax, dword [ebp - 0x6c]
and esi, 0xfffff000
push 0x40
push 0x1000
push esi
push eax
mov dword [ebp - 0x6c], edi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test eax, eax
je 0x4226e7
mov edi, eax
and ebx, 0xfff
lea esi, [ebp - 0x60]
xor eax, eax
add edi, ebx
mov ebx, dword [ebp - 0x70]
mov dword [esi], ebx
mov dword [esi + 0xc], eax
mov dword [esi + 4], 0x10
push 0xa4
push eax
push 0x5d8870
call fcn.004e15d0
add esp, 0xc
mov ecx, dword [ebp - 0x74]
push esi
push ebx
push edi
call fcn.004228bc
mov ebx, eax
test eax, eax
jne 0x4226d1
lea eax, [ebp - 0x64]
push eax
push 0x10
push esi
push edi
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
mov ebx, 0x2a
je 0x4226d1
cmp dword [ebp - 0x64], 0x10
jne 0x4226d1
lea eax, [ebp - 0x68]
push eax
push 0x20
push dword [ebp - 0x70]
push edi
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
push 0xa4
push 0x5d8870
push str.g_originals
call fcn.0040b3fc
mov ebx, eax
jmp 0x4226d1
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004dd9ae
mov eax, ebx
add esp, 0x68
pop esi
pop edi
pop ebx
pop ebp
ret 4
int3