joyce8/EMBER2024-capa huggingface dataset:
Function at 0x593a67
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x593ae4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x593ac0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x593ad0
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0xffffffff
pop esi
je 0x59e30e
mov eax, dword [ebp - 8]
leave
ret
Function at 0x594267
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [0x5ab00c], esi
jne 0x5942be
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x592c6f
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x5ab00c], eax
cmp eax, esi
je 0x59e4ec
push 0xffffffffffffffff
push dword [0x5ab014]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x5ab014]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [0x5ab018], esi
jl 0x59e50a
pop esi
leave
ret

Function at 0x594441
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x594498
call fcn.00592712
xor eax, eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x594490
cmp ecx, 0xffffffff
je 0x594490
and dword [ebp - 4], eax
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0x594489
mov edx, dword [ecx + 0x3c]
test edx, edx
jl 0x594489
cmp edx, 0x10000000
jae 0x594489
lea eax, [edx + ecx]
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x59e892
mov dword [ebp - 4], 0xfffffffe
call fcn.00592757
ret 4

Function at 0x59681f
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x5ab004]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, ecx
inc eax
cmp dword [esi + 0x2c], 0
jne 0x596933
push edi
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x105
push edi
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x420], eax
cmp eax, edi
ja 0x59ed16
lea eax, [ebp - 0x41c]
push eax
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.005921cb
test eax, eax
jl 0x596932
mov ecx, dword [ebp - 0x420]
cmp word [ebp + ecx*2 - 0x210], 0x5c
je 0x5968c3
push 0x596994
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.00592436
test eax, eax
jl 0x596932
push 0x596980
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.00592436
test eax, eax
jl 0x596932
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x2c], eax
test eax, eax
je 0x59ed20
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x596970
push eax
call edi
push 0x59695c
push dword [esi + 0x2c]
mov dword [esi + 0x30], eax
call edi
push 0x596948
push dword [esi + 0x2c]
mov dword [esi + 0x34], eax
call edi
cmp dword [esi + 0x30], 0
mov dword [esi + 0x38], eax
je 0x596940
cmp dword [esi + 0x34], 0
je 0x596940
test eax, eax
je 0x596940
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005920d4
leave
ret
mov eax, 0x8007007f
jmp 0x596932
Function at 0x5971f8
Capabilities:
Identify system language via api

Disassembly:
push 0x2c
mov eax, 0x5a608c
call fcn.005939dd
lea ecx, [ebp - 0x34]
call fcn.00596c55
and dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
push 0
call fcn.0059758b
test eax, eax
jl 0x59722c
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.005972a7
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx esi, ax
mov eax, 0x409
mov edi, 0x597298
cmp ax, si
jne 0x59e4b4
and esi, 0x3ff
push esi
push edi
lea eax, [ebp - 0x30]
push 8
push eax
call fcn.00591451
add esp, 0x10
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0059758b
mov esi, eax
test esi, esi
jl 0x597280
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.005972a7
mov esi, eax
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
call fcn.0059760b
mov eax, esi
call fcn.00592b9f
ret

Function at 0x59791d
Capabilities:
Identify system language via api

Disassembly:
lea eax, [ebp - 0x30]
push eax
call esi
push 8
pop eax
push dword [ebp + 0x10]
mov word [ebp - 0x30], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x59dc4f
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 0x82
lea edx, [ebp - 0x30]
push edx
push 0x597900
push eax
call dword [ecx + 0x10]
mov esi, eax
lea eax, [ebp - 0x30]
push eax
call edi
cmp esi, ebx
jl 0x5979a8
push 1
lea ecx, [ebp - 0x20]
call fcn.005979e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x20]
push edx
push 0x5978ec
push eax
call dword [ecx + 0x10]
mov esi, eax
lea eax, [ebp - 0x20]
push eax
call edi
push eax
call fcn.005971e0
cmp esi, ebx
jl 0x5979a8
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
push 3
movzx eax, ax
pop ecx
mov word [ebp - 0x20], cx
mov dword [ebp - 0x18], eax
jmp 0x597992
push 0x24
mov eax, 0x5a5c85
call fcn.005926dd
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x20]
push eax
call esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
mov dword [ebp - 0x10], ebx
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp + 0xc], ebx
je 0x597854
push 1
lea ecx, [ebp - 0x20]
call fcn.005979e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x20]
push edx
push 0x593984
push eax
call dword [ecx + 0x10]
cmp eax, ebx
jl 0x5979a6
push 3
pop eax
mov word [ebp - 0x20], ax
mov dword [ebp - 0x18], 0x409
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x20]
push edx
push 0x5979d0
push eax
call dword [ecx + 0x10]
mov esi, eax
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.00597455
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20]
push eax
call edi
push eax
call fcn.005971e0
mov eax, esi
call fcn.00591390
ret 0xc
Function at 0x597b05
Capabilities:
Identify system language via api

