joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444120
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x444153
push esi
call fcn.004524c0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44414c
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 0x4441d9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4441c2
mov eax, dword [esi + 8]
test eax, eax
je 0x444177
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 0x4441be
cmp eax, 2
je 0x4441c2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44416a
cmp eax, 3
je 0x44419d
cmp eax, 1
jne 0x44416a
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 0x44416a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44416a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00444200
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4441e8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00444200
add esp, 4
pop esi
ret

Function at 0x444a70
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x444a91
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x444a91
mov eax, dword [eax + 0x44]
test eax, eax
je 0x444a91
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x45f7e0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x45f883
test eax, eax
jbe 0x45f883
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x45f883
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x45f82e
xor esi, esi
jmp 0x45f834
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x45f85f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00468580
add esi, eax
push esi
mov ebx, esi
call fcn.00468580
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x45f840
pop ebp
test edi, edi
pop edi
jne 0x45f883
test ebx, ebx
je 0x45f883
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0047d2b0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x45f9a5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x45fabd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45fabd
mov eax, dword [esi + 0x3c]
push eax
call fcn.0048e901
mov esi, eax
test esi, esi
je 0x45fabd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x45fabd
mov ecx, esi
call fcn.0045f930
cmp edi, eax
jge 0x45fabd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x45fa43
mov dword [esp + 0x34], 1
jmp 0x45fa9e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45fabd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0045ef20
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x46a690
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call fcn.00470aa0
mov ebp, dword [esp + 0x220]
mov eax, dword [esp + 0x21c]
push ebp
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, eax
cmp edi, 0x20
ja 0x46a789
lea ecx, [esp + 0x10]
push ecx
push str..htm
push closesocket
mov ecx, esi
call fcn.00409400
test eax, eax
jne 0x46a789
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push closesocket
mov ecx, esi
call fcn.00409400
test eax, eax
jne 0x46a789
lea edx, [esp + 0x10]
push 0xf61ac0
push edx
call fcn.0047d9f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x46a75a
lea eax, [esp + 0x10]
push 0xf61abc
push eax
call fcn.0047d9f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x46a75a
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x46a75d
mov byte [esi], 0
push 0xf61284
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x4709e0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x49c1d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x118]
test eax, eax
jne 0x470a90
mov eax, dword [0xf624dc]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.0048d2a5
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.0048d2f4
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.0048d251
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x470a77
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x470a77
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x118], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.0048cec1
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x473b90
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49c660
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x473d37
mov ecx, dword [0xf624dc]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x473c8c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.004728b0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.0048cfae
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.0048cec1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0xf61284
call fcn.0048cf2f
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.00472c70
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.0048cfae
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.0048cec1
lea ecx, [esp + 0xc]
call fcn.0048d389
mov ecx, dword [esp + 0xc]
push 0xf61cc4
push ecx
call fcn.0047c974
add esp, 8
test eax, eax
je 0x473cb4
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x473bed
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.0048cec1
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.0048cec1
jmp 0x473d3b
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.00473930
test eax, eax
push 0
je 0x473d1f
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.00471fd0
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x473d05
cmp eax, 0x64
jg 0x473cf3
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x473c90
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x473c90
cmp eax, 0x64
jge 0x473c8c
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x473c90
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.00471fd0
mov esi, eax
jmp 0x473c90
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x473d45
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x48f2a5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48f2dd
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.0048d31c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048d2f4
jmp 0x48f2e9
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x490993
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 0x4909d5
call fcn.00496716
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4909d5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4909cc
xor eax, eax
jmp 0x4909dd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004909e3
pop edi
pop esi
pop ebx
ret 4

