joyce8/EMBER2024-capa huggingface dataset:
Function at 0x8771b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00877140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00877140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00877140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00877140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x877230
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x20c
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x218]
push ebp
mov ebp, dword [esp + 0x218]
push esi
push eax
push 0xf003f
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x8772d6
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea ecx, [esp + 0x14]
push 0x104
push ecx
push eax
push edx
call edi
mov esi, eax
test esi, esi
jne 0x8772ae
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.00877230
mov esi, eax
add esp, 8
test esi, esi
jne 0x8772ae
lea edx, [esp + 0x14]
push 0x104
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call edi
mov esi, eax
test esi, esi
je 0x87727e
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x103
pop edi
je 0x8772ce
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret

Function at 0x877bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x877c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x88987c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x877c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x877c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..data
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x57d34d3a
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e060
nop
nop
nop
nop
mov eax, section..data_1
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
nop
nop
nop
mov ebx, 0x42cd70
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x506e0510
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x40288d
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc30
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax]
mov eax, dword [eax + 4]
push esi
xor esi, esi
cmp dword [0x2b1c420], 0x594
push edi
mov dword [ebp - 8], eax
jne 0x4028c3
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
mov eax, dword [0x4a8078]
mov dword [ebp - 0x28], eax
mov eax, dword [str.SFL]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
call fcn.00402886
mov eax, dword [0x4a8080]
add dword [ebp - 0x10], 0x23f
mov dword [ebp - 0x20], eax
mov eax, dword [0x4a8084]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, ebx
shl eax, 4
cmp dword [0x2b1c420], 0xc
mov dword [ebp - 4], eax
jne 0x402946
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadIdealProcessor]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
push dword [ebp - 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateJobObject]
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [0x2b1c420]
cmp eax, 0xfa9
jne 0x402962
mov dword [0x2b1b9bc], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40296f
mov dword [0x2b1b370], esi
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov edx, ebx
shr edx, cl
lea eax, [edi + ebx]
mov dword [ebp - 0x14], eax
mov dword [0x2b1b9b8], 0xf4ea3dee
add edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x2b1c420], 0x213
mov dword [ebp - 0x14], edx
jne 0x4029b0
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CompareStringA]
mov eax, dword [ebp - 0x14]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
cmp dword [0x2b1c420], 0xc
jne 0x4029ff
lea eax, [ebp - 0x14]
push eax
push esi
push esi
lea eax, [ebp - 0x30]
push eax
push esi
push esi
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_BackupRead]
push esi
lea eax, [ebp - 0xc30]
push eax
push 0x402648
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
push esi
lea eax, [ebp - 0x430]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
lea eax, [edi + edx]
xor dword [ebp - 4], eax
mov edi, edx
shr edi, cl
add edi, dword [ebp - 0x24]
cmp dword [0x2b1c420], 0x121
jne 0x402a3d
push 0x4026a0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov edx, dword [ebp - 8]
xor dword [ebp - 4], edi
sub ebx, dword [ebp - 4]
lea eax, [ebp - 0x10]
call fcn.0040287f
dec dword [ebp - 0x18]
jne 0x4028fc
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [eax], ebx
mov dword [eax + 4], edx
pop ebx
leave
ret 4
Function at 0x402a63
Capabilities:
Get common file path
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040ccc0
mov eax, dword [0x2b1c420]
mov ecx, dword [0x2b1b374]
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x402b40
push ebx
push edi
mov edi, ecx
mov ebx, eax
cmp dword [0x2b1c420], 0x959
jne 0x402b2e
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SignalObjectAndWait]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsExW]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push esi
lea eax, [ebp - 0x800]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringA]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
call dword [sym.imp.KERNEL32.dll_HeapUnlock]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
lea eax, [ebp - 0x400]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringA]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
call fcn.0040288d
add edi, 8
dec ebx
jne 0x402a8f
pop edi
pop ebx
pop esi
leave
ret
Function at 0x403ba0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a70c8]
jne 0x403baa
repz ret
jmp fcn.00406ade

