joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4eb140
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x4eb148
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ed4
xor eax, eax
push ebp
push 0x4eb2a4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.00404a34
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0040a990
cmp dword [ebp - 0x14], 0
jne 0x4eb19f
lea edx, [ebp - 0x18]
mov eax, dword [0x70ac0c]
mov eax, dword [eax]
call fcn.0046f568
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x10]
call fcn.0040a990
mov eax, esi
mov edx, 0x4eb2bc
call fcn.00404a88
lea eax, [ebp - 0xc]
call fcn.00404a34
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.004098e8
mov edx, dword [ebp - 0x1c]
mov eax, 0x4eb2c8
call fcn.00405028
mov ebx, eax
test ebx, ebx
jle 0x4eb210
lea eax, [ebp - 8]
push eax
lea ecx, [ebx + 4]
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404f44
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
call fcn.00404cec
mov ecx, eax
lea eax, [ebx + 4]
sub ecx, eax
lea edx, [ebx + 5]
mov eax, dword [ebp - 4]
call fcn.00404f44
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0xc]
call fcn.00409b98
jmp 0x4eb21b
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404acc
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d38
mov eax, dword [ebp - 0x24]
call fcn.0040a6f0
test al, al
je 0x4eb270
cmp dword [ebp - 0xc], 0
je 0x4eb25e
push dword [ebp - 8]
push 0x4eb2d8
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.00409b98
push dword [ebp - 0x28]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404dac
push 0
mov eax, dword [ebp - 8]
call fcn.00404ee4
push eax
call sub.kernel32.dll_WinExec
jmp 0x4eb289
push 0x4eb2e4
push dword [ebp - 8]
push 0x4eb2f8
mov eax, esi
mov edx, 3
call fcn.00404dac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4eb2ab
lea eax, [ebp - 0x28]
mov edx, 0xa
call fcn.00404a58
ret
Function at 0x4ed9bc
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4edc30
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404a34
lea eax, [ebx + 4]
call fcn.00404a34
lea eax, [ebx + 8]
call fcn.00404a34
lea eax, [ebx + 0xc]
call fcn.00404a34
lea eax, [ebx + 0x10]
call fcn.00404a34
lea eax, [ebx + 0x14]
call fcn.00404a34
lea eax, [ebx + 0x18]
call fcn.00404a34
lea eax, [ebx + 0x1c]
call fcn.00404a34
lea eax, [ebx + 0x20]
call fcn.00404a34
lea eax, [ebx + 0x24]
call fcn.00404a34
lea eax, [ebx + 0x28]
mov edx, 0x4edc44
call fcn.00404a88
lea eax, [ebx + 0x2c]
mov edx, 0x4edc50
call fcn.00404a88
lea eax, [ebx + 0x30]
mov edx, 0x4edc5c
call fcn.00404a88
lea eax, [ebx + 0x34]
mov edx, 0x4edc68
call fcn.00404a88
lea eax, [ebx + 0x38]
call fcn.00404a34
lea eax, [ebx + 0x3c]
mov edx, 0x4edc5c
call fcn.00404a88
lea eax, [ebx + 0x40]
mov edx, 0x4edc50
call fcn.00404a88
lea eax, [ebx + 0x44]
call fcn.00404a34
lea eax, [ebx + 0x4c]
mov edx, 0x4edc5c
call fcn.00404a88
lea eax, [ebx + 0x50]
mov edx, 0x4edc50
call fcn.00404a88
lea eax, [ebx + 0x54]
mov edx, 0x4edc50
call fcn.00404a88
lea eax, [ebx + 0x58]
mov edx, 0x4edc74
call fcn.00404a88
lea eax, [ebx + 0x5c]
mov edx, 0x4edc50
call fcn.00404a88
lea eax, [ebx + 0x60]
mov edx, 0x4edc84
call fcn.00404a88
lea eax, [ebx + 0x64]
mov edx, 0x4edc94
call fcn.00404a88
lea eax, [ebx + 0x68]
mov edx, 0x4edc50
call fcn.00404a88
call fcn.0040c4d4
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 4]
mov eax, 0x4edca4
call fcn.0040d294
mov edx, dword [ebp - 4]
lea eax, [ebx + 0x6c]
call fcn.00404a88
call fcn.0040c4d4
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 8]
mov eax, 0x4edca4
call fcn.0040d294
mov edx, dword [ebp - 8]
lea eax, [ebx + 0x70]
call fcn.00404a88
call fcn.0040c4d4
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0xc]
mov eax, 0x4edca4
call fcn.0040d294
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0x48]
call fcn.00404a88
xor eax, eax
mov dword [ebx + 0xc0], eax
mov dword [ebx + 0xc4], 0xc8000000
mov word [ebx + 0xc8], 0x4005
xor eax, eax
mov dword [ebx + 0xca], eax
mov dword [ebx + 0xce], eax
mov word [ebx + 0xd2], ax
xor eax, eax
mov dword [ebx + 0xd4], eax
mov dword [ebx + 0xd8], eax
mov word [ebx + 0xdc], ax
xor eax, eax
mov dword [ebx + 0xde], eax
mov dword [ebx + 0xe2], eax
mov word [ebx + 0xe6], ax
xor eax, eax
mov dword [ebx + 0xf2], eax
mov dword [ebx + 0xf6], eax
mov word [ebx + 0xfa], ax
xor eax, eax
mov dword [ebx + 0xfc], eax
mov dword [ebx + 0x100], eax
mov word [ebx + 0x104], ax
mov dword [ebx + 0x110], 1
mov dword [ebx + 0x114], 1
mov dword [ebx + 0x118], 1
mov dword [ebx + 0x11c], 1
mov dword [ebx + 0x120], 1
lea eax, [ebx + 0x74]
call fcn.00404a34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4edc37
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404a58
ret
Function at 0x4f51ac
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4f540c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4f520f
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004f4c74
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040ed54
cmp al, 1
jne 0x4f520f
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004f4f8c
test al, al
je 0x4f539b
cmp dword [ebp - 8], 0
jge 0x4f522d
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.004f4c74
mov eax, dword [ebp - 0x210]
call fcn.00404cec
cmp ebx, eax
jge 0x4f5277
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004f4c74
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x70af9c]
and eax, 0xff
bt dword [edx], eax
jae 0x4f5277
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4f528b
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004f5188
cmp ebx, dword [ebp - 8]
je 0x4f538d
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4f52b7
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403d40
and eax, 0x7f
movzx eax, word [eax*2 + 0x705f20]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4f537a
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403d40
and eax, 0x7f
movzx eax, word [eax*2 + 0x705f20]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00454e9c
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403d40
and eax, 0x7f
movzx eax, word [eax*2 + 0x705f20]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00454e9c
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f5381
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4f53ee
cmp dword [ebp - 8], 0
jge 0x4f53a6
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004f4c74
mov eax, dword [ebp - 0x218]
call fcn.00404cec
cmp eax, dword [ebp - 8]
jg 0x4f53e0
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004f4c74
mov eax, dword [ebp - 0x21c]
call fcn.00404cec
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004f5188
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f5413
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404a58
ret
Function at 0x50f570
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp edx, 0
je 0x50f5ce
cmp ecx, 0
je 0x50f5ce
push esi
push edi
push ebx
mov ebx, ecx
mov esi, eax
mov ebp, dword [ebp + 8]
and ebp, 1
neg ebp
mov eax, 0xffffffff
movd mm3, eax
mov edi, dword [esi]
mov ecx, ebx
mov eax, dword [edi]
xor eax, ebp
movd mm0, eax
movq mm2, mm3
bswap eax
movd mm1, eax
punpcklbw mm1, mm1
punpcklbw mm1, mm1
paddusb mm0, mm1
psubusb mm2, mm0
movd eax, mm2
bswap eax
shr eax, 8
mov dword [edi], eax
add edi, 4
dec ecx
jne 0x50f598
add esi, 4
dec edx
jne 0x50f594
emms
pop ebx
pop edi
pop esi
pop ebp
ret 4

