joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10014ed0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a2c40
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x100d00b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, edx
mov dword [ebp - 0x18], esi
mov edi, ecx
push 0x1000
mov dword [ebp - 0x14], 0
call fcn.1007530d
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x10015027
push 0x1000
push 0
push eax
call fcn.1006fa30
add esp, 0xc
mov dword [ebp - 4], 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x10014f77
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._GetLocAdCache__InternetOpen_fail_error___p__r_n
call fcn.10005e90
add esp, 8
mov dword [ebp - 0x24], str.error3
lea eax, [ebp - 0x24]
push 0x100ce598
push eax
call fcn.1006fc0b
push 0
push 0
push 0
push 0
push edi
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x10014fb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._GetLocAdCache__InternetOpenUrl_fail_error___p__r_n
call fcn.10005e90
add esp, 8
mov dword [ebp - 0x28], str.error2
lea eax, [ebp - 0x28]
push 0x100ce598
push eax
call fcn.1006fc0b
mov dword [ebp - 0x1c], 0
xor edi, edi
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [esi]
push 0x1000
add eax, edi
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x10015050
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._GetLocAdCache__InternetReadFile_fail_error___p__r_n
call fcn.10005e90
add esp, 8
mov dword [ebp - 0x2c], str.error1
lea eax, [ebp - 0x2c]
push 0x100ce598
push eax
call fcn.1006fc0b
mov eax, 0x1001500a
ret
mov eax, dword [esi]
test eax, eax
je 0x10015036
push eax
call fcn.100752f2
add esp, 4
mov dword [esi], 0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1c]
add edi, eax
test eax, eax
jne 0x1001507b
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
push dword [ebp - 0x20]
call esi
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x1000]
push eax
push dword [esi]
call fcn.100754dd
push 0x1000
mov dword [esi], eax
add eax, edi
push 0
push eax
call fcn.1006fa30
add esp, 0x14
jmp 0x10014fc2
Function at 0x100279d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
push 0x78
push 0
push 0
mov ebx, dword [edi + 0x10]
push dword [ebx + 0x10]
mov eax, dword [ebx + 0xc]
call eax
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10027aad
add dword [ebx + 0x44], 0x78
mov edx, edi
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx + 0x1c]
mov dword [esi], eax
movzx eax, byte [ecx + 0x14]
mov dword [ecx + 0x1c], esi
and al, 3
mov byte [esi + 5], al
mov ecx, esi
mov byte [esi + 4], 8
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
xor eax, eax
mov dword [esi + 0x20], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x36], 0x1000000
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x30], 0
mov word [esi + 0x34], ax
mov byte [esi + 6], al
mov dword [esi + 0x14], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x74], eax
mov dword [esi + 0x50], eax
call fcn.100277f0
mov eax, dword [edi + 0x48]
mov dword [esi + 0x48], eax
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x4c], eax
mov eax, dword [edi + 0x50]
mov dword [esi + 0x50], eax
movzx eax, byte [edi + 0x38]
mov byte [esi + 0x38], al
mov ecx, dword [edi + 0x3c]
mov dword [esi + 0x3c], ecx
mov eax, dword [edi + 0x44]
mov dword [esi + 0x44], eax
mov eax, esi
pop edi
mov dword [esi + 0x40], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, 4
mov ecx, edi
call fcn.10028190
int3
Function at 0x10029370
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov dword [esp + 0x10], edx
mov eax, ecx
mov edx, dword [ebp + 8]
mov ebx, edx
mov edi, edx
mov dword [esp + 0x14], eax
shr edi, 5
mov esi, edx
inc edi
cmp edx, edi
jb 0x100293c2
mov edx, dword [esp + 0x10]
nop dword [eax + eax]
movzx ecx, byte [edx + esi - 1]
mov eax, ebx
shl eax, 5
sub esi, edi
add ecx, eax
mov eax, ebx
shr eax, 2
add ecx, eax
xor ebx, ecx
cmp esi, edi
jae 0x100293a0
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
dec ecx
and ecx, ebx
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x10029434
cmp dword [edi + 0xc], edx
jne 0x1002942e
mov eax, dword [ebp + 8]
lea esi, [edi + 0x10]
mov edx, dword [esp + 0x10]
sub eax, 4
jb 0x100293f9
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x100293fe
add edx, 4
add esi, 4
sub eax, 4
jae 0x100293e8
cmp eax, 0xfffffffc
je 0x1002944d
mov cl, byte [edx]
cmp cl, byte [esi]
jne 0x1002942b
cmp eax, 0xfffffffd
je 0x1002944d
mov cl, byte [edx + 1]
cmp cl, byte [esi + 1]
jne 0x1002942b
cmp eax, 0xfffffffe
je 0x1002944d
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
jne 0x1002942b
cmp eax, 0xffffffff
je 0x1002944d
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x1002944d
mov edx, dword [ebp + 8]
mov edi, dword [edi]
test edi, edi
jne 0x100293d4
mov ecx, dword [esp + 0x14]
push ebx
push edx
mov edx, dword [esp + 0x18]
call fcn.100292c0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x14]
mov al, byte [edi + 5]
mov ecx, dword [esi + 0x10]
movzx edx, byte [ecx + 0x14]
not edx
movzx ecx, al
and edx, ecx
test dl, 3
je 0x1002946c
xor al, 3
mov byte [edi + 5], al
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100347a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100d00b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
mov dword [ebp - 0x20c], 0
push esi
mov dword [ebp - 0x214], eax
mov ebx, edx
mov dword [ebp - 0x208], eax
mov esi, 0x200
lea eax, [ebp - 0x204]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x210], eax
lea ecx, [ebp - 0x210]
call fcn.100216c0
test eax, eax
je 0x100347fe
lea ecx, [ebp - 0x210]
call fcn.10021730
cmp esi, edi
lea eax, [ebp - 0x204]
push ebx
cmova esi, edi
push esi
push 1
push eax
call fcn.10080739
add dword [ebp - 0x210], eax
add esp, 0x10
sub edi, eax
je 0x10034824
cmp eax, esi
je 0x100347e4
lea ecx, [ebp - 0x210]
call fcn.100216c0
mov edx, dword [ebp - 0x20c]
mov ecx, dword [ebp - 0x208]
call fcn.10020540
test edi, edi
mov dword [ebp - 0x20c], 1
pop edi
pop esi
pop ebx
je 0x10034871
mov ecx, dword [ebp - 0x214]
or edx, 0xffffffff
call fcn.1001fd10
test eax, eax
jne 0x10034871
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006c2b1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.1006c2b1
mov esp, ebp
pop ebp
ret
Function at 0x10041f30
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb24
mov eax, dword [0x100d00b4]
xor eax, esp
mov dword [esp + 0xb20], eax
mov eax, dword [0x100fff2c]
mov ecx, eax
push ebx
inc eax
mov dword [0x100fff2c], eax
push esi
push edi
test ecx, ecx
jne 0x10042142
call fcn.100434a0
push 0x100ff0f6
push 0xc
call fcn.1006cf38
mov esi, eax
add esp, 8
test esi, esi
je 0x10041f99
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10040d90
mov dword [esi], eax
mov dword [esi + 8], 0
jmp 0x10041f9b
xor esi, esi
mov dword [0x100fff30], esi
test esi, esi
je 0x10042142
sub esp, 0x10
push 0
push 0x10046a90
call fcn.10041d20
sub esp, 0x10
push 0
push 0x10045ae0
call fcn.10041d20
lea eax, [esp + 0x718]
mov dword [esp + 0xc], 0
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1004202c
push 0x208
lea eax, [esp + 0x30c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1004202c
lea eax, [esp + 0x308]
push 0x5c
push eax
call fcn.1006f213
add esp, 8
test eax, eax
je 0x1004202c
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x308]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [esp + 0xc], eax
mov edi, 0x100baf24
mov ecx, dword [edi]
lea edx, [esp + 0x138]
sub edx, ecx
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x10042040
lea ecx, [esp + 0x138]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x10042055
mov eax, dword [str..fip]
mov dword [ecx], eax
mov ax, word [0x100bde90]
mov word [ecx + 4], ax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x13c]
push eax
call fcn.1007f250
mov ebx, eax
add esp, 8
cmp ebx, 0xffffffff
je 0x1004211e
mov ecx, dword [edi]
lea edx, [esp + 0x138]
sub edx, ecx
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x100420a0
push 0x1cc
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x140]
push eax
call fcn.10081670
add esp, 0xc
lea eax, [esp + 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x100420fe
push str._Init_8
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100420f7
sub esp, 0x10
push esi
push eax
call fcn.10041d20
jmp 0x100420fe
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.1007f26b
add esp, 8
cmp eax, 0xffffffff
jne 0x10042090
push ebx
call fcn.1007f22a
add esp, 4
add edi, 4
cmp edi, 0x100baf2c
jl 0x10042031
cmp dword [esp + 0xc], 0
je 0x10042142
lea eax, [esp + 0x718]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [esp + 0xb2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1006c2b1
mov esp, ebp
pop ebp
ret
Function at 0x1004b820
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
test ebx, ebx
jle 0x1004b88e
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ecx + 2]
movzx ecx, byte [edx]
test esi, esi
je 0x1004b85d
and ecx, 0xf
movzx ecx, byte [edi + ecx*4]
mov byte [eax - 2], cl
movzx ecx, byte [edx]
and ecx, 0xf
movzx ecx, byte [edi + ecx*4 + 1]
mov byte [eax - 1], cl
movzx ecx, byte [edx]
and ecx, 0xf
inc edx
jmp 0x1004b87b
shr ecx, 4
movzx ecx, byte [edi + ecx*4]
mov byte [eax - 2], cl
movzx ecx, byte [edx]
shr ecx, 4
movzx ecx, byte [edi + ecx*4 + 1]
mov byte [eax - 1], cl
movzx ecx, byte [edx]
shr ecx, 4
movzx ecx, byte [edi + ecx*4 + 2]
xor esi, 1
mov byte [eax], cl
add eax, 3
sub ebx, 1
jne 0x1004b835
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1004bf70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
test ebx, ebx
jle 0x1004bfe2
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ecx + 2]
movzx ecx, byte [edx]
test esi, esi
je 0x1004bfad
and ecx, 0xf
movzx ecx, byte [edi + ecx*4]
mov byte [eax - 2], cl
movzx ecx, byte [edx]
and ecx, 0xf
movzx ecx, byte [edi + ecx*4 + 1]
mov byte [eax - 1], cl
movzx ecx, byte [edx]
and ecx, 0xf
inc edx
jmp 0x1004bfcb
shr ecx, 4
movzx ecx, byte [edi + ecx*4]
mov byte [eax - 2], cl
movzx ecx, byte [edx]
shr ecx, 4
movzx ecx, byte [edi + ecx*4 + 1]
mov byte [eax - 1], cl
movzx ecx, byte [edx]
shr ecx, 4
movzx ecx, byte [edi + ecx*4 + 2]
xor esi, 1
mov byte [eax], cl
mov byte [eax + 1], 0xff
add eax, 4
sub ebx, 1
jne 0x1004bf85
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1004c1d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
test ebx, ebx
jle 0x1004c291
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ecx + 2]
nop dword [eax]
movzx ecx, byte [edx]
test esi, esi
je 0x1004c23c
and ecx, 0xf
movzx ecx, byte [edi + ecx*4]
mov byte [eax - 2], cl
movzx ecx, byte [edx]
and ecx, 0xf
movzx ecx, byte [edi + ecx*4 + 1]
mov byte [eax - 1], cl
movzx ecx, byte [edx]
and ecx, 0xf
movzx ecx, byte [edi + ecx*4 + 2]
mov byte [eax], cl
movzx ecx, byte [edx]
and ecx, 0xf
cmp ecx, dword [ebp + 0x14]
jge 0x1004c234
mov edi, dword [ebp + 0x10]
inc edx
movzx ecx, byte [ecx + edi]
mov edi, dword [ebp + 0xc]
jmp 0x1004c27e
mov ecx, 0xff
inc edx
jmp 0x1004c27e
shr ecx, 4
movzx ecx, byte [edi + ecx*4]
mov byte [eax - 2], cl
movzx ecx, byte [edx]
shr ecx, 4
movzx ecx, byte [edi + ecx*4 + 1]
mov byte [eax - 1], cl
movzx ecx, byte [edx]
shr ecx, 4
cmp dword [ebp + 0x14], 0
movzx ecx, byte [edi + ecx*4 + 2]
mov byte [eax], cl
jle 0x1004c279
movzx ecx, byte [edx]
mov edi, dword [ebp + 0x10]
shr ecx, 4
movzx ecx, byte [ecx + edi]
mov edi, dword [ebp + 0xc]
jmp 0x1004c27e
mov ecx, 0xff
mov byte [eax + 1], cl
xor esi, 1
add eax, 4
sub ebx, 1
jne 0x1004c1f0
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1004da60
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x100d00b4]
xor eax, esp
mov dword [esp + 0x1c], eax
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1004daaa
lea eax, [esp + 4]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x1004dabb
push dword [esp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1006c2b1
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 4]
push 0
push 0
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
push 0x10
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
push 0
push dword [esp + 0x14]
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1004daa1
mov ecx, dword [esp + 0x1c]
mov eax, 1
xor ecx, esp
call fcn.1006c2b1
mov esp, ebp
pop ebp
ret
Function at 0x10050050
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xdc
mov eax, dword [0x100d00b4]
xor eax, esp
mov dword [esp + 0xd8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0xd0
mov dword [esp + 0x10], eax
mov esi, edx
lea eax, [esp + 0x14]
mov edi, ecx
push 0
push eax
call fcn.1006fa30
push esi
mov edx, edi
mov dword [esp + 0x20], 0x67452301
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], 0xefcdab89
mov dword [esp + 0x28], 0x98badcfe
mov dword [esp + 0x2c], 0x10325476
mov dword [esp + 0x30], 0xc3d2e1f0
call fcn.1004fed0
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ebx
call fcn.1004ff90
mov ecx, dword [esp + 0xf8]
add esp, 0x14
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1006c2b1
mov esp, ebp
pop ebp
ret

