joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004248
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x10004267
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
nop
cmp dword [ebp - 8], esp
je 0x1000428e
push 0x19
push 0x40254af
push 6
call fcn.1001d972
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x100042a5
mov eax, 0
jmp 0x100042e1
push 0x80000301
push 0
push 0x10
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc4
call fcn.10020070
add esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
mov eax, 0
setne al
jmp 0x100042e1
mov esp, ebp
pop ebp
ret 4

Function at 0x10004744
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
nop
cmp dword [ebp - 4], esp
je 0x1000477b
push 0x12
push 0x402485d
push 6
call fcn.1001d972
add esp, 0xc
jmp 0x10004780
mov esp, ebp
pop ebp
ret 4

Function at 0x10004786
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
jne 0x100047d8
mov dword [ebp - 0xc], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x100047d0
push 0x4f
push 0x40248f8
push 6
call fcn.1001d972
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x10004811
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
push 0
push 1
xor eax, eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x1000480e
push 0x7d
push 0x40248f8
push 6
call fcn.1001d972
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10004825
mov eax, 0
jmp 0x1000488d
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10004856
push 0x10b
push 0x40248f8
push 6
call fcn.1001d972
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10004885
push 0x12f
push 0x40248f8
push 6
call fcn.1001d972
add esp, 0xc
mov eax, dword [ebp - 8]
jmp 0x1000488d
mov esp, ebp
pop ebp
ret 8