Function at 0x511994
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 0x14]
cmp eax, 0xca
jne 0x5119c4
mov eax, ebx
call fcn.005124b8
mov edx, dword [ebx + 0x40]
test edx, edx
je 0x5119bd
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
mov edx, dword [ebx + 0x14]
cmp edx, 0xcb
jne 0x511a3c
mov ecx, dword [ebx + 0x1b4]
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x511a2e
mov edx, dword [ebx + 8]
test edx, edx
je 0x5119ea
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x5119fc
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x511a2e
mov edx, dword [ebx + 8]
test edx, edx
je 0x5119dc
cmp eax, 3
je 0x511a10
dec eax
jne 0x5119dc
mov ecx, dword [ebx + 8]
inc dword [ecx + 4]
mov edx, dword [ecx + 4]
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 8]
cmp edx, ecx
jl 0x5119dc
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x5119dc
mov eax, dword [ebx + 0x90]
mov dword [ebx + 0x98], eax
jmp 0x511a5c
mov ecx, dword [ebx + 0x14]
cmp ecx, 0xcc
je 0x511a5c
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x15
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00511a68
pop ebx
ret

Function at 0x52c354
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
test dl, dl
je 0x52c36e
add esp, 0xfffffff0
call fcn.00403ea8
mov esi, ecx
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x52c40b
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, edi
call fcn.00403b14
mov dword [edi + 0x20], esi
mov dl, 1
mov eax, dword [0x42635c]
call fcn.00427af4
mov esi, eax
mov dword [edi + 0x10], esi
mov eax, edi
call fcn.0052c794
mov edx, eax
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [edi + 0x10]
mov dword [eax + 0xc], edi
mov dword [eax + 8], 0x52c638
mov dl, 1
mov eax, dword [0x4192cc]
call fcn.00403b14
mov dword [edi + 4], eax
lea eax, [ebp - 0x10]
call fcn.0041653c
lea edx, [ebp - 0x10]
lea eax, [edi + 0x30]
call fcn.00405b7c
mov byte [edi + 0x28], 1
mov dl, byte [0x52c430]
mov ax, 0x2e
call fcn.0045dfb4
mov word [edi + 0x26], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52c412
lea eax, [ebp - 0x10]
call fcn.00405ce0
ret
Function at 0x52d48c
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
test dl, dl
je 0x52d4a4
push 5
mov eax, ebx
call fcn.00454e9c
push eax
call sub.user32.dll_ShowWindow
pop ebx
ret
push 0
mov eax, ebx
call fcn.00454e9c
push eax
call sub.user32.dll_ShowWindow
pop ebx
ret

