joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421af0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, edx
mov edx, dword [0x4af98c]
mov dword [ebp - 0xc], edx
push edi
mov edi, ecx
test esi, esi
jne 0x421b19
mov esi, edi
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x421b10
sub esi, ecx
test edx, edx
je 0x421b23
inc dword [edx + 0x370]
lea eax, [esi + 1]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
push esi
push edi
push ebx
lea ecx, [ebx + esi]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [ebp - 4]
xor ecx, ecx
add esp, 0x10
mov dword [ebp - 8], ecx
xor esi, esi
mov byte [edx], 0
cmp ebx, edx
jae 0x421caa
nop dword [eax + eax]
mov al, byte [ebx]
cmp al, 0xa
je 0x421cdb
cmp al, 0xd
je 0x421cdb
mov edi, ebx
cmp ebx, edx
jae 0x421b87
mov al, byte [edi]
cmp al, 0xa
je 0x421b87
cmp al, 0xd
je 0x421b87
inc edi
cmp edi, edx
jb 0x421b78
mov byte [edi], 0
mov al, byte [ebx]
cmp al, 0x3b
je 0x421c9f
cmp al, 0x5b
jne 0x421c83
cmp edi, ebx
jbe 0x421c83
cmp byte [edi - 1], 0x5d
lea eax, [edi - 1]
mov dword [ebp - 0x14], eax
jne 0x421c83
lea esi, [ebx + 1]
mov byte [eax], 0
sub eax, esi
push eax
push 0x5d
push esi
call sub.VCRUNTIME140.dll_memchr
add esp, 0xc
mov dword [ebp - 8], eax
test eax, eax
je 0x421bf1
mov edx, dword [ebp - 0x14]
lea ecx, [eax + 1]
sub edx, ecx
push edx
push 0x5b
push ecx
call sub.VCRUNTIME140.dll_memchr
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x421bf1
mov eax, dword [ebp - 8]
mov byte [eax], 0
jmp 0x421bf8
mov esi, str.Window
mov ecx, ebx
mov ebx, dword [0x4af98c]
lea eax, [ecx + 1]
mov cl, byte [esi]
inc esi
mov dword [ebp - 0x14], eax
or eax, 0xffffffff
test cl, cl
je 0x421c3f
or ebx, 0xffffffff
cmp cl, 0x23
jne 0x421c20
cmp byte [esi], cl
jne 0x421c20
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x4543f8]
test cl, cl
jne 0x421c11
mov ebx, dword [0x4af98c]
mov edx, dword [ebx + 0x2d08]
xor ecx, ecx
not eax
test edx, edx
jle 0x421c60
mov esi, dword [ebx + 0x2d10]
cmp dword [esi + 4], eax
je 0x421c69
inc ecx
add esi, 0x18
cmp ecx, edx
jl 0x421c53
xor esi, esi
xor ecx, ecx
mov dword [ebp - 8], ecx
jmp 0x421c9c
test esi, esi
je 0x421c62
push dword [ebp - 0x14]
mov eax, dword [esi + 8]
push esi
push dword [ebp - 0xc]
call eax
mov ecx, eax
add esp, 0xc
mov dword [ebp - 8], ecx
jmp 0x421c9c
test esi, esi
je 0x421c9f
test ecx, ecx
je 0x421c9f
mov eax, dword [esi + 0xc]
push ebx
push ecx
push esi
push dword [ebp - 0xc]
call eax
mov ecx, dword [ebp - 8]
add esp, 0x10
mov edx, dword [ebp - 4]
lea ebx, [edi + 1]
cmp ebx, edx
jb 0x421b60
mov ecx, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x421cc3
mov eax, dword [0x4af98c]
test eax, eax
je 0x421cc3
dec dword [eax + 0x370]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebp - 0xc]
add esp, 4
mov byte [eax + 0x2cf4], 1
mov esp, ebp
pop ebp
ret
inc ebx
jmp 0x421b60
Function at 0x421cf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [0x4af98c]
mov eax, ecx
mov dword [ebp - 8], eax
mov dword [esi + 0x2cf8], 0
test eax, eax
je 0x421de1
push edi
lea edi, [esi + 0x2cfc]
mov dword [esi + 0x2cf8], 0
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x421d44
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.004229b0
mov dword [edi], 0
cmp dword [edi + 4], 0
jne 0x421d59
push 8
mov ecx, edi
call fcn.004229b0
mov eax, dword [edi]
mov ecx, dword [edi + 8]
push ebx
mov dword [ebp - 4], 0
mov byte [ecx + eax], 0
inc dword [edi]
cmp dword [esi + 0x2d08], 0
jle 0x421d9c
xor ebx, ebx
mov eax, dword [esi + 0x2d10]
add eax, ebx
push edi
push eax
push esi
mov eax, dword [eax + 0x10]
call eax
mov eax, dword [ebp - 4]
add esp, 0xc
inc eax
add ebx, 0x18
mov dword [ebp - 4], eax
cmp eax, dword [esi + 0x2d08]
jl 0x421d77
mov edi, dword [edi]
mov ebx, 0x4af988
mov ecx, dword [ebp - 8]
mov edx, 0x4a8f14
lea eax, [edi - 1]
neg edi
sbb edi, edi
and edi, eax
mov eax, dword [esi + 0x2d04]
test eax, eax
cmovne ebx, eax
call fcn.00413370
mov esi, eax
test esi, esi
je 0x421ddf
push esi
push edi
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x430f40
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x4af040]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [0x4af98c]
lea eax, [esp + 0x10]
push esi
push edi
push eax
push dword [0x4b3e24]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
movd xmm1, eax
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
lea eax, [esp + 0x30]
cvtdq2ps xmm0, xmm0
push eax
movss dword [ebx + 0x10], xmm1
movss dword [ebx + 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [esp + 0x30]
mov ecx, edi
sub ecx, dword [0x4b3e28]
mov esi, dword [esp + 0x34]
mov edx, esi
sbb edx, dword [0x4b3e2c]
call fcn.00440cb0
mov edx, dword [0x4b3e34]
mov ecx, dword [0x4b3e30]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x28], xmm0
call fcn.00440cb0
movss xmm1, dword [esp + 0x28]
cvtsd2ss xmm0, xmm0
push 0x11
divss xmm1, xmm0
movss dword [ebx + 0x18], xmm1
mov dword [0x4b3e2c], esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [0x4b3e28], edi
call esi
shr eax, 0xf
and al, 1
push 0x10
mov byte [ebx + 0xf8], al
call esi
shr eax, 0xf
and al, 1
push 0x12
mov byte [ebx + 0xf9], al
call esi
mov ecx, dword [0x4af98c]
shr eax, 0xf
and al, 1
mov byte [ebx + 0xfb], 0
mov byte [ebx + 0xfa], al
cmp byte [ecx + 0x357], 0
lea esi, [ecx + 0xe0]
je 0x43107a
cvttss2si eax, dword [esi]
mov dword [esp + 0x28], eax
cvttss2si eax, dword [ecx + 0xe4]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
push eax
push dword [0x4b3e24]
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_SetCursorPos]
mov dword [esi], 0xff7fffff
mov dword [esi + 4], 0xff7fffff
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x4310e6
mov ecx, dword [0x4b3e24]
cmp eax, ecx
je 0x4310a7
push ecx
push eax
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x4310e6
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x4310e6
lea eax, [esp + 0x10]
push eax
push dword [0x4b3e24]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x4310e6
movd xmm0, dword [esp + 0x10]
movd xmm1, dword [esp + 0x14]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [esi], xmm0
movss dword [esi + 4], xmm1
cmp byte [ebx + 0xac], 0
je 0x4310f4
or eax, 0xffffffff
jmp 0x4310ff
mov eax, dword [0x4af98c]
mov eax, dword [eax + 0x1d14]
cmp dword [0x4af1dc], eax
je 0x431111
mov dword [0x4af1dc], eax
call fcn.00430ba0
call fcn.00430cc0
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043fbc2
mov esp, ebp
pop ebp
ret
Function at 0x43a420
Capabilities:
Enumerate files on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44196a
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x298
mov eax, dword [0x4af040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x288], eax
mov esi, ecx
mov dword [ebp - 0x28c], esi
mov dword [ebp - 0x290], esi
xorps xmm0, xmm0
mov dword [ebp - 0x284], 0
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push 0x4a9074
mov dword [ebp - 0x284], 1
call fcn.0040ce70
add esp, 4
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x280]
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
push ecx
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x43a5c9
nop
test byte [ebp - 0x280], 0x10
jne 0x43a5ac
mov edx, dword [ebp - 0x288]
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x2a8]
call fcn.0040ce70
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 2
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
je 0x43a563
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
movups xmm0, xmmword [ecx]
movups xmmword [eax], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [eax + 0x10], xmm0
xor eax, eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
add dword [esi + 4], 0x18
jmp 0x43a56c
push ecx
push eax
mov ecx, esi
call fcn.00411640
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x294]
cmp ecx, 7
jbe 0x43a5ac
mov edx, dword [ebp - 0x2a8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x43a5a2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43a5f5
push ecx
push edx
call fcn.0043ff31
add esp, 8
lea eax, [ebp - 0x280]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x43a4f0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x43a605
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x43a5fb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x43a5fb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0043ff31
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043fbc2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x43b680
Capabilities:
Hide graphical window
Inspect load icon resource
Terminate process

Disassembly:
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x6a
xorps xmm0, xmm0
mov dword [0x4af990], 0x30
push eax
mov dword [0x4af994], 0x40
mov dword [0x4af998], 0x43b5d0
mov dword [0x4af99c], 0
mov dword [0x4af9a0], 0
mov dword [0x4af9a4], eax
movups xmmword [0x4af9a8], xmm0
mov dword [0x4af9b8], 0x4a9b78
mov dword [0x4af9bc], 0
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x4af990
mov dword [0x4af9a8], eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
cvttss2si eax, dword [0x4a8dd4]
push 0
cmp dword [0x4b3a0c], 0xf
mov ecx, 0x4b39f8
cmova ecx, dword [0x4b39f8]
push dword [0x4af9a4]
push 0
push 0
push eax
cvttss2si eax, dword [0x4a8dd0]
push eax
push 0x64
push 0x64
push closesocket
push ecx
push dword [0x4af9b8]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
push 0x20
mov dword [0x4af9c4], esi
call dword [sym.imp.d3d9.dll_Direct3DCreate9]
mov ecx, eax
mov dword [0x4af96c], ecx
test ecx, ecx
je 0x43b8c6
push 0x4af968
push 0x4af930
push 0x40
xorps xmm0, xmm0
mov dword [0x4af944], 0
push esi
push 1
movlpd qword [0x4af930], xmm0
movlpd qword [0x4af93c], xmm0
mov dword [0x4af94c], 0
movlpd qword [0x4af95c], xmm0
mov dword [0x4af950], 1
mov dword [0x4af948], 1
mov dword [0x4af938], 0
mov dword [0x4af954], 1
mov dword [0x4af958], 0x50
mov dword [0x4af964], 1
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x40]
test eax, eax
js 0x43b8c6
push 0xa
push dword [0x4af9c4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x4af9c4]
call dword [sym.imp.USER32.dll_UpdateWindow]
call fcn.004156c0
call fcn.0043eee0
mov eax, dword [0x4b325c]
movss xmm0, dword [0x4a8dd4]
mulss xmm0, dword [0x4a9f68]
cdq
sub eax, edx
sar eax, 1
push 5
push 0
push 0
movd xmm1, eax
cvtdq2ps xmm1, xmm1
subss xmm1, xmm0
movss xmm0, dword [0x4a8dd0]
mulss xmm0, dword [0x4a9f68]
cvttss2si eax, xmm1
push eax
mov eax, dword [0x4afd94]
cdq
sub eax, edx
sar eax, 1
movd xmm1, eax
cvtdq2ps xmm1, xmm1
subss xmm1, xmm0
cvttss2si eax, xmm1
push eax
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, 0x4af978
mov ecx, 0x66
call fcn.00411a60
mov edx, 0x4af97c
mov ecx, 0x67
call fcn.00411a60
mov edx, 0x4af970
mov ecx, 0x68
call fcn.00411a60
mov edx, 0x4af980
mov ecx, 0x6b
call fcn.00411a60
mov edx, 0x4af974
mov ecx, 0x6f
call fcn.00411a60
mov al, 1
pop esi
ret
call fcn.0040fee0
push dword [0x4af9a4]
push dword [0x4af9b8]
call dword [sym.imp.USER32.dll_UnregisterClassA]
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x44081e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x44085d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44085d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44085d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x44085d
cmp dword [ecx + 0x74], 0xe
jbe 0x44085d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x8de2f8
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8de2fe
pop ebp
sub ebp, 6
sub ebp, 0x4de2f8
jmp 0x8de35c
jmp 0x8de365
mov eax, 0x4de2f8
add eax, ebp
add eax, 0x93
mov ecx, 0x62a
mov edx, 0x6d7fef04
xor byte [eax], dl
inc eax
dec ecx
jne 0x8de37c
jmp 0x8de38f
outsb dx, byte [esi]
inc esp
insb byte es:[edi], dx
add al, 0x14
add al, 4
insb byte es:[edi], dx
add al, 0xc8
sub byte [edi + esi], al
les edx, [ebx + edi*8 - 0x6f]
cmp byte [0x8f540440], ah
leave
invalid

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4209ab
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4209ea
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4209ea
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4209ea
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4209ea
cmp dword [ecx + 0x74], 0xe
jbe 0x4209ea
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x433160
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43318d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43318d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x80a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0080a1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x80a07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x80a06a
add dl, dl
jne 0x80a089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x80a0dc
xor eax, eax
add dl, dl
jne 0x80a096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x80a17d
add dl, dl
jne 0x80a0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x80a0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x80a0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x80a0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x80a0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x80a075
mov eax, 1
add dl, dl
jne 0x80a0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x80a0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x80a0e1
sub eax, ebx
mov ebx, 1
jne 0x80a128
mov ecx, 1
add dl, dl
jne 0x80a10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x80a119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x80a105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x80a075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x80a13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x80a14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x80a136
cmp eax, 0x7d00
jae 0x80a16d
cmp eax, 0x500
jb 0x80a168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x80a075
cmp eax, 0x7f
ja 0x80a170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x80a075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x80a19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x80a075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40c8b0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47f6ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004743de
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40c932
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004722f0
mov eax, dword [eax]
push 0x4c2c9c
push eax
call fcn.00465004
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00474669
test bl, bl
je 0x40c932
push 0x4c2c9c
lea ecx, [esp + 0xc]
call fcn.004749f9
push 0x4c2ca8
lea ecx, [esp + 0xc]
call fcn.004749f9
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40c96e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00474669
jmp 0x40ca39
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40c9f2
lea edx, [esp + 0x7c]
push 0x4c2ca4
push edx
call fcn.00465004
add esp, 8
test eax, eax
je 0x40c9f2
lea eax, [esp + 0x7c]
push 0x4c2ca0
push eax
call fcn.00465004
add esp, 8
test eax, eax
je 0x40c9f2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40c982
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00474669
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40d240
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40d2a2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40d2b0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47f72b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4cc5fc]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40d3e8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40d316
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00474669
xor eax, eax
jmp 0x40d45f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004747a6
push esi
lea ecx, [esp + 0xc]
call fcn.00474a35
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40d43d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040d240
test eax, eax
jne 0x40d43d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.0040d240
test eax, eax
jne 0x40d43d
lea eax, [esp + 0x14]
push 0x4c2cb8
push eax
call fcn.00466080
mov esi, eax
add esp, 8
test esi, esi
jne 0x40d41c
lea ecx, [esp + 0x14]
push 0x4c2cb4
push ecx
call fcn.00466000
mov esi, eax
add esp, 8
test esi, esi
jne 0x40d41c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40d41f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00474756
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40d32e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00474669
xor eax, eax
jmp 0x40d45f
mov byte [esi], 0
push 0x4c2cb0
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00474669
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4