joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4775e4
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, eax
mov eax, ebx
mov edx, 0x477664
call fcn.00404ba0
mov eax, 0x47766c
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x10
xor eax, eax
push ebp
push 0x47764e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00402b48
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetComputerNameA
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0040a0e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477655
mov eax, dword [ebp - 4]
call fcn.00402b78
ret

Function at 0x481f78
Capabilities:
Stop service

Disassembly:
push ebx
add esp, 0xffffffe4
mov ebx, eax
push esp
push 1
mov eax, dword [ebx + 8]
push eax
call sub.advapi32.dll_ControlService
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x1c
pop ebx
ret

Function at 0x481fac
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
xor edx, edx
push ebp
push 0x481fe5
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x20]
push edx
mov eax, dword [eax + 8]
push eax
call sub.advapi32.dll_QueryServiceStatus
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x481fef
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x48201c
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
call fcn.00404ffc
xor eax, eax
push ebp
push 0x4820ee
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
push 2
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], esi
test esi, esi
je 0x4820d8
xor eax, eax
push ebp
push 0x4820d1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
call fcn.0040500c
push eax
push 1
push 2
push 0x10
push 0xf01ff
mov eax, dword [ebp - 8]
push eax
push edi
push esi
call sub.advapi32.dll_CreateServiceA
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 8], ebx
test ebx, ebx
je 0x4820ad
push ebx
call sub.advapi32.dll_CloseServiceHandle
mov byte [ebp - 9], 1
jmp 0x4820b7
push ebx
call sub.advapi32.dll_CloseServiceHandle
mov byte [ebp - 9], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4820d8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4820f5
lea eax, [ebp + 8]
call fcn.00404b4c
ret
Function at 0x482aec
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x482b75
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4a0fa0
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x482b5f
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040c8ec
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x482b8c
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x49f364]
mov dl, 1
mov eax, dword [0x4822f0]
call fcn.0040d220
call fcn.004044c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482b7c
lea eax, [ebp - 0x1c]
call fcn.00404b4c
ret

Function at 0x48321c
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.00483140
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403ee8
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x483280
call fcn.00482a34
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x483272
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403ee8
pop esi
pop ebx
ret

