joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4654f0
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5880f0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5d723c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 4], 0
test edi, edi
jne 0x465556
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x46565e
movzx eax, ax
or eax, 0x80070000
jmp 0x46565e
push 0x24
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 1
test esi, esi
jne 0x46558e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
test eax, eax
jle 0x465647
movzx eax, ax
or eax, 0x80070000
mov dword [ebp - 0x30], eax
jmp 0x465647
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x28], xmm0
movq qword [ebp - 0x18], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4655ff
mov eax, dword [ebp - 0x28]
cmp eax, 1
je 0x465640
cmp eax, 3
je 0x465602
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x14], 0
push eax
xorps xmm0, xmm0
push 1
push esi
movups xmmword [ebp - 0x2c], xmm0
movq qword [ebp - 0x1c], xmm0
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4655ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
test eax, eax
jle 0x465647
movzx eax, ax
or eax, 0x80070000
mov dword [ebp - 0x30], eax
jmp 0x465647
mov eax, dword [ebp - 0x28]
cmp eax, 1
je 0x465640
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebp - 0x28], 1
mov edi, eax
je 0x46563d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x1f40
jae 0x465679
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x28], 1
jne 0x465615
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x30], 0
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x465658
push esi
call eax
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005126ae
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x28], 1
je 0x46563d
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x30], 0x800705b4
jmp 0x465647
Function at 0x465690
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
mov edi, edx
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x4656c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x46571e
pop edi
movzx eax, ax
pop esi
or eax, 0x80070000
pop ebx
pop ebp
ret
push 0
push 0
push 0x5c4854
push 0
push 0
push dword [ebp + 8]
push 1
push 2
push dword [ebp + 0xc]
push 0xf01ff
push edi
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x465714
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x465719
movzx edi, di
push esi
or edi, 0x80070000
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
push eax
xor edi, edi
call ebx
push esi
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x47b240
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0x9e3779b9
mov dword [ebp - 0x10], 0
jmp 0x47b277
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x10
jge 0x47b2fa
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
shl eax, 4
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebp + 0x10]
add eax, dword [ecx + edx]
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
xor eax, edx
mov ecx, dword [ebp - 8]
shr ecx, 5
mov edx, 4
shl edx, 0
mov esi, dword [ebp + 0x10]
add ecx, dword [esi + edx]
xor eax, ecx
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
shl eax, 4
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp + 0x10]
add eax, dword [edx + ecx]
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0xc]
xor eax, ecx
mov edx, dword [ebp - 4]
shr edx, 5
mov ecx, 4
imul ecx, ecx, 3
mov esi, dword [ebp + 0x10]
add edx, dword [esi + ecx]
xor eax, edx
add eax, dword [ebp - 8]
mov dword [ebp - 8], eax
jmp 0x47b26e
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov dword [edx], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x47b310
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0x9e3779b9
mov ecx, dword [ebp - 0x14]
shl ecx, 4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], 0
jmp 0x47b350
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0x10
jge 0x47b3db
mov eax, dword [ebp - 4]
shl eax, 4
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp + 0x10]
add eax, dword [edx + ecx]
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0xc]
xor eax, ecx
mov edx, dword [ebp - 4]
shr edx, 5
mov ecx, 4
imul ecx, ecx, 3
mov esi, dword [ebp + 0x10]
add edx, dword [esi + ecx]
xor eax, edx
mov edx, dword [ebp - 8]
sub edx, eax
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
shl eax, 4
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebp + 0x10]
add eax, dword [ecx + edx]
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
xor eax, edx
mov ecx, dword [ebp - 8]
shr ecx, 5
mov edx, 4
shl edx, 0
mov esi, dword [ebp + 0x10]
add ecx, dword [esi + edx]
xor eax, ecx
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x14]
mov dword [ebp - 0xc], edx
jmp 0x47b347
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
mov dword [edx], eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47b480
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov byte [eax + 0x68], 0
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx + 0x10], 0
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx + 0x10], 0
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx], 0x67452301
mov eax, 4
shl eax, 0
mov ecx, dword [ebp - 4]
mov dword [ecx + eax], 0xefcdab89
mov edx, 4
shl edx, 1
mov eax, dword [ebp - 4]
mov dword [eax + edx], 0x98badcfe
mov ecx, 4
imul edx, ecx, 3
mov eax, dword [ebp - 4]
mov dword [eax + edx], 0x10325476
mov esp, ebp
pop ebp
ret

