joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43cb80
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.00437330
test eax, eax
je 0x43cc6f
mov ecx, edi
call fcn.00437330
mov ecx, eax
call fcn.00434880
test eax, eax
jne 0x43cc6f
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x43cc6f
mov eax, dword [0x4a7dd8]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x43cbe2
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.00437330
mov ecx, eax
call fcn.00434ab0
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x43cc6f
cmp ebx, eax
jne 0x43cc6f
cmp dword [esp + 0x10], eax
jne 0x43cc55
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x43f800
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x476458
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x43f839
inc eax
mov dword [esi + 0x10], eax
jmp 0x43f94c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43f84d
mov eax, 0xffffffc7
jmp 0x43f94e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43f85e
cmp dword [esi + 8], eax
jne 0x43f84d
cmp dword [esi + 8], eax
jne 0x43f877
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x43f877
mov eax, 0xffffffc7
jmp 0x43f94e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43f88b
push eax
mov ecx, ebx
call fcn.0043f030
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.0040c020
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43f8bc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.0040c040
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0043e7a0
test eax, eax
mov dword [esp + 0x38], eax
je 0x43f8ef
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x47d320
call fcn.0040c220
mov eax, dword [esp + 0x38]
jmp 0x43f94e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0043f660
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x43f933
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0043f680
mov esi, eax
test esi, esi
jne 0x43f963
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0043f660
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x43f905
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x47d320
call fcn.0040c220
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x47d320
call fcn.0040c220
mov eax, esi
jmp 0x43f94e

Function at 0x442a70
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x442ad0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x442ad0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x442ad0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x442ad0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x442b10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x448a50
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x476a88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0046f21d
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004483f0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0046f14b
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0046ba0c
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0046ba0c
push 1
push 0
push 0
mov ecx, esi
call fcn.0046b9b4
push 1
push 0
push 1
mov ecx, esi
call fcn.0046b9b4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046f28f
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x448bd0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x476aa8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0046f21d
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004483f0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0046f14b
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x448c94
cmp dword [esp + 0x40], 1
jne 0x448c92
cmp ecx, eax
jge 0x448c94
mov eax, ecx
cmp eax, 0xc8
jge 0x448ca0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00448a50
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046f28f
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x449420
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x476b13
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00469e2c
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046f4c5
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00470a24
test eax, eax
je 0x44953c
mov ecx, dword [esp + 0x3c]
call fcn.0046f4f2
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x449500
push edi
mov ecx, esi
call fcn.0046cb57
mov ecx, esi
call fcn.004496a0
cmp dword [esp + 0x38], 1
jne 0x449535
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0046cc92
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x44bf70
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44bfa3
push esi
call fcn.0044f060
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44bf9c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44c029
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44c012
mov eax, dword [esi + 8]
test eax, eax
je 0x44bfc7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44c00e
cmp eax, 2
je 0x44c012
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44bfba
cmp eax, 3
je 0x44bfed
cmp eax, 1
jne 0x44bfba
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44bfba
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44bfba
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044c050
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44c038
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044c050
add esp, 4
pop esi
ret

Function at 0x46ac22
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46ac5a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00468caf
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00468c87
jmp 0x46ac66
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46c314
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46c356
call fcn.00471e0f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46c356
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46c34d
xor eax, eax
jmp 0x46c35e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046c364
pop edi
pop esi
pop ebx
ret 4

Function at 0x47233f
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 0x47236d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47238b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004722a5
jmp 0x47238b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47238b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004722a5
test edi, edi
mov eax, edi
jne 0x472375
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10161ea6
Capabilities:
Parse pe header