Function at 0x4832a4
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.0040500c
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.0040357c
test ebx, ebx
je 0x4832ef
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret
Function at 0x4833cc
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4833fd
mov ecx, dword [0x49f1d8]
mov dl, 1
mov eax, dword [0x4822f0]
call fcn.0040d1e4
call fcn.004044c0
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x48342a
mov ecx, dword [0x49f104]
mov dl, 1
mov eax, dword [0x4822f0]
call fcn.0040d1e4
call fcn.004044c0
xor eax, eax
push ebp
push 0x4834a6
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00403ee8
cmp byte [ebp + 8], 0
je 0x483482
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00483334
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.0048321c
jmp 0x48349c
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00482d20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4834c3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4836a4
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00482fdc
xor eax, eax
push ebp
push 0x483815
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x4837ff
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x4836ef
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4836f9
call fcn.0040456c
jmp 0x48381c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041f3e0
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x4837f4
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x4837a7
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x483794
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403ee8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.0048365c
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x483828]
cmp dl, byte [eax + 0x28]
je 0x4837fb
call fcn.0040d108
jmp 0x4837fb
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041f400
jmp 0x4837fb
cmp ecx, ebx
jge 0x4837c3
mov eax, dword [ebp - 0xc]
add eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041f400
jmp 0x4836f9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041f3e0
cmp edx, dword [esp + 4]
jne 0x4837e3
cmp eax, dword [esp]
pop edx
pop eax
jne 0x4836f9
push ebp
call fcn.0048365c
pop ecx
jmp 0x4837fb
push ebp
call fcn.0048365c
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48381c
mov eax, dword [ebp - 4]
call fcn.00482fe8
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48382c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48394e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00482fdc
xor eax, eax
push ebp
push 0x483931
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x48387c
call fcn.0040456c
jmp 0x483938
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x48391b
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x48391b
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403ee8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x48391b
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040c8ec
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x483968
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x49f364]
mov dl, 1
mov eax, dword [0x4822f0]
call fcn.0040d220
call fcn.004044c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483938
mov eax, dword [ebp - 4]
call fcn.00482fe8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483955
lea eax, [ebp - 0x28]
call fcn.00404b4c
ret
Function at 0x4839b4
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x483afe
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00482fdc
xor eax, eax
push ebp
push 0x483ae1
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x483a19
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x483a19
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x483acb
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x483a2c
call fcn.0040456c
jmp 0x483ae8
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x483acb
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x483acb
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403ee8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x483acb
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040c8ec
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x483b18
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x49f364]
mov dl, 1
mov eax, dword [0x4822f0]
call fcn.0040d220
call fcn.004044c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483ae8
mov eax, dword [ebp - 4]
call fcn.00482fe8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483b05
lea eax, [ebp - 0x28]
call fcn.00404b4c
ret
Function at 0x48b5e8
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x48b5f0
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x48b7e2
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x48b7f8
mov eax, esi
call fcn.00489f08
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00404ba0
lea ecx, [ebp - 0x10]
mov edx, 0x48b80c
mov eax, esi
call fcn.00489f08
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00404ba0
lea ecx, [ebp - 0x14]
mov edx, 0x48b824
mov eax, esi
call fcn.00489f08
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00404ba0
lea ecx, [ebp - 0x18]
mov edx, 0x48b840
mov eax, esi
call fcn.00489f08
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00404ba0
lea ecx, [ebp - 0x1c]
mov edx, 0x48b85c
mov eax, esi
call fcn.00489f08
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00404ba0
lea ecx, [ebp - 0x24]
mov edx, 0x48b874
mov eax, esi
call fcn.00489f08
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.004091b0
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.0040974c
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x48b88c
mov eax, esi
call fcn.00489f08
mov eax, dword [ebp - 0x28]
call fcn.0046e530
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x48b89c
mov eax, esi
call fcn.00489f08
mov eax, dword [ebp - 0x2c]
call fcn.0046e530
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x48b8b4
mov eax, esi
call fcn.00489f08
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.0040974c
inc eax
je 0x48b785
lea ecx, [ebp - 0x34]
mov edx, 0x48b8b4
mov eax, esi
call fcn.00489f08
mov eax, dword [ebp - 0x34]
call fcn.00409710
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040af0c
fstp qword [ebp - 0x3c]
wait
call fcn.0040b2a8
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x48b7a0
lea ecx, [ebp - 0x40]
mov edx, 0x48b8b4
mov eax, esi
call fcn.00489f08
mov eax, dword [ebp - 0x40]
call fcn.0046e530
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x48b8c4
mov eax, esi
call fcn.00489f08
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00404ba0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48b7e9
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404b70
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404b70
ret
Function at 0x492574
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4925ce
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.00492564
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.0046d19c
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.0046cd9c
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4925d5
lea eax, [ebp - 4]
call fcn.00404b4c
ret

Function at 0x4971e4
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov esi, edx
xor eax, eax
push ebp
push 0x497322
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4972f8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
call fcn.00404b4c
lea eax, [ebp - 0x1c]
call fcn.00477670
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
mov eax, dword [ebp - 0x1c]
call fcn.0040500c
push eax
mov eax, dword [ebp - 0x18]
call fcn.0040500c
push eax
call sub.advapi32.dll_LookupAccountNameA
mov ebx, eax
test ebx, ebx
jne 0x4972d7
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x7a
jne 0x4972d7
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00405198
mov eax, dword [ebp - 8]
call fcn.00408ea4
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
call fcn.0040500c
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.0040500c
push eax
mov eax, dword [ebp - 0x18]
call fcn.0040500c
push eax
call sub.advapi32.dll_LookupAccountNameA
mov ebx, eax
test ebx, ebx
jne 0x4972cb
mov eax, dword [ebp - 4]
call fcn.00402b78
xor eax, eax
mov dword [ebp - 4], eax
call fcn.0040e83c
jmp 0x4972dc
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.00497008
jmp 0x4972dc
call fcn.0040e83c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4972ff
cmp dword [ebp - 4], 0
je 0x4972f7
mov eax, dword [ebp - 4]
call fcn.00402b78
ret