Disassembly:
push 0x50
mov eax, 0x5a5fc0
call fcn.005939dd
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x5c], ecx
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x54], esi
call fcn.00597c2b
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x58]
mov ebx, eax
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, si
jne 0x597b34
sub eax, ecx
sar eax, 1
mov edi, eax
je 0x597b63
movzx eax, word [ebx + esi*2]
push eax
call dword [sym.imp.msvcrt.dll_iswxdigit]
pop ecx
test eax, eax
je 0x597b5b
inc esi
cmp esi, edi
jb 0x597b46
cmp esi, edi
jb 0x597c0e
xor eax, eax
mov edx, ebx
test edi, edi
jbe 0x597c0e
cmp word [edx], 0x30
jne 0x597b7c
inc eax
inc edx
inc edx
cmp eax, edi
jb 0x597b6f
cmp eax, edi
jae 0x597c0e
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x597b89
sub eax, esi
sar eax, 1
cmp eax, 3
ja 0x597c0e
push 0x10
push 0
push edx
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
movzx esi, ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
cmp cx, si
jne 0x597c03
movzx eax, ax
movzx eax, ax
push eax
push 0x597c18
lea eax, [ebp - 0x50]
push 0x20
push eax
call fcn.00591451
mov ecx, dword [ebp - 0x5c]
add esp, 0x10
lea eax, [ebp - 0x50]
push eax
call fcn.00596c60
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
call fcn.0059760b
mov eax, dword [ebp - 0x54]
call fcn.00592b9f
ret 8
or esi, 0x400
movzx eax, si
jmp 0x597bc6
mov dword [ebp - 0x54], 0x80041001
jmp 0x597be9
Function at 0x597f3e
Capabilities:
Create directory

Disassembly:
push 0x10
mov eax, 0x5a6a7d
call fcn.00591350
mov dword [ebp - 0x1c], ecx
xor esi, esi
mov ebx, 0x8007000e
mov dword [ebp - 0x14], esi
cmp dword [ebp + 8], esi
je 0x598046
push 1
call fcn.0059227c
mov dword [ebp - 0x18], eax
cmp eax, esi
je 0x59803c
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call esi
push dword [ebp + 8]
mov edi, eax
call esi
lea esi, [eax + edi + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005913e0
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x597fcd
push dword [ebp - 0x18]
inc edi
push edi
push eax
call fcn.005921cb
mov ebx, eax
test ebx, ebx
jl 0x598024
push dword [ebp + 8]
push esi
push dword [ebp - 0x14]
call fcn.00592436
mov ebx, eax
test ebx, ebx
jl 0x598024
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0x598024
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x597ff6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x59f33c
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0x598024
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x44], eax
cmp eax, 0xffffffff
je 0x59f353
cmp dword [ebp - 0x14], 0
je 0x598033
push dword [ebp - 0x14]
call fcn.005913c0
pop ecx
push dword [ebp - 0x18]
call fcn.005913c0
pop ecx
mov eax, ebx
call fcn.00591390
ret 4
mov ebx, 0x80070057
jmp 0x59803c

Function at 0x5985f1
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x5ab004]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x44]
test eax, eax
je 0x598684
cmp eax, 0xffffffff
je 0x598684
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x598684
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
and dword [ebp - 0xc], 0
push ebx
call esi
push ebx
mov dword [ebp - 0x10], eax
call esi
lea esi, [eax + eax + 2]
mov eax, esi
call fcn.005985b5
mov eax, esp
push esi
push ebx
push eax
call fcn.00598692
mov esi, dword [ebp - 0x10]
mov edi, dword [edi + 0x44]
push 0
lea ecx, [ebp - 0xc]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x59f2da
cmp esi, dword [ebp - 0xc]
jne 0x59f2f6
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920d4
leave
ret 4
mov dword [ebp - 8], 0x80070057
jmp 0x59866d
Function at 0x5988ef
Capabilities:
Get geographical location

