joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100e8c20
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x100e8c34
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [esp + 0x10], eax
test eax, eax
je 0x100e8cba
push eax
call fcn.100730b1
add esp, 4
mov edi, eax
cmp dword [esi + 0x14], 8
jb 0x100e8c5b
mov esi, dword [esi]
push edi
push dword [esp + 0x14]
push dword [esp + 0x1c]
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x100e8cba
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
push 0x1013de88
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov ecx, dword [esp + 0x18]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
push ebx
call fcn.100d7070
push edi
call fcn.1007307c
add esp, 0x1c
mov al, 1
pop edi
pop esi
pop ebx
add esp, 0x10
ret
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x10
ret

Function at 0x100eaec0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x18]
mov eax, ecx
push esi
push edi
mov dword [esp + 0x14], edx
mov esi, ebp
mov edi, dword [eax]
mov al, byte [edi]
lea ebx, [eax - 0x30]
cmp bl, 9
ja 0x100eaf33
xor edx, edx
mov ebx, ecx
lea ecx, [edx - 0x30]
movsx eax, al
add ecx, eax
inc edi
mov eax, 0x66666667
mov dword [ebx], edi
imul esi
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
lea edx, [ecx + ecx*4]
add edx, edx
cmp edx, ebp
jg 0x100eaf16
test esi, esi
je 0x100eaf16
mov al, byte [edi]
cmp al, 0x30
jl 0x100eaf16
cmp al, 0x39
jle 0x100eaee3
cmp ecx, dword [esp + 0x1c]
jl 0x100eaf33
cmp ecx, ebp
jg 0x100eaf33
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
mov eax, 1
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x100ed4f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014e968
push 0x1011b728
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x23c
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], ebx
cmp edi, 0xffffffff
je 0x100ed589
push 0x22c
push ebx
lea eax, [ebp - 0x24c]
push eax
call fcn.10077450
add esp, 0xc
mov dword [ebp - 0x24c], 0x22c
lea eax, [ebp - 0x24c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x100ed589
cmp dword [ebp - 0x244], esi
je 0x100ed580
lea eax, [ebp - 0x24c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x100ed564
jmp 0x100ed589
mov ebx, dword [ebp - 0x234]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0xffffffff
call fcn.100ed5ae
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100eed10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x40
push ebx
push esi
push edi
mov ebx, edx
mov edi, ecx
cdq
lea ecx, [esp + 0xc]
push edx
push eax
call fcn.100d6ca0
mov esi, dword [esp + 0x5c]
add esp, 8
cmp esi, edi
je 0x100eed49
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
jb 0x100eed40
mov edi, dword [edi]
push eax
push edi
mov ecx, esi
call fcn.1001a860
mov edx, dword [esi + 0x14]
mov eax, edx
mov ecx, dword [esi + 0x10]
sub eax, ecx
push ebp
cmp eax, 1
jb 0x100eed83
lea ebp, [ecx + 1]
mov edi, esi
mov dword [esi + 0x10], ebp
cmp edx, 8
jb 0x100eed68
mov edi, dword [esi]
push 2
lea eax, [edi + ecx*2]
push str._____
push eax
call fcn.10076ed0
add esp, 0xc
xor eax, eax
mov word [edi + ebp*2], ax
jmp 0x100eed9c
push 1
push str._____
mov byte [esp + 0x5c], 0
mov ecx, esi
push dword [esp + 0x5c]
push 1
call fcn.1001f850
lea ecx, [esp + 0x10]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100eeda3
mov eax, dword [esi + 0x14]
sub ecx, edx
mov edx, dword [esi + 0x10]
sub eax, edx
sar ecx, 1
cmp ecx, eax
ja 0x100eedeb
cmp dword [esi + 0x14], 8
lea ebp, [edx + ecx]
mov dword [esi + 0x10], ebp
mov edi, esi
jb 0x100eedce
mov edi, dword [esi]
lea eax, [ecx + ecx]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [edi + edx*2]
push eax
call fcn.10076ed0
add esp, 0xc
xor eax, eax
mov word [edi + ebp*2], ax
jmp 0x100eee02
push ecx
lea eax, [esp + 0x14]
mov byte [esp + 0x58], 0
push eax
push dword [esp + 0x5c]
push ecx
mov ecx, esi
call fcn.1001f850
mov edx, dword [esi + 0x14]
mov eax, edx
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x100eee3b
lea ebp, [ecx + 1]
mov edi, esi
mov dword [esi + 0x10], ebp
cmp edx, 8
jb 0x100eee20
mov edi, dword [esi]
push 2
lea eax, [edi + ecx*2]
push 0x101375b4
push eax
call fcn.10076ed0
add esp, 0xc
xor eax, eax
mov word [edi + ebp*2], ax
jmp 0x100eee54
push 1
push 0x101375b4
mov byte [esp + 0x5c], 0
mov ecx, esi
push dword [esp + 0x5c]
push 1
call fcn.1001f850
cmp dword [ebx + 0x14], 8
mov eax, dword [ebx + 0x10]
pop ebp
jb 0x100eee60
mov ebx, dword [ebx]
push eax
push ebx
mov ecx, esi
call fcn.1001e7b0
cmp dword [esi + 0x14], 8
jb 0x100eee71
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
pop esi
setne al
pop ebx
add esp, 0x40
ret

Function at 0x100ef420
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
lea eax, [esp]
push esi
push edi
push 0x20c
push 0
push eax
mov edi, edx
mov esi, ecx
call fcn.10077450
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x100ef447
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x100ef44f
mov esi, dword [esi]
lea eax, [esp + 8]
push eax
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
pop edi
pop esi
test eax, eax
je 0x100ef49d
xor eax, eax
lea ecx, [esp]
mov word [esp + 0x20a], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100ef474
sub ecx, edx
lea eax, [esp]
sar ecx, 1
push ecx
mov ecx, dword [esp + 0x214]
push eax
call fcn.1001a860
mov al, 1
add esp, 0x20c
ret
xor al, al
add esp, 0x20c
ret
Function at 0x100f4c60
Capabilities:
Acquire debug privileges
Check os version

Disassembly:
mov eax, dword [0x101599c0]
sub esp, 0x138
push edi
mov edi, ecx
test eax, eax
jne 0x100f4ca9
push 0x118
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.10077450
add esp, 0xc
mov dword [esp + 0x20], 0x11c
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100f4d6c
mov eax, dword [esp + 0x24]
mov dword [0x101599c0], eax
cmp eax, 5
jbe 0x100f4d6c
push ebx
push esi
lea eax, [esp + 0xc]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100f4cd4
call esi
mov ebx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x100f4d00
call esi
push eax
push str.LookupPrivilegeValue_error:__u_n
call fcn.10030a20
add esp, 8
jmp 0x100f4d60
mov eax, dword [esp + 0x10]
push 0
push 0
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
push 0x10
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x24]
push eax
push 0
push ebx
mov dword [esp + 0x30], 1
mov dword [esp + 0x3c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x100f4d4a
call esi
push eax
push str.AdjustTokenPrivileges_error:__u_n
call fcn.10030a20
add esp, 8
jmp 0x100f4d60
call esi
cmp eax, 0x514
jne 0x100f4d60
push str.The_token_does_not_have_the_specified_privilege.__n
call fcn.10030a20
add esp, 4
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
push dword [esp + 0x140]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
pop edi
add esp, 0x138
ret
Function at 0x100f8cc0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x5c
push ebx
push esi
mov ebx, ecx
push edi
mov edi, edx
test ebx, ebx
je 0x100f8d35
cmp edi, 1
jl 0x100f8d35
mov esi, dword [esp + 0x6c]
lea eax, [esp + 0x28]
push 0x40
xorps xmm0, xmm0
push 0
push eax
movups xmmword [esi], xmm0
call fcn.10077450
push edi
mov edx, ebx
mov dword [esp + 0x24], 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0x67452301
mov dword [esp + 0x2c], 0xefcdab89
mov dword [esp + 0x30], 0x98badcfe
mov dword [esp + 0x34], 0x10325476
call fcn.10113250
add esp, 0x10
lea ecx, [esp + 0x10]
mov edx, esi
call fcn.101130c0
pop edi
pop esi
pop ebx
add esp, 0x5c
ret
Function at 0x100fd370
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10122e0d
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
push edi
push 0
push 0
push 0
push 0
push 0
mov ebx, ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
test edi, edi
jne 0x100fd3b9
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
push 0x10155e64
push 2
push edi
call esi
push 4
push 0x10155e60
push 3
push edi
call esi
mov eax, dword [0x10159978]
mov dword [ebp - 0x10], 0x10159978
test eax, eax
je 0x100fd3ee
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x10155e84
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.1001cdf0
mov eax, dword [0x10159978]
test eax, eax
je 0x100fd412
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 1
cmp dword [ebp - 0x30], 0
jne 0x100fd426
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x100fd448
push 0
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.100e3490
add esp, 4
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp dword [ebx + 0x14], 0x10
jb 0x100fd450
mov ebx, dword [ebx]
push 0
push 0x84000000
push 0xffffffffffffffff
push eax
push ebx
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp dword [ebp - 0x10], 0
mov esi, eax
je 0x100fd4b0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x100fd49e
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100fd494
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100fd516
push edx
push ecx
call fcn.1007306e
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
test esi, esi
jne 0x100fd4bf
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor bl, bl
jmp 0x100fd4cd
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
mov bl, 1
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x100fd503
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100fd4f9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100fd51b
push edx
push ecx
call fcn.1007306e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10080da8
call fcn.10080da8
int3
Function at 0x10107fa0
Capabilities:
Get file size

Disassembly:
push ecx
mov eax, dword [ecx + 4]
push esi
cmp eax, 0xffffffff
je 0x10107fe2
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10107fc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10107fe2
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov edx, dword [esp + 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop ecx
ret 4
xor al, al
pop esi
pop ecx
ret 4

Function at 0x10109e40
Capabilities:
Set file attributes

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
je 0x10109e59
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], 0xffffffff
mov ecx, dword [esi + 0x2c]
cmp ecx, 0xffffffff
je 0x10109e7b
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
jb 0x10109e6c
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [esi + 0x2c], 0xffffffff
pop esi
ret

Function at 0x10113550
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [ecx]
push ebx
push esi
push edi
test eax, eax
je 0x1011361a
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1011361a
mov esi, dword [ebp + 0x10]
mov eax, dword [esp + 0xc]
add dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
cmp ecx, dword [esi + 4]
je 0x1011360d
mov ebx, dword [esi + 0xc]
mov edi, ecx
sub edi, dword [esi + 0x18]
cmp edi, 0x3e8
jbe 0x101135d5
mov eax, ebx
mov dword [esi + 0x18], ecx
sub eax, dword [esi + 0x1c]
xor edx, edx
div edi
mov dword [esi + 0x1c], ebx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10140cb0]
movsd qword [esi + 0x10], xmm0
mov eax, ecx
movd xmm1, ebx
sub eax, dword [esi]
cvtdq2pd xmm1, xmm1
shr ebx, 0x1f
mov dword [esi + 4], ecx
movd xmm0, eax
addsd xmm1, qword [ebx*8 + 0x10140cb0]
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10140cb0]
divsd xmm1, xmm0
movsd qword [esi + 0x20], xmm1
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10116330
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10123f19
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
lea esi, [edi + 4]
cmp esi, eax
je 0x1011636d
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x10116364
mov eax, dword [eax]
push ecx
push eax
mov ecx, esi
call fcn.1001a860
cmp dword [esi + 0x10], 0
je 0x101163ae
mov dword [ebp - 0x20], vtable.WM::GMFile.0
mov dword [ebp - 0x1c], 0xffffffff
push ecx
push 3
push 1
push 0xc0000000
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.10108120
test al, al
jne 0x101163c2
mov eax, dword [ebp - 0x1c]
cmp eax, 0xffffffff
je 0x101163ae
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 0x1c]
push ebx
cmp esi, 0xffffffff
je 0x10116477
lea eax, [ebp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x101163f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x101163f7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10116477
mov ecx, dword [ebp + 8]
xor eax, eax
add eax, ebx
mov dword [ebp - 0x10], eax
adc ecx, 0
mov dword [ebp - 0x18], ecx
lea ecx, [edi + 0x20]
lea esi, [eax + 1]
push esi
call fcn.1001bc00
push esi
push 0
push dword [edi + 0x28]
call fcn.10077450
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
add esp, 0xc
lea ecx, [ebp - 0x20]
push eax
push esi
push dword [edi + 0x28]
call fcn.10107ff0
test al, al
je 0x1011646f
xor eax, eax
cmp dword [ebp - 0x14], esi
jne 0x1011646f
cmp eax, dword [ebp - 0x18]
jne 0x1011646f
mov eax, dword [edi]
mov ecx, edi
push dword [edi + 0x28]
mov eax, dword [eax + 8]
call eax
lea ecx, [ebp - 0x20]
mov bl, al
call fcn.10108210
mov al, bl
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x20]
call fcn.10108210
mov ecx, dword [ebp - 0xc]
xor al, al
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x401000
Capabilities:
Encode data using base64