Function at 0x4853e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x200]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
mov cl, byte [eax + 0x208]
mov byte [ebp - 1], cl
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
jmp 0x485428
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x14]
add eax, dword [ebp - 0x10]
cmp dword [ebp - 8], eax
jae 0x4854af
movzx ecx, byte [ebp - 8]
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx + ecx]
movzx ecx, byte [ebp - 1]
add ecx, eax
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 8]
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + edx]
mov byte [ebp - 2], cl
movzx edx, byte [ebp - 1]
movzx eax, byte [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp - 0xc]
mov dl, byte [esi + edx]
mov byte [ecx + eax], dl
movzx eax, byte [ebp - 1]
mov ecx, dword [ebp - 0xc]
mov dl, byte [ebp - 2]
mov byte [ecx + eax], dl
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 8]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + edx]
movzx eax, byte [ebp - 1]
mov esi, dword [ebp - 0xc]
movzx eax, byte [esi + eax]
add edx, eax
movzx edx, dl
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + edx]
xor ecx, edx
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 8]
mov byte [eax], cl
jmp 0x48541f
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [ecx + 0x200], edx
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 1]
mov byte [eax + 0x208], cl
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4854d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x204]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 8]
add edx, 0x100
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
mov cl, byte [eax + 0x209]
mov byte [ebp - 1], cl
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
jmp 0x48551e
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x14]
add eax, dword [ebp - 0x10]
cmp dword [ebp - 8], eax
jae 0x4855a5
movzx ecx, byte [ebp - 8]
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx + ecx]
movzx ecx, byte [ebp - 1]
add ecx, eax
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 8]
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + edx]
mov byte [ebp - 2], cl
movzx edx, byte [ebp - 1]
movzx eax, byte [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp - 0xc]
mov dl, byte [esi + edx]
mov byte [ecx + eax], dl
movzx eax, byte [ebp - 1]
mov ecx, dword [ebp - 0xc]
mov dl, byte [ebp - 2]
mov byte [ecx + eax], dl
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 8]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + edx]
movzx eax, byte [ebp - 1]
mov esi, dword [ebp - 0xc]
movzx eax, byte [esi + eax]
add edx, eax
movzx edx, dl
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + edx]
xor ecx, edx
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 8]
mov byte [eax], cl
jmp 0x485515
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [ecx + 0x204], edx
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 1]
mov byte [eax + 0x209], cl
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4858c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov byte [ebp - 2], 0
jmp 0x4858d3
mov al, byte [ebp - 2]
add al, 1
mov byte [ebp - 2], al
movzx ecx, byte [ebp - 2]
cmp ecx, 4
jge 0x485939
mov byte [ebp - 1], 0
jmp 0x4858eb
mov dl, byte [ebp - 1]
add dl, 1
mov byte [ebp - 1], dl
movzx eax, byte [ebp - 1]
cmp eax, 4
jge 0x485937
movzx ecx, byte [ebp - 2]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx*4]
movzx ecx, byte [ebp - 1]
movzx edx, byte [ebp + 8]
shl edx, 2
movzx esi, byte [ebp - 2]
shl esi, 2
lea edx, [esi + edx*4]
movzx esi, byte [ebp - 1]
add esi, dword [ebp + 0x10]
movzx edx, byte [esi + edx]
movzx eax, byte [eax + ecx]
xor eax, edx
movzx ecx, byte [ebp - 1]
movzx edx, byte [ebp - 2]
mov esi, dword [ebp + 0xc]
lea edx, [esi + edx*4]
mov byte [edx + ecx], al
jmp 0x4858e2
jmp 0x4858cb
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x485940
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
mov byte [ebp - 2], 0
jmp 0x485952
mov al, byte [ebp - 2]
add al, 1
mov byte [ebp - 2], al
movzx ecx, byte [ebp - 2]
cmp ecx, 4
jge 0x4859a0
mov byte [ebp - 1], 0
jmp 0x48596a
mov dl, byte [ebp - 1]
add dl, 1
mov byte [ebp - 1], dl
movzx eax, byte [ebp - 1]
cmp eax, 4
jge 0x48599e
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx*4]
movzx ecx, byte [ebp - 2]
movzx edx, byte [eax + ecx]
movzx eax, byte [ebp - 1]
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax*4]
movzx ecx, byte [ebp - 2]
mov dl, byte [edx + str.cw]
mov byte [eax + ecx], dl
jmp 0x485961
jmp 0x48594a
mov esp, ebp
pop ebp
ret

Function at 0x486910
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
mov byte [ebp - 2], 0
jmp 0x486922
mov al, byte [ebp - 2]
add al, 1
mov byte [ebp - 2], al
movzx ecx, byte [ebp - 2]
cmp ecx, 4
jge 0x486970
mov byte [ebp - 1], 0
jmp 0x48693a
mov dl, byte [ebp - 1]
add dl, 1
mov byte [ebp - 1], dl
movzx eax, byte [ebp - 1]
cmp eax, 4
jge 0x48696e
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx*4]
movzx ecx, byte [ebp - 2]
movzx edx, byte [eax + ecx]
movzx eax, byte [ebp - 1]
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax*4]
movzx ecx, byte [ebp - 2]
mov dl, byte [edx + 0x5bea60]
mov byte [eax + ecx], dl
jmp 0x486931
jmp 0x48691a
mov esp, ebp
pop ebp
ret