Function at 0x100500f0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe4
mov eax, dword [0x100d00b4]
xor eax, esp
mov dword [esp + 0xe0], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x14], eax
mov esi, edx
mov eax, dword [ebp + 0x14]
mov edi, ecx
push 0xd0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.1006fa30
push esi
mov edx, edi
mov dword [esp + 0x28], 0x67452301
lea ecx, [esp + 0x28]
mov dword [esp + 0x2c], 0xefcdab89
mov dword [esp + 0x30], 0x98badcfe
mov dword [esp + 0x34], 0x10325476
mov dword [esp + 0x38], 0xc3d2e1f0
call fcn.1004fed0
push dword [ebp + 0xc]
mov edx, ebx
lea ecx, [esp + 0x2c]
call fcn.1004fed0
push dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
call fcn.1004ff90
mov ecx, dword [esp + 0x104]
add esp, 0x18
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1006c2b1
mov esp, ebp
pop ebp
ret 0x10

Function at 0x100501a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
xor eax, eax
push ebx
push esi
push edi
mov ebx, edx
mov edi, ecx
mov esi, edi
test ebx, ebx
je 0x100501cb
mov edx, dword [ebp + 8]
mov cl, byte [esi]
lea esi, [esi + 1]
xor cl, bl
xor cl, dl
xor cl, al
inc eax
mov byte [esi - 1], cl
cmp eax, ebx
jb 0x100501b8
push dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov edx, ebx
push esi
mov ecx, edi
call fcn.10050050
xor eax, eax
add esp, 8
mov dword [ebp - 4], eax
test ebx, ebx
je 0x10050219
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov dword [ebp - 8], ecx
nop
xor edx, edx
div ecx
mov al, byte [edx + esi]
mov edx, dword [ebp - 4]
mov cl, al
shr cl, 4
shl al, 4
xor cl, al
mov eax, edx
xor cl, byte [edx + edi]
xor cl, al
inc eax
mov byte [edx + edi], cl
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], eax
cmp eax, ebx
jb 0x100501f0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10050230
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100d00b4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
mov byte [ebp - 0x28], 0
mov ecx, dword [ebp + 0x10]
xorps xmm0, xmm0
push edi
mov ebx, edx
mov dword [ebp - 0x30], ecx
movups xmmword [ebp - 0x27], xmm0
cmp dword [ecx], 0x14
movq qword [ebp - 0x17], xmm0
mov dword [ebp - 0xf], 0
mov word [ebp - 0xb], 0
mov byte [ebp - 9], 0
jbe 0x10050286
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1006c2b1
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x2c], eax
test ebx, ebx
je 0x100502bb
xor edx, edx
div dword [ecx]
mov al, byte [edx + edi]
mov edx, dword [ebp - 0x2c]
mov cl, al
shr cl, 4
shl al, 4
xor cl, al
mov eax, edx
xor cl, byte [edx + esi]
xor cl, al
inc eax
mov byte [edx + esi], cl
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jb 0x10050292
push ecx
lea eax, [ebp - 0x28]
mov edx, ebx
push eax
mov ecx, esi
call fcn.10050050
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
add esp, 8
mov edx, dword [edx]
sub edx, 4
jb 0x100502f1
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x100502f6
add ecx, 4
add edi, 4
sub edx, 4
jae 0x100502e0
cmp edx, 0xfffffffc
je 0x10050333
mov al, byte [ecx]
cmp al, byte [edi]
jne 0x10050273
cmp edx, 0xfffffffd
je 0x10050333
mov al, byte [ecx + 1]
cmp al, byte [edi + 1]
jne 0x10050273
cmp edx, 0xfffffffe
je 0x10050333
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x10050273
cmp edx, 0xffffffff
je 0x10050333
mov al, byte [ecx + 3]
cmp al, byte [edi + 3]
jne 0x10050273
xor ecx, ecx
test ebx, ebx
je 0x10050353
mov edx, dword [ebp + 8]
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
xor al, dl
xor al, bl
xor al, cl
inc ecx
mov byte [esi - 1], al
cmp ecx, ebx
jb 0x10050340
mov ecx, dword [ebp - 8]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006c2b1
mov esp, ebp
pop ebp
ret
Function at 0x10051590
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a3a46
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x100d00b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x40
lea eax, [ebp - 0x58]
mov byte [ebp - 0x18], 0
push 0
push eax
mov dword [ebp - 0x17], 0
mov byte [ebp - 0x13], 0
call fcn.1006fa30
add esp, 0xc
mov dword [ebp - 0x2a0], 0x40
lea eax, [ebp - 0x29c]
push eax
push 0x20019
push 0
push 0x100bb34c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100516b9
lea eax, [ebp - 0x2a0]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0x100bb340
push dword [ebp - 0x29c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100516b9
sub esp, 0x18
lea eax, [ebp - 0x58]
mov ecx, esp
push eax
call fcn.10001700
lea ecx, [ebp - 0x280]
call fcn.1000e230
add esp, 0x18
mov esi, eax
cmp edi, esi
je 0x10051692
mov eax, dword [edi + 0x14]
cmp eax, 8
jb 0x1005166b
inc eax
mov ecx, edi
push eax
push dword [edi]
call fcn.10009440
mov dword [edi + 0x14], 7
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], 0
jb 0x10051683
mov eax, dword [edi]
jmp 0x10051685
mov eax, edi
xor ecx, ecx
mov word [eax], cx
mov ecx, edi
push esi
call fcn.100092c0
mov eax, dword [ebp - 0x26c]
cmp eax, 8
jb 0x1005179a
inc eax
lea ecx, [ebp - 0x280]
push eax
push dword [ebp - 0x280]
call fcn.10009440
jmp 0x1005179a
lea ecx, [ebp - 0x18]
call fcn.100514d0
test eax, eax
je 0x1005179f
push 0x104
lea eax, [ebp - 0x160]
push 0
push eax
call fcn.1006fa30
movsx eax, byte [ebp - 0x13]
add esp, 0xc
push eax
movsx eax, byte [ebp - 0x14]
push eax
movsx eax, byte [ebp - 0x15]
push eax
movsx eax, byte [ebp - 0x16]
push eax
movsx eax, byte [ebp - 0x17]
push eax
movsx eax, byte [ebp - 0x18]
push eax
push 0x100bb370
lea eax, [ebp - 0x160]
push 0x104
push eax
call fcn.10001100
add esp, 0x24
call fcn.10001ff0
lea ecx, [ebp - 0x160]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10051724
sub ecx, edx
lea edx, [ebp - 0x160]
push ecx
call fcn.100021d0
push 0x104
mov esi, eax
lea eax, [ebp - 0x268]
push 0
push eax
call fcn.1006fa30
add esp, 0xc
lea eax, [ebp - 0x268]
push esi
push 0x100bb390
push 0x104
push eax
call fcn.10001100
sub esp, 8
lea eax, [ebp - 0x268]
mov ecx, esp
push eax
call fcn.10001700
lea ecx, [ebp - 0x298]
call fcn.1000e230
add esp, 0x18
mov ecx, edi
push eax
call fcn.10008ec0
lea ecx, [ebp - 0x298]
call fcn.10008e80
mov eax, 1
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.1006c2b1
mov esp, ebp
pop ebp
ret
Function at 0x100517c0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [ebp - 4]
push eax
push 0
mov ebx, ecx
mov dword [ebp - 4], 0
call edi
mov eax, dword [ebp - 4]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1006c2ff
mov ecx, dword [ebp - 4]
mov esi, eax
add ecx, ecx
push ecx
push 0
push esi
call fcn.1006fa30
add esp, 0x10
test esi, esi
jne 0x10051817
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
push esi
call edi
test eax, eax
jne 0x10051836
push esi
xor edi, edi
call fcn.1006c2fa
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp word [esi], 0
jne 0x10051840
xor eax, eax
jmp 0x10051854
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10051845
sub eax, edx
sar eax, 1
push eax
push esi
mov ecx, ebx
call fcn.10009090
push esi
mov edi, 1
call fcn.1006c2fa
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100583f0
Capabilities:
Terminate process

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