joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10020540
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov ecx, edx
mov eax, edx
and ecx, 1
shr eax, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor eax, ecx
mov dword [edx*4 + 0x10090b20], eax
inc edx
cmp edx, 0x100
jb 0x10020542
ret

Function at 0x100205f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
or eax, 0xffffffff
test esi, esi
je 0x1002061b
nop
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x10090b20]
dec esi
jne 0x10020600
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x100236f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov eax, dword [eax]
and eax, 7
cmp edx, 5
jae 0x10023710
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
add edx, 0xfffffffc
or ebx, 0xffffffff
add edx, ecx
push esi
mov dword [ebp - 8], edx
lea ecx, [ecx]
lea esi, [edi + ecx]
cmp esi, edx
jae 0x10023739
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x10023736
inc esi
cmp esi, edx
jb 0x10023727
mov ecx, dword [ebp - 4]
mov edi, esi
sub edi, ecx
mov ecx, edi
sub ecx, ebx
cmp esi, edx
jae 0x10023841
cmp ecx, 3
jbe 0x10023752
xor eax, eax
jmp 0x10023790
dec ecx
shl eax, cl
and eax, 7
je 0x10023790
movzx ecx, byte [eax + 0x1007d690]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x1007d688], 0
mov cl, byte [edx + 4]
je 0x1002377a
test cl, cl
je 0x1002377a
cmp cl, 0xff
jne 0x1002378d
mov edx, dword [ebp - 8]
and eax, 3
mov ecx, dword [ebp - 4]
add eax, eax
mov ebx, edi
or eax, 1
inc edi
jmp 0x10023720
mov edx, dword [ebp - 8]
mov cl, byte [esi + 4]
mov ebx, edi
mov dword [ebp - 0x10], ebx
test cl, cl
je 0x100237b2
cmp cl, 0xff
je 0x100237b2
mov ecx, dword [ebp - 4]
and eax, 3
add eax, eax
or eax, 1
inc edi
jmp 0x10023720
movzx edx, cl
movzx ecx, byte [esi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 1]
shl edx, 8
or edx, ecx
sub edx, edi
lea ebx, [edx - 5]
test eax, eax
je 0x1002380e
movzx edx, byte [eax + 0x1007d690]
mov ecx, 0x18
shl edx, 3
sub ecx, edx
mov dword [ebp - 0xc], edx
mov edx, ebx
shr edx, cl
test dl, dl
je 0x100237fa
cmp dl, 0xff
jne 0x1002380e
mov ecx, 0x20
mov edx, 1
sub ecx, dword [ebp - 0xc]
shl edx, cl
dec edx
xor edx, ebx
jmp 0x100237d0
mov edx, dword [ebp - 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
mov byte [esi + 1], bl
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
mov ebx, dword [ebp - 0x10]
shr ecx, 8
add edi, 5
mov byte [esi + 2], cl
mov ecx, dword [ebp - 4]
jmp 0x10023720
pop esi
pop ebx
cmp ecx, 3
jbe 0x10023856
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ecx], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0xc]
and eax, 7
mov dword [ecx], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10025b10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1006ab78
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x10089430]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
mov eax, dword [0x10089430]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov dword [esp + 8], vtable.CKTaskMessageBase.0
mov dword [esp + 0x34], 0xf
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
mov dword [esp + 0x48], 0
mov eax, dword [ecx + 0x20]
mov dword [esp + 0x14], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0x1c], 0
call fcn.10025a40
cmp dword [esp + 0x34], 0x10
mov esi, eax
jb 0x10025bb2
push dword [esp + 0x20]
call fcn.100498af
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.100498b4
mov esp, ebp
pop ebp
ret