Function at 0x486cf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov byte [ebp - 1], 0
jmp 0x486d02
mov al, byte [ebp - 1]
add al, 1
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
cmp ecx, 0x10
jge 0x486d2f
movzx edx, byte [ebp - 1]
movzx eax, byte [ebp - 1]
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ecx + eax]
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
xor edx, eax
movzx eax, byte [ebp - 1]
mov ecx, dword [ebp + 8]
mov byte [ecx + eax], dl
jmp 0x486cfa
mov esp, ebp
pop ebp
ret
Function at 0x487c00
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
mov ebx, ecx
lea esi, [edx + 1]
push edi
mov dword [ebp - 0x24], ebx
xor edi, edi
nop word [eax + eax]
movzx edx, byte [esi - 1]
lea esi, [esi + 4]
movzx eax, byte [esi - 4]
shl edx, 8
or edx, eax
movzx eax, byte [esi - 3]
shl edx, 8
or edx, eax
movzx eax, byte [esi - 2]
shl edx, 8
or edx, eax
mov dword [ebp + edi*4 - 0x128], edx
inc edi
cmp edi, 0x10
jb 0x487c20
cmp edi, 0x40
jae 0x487c9f
mov ebx, 0x40
lea eax, [ebp + edi*4 - 0x130]
sub ebx, edi
mov edx, dword [eax]
lea eax, [eax + 4]
mov esi, dword [eax - 0x38]
mov edi, edx
mov ecx, edx
rol edi, 0xf
rol ecx, 0xd
xor edi, ecx
shr edx, 0xa
xor edi, edx
mov ecx, esi
mov edx, esi
ror ecx, 7
rol edx, 0xe
xor edx, ecx
shr esi, 3
xor edx, esi
add edi, edx
add edi, dword [eax - 0x3c]
add edi, dword [eax - 0x18]
mov dword [eax + 4], edi
sub ebx, 1
jne 0x487c62
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx + 0x50]
xor edx, edx
mov dword [ebp - 0x28], eax
mov edi, eax
mov eax, dword [ebx + 0x54]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x58]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x5c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x60]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x64]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x68]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x6c]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edx
nop dword [eax]
mov esi, ebx
mov eax, ebx
rol eax, 7
mov ecx, ebx
ror esi, 0xb
not ecx
and ecx, dword [ebp - 0xc]
xor esi, eax
mov eax, ebx
ror eax, 6
xor esi, eax
mov eax, dword [ebp - 8]
and eax, ebx
xor ecx, eax
mov eax, edi
add esi, ecx
rol eax, 0xa
add esi, dword [edx + 0x5bee88]
add esi, dword [ebp + edx - 0x128]
mov edx, edi
add esi, dword [ebp - 0x1c]
ror edx, 0xd
xor edx, eax
mov eax, edi
ror eax, 2
xor edx, eax
mov eax, dword [ebp - 0x10]
mov ecx, eax
and eax, edi
xor ecx, edi
and ecx, dword [ebp - 4]
xor ecx, eax
mov eax, dword [ebp - 0xc]
add edx, ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
mov ecx, edi
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 0x14]
lea edi, [edx + esi]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x20]
add ebx, esi
mov eax, dword [ebp - 4]
add edx, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], edx
cmp edx, 0x100
jb 0x487ce0
mov eax, dword [ebp - 0x28]
add eax, edi
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x24]
pop edi
pop esi
add dword [ebx + 0x54], ecx
mov dword [ebx + 0x50], eax
mov eax, dword [ebp - 4]
add dword [ebx + 0x58], eax
mov eax, dword [ebp - 0x14]
add dword [ebx + 0x5c], eax
mov eax, dword [ebp - 0x18]
add dword [ebx + 0x60], eax
mov eax, dword [ebp - 8]
add dword [ebx + 0x64], eax
mov eax, dword [ebp - 0xc]
add dword [ebx + 0x68], eax
mov eax, dword [ebp - 0x1c]
add dword [ebx + 0x6c], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x487db0
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
lea eax, [ebp - 0x210]
push esi
mov esi, ecx
push 0x104
push eax
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x487ddf
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
push 0x5c4af8
push eax
call fcn.00531614
add esp, 8
test eax, eax
je 0x487dfd
xor ecx, ecx
mov word [eax + 2], cx
push 0
push 0
push 0
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x487dd8
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x487e40
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58a238
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
push 0x100
mov dword [ebp - 0x1c], edi
call fcn.0051293a
mov esi, eax
add esp, 4
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x80
push eax
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x44
push eax
push ebx
push edi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edi, eax
test edi, edi
jne 0x487f0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x487f0d
cmp dword [ebp - 0x14], 0x44
jbe 0x487ebe
xor bl, bl
jmp 0x487f12
mov eax, dword [ebp - 0x10]
cmp eax, 0x80
jbe 0x487ef2
xor ecx, ecx
mov edx, 2
mul edx
mov edi, esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0051293a
add esp, 4
mov esi, eax
test edi, edi
je 0x487ef2
push edi
call fcn.00512935
add esp, 4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp - 0x1c]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edi, eax
test edi, edi
setne bl
test esi, esi
je 0x487f1f
push esi
call fcn.00512935
add esp, 4
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x489880
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58a465
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push ebx
push esi
push edi
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x18]
mov ebx, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
push eax
push 0
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x13], 0
mov byte [ebp - 0xf], 0
mov dword [ebp - 0x18], 0
call ebx
mov esi, dword [ebp - 0x18]
push esi
call fcn.0051293a
mov edi, eax
add esp, 4
test edi, edi
je 0x4898ef
push esi
push 0
push edi
call fcn.00518c00
add esp, 0xc
mov byte [edi], 0
jmp 0x4898f1
xor edi, edi
mov dword [ebp - 4], 1
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 2
test edi, edi
je 0x489955
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
push edi
call ebx
test eax, eax
jne 0x489955
mov byte [ebp - 4], 0xc
mov esi, edi
mov byte [ebp - 4], 2
mov ebx, dword [ebp - 0x14]
lea ecx, [esi + 8]
call fcn.00489590
mov ecx, eax
cmp ecx, 1
je 0x489935
test ecx, ecx
jne 0x48994d
mov ax, word [esi + 0x198]
mov ebx, dword [esi + 0x194]
mov dword [ebp - 0x14], ebx
mov word [ebp - 0x10], ax
test ecx, ecx
je 0x489958
mov esi, dword [esi]
test esi, esi
jne 0x489922
jmp 0x489958
mov ebx, dword [ebp - 0x14]
push 0x200
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00518c00
mov eax, dword [ebp - 0x10]
shr eax, 8
movzx eax, al
push eax
movzx eax, byte [ebp - 0x10]
push eax
mov eax, ebx
shr eax, 0x18
push eax
mov eax, ebx
shr ebx, 8
shr eax, 0x10
movzx eax, al
push eax
movzx eax, bl
push eax
movzx eax, byte [ebp - 0x14]
push eax
lea eax, [ebp - 0x220]
push str._02X__02X__02X__02X__02X__02X
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [ebp + 8]
xor eax, eax
add esp, 0x2c
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x220], ax
jne 0x4899cd
xor ecx, ecx
jmp 0x4899e5
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4899d6
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x220]
mov ecx, esi
push eax
call fcn.004082b0
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xf
test edi, edi
je 0x489a13
push edi
mov byte [ebp - 4], 0xf
call fcn.00512935
add esp, 4
mov byte [ebp - 4], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x48b940
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x5d723c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0
push 0
sub esp, 8
mov dword [ebp - 0x38], esi
mov edx, esp
mov dword [edx], edi
test edi, edi
jne 0x48b96f
xor ecx, ecx
jmp 0x48b98c
cmp byte [edi], 0
jne 0x48b978
xor ecx, ecx
jmp 0x48b98c
mov ecx, edi
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x48b980
sub ecx, esi
mov esi, dword [ebp - 0x38]
lea eax, [ebp - 0x1c]
mov dword [edx + 4], ecx
push eax
call fcn.004225d0
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x48b9a3
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x1c]
mov ebx, eax
call fcn.00407c40
test ebx, ebx
jne 0x48b9cd
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005126ae
mov esp, ebp
pop ebp
ret 8
test esi, esi
je 0x48ba76
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0051293a
add esp, 4
mov esi, eax
push ebx
push esi
sub esp, 8
mov edx, esp
mov dword [edx], edi
test edi, edi
je 0x48ba19
cmp byte [edi], 0
jne 0x48ba08
xor edi, edi
jmp 0x48ba19
lea ecx, [edi + 1]
nop dword [eax + eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x48ba10
sub edi, ecx
lea eax, [ebp - 0x1c]
mov dword [edx + 4], edi
push eax
call fcn.004225d0
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x48ba30
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x1c]
call fcn.00407c40
push esi
lea ecx, [ebp - 0x1c]
call fcn.00407c80
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x34]
call fcn.004224d0
mov ecx, dword [ebp - 0x38]
push eax
call fcn.00407e80
lea ecx, [ebp - 0x34]
call fcn.00407e40
lea ecx, [ebp - 0x1c]
call fcn.00407c40
test esi, esi
je 0x48ba76
push esi
call fcn.00488a30
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005126ae
mov esp, ebp
pop ebp
ret 8