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 0x100a2c20
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.100752dd
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x10015027
push 0x1000
push 0
push eax
call fcn.1006fa00
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.1006fbdb
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.1006fbdb
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.1006fbdb
mov eax, 0x1001500a
ret
mov eax, dword [esi]
test eax, eax
je 0x10015036
push eax
call fcn.100752c2
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.100754ad
push 0x1000
mov dword [esi], eax
add eax, edi
push 0
push eax
call fcn.1006fa00
add esp, 0x14
jmp 0x10014fc2
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.100806ff
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.1006c262
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.1006c262
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.1006cee9
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.1006f1e3
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.1007f216
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.10081630
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.1007f231
add esp, 8
cmp eax, 0xffffffff
jne 0x10042090
push ebx
call fcn.1007f1f0
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.1006c262
mov esp, ebp
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.1006c262
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.1006c262
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.1006fa00
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.1006c262
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.1006fa00
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.1006c262
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.1006c262
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.1006c262
mov esp, ebp
pop ebp
ret
Function at 0x10051570
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a3a26
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.1006fa00
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 0x10051699
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 0x10051699
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 0x10051672
mov eax, dword [edi + 0x14]
cmp eax, 8
jb 0x1005164b
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 0x10051663
mov eax, dword [edi]
jmp 0x10051665
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 0x1005177a
inc eax
lea ecx, [ebp - 0x280]
push eax
push dword [ebp - 0x280]
call fcn.10009440
jmp 0x1005177a
lea ecx, [ebp - 0x18]
call fcn.100514b0
test eax, eax
je 0x1005177f
push 0x104
lea eax, [ebp - 0x160]
push 0
push eax
call fcn.1006fa00
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 0x10051704
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.1006fa00
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.1006c262
mov esp, ebp
pop ebp
ret
Function at 0x100517a0
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.1006c2b0
mov ecx, dword [ebp - 4]
mov esi, eax
add ecx, ecx
push ecx
push 0
push esi
call fcn.1006fa00
add esp, 0x10
test esi, esi
jne 0x100517f7
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 0x10051816
push esi
xor edi, edi
call fcn.1006c2ab
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp word [esi], 0
jne 0x10051820
xor eax, eax
jmp 0x10051834
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10051825
sub eax, edx
sar eax, 1
push eax
push esi
mov ecx, ebx
call fcn.10009090
push esi
mov edi, 1
call fcn.1006c2ab
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100583d0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x100583f0
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x100583f0
mov eax, dword [eax + 0x44]
test eax, eax
je 0x100583f0
push dword [esp + 8]
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1007ea09
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1006d9b0
mov eax, dword [0x100d00b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.1007f4ab
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1007ea4b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1007eba7
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1006d2d0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x100ff9f8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.1008edfb
mov ecx, dword [esi*4 + 0x100ff9f8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x1007eba0
cmp eax, dword [edi + ecx + 0x24]
jne 0x1007eba0
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1007eba0
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1008edfb
add esp, 0x14
test edx, edx
jl 0x1007eba0
jg 0x1007eb16
test eax, eax
jb 0x1007eba0
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1007eba0
jl 0x1007eb30
cmp dword [ebp - 0x1008], eax
ja 0x1007eba0
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1007eb4e
test ebx, ebx
je 0x1007eb87
cmp ecx, edi
jae 0x1007eb87
mov al, byte [ecx]
cmp al, 0xd
jne 0x1007eb68
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1007eb74
cmp byte [ecx + 1], 0xa
jne 0x1007eb74
inc ecx
jmp 0x1007eb74
movzx eax, al
movsx eax, byte [eax + 0x100d04d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1007eb4e
cmp edx, ebx
jne 0x1007eb4e
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1007eba5
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1006c262
leave
ret
Function at 0x1007fddd
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100d00b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x100af378
push esi
call fcn.1009050a
pop ecx
pop ecx
test eax, eax
jne 0x1007fe0b
xor al, al
jmp 0x1007fe88
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.1007fb14
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x1007fe45
push dword [ebp - 0x210]
call fcn.100752c2
xor al, al
jmp 0x1007fe86
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1007fe4b
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x1007fe6b
push edx
call fcn.1007fd13
pop ecx
test al, al
je 0x1007fe36
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1007fe79
mov bl, 1
push dword [ebp - 0x210]
call fcn.100752c2
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1006c262
leave
ret

Function at 0x1008c5ae
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100b0dfc
push 0x100b0df4
push 0x100b0dfc
push 0x1e
call fcn.1008c41b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1008c5e2
push dword [ebp + 8]
mov ecx, esi
call dword [0x100a43d0]
call esi
jmp 0x1008c5e8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1008c62c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100b0e20
push 0x100b0e18
push 0x100b0e20
push 0x20
call fcn.1008c41b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1008c663
push dword [ebp + 8]
mov ecx, esi
call dword [0x100a43d0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]