Function at 0x496c46
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 0x496c74
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x496c92
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00496bac
jmp 0x496c92
mov eax, dword [esi + 0x14]
test eax, eax
je 0x496c92
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00496bac
test edi, edi
mov eax, edi
jne 0x496c7c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x44b610
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
mov cl, byte [0x660042]
mov al, byte [0x660041]
or cl, 0x10
push ebx
shr cl, 3
and ecx, 0xff
mov bl, byte [0x66004b]
mov dword [esp + 4], ecx
xor bl, al
fild dword [esp + 4]
mov byte [0x66004b], bl
mov ebx, dword [esp + 0x10]
test ebx, ebx
fdivr qword [0x6639a0]
push esi
fadd qword [0x660058]
fstp qword [0x663a10]
je 0x44b6ce
push 0x6600a4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [0x660030]
mov ecx, dword [0x660034]
mov esi, eax
mov dword [esp + 0xc], 0
lea eax, [edx + edx]
or eax, ecx
mov dword [esp + 8], eax
fild qword [esp + 8]
test esi, esi
fadd qword [0x660058]
fstp qword [0x660058]
je 0x44b6ce
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x66007c
push esi
call edi
push 0x660064
push esi
call edi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x44b6ce
lea ecx, [esp + 0x14]
inc eax
add ecx, 4
cmp eax, 0x36
jae 0x44b6d8
cmp dword [ecx], 0
jne 0x44b6c0
pop esi
xor al, al
pop ebx
add esp, 8
ret 4
mov dword [ebx], esi
pop esi
mov al, 1
pop ebx
add esp, 8
ret 4
Function at 0x51bd42
Capabilities:
Encode data using base64

Disassembly:
sbb dword [ebx + esi*2], 0x68
xchg esp, eax
cmc
clc
popal
imul ecx, dword [ebp + 0x53], 0xffffffdb
cdq
in al, dx
mov cs, ecx
insb byte es:[edi], dx
mov edi, 0xbb47aa41
xor byte [eax - 0x42], dl
pop ss
mov ebx, 0x419edf96
inc esi
fidivr dword [ecx - 0x39]
cmp ch, bl
push 0xfccc8040
psrlq mm7, 0xdb
cli
adc dl, byte [edi]
pop edi
push ecx
add al, 0x35
pop edx
dec ecx
retf 0xa7e5
jnp 0x51bcb7
cmp eax, dword [esi - 0x64995992]
salc
pop ds
in al, 0x37
add al, 0xfb
invalid
or al, 0x5e
test byte [esi], dl
mov ecx, 0xc6639a6f
arpl si, ax
sti
invalid
jg 0x51bd3a
sbb esi, dword [esi - 0x418d5a52]
mov dword [ebx + 0x46bdc7bb], edx
xor al, 0x71
shl byte [esi - 0x9390b6d], cl
sub eax, 0x345f9ed6
test eax, 0x270b739f
lahf
dec edi
ja 0x51bd8b
dec edx
pop ebp
stc
sahf
sar byte [ebx + 0x76], cl
push ecx
mov ebp, 0x37b671b1
jge 0x51bd10
mov dh, 0xad
scasd eax, dword es:[edi]
imul eax, dword [edi], 0xc182585e
add cl, bh
int 0x62
dec edx
cmp edx, ebp
insd dword es:[edi], dx
ljmp 0xdd50
push eax
fisttp qword [ebp - 0x4c]
xchg byte [esp - 0x3b], dl
or byte [edx - 0x77], cl
xor edi, dword [ecx + 0x6a01ec44]
add byte [ebp - 0x1271414b], al
je 0x51bdd4
cmpsd dword [esi], dword es:[edi]
in al, 0x17
mov dl, byte [eax + 0x2e839dd1]
pop ecx
jp 0x51bd33
jne 0x51be1e
test dword [ebp + 0x44], 0x6888da7d
push esi
push esi
int3
stosd dword es:[edi], eax
jmp 0x51bd58
or dh, dh
pop esp
cmp dword [edx + 0x735a369c], ebp
or byte [esi + 0x26aa027c], dh
pop ebx
ja 0x51be38
leave
pop edx
pop ds
dec ebx
push 0xc390ab61
not byte [ecx + edi*4 - 1]
adc ch, bh
sub byte [esi + 0x509a2024], ch
mov ebx, 0xba59e730
invalid
stosb byte es:[edi], al
out 0xfa, al
jecxz 0x51bdea
and dh, bl
sbb eax, 0x88b59071
mov eax, 0x675620cd
int1
sbb dword [ecx - 0x15], esi
mov ch, 0xf8
jb 0x51bea4
sub dword [eax + esi*2 - 0x39219760], 0x7e
movsd dword es:[edi], dword [esi]
lodsb al, byte [esi]
jo 0x51bddb
push 0xa57ec6de
xor esi, dword [edi]
mov esp, 0x74ca5ed6
fbld tbyte [ecx + ebp + 0x47]
sbb byte [edx + 0x30], ch
mov dh, 0x2e
cmpsb byte [esi], byte es:[edi]
dec ecx
je 0x51be6e
sub al, 0xaa
loopne 0x51be92
hlt
jecxz 0x51bebd
dec ebx
std
rcr ebx, 1
mov ah, 0x8f
xchg edx, eax
sahf
mov bh, 0x62
rcr dword [edx - 0x3c78960c], 0x70
sahf
lahf
sub eax, 0xf60ae087
xchg edi, eax
rol byte [edi + 0x65], cl
scasb al, byte es:[edi]
and byte [ebx], dl
sbb byte [esi - 0xf], bl
int1
bound esi, qword [edi + 0x7193ba21]
pop eax
imul ebp, eax, 0x54d9d451
mov dl, 3
inc edi
mov bl, byte [edx + 0x44]
pop edx
inc esp
popfd
jbe 0x51beb9
xchg esi, eax
sbb ah, byte [ebp - 0x25b585a5]
jbe 0x51bede
rcl dword [edi + edx], cl
sti
adc dword [ebx - 0x6c], esp
xchg esp, eax
xor edi, dword [ebx + 0x2e]
scasb al, byte es:[edi]
aas
invalid
cdq
invalid
Function at 0x5b43e0
Capabilities:
Encode data using xor