Function at 0x406704
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040493f
and dword [ebp - 4], 0
cmp dword [0x4a8cac], 0
mov ebx, eax
jne 0x4067b5
push 0x401a28
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406866
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401a1c
push edi
call esi
test eax, eax
je 0x406866
push eax
call fcn.004048cd
mov dword [esp], 0x401a0c
push edi
mov dword [0x4a8cac], eax
call esi
push eax
call fcn.004048cd
mov dword [esp], 0x4019f8
push edi
mov dword [0x4a8cb0], eax
call esi
push eax
call fcn.004048cd
mov dword [esp], 0x4019dc
push edi
mov dword [0x4a8cb4], eax
call esi
push eax
call fcn.004048cd
pop ecx
mov dword [0x4a8cbc], eax
test eax, eax
je 0x4067b5
push 0x4019c4
push edi
call esi
push eax
call fcn.004048cd
pop ecx
mov dword [0x4a8cb8], eax
mov eax, dword [0x4a8cb8]
cmp eax, ebx
je 0x40680d
cmp dword [0x4a8cbc], ebx
je 0x40680d
push eax
call fcn.00404948
push dword [0x4a8cbc]
mov esi, eax
call fcn.00404948
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40680d
test edi, edi
je 0x40680d
call esi
test eax, eax
je 0x406804
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406804
test byte [ebp - 0xc], 1
jne 0x40680d
or dword [ebp + 0x10], 0x200000
jmp 0x406846
mov eax, dword [0x4a8cb0]
cmp eax, ebx
je 0x406846
push eax
call fcn.00404948
pop ecx
test eax, eax
je 0x406846
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406846
mov eax, dword [0x4a8cb4]
cmp eax, ebx
je 0x406846
push eax
call fcn.00404948
pop ecx
test eax, eax
je 0x406846
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a8cac]
call fcn.00404948
pop ecx
test eax, eax
je 0x406866
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406868
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10006f8d
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jge 0x10006faf
mov eax, 0xfffffffd
jmp 0x10007094
mov ebx, dword [0x101571a4]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x1000705d
mov ebx, dword [0x101571a4]
add ebx, 4
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 6
jne 0x10006ffe
mov ebx, dword [0x101571a4]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 2
jne 0x10006ffe
mov eax, 1
jmp 0x10007003
mov eax, 0
test eax, eax
je 0x1000702f
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x10007018
mov eax, dword [ebp + 8]
call dword fs:[0xc0]
nop
nop
leave
ret 4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x101571a4]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x1000708a
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x10007094
mov esp, ebp
pop ebp
ret 4

Function at 0x1000729b
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x1000734e
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]