Disassembly:
call fcn.100fdd24
add byte [eax], al
inc edi
je 0x10161ef4
push eax
dec ecx
outsb dx, byte [esi]
outsw dx, word [esi]
add byte [eax], al
add byte [ecx + 0x6d], cl
popal
dec esp
imul esi, dword [ebx + 0x74], 0x7365445f
je 0x10161f3a
outsd dx, dword [esi]
jns 0x10161ecb
push 0xf23ad47d
call fcn.101638b9
sbb dl, ch
dec edi
pop ebp
cmp ebx, 1
pushal
lea esp, [esp + 0x40]
je 0x100eec66
call fcn.100efb00
jbe 0x10161ef6
add byte [eax], al
push edi
imul ebp, dword [esi + 0x64], 0x7246776f
outsd dx, dword [esi]
outsb dx, byte [esi]
je 0x10161f08
add byte [eax], al
inc ebx
jecxz 0x10161f18
jecxz 0x10161f05
mov bl, 0xc8
sal dword [edx - 0x32], cl

Function at 0x101623e5
Capabilities:
Parse pe header

Disassembly:
or bh, ah
test eax, eax
call fcn.100f657e
add byte [eax], al
inc edi
je 0x10162435
insb byte es:[edi], dx
imul esi, dword [eax + 0x42], 0x6400786f
movsb byte es:[edi], byte [esi]
xchg dword [eax + 0x3e], edi
cmp dword [ecx + 0x548eade1], ebp
push 0x6a638144
jae 0x1016239e
dec ecx
pop esp
xor dword [ecx + 0x3aac52ca], ebx
mov byte cs:[eax + 0x39], ch
add al, 0xfa
fsubr qword [ebx - 0x5d]
adc ah, byte [edi + 0x25f444af]
mov dl, 0xb2
jb 0x1016249c
jecxz 0x101624a1
cmp al, 0xb2
xchg esp, eax
cmp byte [eax - 0x3817f6cb], ch
mov edi, 0x76aeaeb6
push eax
scasb al, byte es:[edi]
jbe 0x10162488
sub eax, 0xc7669c15
inc esp
and al, 0xc
aaa
xlatb
lea esp, [esp + 0x48]
call fcn.10162305
pushal
push 0xd9e99671
adc al, al
mov dword [esp], ebx
pushfd
call fcn.1016204c
push esp
insb byte es:[edi], dx
jae 0x101624cd
insb byte es:[edi], dx
insb byte es:[edi], dx
outsd dx, dword [esi]
arpl word [eax], ax
add byte [eax], al
inc edi
je 0x101624da
jne 0x1016250b
jb 0x10162500
outsb dx, byte [esi]
je 0x101624f2
push 0x64616572
add byte [eax], al
popal
add byte fs:[eax], al
add byte [ebx + 0x65], dl
je 0x10162501
imul ebp, dword [esi + 0x64], 0x6f4c776f
outsb dx, byte [esi]
inc ecx
add byte [eax - 0x751a318], bl
invalid
or byte [edi], cl
test ecx, esp
invalid
mov ecx, 0x7d68fff9
aam 0x37
xor eax, 0x2702e8
add byte [ecx], al
stc
jmp [eax + 0x7d]
add byte [eax], al
add ecx, ebp
jmp 0x1010296e
invalid
invalid
Function at 0x404d38
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
xor ebx, ebx
mov dword [0x40c68c], ebx
xor ebx, ebx
mov dword [0x40c688], ebx
mov dword [0x40c678], eax
mov dword [0x40c67c], edx
cmp dword [0x40c678], 0
je 0x404e21
mov eax, dword [0x40c678]
mov dword [ecx], eax
mov edi, dword [0x40c678]
mov ax, word [edi]
not ax
cmp ax, 0x5a4d
je 0x404e21
mov esi, dword [edi + 0x3c]
add esi, edi
push 0xf8
push esi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x404e21
cmp dword [esi], 0x4550
jne 0x404e21
mov eax, esi
call fcn.00404d20
test al, al
jne 0x404e21
mov ebx, esi
add ebx, 0xf8
mov ax, word [esi + 6]
cmp ax, 0x64
jae 0x404e21
movzx eax, ax
dec eax
test eax, eax
jl 0x404e21
inc eax
mov esi, eax
mov edx, 0x404e2c
mov eax, ebx
mov ecx, 8
call fcn.00404600
test eax, eax
jne 0x404e1b
mov eax, dword [ebx + 0x14]
add eax, edi
mov dword [0x40c680], eax
mov eax, dword [0x40c680]
call fcn.00404d20
test al, al
jne 0x404e21
mov eax, dword [0x40c680]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0xc]
mov dword [0x40c684], eax
mov eax, dword [ebp + 8]
mov edx, dword [0x40c684]
mov dword [eax], edx
jmp 0x404e21
add ebx, 0x28
dec esi
jne 0x404dd1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x40523c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 8], 1
call fcn.004051b0
mov ebx, eax
mov dword [ebp - 0xc], pe_nt_image_headers32
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 8]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40529b
mov eax, esi
lea edx, [ebp - 0x10c]
mov ecx, pe_nt_image_headers32
call fcn.00403344
push ebx
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4052a8
mov eax, esi
call fcn.0040311c
push ebx
call sub.advapi32.dll_RegCloseKey_1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x405b50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x18], edx
mov esi, eax
xor eax, eax
push ebp
push 0x405d20
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x4060a8
sub ebx, 0x406080
lea eax, [ebp - 0x18]
mov edx, esi
call fcn.00403314
mov eax, dword [ebp - 0x18]
call fcn.00405738
mov esi, eax
push esi
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov dword [0x40c6c4], eax
cmp dword [0x40c6c4], 0
je 0x405d0a
push 0x40
push 0x1000
push ebx
push 0
mov eax, dword [0x40c6c4]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov dword [0x40c6d0], eax
push 4
push 0x1000
mov eax, dword [0x40c7a4]
call fcn.004047b0
inc eax
push eax
push 0
mov eax, dword [0x40c6c4]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov dword [0x40c6d4], eax
cmp dword [0x40c6d4], 0
je 0x405d0a
cmp dword [0x40c6d0], 0
je 0x405d0a
push 0x405d30
call sub.kernel32.dll_GetModuleHandleA_1
mov edi, eax
push 0x405d40
call sub.kernel32.dll_GetModuleHandleA_1
mov esi, eax
push 0x405d4c
push edi
call sub.kernel32.dll_GetProcAddress
call fcn.0040590c
mov dword [ebp - 0xc], eax
push 0x405d5c
push esi
call sub.kernel32.dll_GetProcAddress
call fcn.0040590c
mov dword [ebp - 0x10], eax
mov eax, dword [0x40c6cc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [0x40c7a4]
call fcn.004047b0
inc eax
push eax
mov eax, dword [0x40c7a4]
push eax
mov eax, dword [0x40c6d4]
push eax
mov eax, dword [0x40c6c4]
push eax
call sub.kernel32.dll_WriteProcessMemory
push ebx
push 0
call sub.kernel32.dll_GlobalAlloc
mov esi, eax
test esi, esi
je 0x405d0a
mov edx, esi
mov eax, 0x406080
mov ecx, ebx
call fcn.00402598
mov edx, ebx
sub edx, 5
test edx, edx
jl 0x405ced
inc edx
mov dword [ebp - 4], 0
mov eax, esi
add eax, dword [ebp - 4]
mov ecx, dword [eax]
cmp ecx, 0x11111111
jne 0x405cb9
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
jmp 0x405ce7
cmp ecx, 0x22222222
jne 0x405ccb
mov ecx, dword [0x40c6d4]
mov dword [eax], ecx
jmp 0x405ce7
cmp ecx, 0x33333333
jne 0x405cda
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
jmp 0x405ce7
cmp ecx, 0x44444444
jne 0x405ce7
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
inc dword [ebp - 4]
dec edx
jne 0x405ca3
lea eax, [ebp - 8]
push eax
push ebx
push esi
mov eax, dword [0x40c6d0]
push eax
mov eax, dword [0x40c6c4]
push eax
call sub.kernel32.dll_WriteProcessMemory
push esi
call sub.kernel32.dll_GlobalFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d27
lea eax, [ebp - 0x18]
call fcn.0040311c
ret
Function at 0x405d6c
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffff34
mov esi, eax
xor ebx, ebx
push 0
push esi
call fcn.00405570
mov dword [0x40c6c0], eax
cmp dword [0x40c6c0], 0
je 0x405e0d
cmp dword [0x40c6d0], 0
je 0x405e0d
cmp dword [0x40c6d4], 0
je 0x405e0d
mov eax, dword [0x40c6c0]
push eax
call sub.kernel32.dll_SuspendThread
mov dword [esp], 0x10007
push esp
mov eax, dword [0x40c6c0]
push eax
call sub.kernel32.dll_GetThreadContext
test eax, eax
je 0x405df4
push esi
lea esi, [esp + 4]
mov edi, 0x40c6d8
mov ecx, 0x33
rep movsd dword es:[edi], dword [esi]
pop esi
mov eax, dword [0x40c6d0]
mov dword [esp + 0xb8], eax
mov dword [esp], 0x10007
push esp
mov eax, dword [0x40c6c0]
push eax
call sub.kernel32.dll_SetThreadContext
mov eax, dword [0x40c6c0]
push eax
call sub.kernel32.dll_ResumeThread
push 0
push 0
push 0
push esi
call sub.user32.dll_PostThreadMessageA
mov bl, 1
mov eax, ebx
add esp, 0xcc
pop edi
pop esi
pop ebx
ret
Function at 0x4060e4
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x406327
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov ecx, 0x406334
mov edx, 0x406344
mov eax, 0x80000002
call fcn.0040523c
cmp dword [ebp - 8], 0
je 0x4062fc
mov edx, dword [ebp - 8]
mov eax, 0x406394
call fcn.00403644
test eax, eax
je 0x406176
lea edx, [ebp - 8]
mov ecx, 0x7fffffff
xchg edx, eax
call fcn.004035fc
lea edx, [ebp - 0x14c]
mov eax, dword [ebp - 8]
call fcn.00404674
mov edx, dword [ebp - 0x14c]
lea eax, [ebp - 8]
call fcn.004031b4
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x150]
mov ecx, 0x4063a0
mov edx, dword [ebp - 8]
call fcn.004033a8
mov eax, dword [ebp - 0x150]
call fcn.0040355c
push eax
call sub.kernel32.dll_FindFirstFileA
mov esi, eax
lea eax, [ebp - 4]
call fcn.0040311c
cmp esi, 0xffffffff
setne al
jmp 0x4062ee
mov bl, byte [ebp - 0x11c]
cmp bl, 0x30
jb 0x4061e2
cmp bl, 0x39
jbe 0x406210
lea eax, [ebp - 0x154]
lea edx, [ebp - 0x11c]
mov ecx, 0x104
call fcn.00403344
mov eax, dword [ebp - 0x154]
mov edx, 0x4063b0
call fcn.004046f0
test eax, eax
jne 0x4062db
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x15c]
lea edx, [ebp - 0x11c]
mov ecx, 0x104
call fcn.00403344
mov ecx, dword [ebp - 0x15c]
lea eax, [ebp - 0x158]
mov edx, dword [ebp - 8]
call fcn.004033a8
mov eax, dword [ebp - 0x158]
call fcn.0040355c
push eax
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x4062d5
lea eax, [ebp - 0x160]
lea edx, [ebp - 0x11c]
mov ecx, 0x104
call fcn.00403344
mov eax, dword [ebp - 0x160]
lea edx, [ebp - 4]
call fcn.00404774
mov eax, dword [ebp - 4]
call fcn.0040662c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x11c]
mov ecx, 0x104
call fcn.00403344
mov eax, dword [ebp - 0x164]
mov edx, 0x4063b0
call fcn.004046f0
test eax, eax
jne 0x4062db
lea edx, [ebp - 0x168]
mov eax, 0x4063cc
call fcn.00404774
mov eax, dword [ebp - 0x168]
call fcn.0040662c
jmp 0x4062db
push eax
call sub.kernel32.dll_CloseHandle
lea eax, [ebp - 0x148]
push eax
push esi
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4061d2
push esi
call sub.kernel32.dll_FindClose
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40632e
lea eax, [ebp - 0x168]
mov edx, 8
call fcn.00403140
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403140
ret