joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cc1e7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x50cc40]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x4cc210
xor eax, eax
jmp 0x4cc37e
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x511ae0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4cc243
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.004d1d85
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4cc315
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x4cc350
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x4cc29e
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4cc28f
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x4cc272
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cc2de
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x4cc2e7
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x4cc263
jmp 0x4cc2e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x4cc379
cmp dword [ebp - 8], edi
je 0x4cc350
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x4cc342
call fcn.004c63f4
mov dword [eax], 9
call fcn.004c63fd
mov dword [eax], esi
jmp 0x4cc34b
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cc337
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x4cc2e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x4cc2e9
push dword [ebp - 8]
call fcn.004c6406
pop ecx
or eax, 0xffffffff
jmp 0x4cc37c
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4cc365
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x4cc365
xor eax, eax
jmp 0x4cc37c
call fcn.004c63f4
mov dword [eax], 0x1c
call fcn.004c63fd
mov dword [eax], edi
jmp 0x4cc34b
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.004c3e15
leave
ret
Function at 0x4cccb2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4cce7a
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x511ae0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4cce7a
test cl, 0x48
je 0x4ccd18
mov al, byte [eax + 5]
cmp al, 0xa
je 0x4ccd18
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4ccd6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4ccd52
call fcn.004c63f4
mov dword [eax], 9
call fcn.004c63fd
mov dword [eax], esi
jmp 0x4ccd62
cmp eax, 0x6d
je 0x4cce7a
push eax
call fcn.004c6406
pop ecx
or eax, 0xffffffff
jmp 0x4cce7c
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x4cce75
test edx, edx
je 0x4ccd8d
cmp byte [ebx], 0xa
jne 0x4ccd8d
or al, 4
jmp 0x4ccd8f
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4cce6f
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4cce5f
cmp al, 0xd
je 0x4ccdc3
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4cce51
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4ccddd
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4ccdd8
add dword [ebp + 0x10], 2
jmp 0x4cce31
mov dword [ebp + 0x10], eax
jmp 0x4cce4d
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4cce05
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4cce4d
cmp dword [ebp - 0xc], 0
je 0x4cce4d
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4cce26
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4cce31
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4cce50
cmp ebx, dword [ebp + 0xc]
jne 0x4cce36
cmp byte [ebp - 1], 0xa
jne 0x4cce36
mov byte [ebx], 0xa
jmp 0x4cce50
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004d1d85
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4cce51
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4ccda7
jmp 0x4cce6f
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x4cce6f
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4cce7c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4cdf05
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x50cc40]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x50d630]
je 0x4cdf32
inc eax
cmp eax, 0x12
jb 0x4cdf23
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x50d630]
jne 0x4ce066
mov eax, dword [0x51142c]
cmp eax, 1
je 0x4ce041
cmp eax, edx
jne 0x4cdf62
cmp dword [0x50ccec], 1
je 0x4ce041
cmp ecx, 0xfc
je 0x4ce066
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4cdf9b
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.004c7ae0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.004c7be0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4cdfdd
lea eax, [ebp - 0x10c]
push eax
call fcn.004c7be0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4f4ff4
push edi
call fcn.004c6c10
add esp, 0x10
push edi
call fcn.004c7be0
push dword [esi + 0x50d634]
mov ebx, eax
call fcn.004c7be0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004c55a0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004c7ae0
push edi
push ebx
call fcn.004c7af0
push 0x4f4ff0
push ebx
call fcn.004c7af0
push dword [esi + 0x50d634]
push ebx
call fcn.004c7af0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004d0cac
add esp, 0x2c
jmp 0x4ce066
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x50d634]
push dword [esi]
call fcn.004c7be0
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]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004c3e15
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d0cac
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x511794], ebx
push esi
push edi
jne 0x4d0d2c
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4d0d67
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x511794], eax
je 0x4d0d67
push 0x4fa6d4
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x511798], eax
call esi
cmp dword [0x511438], 2
mov dword [0x51179c], eax
jne 0x4d0d2c
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x5117a4], eax
je 0x4d0d2c
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x5117a0], eax
mov eax, dword [0x5117a0]
test eax, eax
je 0x4d0d71
call eax
test eax, eax
je 0x4d0d58
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x5117a4]
test eax, eax
je 0x4d0d58
test byte [ebp - 8], 1
jne 0x4d0d71
cmp dword [0x511444], 4
jb 0x4d0d6b
or byte [ebp + 0x12], 0x20
jmp 0x4d0d90
xor eax, eax
jmp 0x4d0da0
or byte [ebp + 0x12], 4
jmp 0x4d0d90
mov eax, dword [0x511798]
test eax, eax
je 0x4d0d90
call eax
mov ebx, eax
test ebx, ebx
je 0x4d0d90
mov eax, dword [0x51179c]
test eax, eax
je 0x4d0d90
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x511794]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4d23b4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.004c55a0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4d2449
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x511438]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x4d2449
cmp eax, 1
je 0x4d2461
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4d2449
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x4d241e
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x4d2445
xor eax, eax
inc eax
jmp 0x4d247d
cmp esi, ebx
jae 0x4d244d
xor eax, eax
jmp 0x4d247d
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x511438]
jmp 0x4d2463
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d2b9b
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004c55a0
mov eax, dword [0x50cc40]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.004ccab2
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x4d2cc5
push 2
push esi
push dword [ebp + 8]
call fcn.004ccab2
add esp, 0xc
cmp eax, ebx
je 0x4d2cc5
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4d2c68
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.004c6d40
push 0x8000
push dword [ebp + 8]
call fcn.004d2d41
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x4d2c21
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.004cc1e7
add esp, 0xc
cmp eax, 0xffffffff
je 0x4d2c41
sub edi, eax
test edi, edi
jg 0x4d2c19
jmp 0x4d2c59
call fcn.004c63fd
cmp dword [eax], 5
jne 0x4d2c56
call fcn.004c63f4
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.004d2d41
pop ecx
pop ecx
jmp 0x4d2cb0
jge 0x4d2cb0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004ccab2
push dword [ebp + 8]
call fcn.004d1b62
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x4d2cb0
call fcn.004c63f4
mov dword [eax], 0xd
call fcn.004c63fd
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004ccab2
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4d2cc7
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.004c3e15
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x25207cc1
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
loop 0x433060
nop
nop
nop
nop
nop
mov eax, section..rdata
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x32492e5d
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x10024770
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100ae690
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.100a30fc
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.100256d0
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x100247c4
jmp dword [ecx*4 + 0x1002492c]
mov al, byte [esi]
test al, al
je 0x100247f2
cmp al, 0x20
je 0x100247de
cmp al, 0xa1
jne 0x100247f2
cmp byte [esi + 1], al
jne 0x100247f2
test al, 0x80
je 0x100247ea
mov al, byte [esi + 1]
inc esi
test al, al
je 0x100247f2
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x100247d1
test ecx, ecx
je case.default.0x100247c4
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x100247c4
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x10024838
cmp dl, 0xa1
jne 0x1002482c
cmp byte [eax + 1], 0xa1
jne 0x1002482c
test ecx, ecx
jne 0x10024824
mov edi, eax
mov ecx, 1
inc eax
jmp 0x1002484c
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x10024866
jmp 0x1002484c
cmp dl, 0x20
jne 0x1002484a
test ecx, ecx
jne 0x10024843
mov edi, eax
mov ecx, 1
jmp 0x1002484c
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x1002480c
cmp ecx, 1
jne case.default.0x100247c4
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x100247c4
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x100247c4
mov al, byte [esi]
test al, al
je 0x100248be
test al, 0x80
mov byte [esp + 0x3c], al
je 0x100248a4
mov cl, byte [esi + 1]
test cl, cl
je 0x100248be
cmp al, 0xa1
jne 0x10024894
cmp cl, al
je 0x100248a1
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.100259a0
inc esi
jmp 0x100248b6
cmp al, 0x20
je 0x100248b6
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.100259e0
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1002487d
push 0
lea ecx, [esp + 0x14]
call fcn.100259e0
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10037770
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x100248f1
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x100bdee0
call fcn.100258d0
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.100a308e
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x1002e4c0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x100aefab
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.100a2e03
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x1002e542
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.100a0074
mov eax, dword [eax]
push 0x100d3200
push eax
call fcn.10092bc4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.100a308e
test bl, bl
je 0x1002e542
push 0x100d3200
lea ecx, [esp + 0xc]
call fcn.100a341e
push 0x100d6d74
lea ecx, [esp + 0xc]
call fcn.100a341e
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 0x1002e57e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.100a308e
jmp 0x1002e649
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 0x1002e602
lea edx, [esp + 0x7c]
push 0x100d6d70
push edx
call fcn.10092bc4
add esp, 8
test eax, eax
je 0x1002e602
lea eax, [esp + 0x7c]
push 0x100d6d6c
push eax
call fcn.10092bc4
add esp, 8
test eax, eax
je 0x1002e602
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 0x1002e592
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.100a308e
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 0x1002ee40
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 0x1002eea2
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 0x1002eeb0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x100af02b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x100de16c]
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 0x1002efe8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x1002ef16
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.100a308e
xor eax, eax
jmp 0x1002f05f
push 0x100d6db4
lea ecx, [esp + 0xc]
call fcn.100a31cb
push esi
lea ecx, [esp + 0xc]
call fcn.100a345a
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x100d6dac
push 0
call dword [sym.imp.SHELL32.DLL_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x1002f03d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push 0x100d6da4
push accept
call fcn.1002ee40
test eax, eax
jne 0x1002f03d
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [esp + 0x14]
push 0x100d6d90
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.1002ee40
test eax, eax
jne 0x1002f03d
lea eax, [esp + 0x14]
push 0x100d6d88
push eax
call fcn.10093c00
mov esi, eax
add esp, 8
test esi, esi
jne 0x1002f01c
lea ecx, [esp + 0x14]
push 0x100d6d84
push ecx
call fcn.10093b80
mov esi, eax
add esp, 8
test esi, esi
jne 0x1002f01c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x1002f01f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.100a317b
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x1002ef2e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.100a308e
xor eax, eax
jmp 0x1002f05f
mov byte [esi], 0
push 0x100d6d80
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.100a308e
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
Function at 0x100432a0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.DLL_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x1004330e
cmp si, 0x69
ja 0x1004330e
add esi, 0xffd0
cmp si, 0x11
je 0x100432de
push 0x11
call edi
test ax, ax
jge 0x100432de
or esi, 0x2000
cmp si, 0x10
je 0x100432f3
push 0x10
call edi
test ax, ax
jge 0x100432f3
or esi, 0x4000
cmp si, 0x12
je 0x10043308
push 0x12
call edi
test ax, ax
jge 0x10043308
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x1004331b
mov esi, 0xbd
jmp 0x100432cf
cmp si, 0x6e
jne 0x10043328
mov esi, 0xbe
jmp 0x100432cf
cmp si, 0x6f
jne 0x100432c9
mov esi, 0xbf
jmp 0x100432cf

Function at 0x10044ad0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x100ee9a8]
xor edx, edx
cmp eax, edx
jne 0x10044af6
xor eax, eax
mov byte [eax + 0x100ee8a8], al
inc eax
cmp eax, 0x100
jl 0x10044ade
mov dword [0x100ee9a8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x100ee8a8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x10044b87
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x10044b5a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x10044b28
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x10044c00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x10044c53
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x10044c3a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret