joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a6710
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x5a6761
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x5a6748
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x5a6738
jmp 0x5a6761
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x5a6749
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5bb740
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x5bb82f
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0xff
lea edx, [ebx + 1]
lea eax, [ebp - 4]
call fcn.0040650c
xor eax, eax
push ebp
push 0x5bb7f7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.004062dc
mov edx, 1
dec edx
test eax, eax
je 0x5bb794
cmp edx, dword [eax - 4]
jb 0x5bb799
call fcn.00404cb0
inc edx
lea eax, [eax + edx - 1]
push eax
push ebx
call sub.kernel32.dll_GetTempPathA
mov ebx, eax
cmp ebx, 0xff
jbe 0x5bb7e3
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040650c
lea eax, [ebp - 4]
call fcn.004062dc
mov edx, 1
dec edx
test eax, eax
je 0x5bb7d0
cmp edx, dword [eax - 4]
jb 0x5bb7d5
call fcn.00404cb0
inc edx
lea eax, [eax + edx - 1]
push eax
push ebx
call sub.kernel32.dll_GetTempPathA
mov ebx, eax
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040650c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5bb80e
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0045068c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5bb836
lea eax, [ebp - 4]
call fcn.00405dd0
ret

Function at 0x5bb840
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5bb8d7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
xor ecx, ecx
mov edx, 0x105
call fcn.004040e4
push 0x104
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
test eax, eax
jns 0x5bb88e
call fcn.00404cb0
test eax, eax
jle 0x5bb8b7
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.00406040
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.0045068c
jmp 0x5bb8be
mov eax, ebx
call fcn.00405dd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5bb8de
lea eax, [ebp - 0x10c]
call fcn.00405dd0
ret
Function at 0x5bb8e4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5bb97b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
xor ecx, ecx
mov edx, 0x105
call fcn.004040e4
push 0x104
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
test eax, eax
jns 0x5bb932
call fcn.00404cb0
test eax, eax
jle 0x5bb95b
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.00406040
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.0045068c
jmp 0x5bb962
mov eax, ebx
call fcn.00405dd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5bb982
lea eax, [ebp - 0x10c]
call fcn.00405dd0
ret

Function at 0x5bbd00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x5bbda3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x104
call fcn.0040650c
lea eax, [ebp - 4]
call fcn.004062dc
mov edx, 1
dec edx
test eax, eax
je 0x5bbd3c
cmp edx, dword [eax - 4]
jb 0x5bbd41
call fcn.00404cb0
inc edx
lea eax, [eax + edx - 1]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
cmp eax, 0xffff
jbe 0x5bbd5d
call fcn.00404cb0
movzx edx, ax
lea eax, [ebp - 4]
call fcn.0040650c
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0045068c
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.00405e68
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00405e24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5bbdaa
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405df4
ret
Function at 0x5e14c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff28
push ebx
push esi
xor eax, eax
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xd4], eax
xor eax, eax
push ebp
push 0x5e1593
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, byte [0x5e15a4]
mov byte [ebp - 1], al
push 0xc8
lea eax, [ebp - 0xc9]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
xor ebx, ebx
mov esi, 0x66a7a0
lea eax, [ebp - 0xd4]
lea edx, [ebp - 0xc9]
mov ecx, 0xc8
call fcn.00406040
mov eax, dword [ebp - 0xd4]
lea edx, [ebp - 0xd0]
call fcn.0045068c
lea eax, [ebp - 0xd0]
mov edx, dword [esi]
call fcn.004060b8
mov eax, dword [ebp - 0xd0]
call fcn.0044a448
test al, al
je 0x5e156c
mov edx, ebx
lea eax, [ebp - 0xd8]
mov cl, 1
call fcn.0040461c
movzx eax, byte [ebp - 0xd8]
or al, byte [ebp - 1]
mov byte [ebp - 1], al
inc ebx
add esi, 4
cmp bl, 4
jne 0x5e150d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e159a
lea eax, [ebp - 0xd4]
mov edx, 2
call fcn.00405df4
ret

Function at 0x62eafc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ebx
test dl, dl
je 0x62eb15
add esp, 0xfffffff0
call fcn.00405114
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.0040626c
xor eax, eax
push ebp
push 0x62ebba
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, esi
call fcn.00404db8
mov byte [esi + 4], 1
xor eax, eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
lea eax, [esi + 8]
mov edx, dword [ebp - 4]
call fcn.00405e24
lea edx, [ebp - 8]
mov eax, dword [esi]
call fcn.0062f6c0
mov edx, dword [ebp - 8]
lea eax, [esi + 0xc]
call fcn.00405e24
mov byte [esi + 0x10], 0
mov byte [esi + 0x228], 0
lea eax, [esi + 0x2c]
call fcn.00405dd0
xor eax, eax
mov dword [esi + 0x28], eax
lea eax, [esi + 0x34]
call fcn.00405dd0
mov byte [esi + 0x38], 1
mov byte [esi + 0x39], 1
mov byte [esi + 0x3b], 0
mov byte [esi + 0x30], 1
xor eax, eax
mov dword [esi + 0x230], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x62ebc1
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405df4
ret
Function at 0x630144
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [0x66c1f0]
cmp dword [eax], 2
je 0x630162
mov byte [ebp - 1], 1
jmp 0x630240
mov byte [ebp - 1], 0
test edi, edi
je 0x630172
or ebx, 0xffffffff
mov dword [ebp - 8], edi
jmp 0x6301aa
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
mov ebx, eax
test ebx, ebx
jne 0x6301aa
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3f0
jne 0x6301aa
lea eax, [ebp - 8]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov ebx, eax
test ebx, ebx
je 0x630240
mov eax, 0x400
call fcn.00403498
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push 0x400
push esi
push 2
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_GetTokenInformation
mov ebx, eax
cmp edi, dword [ebp - 8]
je 0x6301e3
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
test ebx, ebx
je 0x630239
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push 0x66b1b8
call sub.advapi32.dll_AllocateAndInitializeSid
mov ebx, dword [esi]
dec ebx
test ebx, ebx
jl 0x630230
inc ebx
xor edi, edi
mov eax, dword [esi + edi*8 + 4]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x63022c
mov byte [ebp - 1], 1
jmp 0x630230
inc edi
dec ebx
jne 0x630214
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_FreeSid
mov eax, esi
call fcn.004034b4
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x63024c
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0040626c
xor eax, eax
push ebp
push 0x630325
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.004040e4
mov eax, ebx
xor ecx, ecx
mov edx, 0x10
call fcn.004040e4
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x20], 1
cmp esi, 0xffff
jbe 0x6302b2
call fcn.00404cb0
mov word [ebp - 0x1c], si
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 4]
call fcn.00449434
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 4]
call fcn.00405e68
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00405e68
push ebx
lea eax, [ebp - 0x4c]
push eax
push 0
mov eax, dword [ebp + 8]
push eax
push 0x30
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0040627c
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x63032c
lea eax, [ebp - 0x50]
call fcn.00405dd0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405df4
ret
Function at 0x6365f8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040626c
xor eax, eax
push ebp
push 0x6366a2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, esi
call fcn.0040627c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x63664e
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00405e24
jmp 0x63668c
cmp dword [ebp - 0xc], 7
jne 0x636663
push edi
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, ebx
call fcn.006366b4
jmp 0x63668c
cmp dword [ebp - 0xc], 1
je 0x63666f
cmp dword [ebp - 0xc], 2
jne 0x636675
cmp dword [ebp - 8], 0
ja 0x636681
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00405e24
jmp 0x63668c
mov ecx, edi
mov edx, esi
mov eax, ebx
call fcn.004734c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6366a9
lea eax, [ebp - 4]
call fcn.00405dd0
ret