Disassembly:
sub esp, 8
push ebp
xor ebp, ebp
push esi
mov esi, eax
test ecx, ecx
jg 0x401015
pop esi
xor eax, eax
pop ebp
add esp, 8
ret
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*2]
mov eax, ecx
sub eax, edx
je 0x401033
mov ebp, 3
sub ebp, eax
push ebx
push edi
lea edi, [ecx + ebp]
mov eax, 0x55555556
imul edi
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, ebp
lea ebx, [eax + ecx + 1]
push ebx
mov dword [esp + 0x18], ebx
call fcn.0040b067
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x401069
pop edi
pop ebx
pop esi
pop ebp
add esp, 8
ret
xor edx, edx
test edi, edi
jle 0x401162
lea ecx, [eax + 2]
movzx eax, byte [esi]
shr al, 2
movsx eax, al
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 2], al
lea eax, [edi - 3]
cmp edx, eax
jne 0x4010f7
test ebp, ebp
je 0x4010f7
cmp ebp, 1
jne 0x4010d4
movzx eax, byte [esi]
mov bl, byte [esi + 1]
and al, 3
shl al, 4
movsx eax, al
shr bl, 4
movsx ebx, bl
movzx eax, byte [eax + ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
movzx eax, byte [esi + 1]
and al, 0xf
add al, al
add al, al
movsx eax, al
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov byte [ecx + 1], 0x3d
jmp 0x401149
cmp ebp, 2
jne 0x401149
movzx eax, byte [esi]
and al, 3
shl al, 4
movsx eax, al
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
mov byte [ecx], 0x3d
mov byte [ecx + 1], 0x3d
jmp 0x401149
movzx eax, byte [esi]
movzx ebx, byte [esi + 1]
and al, 3
shl al, 4
movsx eax, al
shr bl, 4
movsx ebx, bl
movzx eax, byte [eax + ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
movzx eax, byte [esi + 1]
movzx ebx, byte [esi + 2]
and al, 0xf
add al, al
add al, al
movsx eax, al
shr bl, 6
movsx ebx, bl
movzx eax, byte [eax + ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movsx eax, byte [esi + 2]
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
add edx, 3
add ecx, 4
add esi, 3
cmp edx, edi
jl 0x401076
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
pop edi
mov byte [eax + ebx - 1], 0
pop ebx
pop esi
pop ebp
add esp, 8
ret
Function at 0x401d80
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x466918
push 0x40c490
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x468060]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], ebx
xor edi, edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push ebx
lea edx, [ebp - 0x20]
push edx
push ebx
mov eax, dword [ebp + 8]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x401e33
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0040b067
mov esi, eax
mov dword [ebp - 0x28], esi
mov edx, dword [ebp - 0x1c]
lea eax, [edx + edx]
push eax
call fcn.0040b067
add esp, 8
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp esi, ebx
je 0x401e33
cmp edi, ebx
je 0x401e33
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x1c]
push edx
push edi
lea eax, [ebp - 0x20]
push eax
push esi
mov ecx, dword [ebp + 8]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x401e33
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.00401e67
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x401e4b
mov edx, dword [ebp + 0xc]
mov dword [edx], esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x401e90
Capabilities:
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x454afb
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x468060]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push esi
mov eax, dword [0x468060]
xor eax, esp
push eax
lea eax, [esp + 0x224]
mov dword fs:[0], eax
xor ebx, ebx
push 0x208
lea eax, [esp + 0x1c]
push ebx
push eax
mov dword [esp + 0x20], ebx
call fcn.0040c3b0
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x1c], 0x208
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x401f93
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x14], ebx
call fcn.00401d80
test eax, eax
je 0x401f93
mov esi, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push esi
mov dword [esp + 0x18], ebx
call sub.ADVAPI32.dll_ConvertSidToStringSidW
push esi
call fcn.0040b3fe
mov ecx, dword [esp + 0x14]
add esp, 4
lea eax, [esp + 0xc]
push eax
call fcn.00402540
mov dword [esp + 0x22c], ebx
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.00402950
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x22c], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401f9e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x401f9e
push edi
mov ecx, 0x45fcf0
call fcn.00402540
mov eax, edi
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0040b009
add esp, 0x224
ret