Function at 0x498bdc
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
add esp, 0xfffff7fc
mov ebx, edx
mov esi, eax
push 0x800
lea eax, [esp + 4]
push eax
mov eax, esi
call fcn.0040500c
push eax
call sub.kernel32.dll_GetEnvironmentVariableA
test eax, eax
jbe 0x498c0e
mov edx, ebx
mov eax, esp
call fcn.0040a0e0
jmp 0x498c15
mov eax, ebx
call fcn.00404b4c
add esp, 0x804
pop esi
pop ebx
ret
Function at 0x49b0c4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49b1e9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x49b120
inc ebx
xor esi, esi
lea ecx, [ebp - 0x1c]
mov edx, esi
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.00404e0c
inc eax
add dword [ebp - 0x18], eax
inc esi
dec ebx
jne 0x49b103
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
call fcn.00402b48
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x49b1c7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x49b184
inc ebx
xor esi, esi
lea ecx, [ebp - 0x20]
mov edx, esi
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x20]
call fcn.0040500c
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_lstrcpyA
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_lstrlenA_1
inc eax
add dword [ebp - 0x10], eax
inc esi
dec ebx
jne 0x49b154
mov eax, dword [ebp - 0x10]
mov byte [eax], 0
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 7
push 0
mov eax, dword [ebp - 4]
call fcn.0040500c
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
push eax
call sub.kernel32.dll_SetLastError
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b1ce
mov eax, dword [ebp - 0x14]
call fcn.00402b78
ret
Function at 0x49b660
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.00404b4c
mov dl, 1
mov eax, dword [0x43a7f4]
call fcn.0043a8f4
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x49b755
push dword fs:[edx]
mov dword fs:[edx], esp
mov al, byte [ebx + 0x370]
test al, al
je 0x49b6db
cmp dword [ebx + 0x368], 6
jne 0x49b6db
cmp dword [ebx + 0x36c], 2
jl 0x49b6db
mov edx, 0x80000002
mov eax, dword [ebp - 4]
call fcn.0043a9d0
xor ecx, ecx
mov edx, 0x49b76c
mov eax, dword [ebp - 4]
call fcn.0043aa34
test al, al
je 0x49b73f
mov ecx, esi
mov edx, 0x49b7b8
mov eax, dword [ebp - 4]
call fcn.0043ac1c
jmp 0x49b73f
test al, al
je 0x49b710
mov edx, 0x80000001
mov eax, dword [ebp - 4]
call fcn.0043a9d0
xor ecx, ecx
mov edx, 0x49b76c
mov eax, dword [ebp - 4]
call fcn.0043aa34
test al, al
je 0x49b73f
mov ecx, esi
mov edx, 0x49b7d0
mov eax, dword [ebp - 4]
call fcn.0043ac1c
jmp 0x49b73f
mov edx, 0x80000001
mov eax, dword [ebp - 4]
call fcn.0043a9d0
xor ecx, ecx
mov edx, 0x49b76c
mov eax, dword [ebp - 4]
call fcn.0043aa34
test al, al
je 0x49b73f
mov ecx, esi
mov edx, 0x49b7d0
mov eax, dword [ebp - 4]
call fcn.0043ac1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b75c
mov eax, dword [ebp - 4]
call fcn.00403ce0
ret
Function at 0x10001180
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
jmp 0x10001198
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jae 0x100011eb
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
jmp 0x100011b9
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jae 0x100011dc
mov eax, dword [ebp - 8]
shr eax, 1
mov ecx, dword [ebp - 8]
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
xor eax, ecx
mov dword [ebp - 8], eax
jmp 0x100011b0
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx*4 + 0x100b9340], eax
jmp 0x1000118f
jmp 0x100011f6
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x800
jae 0x1000122e
mov edx, dword [ebp - 4]
mov eax, dword [edx*4 + 0x100b8f40]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
and ecx, 0xff
mov edx, dword [ebp - 0x10]
shr edx, 8
xor edx, dword [ecx*4 + 0x100b9340]
mov eax, dword [ebp - 4]
mov dword [eax*4 + 0x100b9340], edx
jmp 0x100011ed
mov dword [0x100b7fd4], fcn.10001250
call fcn.10007cb0
test eax, eax
jne 0x1000124b
mov dword [0x100b7fd4], 0x10001360
mov esp, ebp
pop ebp
ret

Function at 0x10002490
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100b2370]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
jne 0x100024b5
xor eax, eax
jmp 0x1000253d
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
cmp dword [ebp - 0xc], 0x400000
jbe 0x100024d0
mov dword [ebp - 0x10], 0x400000
jmp 0x100024d6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], 0
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 8]
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
cmp dword [ebp - 0x18], 0
jne 0x1000252d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1000253d
cmp dword [ebp - 8], 0
jne 0x10002535
jmp 0x1000253b
cmp dword [ebp - 0xc], 0
ja 0x100024be
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10048fad
mov esp, ebp
pop ebp
ret