Function at 0x53ca20
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x2ec], 0
jne 0x53ca6c
mov ecx, ebx
mov dl, 1
mov eax, dword [0x529004]
call fcn.0052d6cc
mov esi, eax
mov dword [ebx + 0x2ec], esi
xor edx, edx
mov eax, esi
call fcn.0044e51c
mov edx, ebx
mov eax, dword [ebx + 0x2ec]
mov ecx, dword [eax]
call dword [ecx + 0x68]
push 0
mov eax, dword [ebx + 0x2ec]
call fcn.00454e9c
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx + 0x2ec]
pop esi
pop ebx
ret

Function at 0x53e7b4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x308], 0
jne 0x53e854
mov esi, dword [ebx + 0x338]
test esi, esi
je 0x53e7e0
mov ecx, ebx
mov dl, 1
mov eax, esi
call dword [eax + 0x2c]
mov dword [ebx + 0x308], eax
jmp 0x53e7f4
mov ecx, ebx
mov dl, 1
mov eax, dword [0x529220]
call fcn.0052e22c
mov dword [ebx + 0x308], eax
xor edx, edx
mov eax, dword [ebx + 0x308]
call fcn.0044e51c
mov dl, 1
mov eax, dword [ebx + 0x308]
call fcn.00454fdc
mov edx, ebx
mov eax, dword [ebx + 0x308]
mov ecx, dword [eax]
call dword [ecx + 0x68]
push 0
mov eax, dword [ebx + 0x308]
call fcn.00454e9c
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx + 0x308]
mov dword [eax + 0xe4], ebx
mov dword [eax + 0xe0], 0x53e888
mov dword [eax + 0x2ac], ebx
mov dword [eax + 0x2a8], 0x53e860
mov eax, dword [ebx + 0x308]
pop esi
pop ebx
ret
Function at 0x55ad48
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x55ad80]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x55ad5e
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x55ad6d
or bl, 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x55ad7c
or bl, 2
mov eax, ebx
pop ebx
ret
Function at 0x573744
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, eax
mov edi, dword [ebp + 8]
add edi, 0xfffffff8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov word [eax], 0
test dl, dl
je 0x57377e
test bl, bl
je 0x57376f
mov eax, dword [edi]
mov esi, dword [eax + 0x21c]
jmp 0x573779
mov eax, dword [edi]
movzx esi, byte [eax + 0x3ad]
dec esi
xor bl, 1
jmp 0x57378f
mov eax, dword [edi]
mov edx, dword [eax + 0x3c8]
mov eax, dword [edi]
call fcn.00563d7c
mov esi, eax
mov eax, esi
test bl, bl
je 0x573798
inc esi
jmp 0x573799
dec esi
mov edx, dword [edi]
cmp esi, dword [edx + 0x21c]
jl 0x5737ae
mov edx, dword [edi]
movzx esi, byte [edx + 0x3ad]
jmp 0x5737ce
mov edx, dword [edi]
movzx edx, byte [edx + 0x3ad]
cmp esi, edx
jge 0x5737ce
mov edx, dword [edi]
mov esi, dword [edx + 0x21c]
mov edx, dword [edi]
movzx edx, byte [edx + 0x3ad]
sub esi, edx
cmp eax, esi
je 0x573812
jmp 0x5737ea
test bl, bl
je 0x5737db
inc esi
jmp 0x5737dc
dec esi
test esi, esi
jl 0x573812
mov eax, dword [edi]
cmp esi, dword [eax + 0x21c]
jge 0x573812
mov eax, dword [edi]
mov edx, esi
call fcn.00563d70
mov edx, eax
mov eax, dword [edi]
call fcn.00572828
test al, al
je 0x5737d4
mov eax, dword [edi]
mov edx, esi
call fcn.00563d70
mov edx, eax
mov eax, dword [edi]
call fcn.005728fc
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x5746bc
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff90
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x12c]
test al, al
je 0x5746e7
cmp byte [0x70c1b0], 0
jne 0x5746e7
mov byte [ebx + 0x3e4], 1
cmp byte [ebx + 0x3e4], 0
je 0x5746f6
cmp dword [esi + 4], 0
je 0x574723
test byte [ebx + 0x55], 1
jne 0x574715
mov eax, ebx
call fcn.00451c68
test eax, eax
jne 0x574715
mov edx, esi
mov eax, ebx
call fcn.00456a7c
jmp 0x574855
mov edx, esi
mov eax, ebx
call fcn.00452b30
jmp 0x574855
push 0
call sub.user32.dll_GetDC
mov edi, eax
mov eax, ebx
call fcn.0044e044
push eax
mov eax, ebx
call fcn.0044e000
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x57484e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x50]
push eax
mov eax, ebx
call fcn.00454e9c
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x48]
push eax
call sub.gdi32.dll_CreateRectRgn
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0044f800
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectClipRgn
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.005746bc
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x60]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x54]
push eax
lea edx, [ebp - 0x70]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x68]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x50]
push eax
mov eax, ebx
call fcn.00454e9c
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x574855
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x57dfb0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
test dl, dl
je 0x57dfca
add esp, 0xfffffff0
call fcn.00403ea8
mov esi, ecx
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x57e058
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, edi
call fcn.00403b14
mov dword [edi + 4], esi
lea eax, [edi + 0x40]
call fcn.00550110
mov byte [edi + 0x34], 1
mov dl, 1
mov eax, dword [0x4192cc]
call fcn.00403b14
mov dword [edi + 0x28], eax
mov dl, 1
mov eax, dword [0x4192cc]
call fcn.00403b14
mov dword [edi + 0x14], eax
mov dl, 1
mov eax, dword [0x525c28]
call fcn.00526e3c
mov esi, eax
mov dword [edi + 0x30], esi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x48], 0x57e958
lea eax, [ebp - 0x10]
call fcn.0041653c
lea edx, [ebp - 0x10]
lea eax, [edi + 0x18]
call fcn.00405b7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57e05f
lea eax, [ebp - 0x10]
call fcn.00405ce0
ret
Function at 0x5891bc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
test dl, dl
je 0x5891cd
add esp, 0xfffffff0
call fcn.00403ea8
mov ebx, edx
mov esi, eax
cmp byte [ebp + 8], 0
je 0x5891e5
cmp word [ecx], 0x25ff
jne 0x5891e5
add ecx, 2
mov eax, dword [ecx]
mov ecx, dword [eax]
mov dword [esi + 0x14], ecx
mov eax, dword [ebp + 0xc]
sub eax, ecx
sub eax, 5
mov byte [esi + 8], 0xe9
mov edx, eax
and dl, 0xff
mov byte [esi + 9], dl
mov edx, eax
shr edx, 8
and dl, 0xff
mov byte [esi + 0xa], dl
mov edx, eax
shr edx, 0x10
and dl, 0xff
mov byte [esi + 0xb], dl
shr eax, 0x18
and al, 0xff
mov byte [esi + 0xc], al
mov eax, dword [esi + 0x14]
mov al, byte [eax]
mov byte [esi + 0xd], al
mov eax, dword [esi + 0x14]
mov al, byte [eax + 1]
mov byte [esi + 0xe], al
mov eax, dword [esi + 0x14]
mov al, byte [eax + 2]
mov byte [esi + 0xf], al
mov eax, dword [esi + 0x14]
mov al, byte [eax + 3]
mov byte [esi + 0x10], al
mov eax, dword [esi + 0x14]
mov al, byte [eax + 4]
mov byte [esi + 0x11], al
lea eax, [esi + 4]
push eax
push 0x40
push 5
mov eax, dword [esi + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x589260
call fcn.0040fa90
mov eax, esi
call fcn.005892f0
mov eax, esi
test bl, bl
je 0x58927c
call fcn.00403f00
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x58bb70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
cmp dword [esi], 0
jne 0x58bb9e
mov ecx, 4
mov dl, 1
mov eax, dword [0x58a684]
call fcn.0058eaa8
call fcn.004043d4
mov eax, dword [esi]
push eax
mov edx, edi
mov ecx, dword [ebp - 4]
xor eax, eax
call fcn.0058bb2c
mov eax, dword [esi]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push edi
mov eax, dword [ebx + 0x38]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x58bbd6
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3e5
je 0x58bbd6
xor eax, eax
jmp 0x58bbd8
mov al, 1
test al, al
jne 0x58bbf8
call sub.kernel32.dll_GetLastError_1
push eax
mov ecx, 2
mov dl, 1
mov eax, dword [0x58a684]
call fcn.0058e9a8
call fcn.004043d4
mov cl, 1
mov dl, 6
mov eax, ebx
call fcn.0058e71c
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x58bcac
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x58bcda
mov ecx, 4
mov dl, 1
mov eax, dword [0x58a684]
call fcn.0058eaa8
call fcn.004043d4
mov eax, dword [ebx]
mov byte [eax + 0x14], 1
mov eax, dword [ebx]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push edi
mov eax, dword [esi + 0x38]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x58bd09
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3e5
je 0x58bd09
xor eax, eax
jmp 0x58bd0b
mov al, 1
test al, al
jne 0x58bd2b
call sub.kernel32.dll_GetLastError_1
push eax
mov ecx, 3
mov dl, 1
mov eax, dword [0x58a684]
call fcn.0058e9a8
call fcn.004043d4
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x58fe6c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ed4
xor eax, eax
push ebp
push 0x58fed8
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0058fd9c
mov eax, dword [ebp - 8]
call fcn.00404cec
test eax, eax
jle 0x58febd
mov edx, 1
mov ecx, dword [ebp - 8]
movzx ecx, byte [ecx + edx - 1]
xor ebx, ecx
inc edx
dec eax
jne 0x58feaf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58fedf
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404a58
ret

Function at 0x591414
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 8]
mov byte [ebp - 5], 0
push 0
mov eax, dword [ebx + 0x34]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
jne 0x591483
mov eax, dword [ebp - 4]
push eax
push edi
mov eax, dword [ebp + 0xc]
push eax
push esi
mov eax, dword [ebx + 0x30]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x591465
mov ecx, dword [edi]
mov edx, esi
mov eax, ebx
call fcn.00591490
test al, al
je 0x591483
jmp 0x59142b
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3e5
jne 0x591477
mov byte [ebp - 5], 1
jmp 0x591483
cmp eax, 6
je 0x591483
mov eax, ebx
call fcn.00591708
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8