Function at 0x10004893
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
nop
nop
cmp dword [ebp - 4], esp
je 0x100048d2
push 0x12
push 0x4024846
push 6
call fcn.1001d972
add esp, 0xc
jmp 0x100048d7
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10005514
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 4
push 1
mov ebx, 0x184
call fcn.1001df60
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10005559
push ebx
call fcn.1001d96c
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 4
push dword [ebp - 4]
push 0x23
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
nop
nop
cmp dword [ebp - 8], esp
je 0x10005598
push 0x36
push 0x4024fdf
push 6
call fcn.1001d972
add esp, 0xc
push SysStringLen
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x100055ab
mov eax, 0x1004020b
push eax
push 1
mov ebx, 0x9dc
call fcn.1001e100
add esp, 0x10
jmp 0x100055c3
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x100055d4
push ebx
call fcn.1001d96c
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x10005b55
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push reloc.OLEAUT32.dll_SysStringLen
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x9dc
call fcn.1001e100
add esp, 0x10
mov dword [ebp - 4], eax
push dword [ebp + 0x14]
call fcn.10005bd4
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
push 0
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10005bc9
push 0x60
push 0x4024949
push 6
call fcn.1001d972
add esp, 0xc
jmp 0x10005bce
mov esp, ebp
pop ebp
ret 0x14
Function at 0x1000967c
Capabilities:
Get networking parameters

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], esp
lea eax, [ebp - 4]
push eax
push 0
xor eax, eax
call dword [sym.imp.iphlpapi.dll_GetNetworkParams]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x100096d3
push 0
push 0x4024ee6
push 6
call fcn.1001d972
add esp, 0xc
mov dword [ebp - 0x14], esp
push dword [ebp - 4]
push 0x40
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x10009704
push 0x3c
push 0x4024ee6
push 6
call fcn.1001d972
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], esp
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.iphlpapi.dll_GetNetworkParams]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x10009737
push 0x79
push 0x4024ee6
push 6
call fcn.1001d972
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x100097c0
push 0x80000301
push 0
push 0x84
push 0x80000301
push 0
push dword [ebp - 8]
push 2
mov ebx, 0x910
call fcn.10020020
add esp, 0x1c
mov dword [ebp - 0x14], eax
push VariantCopy
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x10009782
mov eax, 0x1004021d
push eax
push 1
mov ebx, 0x168
call fcn.1001e580
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x100097a8
push ebx
call fcn.1001d96c
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x100097bc
push ebx
call fcn.1001d96c
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x100097ec
push 0x123
push 0x4024ee6
push 6
call fcn.1001d972
add esp, 0xc
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10009808
push eax
mov ebx, eax
call fcn.100010bd
inc eax
push eax
call fcn.1001d966
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x1000980d
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1000981e
push ebx
call fcn.1001d96c
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x10009823
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax]
test esi, esi
jne 0x10009848
xor eax, eax
jmp 0x1000984d
mov eax, dword [esi + 4]
add eax, eax
mov dword [ebp - 8], eax
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x184
call fcn.1001df60
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10009883
push ebx
call fcn.1001d96c
add esp, 4
pop eax
mov dword [ebp - 4], eax
test esi, esi
je 0x10009890
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x100098e5
lea edx, [esi + 8]
mov dword [ebp - 0x14], 0x33323130
mov dword [ebp - 0x10], 0x37363534
mov dword [ebp - 0xc], 0x42413938
mov dword [ebp - 8], 0x46454443
test edx, edx
je 0x100098e5
test eax, eax
je 0x100098e5
lea esi, [edx + ecx]
cmp edx, esi
jae 0x100098e5
nop
movzx ecx, byte [edx]
shr ecx, 4
inc edx
movzx ecx, byte [ebp + ecx - 0x14]
mov byte [eax], cl
movzx ecx, byte [edx - 1]
and ecx, 0xf
lea eax, [eax + 2]
movzx ecx, byte [ebp + ecx - 0x14]
mov byte [eax - 1], cl
cmp edx, esi
jb 0x100098c1
pop esi
mov eax, dword [ebp - 4]
leave
ret 4
Function at 0x100106e7
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push VariantCopy
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x1001072f
mov eax, 0x1004021d
push eax
push 1
mov ebx, 0x194
call fcn.10020000
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 8
jge 0x10010754
jmp 0x100108dc
push dword [ebp + 8]
call fcn.10004068
mov dword [ebp - 8], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fadd qword [0x10040245]
fstp qword [ebp - 0x28]
mov dword [ebp - 0x2c], esp
fld qword [ebp - 0x28]
call fcn.100018c1
push eax
push 0x40
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x100107a8
push 0x129
push 0x4025448
push 6
call fcn.1001d972
add esp, 0xc
mov dword [ebp - 0xc], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fsub qword [0x10040245]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.100018c1
push eax
lea eax, [ebp - 0x10]
mov ebx, eax
mov ecx, 0
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x100108ad
fild dword [ebp - 8]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild dword [ebp - 0x10]
fstp qword [ebp - 0x28]
fadd qword [ebp - 0x28]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.100018c1
push eax
call fcn.10002e23
mov word [ebp - 0x14], ax
cmp word [ebp - 0x14], 0
jne 0x1001084b
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x10010841
push 0x222
push 0x4025448
push 6
call fcn.1001d972
add esp, 0xc
jmp 0x100108ad
cmp word [ebp - 0x14], 0x5c
jne 0x10010894
cmp dword [ebp - 0x18], 0
jle 0x10010891
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x10010891
push 0x2c3
push 0x4025448
push 6
call fcn.1001d972
add esp, 0xc
inc dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call fcn.100108e2
pop ebx
pop ecx
pop edx
add ecx, 2
jmp 0x100107d1
add esp, 0xc
mov dword [ebp - 0x1c], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x100108dc
push 0x374
push 0x4025448
push 6
call fcn.1001d972
add esp, 0xc
mov esp, ebp
pop ebp
ret 4
Function at 0x10011517
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x1001155a
push 0x19
push 0x4025466
push 6
call fcn.1001d972
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10011571
mov eax, 0x1004021d
jmp 0x10011620
inc dword [ebp - 4]
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fmul qword [0x10040245]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
call fcn.100018c1
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x1bc
call fcn.1001ffd0
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x100115bf
push ebx
call fcn.1001d96c
add esp, 4
pop eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.10004068
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10011601
push 0x136
push 0x4025466
push 6
call fcn.1001d972
add esp, 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x1001161b
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.1001d966
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x10011620
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10011631
push ebx
call fcn.1001d96c
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x10018a6a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
push 0x40
push 0x1000
push dword [ebp + 8]
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
cmp dword [ebp - 4], esp
je 0x10018aae
push 0x12
push 0x40241d9
push 6
call fcn.1001d972
add esp, 0xc
jmp 0x10018ab3
mov esp, ebp
pop ebp
ret 4
Function at 0x1001de50
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x10042d60]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x108], ecx
lea eax, [ecx - 1]
cmp eax, 0xa
ja 0x1001de7d
mov edx, dword [ecx*4 + 0x10042b24]
lea eax, [ebp - 0x108]
mov eax, dword [eax - 4]
test eax, eax
je 0x1001debb
push esi
mov esi, 0xc483
cmp si, word [eax]
pop esi
jne 0x1001debb
cmp byte [eax + 2], 0xc
jl 0x1001debb
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push dword [ebp + 0xc]
push edx
push ecx
push 0x100384f4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
jmp 0x1001ded2
push edx
push ecx
lea eax, [ebp - 0x104]
push str.program_internal_error_number_is__d.__r_n_s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, dword [0x10043690]
test eax, eax
je 0x1001df0b
cmp dword [0x100436a4], 0
jne 0x1001df0b
lea ecx, [ebp - 0x104]
mov dword [0x100436a4], 1
push ecx
push dword [ebp - 0x108]
call eax
mov dword [0x100436a4], 0
test eax, eax
jne 0x1001df21
push 0x10
push str.error
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.1001dab0
cmp dword [0x10043688], 0
jne 0x1001df37
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, 0
mov ebp, dword [0x1004368c]
mov esp, dword [0x10043688]
sub esp, 4
ret
Function at 0x1001e8c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push dword [ebp + 0xc]
call fcn.10024560
mov esi, dword [ebp + 0x18]
mov edi, eax
push esi
mov dword [ebp - 8], edi
xor ebx, ebx
call dword [0x10042d58]
add esp, 8
test edi, edi
je 0x1001e9e9
test eax, eax
je 0x1001e9e9
inc eax
push eax
call fcn.10024c45
mov edx, eax
mov dword [ebp - 0x10], eax
add esp, 4
sub edx, esi
mov cl, byte [esi]
lea esi, [esi + 1]
mov byte [edx + esi - 1], cl
test cl, cl
jne 0x1001e906
push 0x5c
push eax
call fcn.100260c0
mov edi, eax
add esp, 8
test edi, edi
je 0x1001e927
mov byte [edi], bl
inc edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1001e9da
push 0x400
mov dword [ebp - 4], 0x400
mov dword [ebp - 8], 1
call fcn.10024c45
add esp, 4
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1001e9a8
cmp eax, 0xea
jne 0x1001e9c8
push esi
call fcn.10024c4e
push dword [ebp - 4]
call fcn.10024c45
add esp, 8
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001e975
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x1001e9b5
cmp eax, 2
jne 0x1001e9c8
push esi
call dword [0x10042d58]
push eax
push esi
call fcn.10024520
add esp, 0xc
mov ebx, eax
push esi
call fcn.10024c4e
add esp, 4
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call fcn.10024c4e
add esp, 4
test ebx, ebx
jne 0x1001ea0e
cmp dword [ebp + 0x2c], 0
je 0x1001ea0e
mov esi, dword [ebp + 0x24]
test esi, esi
je 0x1001ea0e
push esi
call dword [0x10042d58]
push eax
push esi
call fcn.10024520
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001fe10
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x18]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop ebp
ret