Function at 0x6366b4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040626c
xor eax, eax
push ebp
push 0x6367d9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, esi
call fcn.0040627c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x636712
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00405e24
jmp 0x6367be
cmp dword [ebp - 0x10], 1
je 0x63671e
cmp dword [ebp - 0x10], 2
jne 0x636730
push edi
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, ebx
call fcn.006365f8
jmp 0x6367be
cmp dword [ebp - 0x10], 7
jne 0x63673c
cmp dword [ebp - 0xc], 0
ja 0x636748
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00405e24
jmp 0x6367be
lea eax, [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.0040650c
lea eax, [ebp - 8]
call fcn.004062dc
mov edx, 1
dec edx
test eax, eax
je 0x63676a
cmp edx, dword [eax - 4]
jb 0x63676f
call fcn.00404cb0
inc edx
lea eax, [eax + edx - 1]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
call fcn.004040e4
mov dword [ebp - 0x10], 7
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, esi
call fcn.0040627c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x6367b4
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00405e24
jmp 0x6367be
mov edx, edi
mov eax, dword [ebp - 8]
call fcn.00449434
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6367e0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405df4
ret
Function at 0x637fd8
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x228], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040626c
xor eax, eax
push ebp
push 0x63810c
push dword fs:[eax]
mov dword fs:[eax], esp
or esi, 0xffffffff
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00637ec0
test al, al
je 0x6380e6
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0x20
call fcn.004040e4
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x124]
xor edx, edx
call fcn.0044b16c
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x228]
mov ecx, 0x638124
mov edx, dword [ebp - 4]
call fcn.00406104
mov edx, dword [ebp - 0x228]
lea eax, [ebp - 0x224]
call fcn.0044b16c
mov dword [ebp - 0x10], eax
push 0
mov esi, dword [ebx + 0x44]
mov eax, dword [esi + 4]
call fcn.0040627c
push eax
mov eax, dword [esi + 8]
call fcn.0040627c
push eax
lea eax, [ebp - 0x24]
push eax
call sub.mpr.dll_WNetAddConnection2A
cmp eax, 0x4c3
jne 0x6380db
push 0
push 0
lea eax, [ebp - 0x22c]
mov ecx, 0x638124
mov edx, dword [ebp - 4]
call fcn.00406104
mov eax, dword [ebp - 0x22c]
call fcn.0040627c
push eax
call sub.mpr.dll_WNetCancelConnection2A
push 0
mov esi, dword [ebx + 0x44]
mov eax, dword [esi + 4]
call fcn.0040627c
push eax
mov eax, dword [esi + 8]
call fcn.0040627c
push eax
lea eax, [ebp - 0x24]
push eax
call sub.mpr.dll_WNetAddConnection2A
mov esi, eax
test esi, esi
jns 0x6380e6
call fcn.00404cb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x638113
lea eax, [ebp - 0x22c]
mov edx, 2
call fcn.00405df4
lea eax, [ebp - 4]
call fcn.00405dd0
ret