Function at 0x100263a0
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
push edi
mov edi, ecx
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x2c
call fcn.100498c3
mov esi, eax
add esp, 4
test esi, esi
je 0x10026404
push 0x2c
push 0
push esi
call fcn.1004cee0
mov eax, dword [sym.imp.USER32.dll_DefWindowProcA]
add esp, 0xc
mov dword [esi + 4], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], eax
mov dword [esi], vtable.CKwIPCMsgWnd.0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
jmp 0x10026406
xor esi, esi
push 0
push 4
mov dword [edi + 4], esi
lea esi, [edi + 0x18]
push esi
push 0x10027fc0
push 0
push 0
call fcn.1004ec2a
add esp, 0x18
mov dword [esi + 4], eax
push dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [edi + 0x1c]
push 0x4e20
push dword [edi + 0x10]
mov dword [edi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
pop edi
sbb eax, eax
inc eax
pop esi
ret 4
Function at 0x1002f6e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006be08
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10089430]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
push 0xffffffffffffffff
mov dword [ebp - 0x34], eax
lea eax, [ebx + 0x1c]
push 0
push eax
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.10002420
cmp dword [ebx + 0x18], 0x10
lea esi, [ebx + 4]
mov dword [ebp - 4], 0
jb 0x1002f758
mov eax, dword [esi]
jmp 0x1002f75a
mov eax, esi
push eax
push dword [ebp - 0x30]
mov ecx, ebx
push dword [ebp - 0x2c]
call fcn.1002f9c0
test al, al
je 0x1002f77f
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x1002f77f
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.10002420
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp dword [edi + 0x14], 0x10
jb 0x1002f792
mov edi, dword [edi]
push eax
push 0x400
push 0x1008c0a8
push edi
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [0x1008c0a8], 0
jne 0x1002f7b7
xor ecx, ecx
jmp 0x1002f7c9
mov ecx, 0x1008c0a8
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002f7c0
sub ecx, edx
push ecx
mov ecx, dword [ebp - 0x34]
push 0x1008c0a8
call fcn.100027a0
cmp dword [ebp - 0x14], 0x10
jb 0x1002f7e8
push dword [ebp - 0x28]
call fcn.100498af
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100498b4
mov esp, ebp
pop ebp
ret 0x10

Function at 0x1002f9c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x10089430]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x107]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push 0x103
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.1004cee0
add esp, 0xc
lea eax, [ebp - 0x108]
push esi
push 0x103
push eax
push 0x1007aace
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
pop esi
pop ebx
test eax, eax
jle 0x1002fa43
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002fa26
sub ecx, edx
je 0x1002fa43
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100498b4
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.100498b4
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1002fa80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10089430]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.1002f8c0
cmp dword [eax + 0x14], 0x10
jb 0x1002faa1
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
setne bl
cmp dword [ebp - 8], 0x10
jb 0x1002fabf
push dword [ebp - 0x1c]
call fcn.100498af
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.100498b4
mov esp, ebp
pop ebp
ret

Function at 0x1002fb00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x10089430]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x103
lea eax, [ebp - 0x107]
mov byte [ebp - 0x108], 0
push 0
push eax
mov esi, ecx
call fcn.1004cee0
add esp, 0xc
lea eax, [ebp - 0x108]
push 1
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0x103
lea eax, [ebp - 0x20b]
mov byte [ebp - 0x20c], 0
push 0
push eax
call fcn.1004cee0
lea eax, [ebp - 0x108]
push eax
push str._skuwodatakwmusic2013Confuserconfig.ini
push 0x103
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1004a7c2
add esp, 0x20
cmp byte [ebp - 0x20c], 0
jne 0x1002fb9f
xor ecx, ecx
jmp 0x1002fbb1
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002fba8
sub ecx, edx
push ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 4]
call fcn.100027a0
push 0x103
lea eax, [ebp - 0x30f]
mov byte [ebp - 0x310], 0
push 0
push eax
call fcn.1004cee0
lea eax, [ebp - 0x108]
push eax
push str._skuwodatakwmusic2013Conf_serverconfig.ini
push 0x103
lea eax, [ebp - 0x310]
push 0x104
push eax
call fcn.1004a7c2
add esp, 0x20
cmp byte [ebp - 0x310], 0
jne 0x1002fc0d
xor ecx, ecx
jmp 0x1002fc1f
lea ecx, [ebp - 0x310]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002fc16
sub ecx, edx
push ecx
lea eax, [ebp - 0x310]
push eax
lea ecx, [esi + 0x1c]
call fcn.100027a0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100498b4
mov esp, ebp
pop ebp
ret
Function at 0x100331c0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x10089430]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10033255
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x10033255
push 0x103
push eax
mov byte [ebp - 0x108], al
lea eax, [ebp - 0x107]
push eax
call fcn.1004cee0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
push str._s._d.del
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.1004a7e1
add esp, 0x14
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 4
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.100498b4
mov esp, ebp
pop ebp
ret
Function at 0x10033af0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2058
call fcn.1004d650
mov eax, dword [0x10089430]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x10033bf2
push 0x1fff
lea eax, [ebp - 0x2003]
mov byte [ebp - 0x2004], 0
push 0
push eax
call fcn.1004cee0
push esi
lea eax, [ebp - 0x2004]
push 0x1fff
push eax
call fcn.1004a6bb
push 0x44
lea eax, [ebp - 0x2058]
push 0
push eax
call fcn.1004cee0
add esp, 0x24
mov dword [ebp - 0x2058], 0x44
xor eax, eax
mov dword [ebp - 0x202c], 1
mov word [ebp - 0x2028], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x2014]
push eax
lea eax, [ebp - 0x2058]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
lea eax, [ebp - 0x2004]
push eax
push 0
movdqu xmmword [ebp - 0x2014], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10033bf2
push dword [ebp + 0x10]
push dword [ebp - 0x2014]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push dword [ebp - 0x2014]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x2010]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x2014]
call esi
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100498b4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.100498b4
mov esp, ebp
pop ebp
ret
Function at 0x10035970
Capabilities:
Check if file exists
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006cbe6
mov eax, dword fs:[0]
push eax
sub esp, 0x358
mov eax, dword [0x10089430]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x217]
push 0x103
push 0
push eax
mov byte [ebp - 0x218], 0
call fcn.1004cee0
add esp, 0xc
lea eax, [ebp - 0x218]
push 1
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0x103
lea eax, [ebp - 0x31b]
mov byte [ebp - 0x31c], 0
push 0
push eax
call fcn.1004cee0
lea eax, [ebp - 0x218]
push eax
push str._skuwodatakwmusic2013Confuserconfig.ini
push 0x103
lea eax, [ebp - 0x31c]
push 0x104
push eax
call fcn.1004a7c2
push 0x103
lea eax, [ebp - 0x113]
mov byte [ebp - 0x114], 0
push 0
push eax
call fcn.1004cee0
add esp, 0x2c
lea eax, [ebp - 0x31c]
push eax
push 0x103
lea eax, [ebp - 0x114]
push eax
push 0x1007aace
push str.homepath
push 0x100709e8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10035a67
sub ecx, edx
cmp ecx, 0xa
jb 0x10035b8f
xor eax, eax
mov dword [ebp - 0x338], 0xf
cmp byte [ebp - 0x114], al
mov dword [ebp - 0x33c], 0
cmove ecx, eax
mov byte [ebp - 0x34c], 0
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x34c]
call fcn.100027a0
push str._bin_
lea eax, [ebp - 0x34c]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x364]
push eax
call fcn.100033e0
push str.mylkx.dat
push eax
lea eax, [ebp - 0x334]
mov byte [ebp - 4], 1
push eax
call fcn.100033e0
add esp, 0x18
cmp dword [ebp - 0x350], 0x10
jb 0x10035b01
push dword [ebp - 0x364]
call fcn.100498af
add esp, 4
cmp dword [ebp - 0x338], 0x10
mov dword [ebp - 0x350], 0xf
mov dword [ebp - 0x354], 0
mov byte [ebp - 0x364], 0
jb 0x10035b33
push dword [ebp - 0x34c]
call fcn.100498af
add esp, 4
cmp dword [ebp - 0x320], 0x10
lea ecx, [ebp - 0x334]
mov eax, dword [ebp + 0xc]
cmovae ecx, dword [ebp - 0x334]
dec eax
push eax
push ecx
push esi
call fcn.1004d7c0
add esp, 0xc
lea eax, [ebp - 0x334]
cmp dword [ebp - 0x320], 0x10
cmovae eax, dword [ebp - 0x334]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
setne bl
cmp dword [ebp - 0x320], 0x10
jb 0x10035b8d
push dword [ebp - 0x334]
call fcn.100498af
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100498b4
mov esp, ebp
pop ebp
ret
Function at 0x10036020
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10089430]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10036079
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x10036081
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10036096
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x10], 0
test esi, esi
jne 0x100360ac
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
xor ecx, ebp
pop esi
call fcn.100498b4
mov esp, ebp
pop ebp
ret
push 0x10084fe4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push eax
call fcn.1004c432
int3