Function at 0x10020270
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100202dc
push esi
push edi
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [esi + 8]
push ecx
call fcn.1001dcc0
add esp, 4
mov edi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
lea ecx, [edi + 8]
mov dword [edi], 1
push ecx
push ebx
mov dword [edi + 4], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10021360
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, 1
lea eax, [ecx - 1]
cmp ecx, edi
jle 0x1002142b
cmp eax, 8
jb 0x10021418
and eax, 0x80000007
jns 0x10021390
dec eax
or eax, 0xfffffff8
inc eax
mov edx, ecx
xorps xmm5, xmm5
sub edx, eax
xorps xmm4, xmm4
lea eax, [ebp + 0x30]
nop dword [eax]
movd xmm2, dword [eax + 0xc]
lea eax, [eax + 0x60]
movd xmm0, dword [eax - 0x60]
add edi, 8
movd xmm1, dword [eax - 0x6c]
movd xmm3, dword [eax - 0x78]
punpckldq xmm3, xmm0
movd xmm0, dword [eax - 0x30]
punpckldq xmm1, xmm2
movd xmm2, dword [eax - 0x24]
punpckldq xmm3, xmm1
movd xmm1, dword [eax - 0x3c]
pxor xmm5, xmm3
movd xmm3, dword [eax - 0x48]
punpckldq xmm3, xmm0
punpckldq xmm1, xmm2
punpckldq xmm3, xmm1
pxor xmm4, xmm3
cmp edi, edx
jl 0x100213a0
pxor xmm4, xmm5
movaps xmm0, xmm4
psrldq xmm0, 8
pxor xmm4, xmm0
movups xmm0, xmm4
psrldq xmm0, 4
pxor xmm4, xmm0
movd edx, xmm4
xor esi, edx
cmp edi, ecx
jge 0x1002142b
lea eax, [edi + edi*2]
sub ecx, edi
lea eax, [ebp + eax*4 + 0xc]
xor esi, dword [eax]
lea eax, [eax + 0xc]
sub ecx, 1
jne 0x10021421
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x10022de0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
mov dword [ebp - 4], ecx
cmp ecx, 0xffffffff
je 0x10022e6f
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, 1
mov dword [ebp - 8], 1
cmp ebx, esi
jle 0x10022e5f
push edi
lea edi, [ebp + 0x18]
mov eax, dword [edi]
lea edx, [ebp - 0xc]
push 0
push edx
push dword [eax + 4]
add eax, 8
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
test eax, eax
je 0x10022e57
inc esi
add edi, 0xc
cmp esi, ebx
jl 0x10022e21
pop edi
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 8], 0
pop edi
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10022e80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
cmp dword [ebp + 0x2c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], 1
je case.0x10022ebb.2
mov eax, dword [ebp + 0x24]
dec eax
cmp eax, 5
ja case.0x10022ebb.2
jmp dword [eax*4 + 0x10022f3c]
xor eax, eax
jmp 0x10022ee7
mov eax, 2
jmp 0x10022ee7
mov eax, 3
jmp 0x10022ee7
mov eax, 4
jmp 0x10022ee7
mov eax, 7
jmp 0x10022ee7
mov eax, 5
push edi
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push dword [ebp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
test edi, edi
je 0x10022f36
cmp dword [ebp + 0x18], 0
je 0x10022f22
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10023720
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
push edi
xor edi, edi
mov bh, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
cmp dword [ebp + 0xc], edi
jle 0x10023789
push esi
nop dword [eax]
inc bh
movzx esi, bh
mov bl, byte [esi + eax]
add dl, bl
mov byte [ebp + 0x13], dl
movzx edx, dl
movzx ecx, byte [edx + eax]
mov byte [esi + eax], cl
mov byte [edx + eax], bl
movzx ecx, byte [esi + eax]
mov edx, dword [ebp + 8]
add cl, bl
movzx ecx, cl
movzx ecx, byte [ecx + eax]
xor byte [edi + edx], cl
inc edi
mov dl, byte [ebp + 0x13]
cmp edi, dword [ebp + 0xc]
jl 0x10023740
pop esi
mov cl, dl
mov byte [eax + 0x100], bh
pop edi
mov byte [eax + 0x101], cl
pop ebx
pop ebp
ret
pop edi
mov byte [eax + 0x100], bh
mov byte [eax + 0x101], dl
pop ebx
pop ebp
ret
Function at 0x100239f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10042d60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x104]
push 0x100
push 0
push eax
mov dword [ebp - 0x108], edi
mov dword [ebp - 0x10c], 0
call fcn.10025f60
mov esi, edi
lea eax, [ebp - 0x104]
mov edi, dword [ebp + 0xc]
add esp, 0xc
xor ebx, ebx
sub esi, eax
nop
mov eax, ebx
lea ecx, [ebp - 0x104]
cdq
add ecx, ebx
idiv dword [ebp + 0x10]
mov byte [esi + ecx], bl
inc ebx
mov al, byte [edx + edi]
mov byte [ecx], al
cmp ebx, 0x100
jl 0x10023a40
mov edi, dword [ebp - 0x108]
lea ebx, [ebp - 0x104]
mov esi, edi
mov dword [ebp - 0x108], 0x100
sub ebx, edi
nop dword [eax]
mov dl, byte [esi]
movzx eax, byte [ebx + esi]
add eax, dword [ebp - 0x10c]
movzx ecx, dl
add ecx, eax
and ecx, 0x800000ff
jns 0x10023aa1
dec ecx
or ecx, 0xffffff00
inc ecx
mov al, byte [edi + ecx]
mov byte [esi], al
inc esi
sub dword [ebp - 0x108], 1
mov dword [ebp - 0x10c], ecx
mov byte [edi + ecx], dl
jne 0x10023a80
mov ecx, dword [ebp - 4]
mov word [edi + 0x100], 0
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10024c34
mov esp, ebp
pop ebp
ret