Function at 0x638208
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov dword [ebp - 4], pe_nt_image_headers32
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
jne 0x638234
call fcn.00639954
mov eax, ebx
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00406040
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6384e8
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040626c
xor eax, eax
push ebp
push 0x638622
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
call sub.kernel32.dll_GetCurrentProcess
mov ebx, eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 4]
call fcn.00637acc
push eax
push 0
call fcn.0063fd0c
test eax, eax
je 0x63860c
lea eax, [ebp - 0xc]
push eax
push 0x20008
push ebx
call sub.advapi32.dll_OpenProcessToken_1
test eax, eax
jne 0x638549
call fcn.00639954
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0x14]
push eax
push 3
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_GetTokenInformation
mov eax, dword [ebp - 0x10]
call fcn.00403498
mov dword [ebp - 0x14], eax
xor edx, edx
push ebp
push 0x638605
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 3
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x6385a3
call fcn.004057d4
jmp 0x63860c
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
test eax, eax
jbe 0x6385e6
mov esi, eax
dec esi
test esi, esi
jb 0x6385e6
inc esi
xor ebx, ebx
lea edi, [ebx + ebx*2]
mov eax, dword [ebp - 0x14]
lea edx, [eax + edi*4 + 4]
lea eax, [ebp - 0x20]
mov ecx, 8
call fcn.0044b298
test eax, eax
jne 0x6385e2
mov eax, dword [ebp - 0x14]
test dword [eax + edi*4 + 0xc], 2
seta byte [ebp - 5]
jmp 0x6385e6
inc ebx
dec esi
jne 0x6385b6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x63860c
mov eax, dword [ebp - 0x14]
call fcn.004034b4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x638629
lea eax, [ebp - 4]
call fcn.00405dd0
ret
Function at 0x638634
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040626c
xor eax, eax
push ebp
push 0x63881a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 6], 0
mov byte [ebp - 0x21], 0
call sub.kernel32.dll_GetCurrentProcess
mov ebx, eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 4]
call fcn.00637acc
push eax
push 0
call fcn.0063fd0c
test eax, eax
je 0x638804
lea eax, [ebp - 0xc]
push eax
push 0x400e8
push ebx
call sub.advapi32.dll_OpenProcessToken_1
test eax, eax
jne 0x63869c
call fcn.00639954
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0x18]
push eax
push 3
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_GetTokenInformation
mov edi, dword [ebp - 0x10]
add edi, 0xc
mov eax, edi
call fcn.00403498
mov dword [ebp - 0x18], eax
mov eax, edi
call fcn.00403498
mov dword [ebp - 0x14], eax
xor edx, edx
push ebp
push 0x6387fd
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 3
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x638708
call fcn.004057d4
jmp 0x638804
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
test eax, eax
jbe 0x638762
mov esi, eax
dec esi
test esi, esi
jb 0x638762
inc esi
xor ebx, ebx
lea eax, [ebx + ebx*2]
mov edx, dword [ebp - 0x18]
lea edx, [edx + eax*4 + 4]
lea eax, [ebp - 0x20]
mov ecx, 8
call fcn.0044b298
test eax, eax
jne 0x63875e
cmp byte [ebp - 5], 0
je 0x63874c
lea eax, [ebx + ebx*2]
mov edx, dword [ebp - 0x18]
mov dword [edx + eax*4 + 0xc], 2
jmp 0x638758
lea eax, [ebx + ebx*2]
mov edx, dword [ebp - 0x18]
xor ecx, ecx
mov dword [edx + eax*4 + 0xc], ecx
mov byte [ebp - 0x21], 1
jmp 0x638762
inc ebx
dec esi
jne 0x63871b
movzx eax, byte [ebp - 0x21]
xor al, 1
and al, byte [ebp - 5]
je 0x6387af
mov eax, dword [ebp - 0x18]
inc dword [eax]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 0x18]
lea eax, [edx + eax*4 - 8]
push eax
lea eax, [ebp - 4]
call fcn.00637acc
push eax
push 0
call fcn.0063fd0c
test eax, eax
jne 0x63879d
call fcn.004057d4
jmp 0x638804
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 0x18]
mov dword [edx + eax*4], 2
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
push edi
mov eax, dword [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.00639838
test eax, eax
jne 0x6387d2
call fcn.004057d4
jmp 0x638804
mov byte [ebp - 6], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x638804
mov eax, dword [ebp - 0x14]
call fcn.004034b4
mov eax, dword [ebp - 0x18]
call fcn.004034b4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x638821
lea eax, [ebp - 4]
call fcn.00405dd0
ret
Function at 0x650c78
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040626c
xor eax, eax
push ebp
push 0x650dfb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax], edx
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 4]
call fcn.0040627c
mov ebx, eax
push ebx
push 0
call sub.advapi32.dll_LookupAccountNameA
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.00403498
mov edx, dword [ebp - 8]
mov dword [edx], eax
xor eax, eax
push ebp
push 0x650db3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
call fcn.00403498
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x650da2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
push ebx
push 0
call sub.advapi32.dll_LookupAccountNameA
test eax, eax
jne 0x650d89
push 0x650e14
call sub.kernel32.dll_GetLastError_1
test eax, eax
jns 0x650d53
call fcn.00404cb0
lea edx, [ebp - 0x20]
call fcn.00639a20
push dword [ebp - 0x20]
push 0x650e48
push 0x650e54
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00406180
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x4480dc]
call fcn.0044f3c8
call fcn.00405728
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x650da9
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
call fcn.004034b4
ret
Function at 0x40a340
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
in al, dx
mov ecx, dword [ebp + 8]
push esi
mov eax, dword [ecx + 4]
test eax, eax
jne 0x40a35f
cmp ecx, 0x46
push ecx
call dword [0x409582]
xor ebx, dword [eax + 0x4a55d5e]
add byte [ebx + 0xc7501f8], al
cmp eax, 1
jne 0x40a370
or al, 0x3b
inc ecx
or byte [eax - 0x80], dl
adc eax, sym.imp.KERNEL32.dll_SetEvent
jmp 0x40a37f
cmp eax, dword [ecx + 8]
push eax
adc byte [sym.imp.KERNEL32.dll_SetEvent], 0xeb
jae 0xeeb5a66d
cmp eax, 2
jne 0x40a363
mov ebp, dword [edx + eax]
push ecx
call dword [0xacc034]
test eax, eax
jne 0x40a358
mov esi, dword [0x3d4bc098]
inc edi
test eax, eax
je 0x40a358
call esi
add eax, 0xafc80
pop esi
pop ebp
ret 0x3e