Function at 0x10007cd2
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.1000729b
test eax, eax
je 0x10007d15
xor eax, eax
xchg dword [ebp + 8], eax
cmp eax, 0xffff
jle 0x10007d15
cmp word [eax], 0x5a4d
jne 0x10007d15
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x10007d15
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.1000736d
mov eax, dword [ebp + 8]
jmp 0x10007d2e
mov esp, ebp
pop ebp
ret 4
Function at 0x10021f60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100d8ee0
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.100cdd42
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.10024c90
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x10021fb4
jmp dword [ecx*4 + 0x1002211c]
mov al, byte [esi]
test al, al
je 0x10021fe2
cmp al, 0x20
je 0x10021fce
cmp al, 0xa1
jne 0x10021fe2
cmp byte [esi + 1], al
jne 0x10021fe2
test al, 0x80
je 0x10021fda
mov al, byte [esi + 1]
inc esi
test al, al
je 0x10021fe2
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10021fc1
test ecx, ecx
je case.default.0x10021fb4
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x10021fb4
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x10022028
cmp dl, 0xa1
jne 0x1002201c
cmp byte [eax + 1], 0xa1
jne 0x1002201c
test ecx, ecx
jne 0x10022014
mov edi, eax
mov ecx, 1
inc eax
jmp 0x1002203c
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x10022056
jmp 0x1002203c
cmp dl, 0x20
jne 0x1002203a
test ecx, ecx
jne 0x10022033
mov edi, eax
mov ecx, 1
jmp 0x1002203c
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x10021ffc
cmp ecx, 1
jne case.default.0x10021fb4
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10021fb4
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10021fb4
mov al, byte [esi]
test al, al
je 0x100220ae
test al, 0x80
mov byte [esp + 0x3c], al
je 0x10022094
mov cl, byte [esi + 1]
test cl, cl
je 0x100220ae
cmp al, 0xa1
jne 0x10022084
cmp cl, al
je 0x10022091
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.10024f20
inc esi
jmp 0x100220a6
cmp al, 0x20
je 0x100220a6
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.10024f60
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1002206d
push 0
lea ecx, [esp + 0x14]
call fcn.10024f60
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10035ac0
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x100220e1
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x101149d0
call fcn.10024e90
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.100cdcd4
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x1002cef0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x100d984b
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.100cda49
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x1002cf72
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.100cb52a
mov eax, dword [eax]
push 0x10134d94
push eax
call fcn.100bc7c4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.100cdcd4
test bl, bl
je 0x1002cf72
push 0x10134d94
lea ecx, [esp + 0xc]
call fcn.100ce064
push 0x10134da0
lea ecx, [esp + 0xc]
call fcn.100ce064
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 0x1002cfae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.100cdcd4
jmp 0x1002d079
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 0x1002d032
lea edx, [esp + 0x7c]
push 0x10134d9c
push edx
call fcn.100bc7c4
add esp, 8
test eax, eax
je 0x1002d032
lea eax, [esp + 0x7c]
push 0x10134d98
push eax
call fcn.100bc7c4
add esp, 8
test eax, eax
je 0x1002d032
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 0x1002cfc2
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.100cdcd4
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 0x1002d870
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 0x1002d8d2
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 0x1002d8e0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x100d98cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x10152628]
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 0x1002da18
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x1002d946
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.100cdcd4
xor eax, eax
jmp 0x1002da8f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.100cde11
push esi
lea ecx, [esp + 0xc]
call fcn.100ce0a0
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x10134dd4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x1002da6d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.1002d870
test eax, eax
jne 0x1002da6d
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 closesocket
mov ecx, edi
call fcn.1002d870
test eax, eax
jne 0x1002da6d
lea eax, [esp + 0x14]
push 0x10134db0
push eax
call fcn.100bd840
mov esi, eax
add esp, 8
test esi, esi
jne 0x1002da4c
lea ecx, [esp + 0x14]
push 0x10134dac
push ecx
call fcn.100bd7c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x1002da4c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x1002da4f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.100cddc1
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x1002d95e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.100cdcd4
xor eax, eax
jmp 0x1002da8f
mov byte [esi], 0
push 0x10134da8
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.100cdcd4
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 0x10041a90
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 0x10041afe
cmp si, 0x69
ja 0x10041afe
add esi, 0xffd0
cmp si, 0x11
je 0x10041ace
push 0x11
call edi
test ax, ax
jge 0x10041ace
or esi, 0x2000
cmp si, 0x10
je 0x10041ae3
push 0x10
call edi
test ax, ax
jge 0x10041ae3
or esi, 0x4000
cmp si, 0x12
je 0x10041af8
push 0x12
call edi
test ax, ax
jge 0x10041af8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x10041b0b
mov esi, 0xbd
jmp 0x10041abf
cmp si, 0x6e
jne 0x10041b18
mov esi, 0xbe
jmp 0x10041abf
cmp si, 0x6f
jne 0x10041ab9
mov esi, 0xbf
jmp 0x10041abf

Function at 0x10043460
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x10163940]
xor edx, edx
cmp eax, edx
jne 0x10043486
xor eax, eax
mov byte [eax + 0x10163840], al
inc eax
cmp eax, 0x100
jl 0x1004346e
mov dword [0x10163940], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x10163840
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x10043517
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 0x100434ea
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 0x100434b8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x10043520
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 0x10043573
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 0x1004355a
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