Function at 0x100360c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x10089430]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1003611c
cmp dword [ebp - 0x88], 2
jne 0x1003611c
cmp dword [ebp - 0x94], 6
jb 0x1003611c
cmp dword [ebp - 0x90], 2
jb 0x1003611c
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100498b4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.100498b4
mov esp, ebp
pop ebp
ret
Function at 0x10036280
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x100363c7
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x100363c7
push ebx
mov ebx, dword [ebp + 0x10]
mov eax, 0x55555556
imul ebx
mov ecx, edi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*2]
mov dword [ebp - 4], eax
test eax, eax
jle 0x10036332
lea edx, [eax - 1]
mov eax, 0xaaaaaaab
mul edx
mov edi, edx
shr edi, 1
inc edi
lea esp, [esp]
movzx eax, byte [esi]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
and edx, 3
shr eax, 4
add edx, edx
movzx eax, byte [eax + edx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
movzx edx, byte [esi + 1]
movzx eax, byte [esi + 2]
and edx, 0xf
shr eax, 6
movzx eax, byte [eax + edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], al
movzx eax, byte [esi + 2]
add esi, 3
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 3], al
add ecx, 4
dec edi
jne 0x100362d0
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
sub ebx, eax
cmp ebx, 1
jne 0x10036372
movzx eax, byte [esi]
shr eax, 2
pop ebx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx eax, byte [esi]
and eax, 3
shl eax, 4
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
mov word [ecx + 2], 0x3d3d
add ecx, 4
mov byte [ecx], 0
sub ecx, edi
pop edi
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret
cmp ebx, 2
jne 0x100363b9
movzx eax, byte [esi]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
and edx, 3
shr eax, 4
add edx, edx
movzx eax, byte [eax + edx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
movzx eax, byte [esi + 1]
and eax, 0xf
movzx eax, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], al
mov byte [ecx + 3], 0x3d
add ecx, 4
pop ebx
mov byte [ecx], 0
sub ecx, edi
pop edi
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10036560
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x281c
call fcn.1004d650
mov eax, dword [0x10089430]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2808], eax
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x1003659d
mov eax, dword [esi]
jmp 0x1003659f
mov eax, esi
push 0
push 0
push 0
push 1
mov byte [eax], 0
push 0
mov dword [ebp - 0x281c], 0x10070f34
mov dword [ebp - 0x2818], 0
call dword [sym.imp.WININET.dll_InternetOpenA]
push 1
push 0
push 3
push 0x1007aace
push 0x1007aace
push dword [ebp + 0xc]
mov dword [ebp - 0x2814], eax
push edi
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
push 1
push 0x4000000
lea ecx, [ebp - 0x281c]
mov dword [ebp - 0x2810], eax
push ecx
push dword [ebp - 0x2808]
push str.HTTP_1.0
push ebx
push 0x10070ff8
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
push 0
push 0x1007aace
push 0
mov edi, eax
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
push 0x2800
mov dword [ebp - 0x2808], eax
lea eax, [ebp - 0x2804]
push 0
push eax
mov dword [ebp - 0x280c], 0
call fcn.1004cee0
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [ebp - 0x280c]
add esp, 0xc
push eax
push 0x27ff
lea eax, [ebp - 0x2804]
push eax
push edi
call ebx
test eax, eax
je 0x100366d5
lea ecx, [ecx]
mov eax, dword [ebp - 0x280c]
test eax, eax
je 0x100366d5
cmp eax, 0x2800
jae 0x10036705
mov byte [ebp + eax - 0x2804], 0
cmp byte [ebp - 0x2804], 0
jne 0x1003669a
xor eax, eax
jmp 0x100366ac
lea eax, [ebp - 0x2804]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100366a3
sub eax, edx
push eax
lea eax, [ebp - 0x2804]
mov ecx, esi
push eax
call fcn.10001990
lea eax, [ebp - 0x280c]
push eax
push 0x27ff
lea eax, [ebp - 0x2804]
push eax
push edi
call ebx
test eax, eax
jne 0x10036670
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push dword [ebp - 0x2810]
call esi
push dword [ebp - 0x2814]
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2808]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100498b4
mov esp, ebp
pop ebp
ret
call fcn.1004a250
int3