Disassembly:
invalid
adc byte [eax - 0x59d07db2], dh
add byte [esi], ah
js 0x5b4432
or dword [eax - 0x34], eax
insd dword es:[edi], dx
or al, 0xaa
mov esi, 0x91d29b04
sub dh, dh
mov al, byte [0x1cdeb891]
movsd dword es:[edi], dword [esi]
js 0x5b4419
cld
mov eax, 0x3cf9c13a
inc esi
pushfd
stosb byte es:[edi], al
jne 0x5b43d1
push ebp
pop ds
wait
pushfd
out dx, eax
or byte [ebx], ah
cmp al, 0x98
jo 0x5b4446
shl bx, 1
jno 0x5b4488
outsb dx, byte [esi]
jae 0x5b4429
mov al, 0x62
fdivrp st(3)
sahf
mov dl, byte [eax - 0x65]
mov eax, dword [0xe3a1a009]
xchg byte [edx + 0x56], al
push ecx
cmp eax, ebp
invalid
mov eax, dword [0x4469f18a]
cmp eax, 0x2dcc4b9c
mov eax, 0x72e816f3
cld
mov byte [0x801ad0ba], al
dec esi
invalid
or byte [esi - 0x10], 0xe9
mov eax, dword [0xe2af12fd]
push 0xebdf60a2
dec edi
lea ebx, [eax - 0x10]
cmp dword [edi - 0x7f26269a], esi
stosd dword es:[edi], eax
cmp edx, eax
sbb dword [edx - 0x4f34476f], esp
sar dl, 0xc8
out dx, al
bound ebx, qword [edx - 0x5f446f7c]
push cs
wait
fstpnce st(1), st(0)
sub byte [ebx - 0x5de63dc7], 0x91
mov eax, 0xfac0b0cb
enter 0x62ee, 0xffffffffffffff9a
test byte [eax + 0x640ea0bb], dl
wait
pop ds
pop ss
call 0x9f9488f8
pop esi
shr dword [edx + 0x13], cl
jp 0x5b445b
mov cs, word [esi + 0x7453915b]
dec eax
mov ds, word [ebx - 0x6f]
push ebx
je 0x5b44d0
outsb dx, byte [esi]
mov dl, 0xf0
ja 0x5b4482
push 0x72ad099b
add al, 8
and esp, dword [eax]
add dword [eax - 0x38], ebp
imul esp, dword [edx + 0xa], 0x3a410e01
fistp word [ecx - 0xe47674b]
scasb al, byte es:[edi]
rcr eax, 0x1f
salc
mov ecx, 0xdb74fbd3
xor dword [ebx - 0x5dca0960], eax
salc
cwde
push ecx
or edx, esp
sal ebx, 1
sub eax, 0xff0469d7
mov byte [ecx - 0x6f], al
xchg ebx, eax
outsb dx, byte [esi]
imul ebx, dword [ebx + ebx*8 - 0x2179046f], 0xffffffca
sbb byte [ebx - 0x2010cf51], bh
mov ebx, 0xdfef30af
cmp dword [eax], ebp
jo 0x5b4539
pop ecx
xor edi, dword [eax + edx]
xchg ecx, eax
push 0xffffffffffffffb1
sub dword [edx], eax
shr byte [esi + 0x17], 1
cdq
popfd
in eax, dx
invalid
retf
jmp 0x5b451b
Function at 0x65796d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6603e8
cmp edx, dword [eax]
je 0x65798f
add eax, 8
inc ecx
cmp eax, 0x660478
jl 0x657980
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6603e8]
jne 0x657abd
mov eax, dword [0xa5cdc4]
cmp eax, 1
je 0x657a97
test eax, eax
jne 0x6579c0
cmp dword [0x660314], 1
je 0x657a97
cmp edx, 0xfc
je 0x657abd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x6579f7
lea eax, [ebp - 0x1a4]
push 0x65ca50
push eax
call fcn.00658350
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.006587e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x657a3a
lea eax, [ebp - 0x1a4]
push eax
call fcn.006587e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65ca4c
push edi
call fcn.0065a6b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x65ca30
push eax
call fcn.00658350
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00658360
lea eax, [ebp - 0xa0]
push 0x65ca2c
push eax
call fcn.00658360
push dword [esi + 0x6603ec]
lea eax, [ebp - 0xa0]
push eax
call fcn.00658360
push 0x12010
lea eax, [ebp - 0xa0]
push 0x65ca04
push eax
call fcn.0065a624
add esp, 0x2c
pop edi
jmp 0x657abd
lea eax, [ebp + 8]
lea esi, [esi + 0x6603ec]
push 0
push eax
push dword [esi]
call fcn.006587e0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x5e4047
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
pushal
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
test eax, eax
je 0x5e40e5
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x5e40e5
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
cmp word [eax], 0x5a4d
jne 0x5e40e5
mov ebx, dword [eax + 0x3c]
add eax, ebx
cmp dword [eax], 0x4550
jne 0x5e40e5
mov ebx, dword [eax + 0x34]
mov dword [ebp - 0xc], ebx
mov ebx, dword [eax + 0x50]
mov dword [ebp - 8], ebx
push edi
push 4
push 0x2000
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [edi + 0x122d2eb9]
pop edi
test eax, eax
jne 0x5e40d8
push edi
push 4
push 0x2000
push dword [ebp - 8]
push 0
call dword [edi + 0x122d2eb9]
pop edi
test eax, eax
je 0x5e40e5
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x14], eax
mov dword [ebp - 0x10], 1
popal
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x5e416a
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
pushal
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x14]
mov dword [ebp - 8], ebx
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov ebx, dword [eax + 0x3c]
add eax, ebx
lea ebx, [eax + 0x18]
movzx ecx, word [eax + 0x14]
add ebx, ecx
movzx ecx, word [eax + 6]
test ecx, ecx
je 0x5e4216
push ecx
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0x10]
cmp ecx, edx
jae 0x5e41ab
mov ecx, edx
mov dword [ebp - 4], ecx
mov eax, dword [ebx + 0xc]
add eax, dword [ebp - 8]
push ecx
push edi
push 4
push 0x1000
push dword [ebp - 4]
push eax
call dword [edi + 0x122d2eb9]
pop edi
pop ecx
test eax, eax
je 0x5e4209
push edi
mov edi, eax
xor eax, eax
push ecx
push edi
rep stosb byte es:[edi], al
pop edi
pop ecx
mov edx, dword [ebx + 0x10]
cmp ecx, edx
jl 0x5e41e9
mov ecx, edx
mov esi, dword [ebx + 0x14]
add esi, dword [ebp - 0xc]
lea eax, [ebx + 0x10]
cmp dword [eax + 4], 0
je 0x5e41fe
rep movsb byte es:[edi], byte [esi]
pop edi
add ebx, 0x28
pop ecx
dec ecx
jmp 0x5e4192
pop ecx
mov dword [ebp - 0x10], 0
jmp 0x5e421d
mov dword [ebp - 0x10], 1
popal
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x5e4437
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x14], eax
mov ebx, dword [eax + 0x3c]
add eax, ebx
lea ebx, [eax + 0x18]
movzx ecx, word [eax + 0x14]
add ebx, ecx
movzx ecx, word [eax + 6]
test ecx, ecx
je 0x5e44b1
push ecx
mov ecx, dword [ebx + 0xc]
add ecx, dword [ebp - 0x14]
mov edx, dword [ebx + 0x24]
push edx
call fcn.005e43dc
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
push edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [edi + 0x122d39a4]
pop edi
test eax, eax
jne 0x5e44a7
pop ecx
jmp 0x5e44b8
add ebx, 0x28
pop ecx
dec ecx
jmp 0x5e4460
mov dword [ebp - 0x18], 1
popal
mov eax, dword [ebp - 0x18]
leave
ret 4
Function at 0x5e465e
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 0x18], 0
jne 0x5e47b2
cmp dword [ebp + 0xc], 0
jne 0x5e47b2
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [eax + 8]
cmp eax, 0xffffffff
je 0x5e46a5
sub eax, dword [ebp + 0x10]
js 0x5e47b2
je 0x5e47b2
cmp eax, dword [ebp + 0x14]
jl 0x5e47b2
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
cmp word [eax], 0x5a4d
jne 0x5e47b2
mov ebx, dword [eax + 0x3c]
add eax, ebx
cmp dword [eax], 0x4550
jne 0x5e47b2
mov ebx, dword [eax + 0x50]
push edi
push 4
push 0x1000
push ebx
push 0
call dword [edi + 0x122d2eb9]
pop edi
test eax, eax
je 0x5e47b2
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x14], ebx
pop ebx
lea eax, [ebp - 0x18]
push edi
push eax
lea eax, [edi + 0x124a8a15]
push eax
call fcn.005e36c6
pop edi
test eax, eax
je 0x5e47b2
lea eax, [ebp - 0x18]
push edi
push eax
lea eax, [edi + 0x124a8a19]
push eax
call fcn.005e36c6
pop edi
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
mov ebx, dword [eax + 0x3c]
add eax, ebx
mov eax, dword [eax + 0x54]
mov dword [ebp - 0xc], eax
push edi
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0x1c]
mov esi, dword [esi + 4]
rep movsb byte es:[edi], byte [esi]
pop edi
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
mov ebx, dword [eax + 0x3c]
add eax, ebx
lea ebx, [eax + 0x18]
movzx ecx, word [eax + 0x14]
add ebx, ecx
movzx ecx, word [eax + 6]
test ecx, ecx
je 0x5e47a5
push ecx
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
add eax, dword [ebp - 8]
test eax, eax
je 0x5e47b2
push edi
mov edi, eax
xor eax, eax
push ecx
push edi
rep stosb byte es:[edi], al
pop edi
pop ecx
mov edx, dword [ebx + 0x10]
cmp ecx, edx
jl 0x5e4792
mov ecx, edx
mov esi, dword [ebx + 0x14]
add esi, dword [ebp - 4]
rep movsb byte es:[edi], byte [esi]
pop edi
add ebx, 0x28
pop ecx
dec ecx
jmp 0x5e4760
push dword [ebp + 8]
call fcn.005e5554
jmp 0x5e47b9
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
leave
ret 0x14