Disassembly:
push 0x210
mov eax, 0x5a6be9
call fcn.005920e6
xor eax, eax
push 0x1fe
mov word [ebp - 0x214], ax
xor ebx, ebx
lea eax, [ebp - 0x212]
push ebx
push eax
call sub.msvcrt.dll_memset
mov esi, dword [ebp + 8]
add esp, 0xc
push 0x100
lea eax, [ebp - 0x214]
push eax
push 0x1001
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [ebp - 0x214]
and esi, 0x3ff
push eax
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x218], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add esi, 7
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005913e0
mov edi, eax
pop ecx
cmp edi, ebx
je 0x598999
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x21c]
push 0x5989a4
push esi
push edi
call fcn.00591451
add esp, 0x14
mov eax, edi
call fcn.00592126
ret 4
Function at 0x5a0d7d
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
push edi
lea eax, [ecx + eax + 0x18]
test esi, esi
jbe 0x5a0dba
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x5a0db2
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x5a0dbc
inc edx
add eax, 0x28
cmp edx, esi
jb 0x5a0da2
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1a12a4c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1a12a56
pushal
call 0x1a12a5c
pop ebp
sub ebp, 0x10
sub ebp, 0xa12a4c
jmp 0x1a12a72
mov eax, 0xa12a4c
add eax, ebp
add eax, 0x4c
mov ecx, 0x5df
mov edx, 0xd308e61e
xor byte [eax], dl
inc eax
dec ecx
jne 0x1a12a89
jmp 0x1a12a9c
xchg ebp, eax
rcl dword [ebp + 0x1e1e2297], cl
push ds
lahf
invalid
Function at 0x100245e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100d53c0
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.100ca3a2
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.10027f60
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x10024634
jmp dword [ecx*4 + 0x1002479c]
mov al, byte [esi]
test al, al
je 0x10024662
cmp al, 0x20
je 0x1002464e
cmp al, 0xa1
jne 0x10024662
cmp byte [esi + 1], al
jne 0x10024662
test al, 0x80
je 0x1002465a
mov al, byte [esi + 1]
inc esi
test al, al
je 0x10024662
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10024641
test ecx, ecx
je case.default.0x10024634
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x10024634
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x100246a8
cmp dl, 0xa1
jne 0x1002469c
cmp byte [eax + 1], 0xa1
jne 0x1002469c
test ecx, ecx
jne 0x10024694
mov edi, eax
mov ecx, 1
inc eax
jmp 0x100246bc
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x100246d6
jmp 0x100246bc
cmp dl, 0x20
jne 0x100246ba
test ecx, ecx
jne 0x100246b3
mov edi, eax
mov ecx, 1
jmp 0x100246bc
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x1002467c
cmp ecx, 1
jne case.default.0x10024634
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10024634
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10024634
mov al, byte [esi]
test al, al
je 0x1002472e
test al, 0x80
mov byte [esp + 0x3c], al
je 0x10024714
mov cl, byte [esi + 1]
test cl, cl
je 0x1002472e
cmp al, 0xa1
jne 0x10024704
cmp cl, al
je 0x10024711
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.100281f0
inc esi
jmp 0x10024726
cmp al, 0x20
je 0x10024726
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.10028230
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x100246ed
push 0
lea ecx, [esp + 0x14]
call fcn.10028230
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10032920
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x10024761
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x1010ee00
call fcn.10028160
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.100ca334
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x1002d320
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x100d599b
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.100ca0a9
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x1002d3a2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.100c7a07
mov eax, dword [eax]
push 0x101f0d08
push eax
call fcn.100ad4d4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.100ca334
test bl, bl
je 0x1002d3a2
push 0x101f0d08
lea ecx, [esp + 0xc]
call fcn.100ca6c4
push 0x101f0d14
lea ecx, [esp + 0xc]
call fcn.100ca6c4
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 0x1002d3de
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.100ca334
jmp 0x1002d4a9
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 0x1002d462
lea edx, [esp + 0x7c]
push 0x101f0d10
push edx
call fcn.100ad4d4
add esp, 8
test eax, eax
je 0x1002d462
lea eax, [esp + 0x7c]
push 0x101f0d0c
push eax
call fcn.100ad4d4
add esp, 8
test eax, eax
je 0x1002d462
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 0x1002d3f2
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.100ca334
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 0x1002dca0
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 0x1002dd02
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 0x1002dd10
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x100d5a1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x10205c60]
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 0x1002de48
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x1002dd76
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.100ca334
xor eax, eax
jmp 0x1002debf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.100ca471
push esi
lea ecx, [esp + 0xc]
call fcn.100ca700
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 0x1002de9d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.1002dca0
test eax, eax
jne 0x1002de9d
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.1002dca0
test eax, eax
jne 0x1002de9d
lea eax, [esp + 0x14]
push 0x101f0d24
push eax
call fcn.100ae620
mov esi, eax
add esp, 8
test esi, esi
jne 0x1002de7c
lea ecx, [esp + 0x14]
push 0x101f0d20
push ecx
call fcn.100ae5a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x1002de7c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x1002de7f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.100ca421
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x1002dd8e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.100ca334
xor eax, eax
jmp 0x1002debf
mov byte [esi], 0
push 0x101f0d1c
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.100ca334
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 0x1003e890
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 0x1003e8fe
cmp si, 0x69
ja 0x1003e8fe
add esi, 0xffd0
cmp si, 0x11
je 0x1003e8ce
push 0x11
call edi
test ax, ax
jge 0x1003e8ce
or esi, 0x2000
cmp si, 0x10
je 0x1003e8e3
push 0x10
call edi
test ax, ax
jge 0x1003e8e3
or esi, 0x4000
cmp si, 0x12
je 0x1003e8f8
push 0x12
call edi
test ax, ax
jge 0x1003e8f8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x1003e90b
mov esi, 0xbd
jmp 0x1003e8bf
cmp si, 0x6e
jne 0x1003e918
mov esi, 0xbe
jmp 0x1003e8bf
cmp si, 0x6f
jne 0x1003e8b9
mov esi, 0xbf
jmp 0x1003e8bf

Function at 0x100402a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x10216688]
xor edx, edx
cmp eax, edx
jne 0x100402c6
xor eax, eax
mov byte [eax + 0x10216588], al
inc eax
cmp eax, 0x100
jl 0x100402ae
mov dword [0x10216688], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x10216588
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x10040357
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 0x1004032a
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 0x100402f8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x10040360
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 0x100403b3
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 0x1004039a
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