joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10020a20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10081ba9
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x100bb500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.10008530
mov ecx, eax
test ecx, ecx
jne 0x10020a74
push 0x80004005
call fcn.10008310
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 2
push dword [ebp + 0x10]
mov dword [ebp - 0x14], 1
push dword [ebp + 0xc]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x10020b5b
mov edi, dword [ebp - 0x10]
sub edi, 1
jns 0x10020ac1
push 0x80070057
call fcn.10008310
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x10020adc
push edi
mov ecx, esi
call fcn.10008cd0
mov ecx, dword [esi]
cmp edi, dword [ecx - 8]
jg 0x10020ab7
mov dword [ecx - 0xc], edi
xor edx, edx
mov eax, dword [esi]
mov word [eax + edi*2], dx
lea eax, [ebp - 0x10]
push eax
push ecx
push edx
push 2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x10020b25
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x20]
call fcn.10049360
push 0x100adf48
lea eax, [ebp - 0x20]
push eax
call fcn.10063e94
mov eax, dword [esi]
test eax, eax
jne 0x10020b2f
xor ecx, ecx
jmp 0x10020b45
push dword [eax - 8]
push eax
call fcn.1006887d
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x10020ab7
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x10020ab7
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100219d0
Capabilities:
Set global application hook

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
cmp dword [esi + 0x30], 0
jne 0x100219fa
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push dword [ebp + 8]
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [esi + 0x30], eax
test eax, eax
je 0x10021a01
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc]
call fcn.10049360
push 0x100adf48
lea eax, [ebp - 0xc]
push eax
call fcn.10063e94
int3

Function at 0x10029580
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10082988
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x100bb500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov ecx, 0x10000000
cmp byte [ebp + 8], al
cmovne eax, ecx
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
jne 0x100295f7
push 0x10089fac
lea ecx, [ebp + 8]
call fcn.10007930
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x20]
call fcn.100216b0
push 0x100adb08
lea eax, [ebp - 0x20]
push eax
call fcn.10063e94
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x1002d090
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10083080
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x100bb500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10036be0
lea edi, [esi + 0x14]
mov dword [ebp - 4], 0
mov dword [esi], vtable.OAuthTokenRequestBase.0
mov dword [ebp + 0x10], edi
call fcn.10008530
mov ecx, eax
test ecx, ecx
jne 0x1002d0f0
push 0x80004005
call fcn.10008310
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea edi, [esi + 0x28]
mov byte [ebp - 4], 1
mov dword [ebp + 0x10], edi
call fcn.10008530
mov ecx, eax
test ecx, ecx
jne 0x1002d119
push 0x80004005
call fcn.10008310
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 2
call fcn.10008530
mov ecx, eax
test ecx, ecx
jne 0x1002d13c
push 0x80004005
call fcn.10008310
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x34], eax
mov byte [ebp - 4], 3
call fcn.10008530
mov ecx, eax
test ecx, ecx
jne 0x1002d160
push 0x80004005
call fcn.10008310
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x38], eax
mov byte [ebp - 4], 4
call fcn.10008530
mov ecx, eax
test ecx, ecx
jne 0x1002d184
push 0x80004005
call fcn.10008310
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x40], eax
mov byte [ebp - 4], 5
call fcn.10008530
mov ecx, eax
test ecx, ecx
jne 0x1002d1a8
push 0x80004005
call fcn.10008310
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x44], eax
push 0x17
push str.OAuthTokenRequestBase.cpp
push 1
push 0x28
mov byte [ebp - 4], 6
call fcn.1006280e
add esp, 0x10
mov dword [ebp + 0x10], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x1002d1de
mov ecx, eax
call fcn.10014220
jmp 0x1002d1e0
xor eax, eax
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 6
push eax
mov dword [ecx], 0
mov dword [ecx + 4], 0
call fcn.1000c930
call fcn.10008530
mov ecx, eax
test ecx, ecx
jne 0x1002d20f
push 0x80004005
call fcn.10008310
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x58], eax
mov eax, esi
mov byte [esi + 0x3c], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x30], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x50], 0
mov byte [esi + 0x54], 0
mov word [esi + 0x5c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1002e600
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100831a8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100bb500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp + 8]
push ecx
mov ecx, ebx
mov eax, dword [ebx + 4]
mov dword [esi + 0x30], eax
mov eax, dword [ebx]
call dword [eax + 4]
lea ecx, [esi + 0x38]
mov dword [ebp - 4], 0
push eax
call fcn.10007eb0
mov edx, dword [ebp + 8]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002e66e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [str.authentication_failed]
test edx, edx
jne 0x1002e67c
xor eax, eax
jmp 0x1002e694
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0x10], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1002e684
sub eax, dword [ebp - 0x10]
sar eax, 1
push eax
push edx
lea ecx, [esi + 0x34]
call fcn.10008e20
push ebx
push esi
call fcn.10033320
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1002f3b0
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100832b8
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push esi
push edi
mov eax, dword [0x100bb500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
push 0xcaa1001a
push esi
call fcn.1002f170
push 2
push 0x1008fe3c
push esi
call fcn.1006b435
add esp, 0x14
test eax, eax
je 0x1002f418
push 0xcaa40001
lea ecx, [ebp - 0x4c]
call fcn.10051630
push 0x100ad9f4
lea eax, [ebp - 0x4c]
push eax
call fcn.10063e94
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 0x18]
call fcn.10016f80
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 0
mov eax, dword [eax - 0xc]
test eax, eax
jne 0x1002f450
push 0xcaa40001
lea ecx, [ebp - 0x58]
call fcn.10051630
push 0x100ad9f4
lea eax, [ebp - 0x58]
push eax
call fcn.10063e94
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x1c], eax
call fcn.1002f310
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
mov esi, dword [ebp - 0x40]
push ecx
push esi
push dword [eax - 0xc]
mov byte [ebp - 4], 1
push eax
call fcn.10017510
add esp, 0x10
test eax, eax
jne 0x1002f496
push 0xcaa40001
lea ecx, [ebp - 0x64]
call fcn.10051630
push 0x100ad9f4
lea eax, [ebp - 0x64]
push eax
call fcn.10063e94
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x2c]
push eax
push 1
push 0
push 0
push 0x100bb120
push 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 0
push eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x30], esi
call sub.CRYPT32.dll_CryptUnprotectData
test eax, eax
jne 0x1002f4ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x70]
call fcn.10049360
push 0x100adf48
lea eax, [ebp - 0x70]
push eax
call fcn.10063e94
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 2
cmp ecx, 4
jae 0x1002f516
push 0xcaa40001
lea ecx, [ebp - 0x7c]
call fcn.10051630
push 0x100ad9f4
lea eax, [ebp - 0x7c]
push eax
call fcn.10063e94
xor esi, esi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 3
cmp dword [eax], 1
jne 0x1002f556
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.1002f900
add esp, 0xc
lea ecx, [ebp - 0x14]
push eax
call fcn.1002f360
lea ecx, [ebp - 0x20]
call fcn.1000bb00
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x14]
test ecx, ecx
je 0x1002f56e
nop word [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x1002f560
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
jne 0x1002f59a
push 0xcaa40001
lea ecx, [ebp - 0x88]
call fcn.10051630
push 0x100ad9f4
lea eax, [ebp - 0x88]
push eax
call fcn.10063e94
push esi
lea ecx, [esi + 0x2c]
call fcn.100228c0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.1000bb00
lea ecx, [ebp - 0x40]
call fcn.1000c610
lea ecx, [ebp - 0x18]
call fcn.100170c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10032670
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x1c], 8
lea edx, [edi + 8]
mov ebx, dword [edx + 0x10]
mov dword [ebp - 4], ecx
jb 0x1003268b
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
add ebx, ebx
je 0x100326a7
movzx eax, byte [edx + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x10032696
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0xc]
and eax, esi
lea esi, [eax*8]
add ecx, esi
cmp dword [ecx + 4], edi
jne 0x100326dd
cmp dword [ecx], edi
jne 0x100326d5
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [edx + 4]
mov dword [esi + ecx + 4], eax
jmp 0x100326e5
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x100326e5
cmp dword [ecx], edi
jne 0x100326e8
mov eax, dword [edi]
mov dword [ecx], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
lea ebx, [edi + 8]
mov esi, dword [edi]
mov dword [eax], esi
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
dec dword [edx + 8]
mov eax, dword [ebx + 0x14]
cmp eax, 8
jb 0x10032710
inc eax
mov ecx, ebx
push eax
push dword [ebx]
call fcn.1005a2a0
mov dword [ebx + 0x14], 7
cmp dword [ebx + 0x14], 8
mov dword [ebx + 0x10], 0
jb 0x10032726
mov ebx, dword [ebx]
xor eax, eax
push edi
mov word [ebx], ax
call fcn.1006219e
mov eax, dword [ebp + 8]
add esp, 4
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10032750
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, ecx
push esi
push edi
mov dword [ebp - 4], eax
cmp dword [ebx + 0x14], 8
mov ecx, dword [ebx + 0x10]
mov dword [ebp + 0xc], ecx
jb 0x10032771
mov esi, dword [ebx]
jmp 0x10032773
mov esi, ebx
lea edi, [ecx + ecx]
mov edx, 0x811c9dc5
xor ecx, ecx
test edi, edi
je 0x10032795
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x10032781
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
mov esi, dword [ebp - 4]
and ecx, edx
mov edx, dword [eax + 0xc]
mov esi, dword [esi + 4]
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov dword [ebp - 4], esi
mov edi, dword [edx + ecx*4]
inc ecx
mov dword [ebp - 0xc], edi
lea ecx, [edx + ecx*4]
mov dword [ebp - 0x10], ecx
cmp edi, esi
jne 0x100327c0
mov ecx, esi
jmp 0x100327c4
mov ecx, dword [ecx]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x100328a1
cmp dword [ebx + 0x14], 8
lea edx, [eax + 8]
jb 0x100327d9
mov esi, dword [ebx]
jmp 0x100327db
mov esi, ebx
cmp dword [edx + 0x14], 8
lea ecx, [edx + 0x10]
jb 0x100327e6
mov edx, dword [edx]
mov ecx, dword [ecx]
mov edi, dword [ebp + 0xc]
cmp ecx, edi
mov dword [ebp - 8], ecx
cmovb edi, ecx
test edi, edi
jne 0x10032816
xor ecx, ecx
test ecx, ecx
jne 0x10032809
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
cmp ecx, edx
jb 0x10032809
jbe 0x10032837
mov eax, dword [eax]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
jmp 0x100327b8
mov cx, word [edx]
cmp cx, word [esi]
jne 0x10032829
add edx, 2
add esi, 2
sub edi, 1
jmp 0x100327f5
movzx ecx, word [edx]
cmp cx, word [esi]
sbb ecx, ecx
and ecx, 0xfffffffe
inc ecx
jmp 0x100327f9
cmp dword [eax + 0x1c], 8
lea edx, [eax + 8]
lea edi, [edx + 0x10]
jb 0x10032845
mov edx, dword [edx]
cmp dword [ebx + 0x14], 8
jb 0x1003284d
mov ebx, dword [ebx]
mov edi, dword [edi]
mov esi, edi
cmp dword [ebp + 0xc], edi
cmovb esi, dword [ebp + 0xc]
test esi, esi
jne 0x10032880
xor ecx, ecx
test ecx, ecx
jne 0x1003286b
mov ecx, dword [ebp + 0xc]
cmp ecx, edi
jb 0x1003286b
jbe 0x1003286e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 8
mov cx, word [ebx]
cmp cx, word [edx]
jne 0x10032893
add ebx, 2
add edx, 2
sub esi, 1
jmp 0x1003285a
movzx ecx, word [ebx]
cmp cx, word [edx]
sbb ecx, ecx
and ecx, 0xfffffffe
inc ecx
jmp 0x1003285e
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10032cb0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100839b8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100bb500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp + 0x14]
mov edi, esi
push esi
call fcn.100518b0
add esp, 4
mov bl, al
call fcn.10008530
mov ecx, eax
test ecx, ecx
jne 0x10032d00
push 0x80004005
call fcn.10008310
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x14], eax
mov dword [ebp - 4], 0
test bl, bl
je 0x10032d33
push dword [ebp + 8]
lea eax, [ebp + 0x14]
mov edi, 0xcaa50002
push esi
push esi
push 0x86
push eax
call fcn.10032b00
add esp, 0x14
jmp 0x10032d5c
mov edx, dword [ebp + 8]
test edx, edx
jne 0x10032d3e
xor ecx, ecx
jmp 0x10032d52
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10032d43
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp + 0x14]
call fcn.10008e20
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x14], esi
mov eax, dword [eax + 4]
test eax, eax
je 0x10032d86
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push 1
push 0
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10032da5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10034410
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10083bc8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x100bb500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x1c]
push eax
mov dword [edi + 0x30], 0xcaa1002d
call fcn.100533a0
mov esi, eax
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 4], 0
call fcn.1004b260
push esi
lea ecx, [edi + 8]
mov byte [ebp - 4], 1
push ecx
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
mov ecx, edi
push dword [ebp + 8]
push eax
call fcn.10034550
mov edx, dword [ebp - 0x18]
or eax, 0xffffffff
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003449c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.10007c70
push dword [edi + 4]
lea eax, [ebp - 0x10]
push eax
call fcn.10028ed0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
push eax
call fcn.10008330
add eax, 0x10
add esp, 0xc
mov dword [ebp + 0xc], eax
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.1002dc20
test al, al
mov byte [ebp - 4], 5
lea ecx, [ebp + 0xc]
sete bl
call fcn.10007c70
test bl, bl
je 0x1003450a
push 0xcaa90005
push edi
call fcn.100333e0
add esp, 8
xor bl, bl
jmp 0x1003451a
push 0x4aa9000c
push edi
call fcn.100336a0
add esp, 8
mov bl, 1
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x10034527
mov edx, dword [ecx]
push 1
call dword [edx]
lea ecx, [ebp - 0x14]
call fcn.10007c70
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10036490
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10084098
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x100bb500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
cmp dword [edi + 0x10], 0
jne 0x100364d7
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
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], 0
push eax
push 0
push edi
push 0x10036b90
push 0
push 0
call fcn.1006dd4b
mov esi, eax
add esp, 0x18
mov dword [ebp - 0x18], esi
test esi, esi
jne 0x1003651c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x28]
call fcn.10049360
push 0x100adf48
lea eax, [ebp - 0x28]
push eax
call fcn.10063e94
push dword [edi + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov dword [ebp - 4], 0
call ebx
cmp eax, 0x102
je 0x10036558
cmp eax, 0xffffffff
jne 0x100365ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x34]
call fcn.10049360
push 0x100adf48
lea eax, [ebp - 0x34]
push eax
call fcn.10063e94
push str.SilentLogin_exceeds_timeout_to_return
push edi
call fcn.10033a50
add esp, 8
push 0
push 0
push 0x12
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push 0x4e20
push esi
call ebx
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x10036595
cmp dword [ebp - 0x14], 0x103
jne 0x100365ac
push 0xcaa90012
push edi
call fcn.100333e0
add esp, 8
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [0x10092310]
lea ecx, [ebp - 0x18]
call fcn.10007930
lea esi, [edi + 0x14]
mov dword [ebp - 4], 2
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [edi + 4]
push eax
call fcn.1005f230
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov bl, al
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x10036607
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x1003662a
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x1003662a
mov eax, 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
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100374c0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10084300
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x100bb500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx]
mov dword [ebp - 0x18], 0
test eax, eax
je 0x10037521
cmp word [eax], 0
je 0x10037521
add eax, 0xfffffff0
push eax
call fcn.10008330
add esp, 4
lea ecx, [eax + 0x10]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.10008530
mov ecx, eax
test ecx, ecx
jne 0x10037536
push 0x80004005
call fcn.10008310
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], 0x64
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x63
or eax, ecx
mov dword [ebp - 4], 0
jge 0x1003756e
push 0x63
lea ecx, [ebp - 0x10]
call fcn.10008cd0
mov esi, dword [ebp - 0x10]
cmp dword [esi - 8], 0x63
jl 0x10037689
xor eax, eax
mov dword [esi - 0xc], 0x63
mov word [esi + 0xc6], ax
lea eax, [ebp - 0x14]
push eax
push esi
push 8
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x1003761e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
lea ecx, [ebp - 0x30]
call fcn.10049360
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
cmp eax, 0xea
je 0x100375d9
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push 0x100adf48
push eax
mov dword [ebp - 0x24], vtable.Win32Exception.0
call fcn.10063e94
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
dec eax
push eax
call fcn.10016ad0
push eax
push 8
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x1003760f
call esi
push eax
lea ecx, [ebp - 0x24]
call fcn.10049360
push 0x100adf48
lea eax, [ebp - 0x24]
push eax
call fcn.10063e94
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.10051690
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
cmp eax, 0xffffffff
jne 0x10037632
push dword [esi - 8]
push esi
call fcn.1006887d
add esp, 8
test eax, eax
js 0x10037689
cmp eax, dword [esi - 8]
jg 0x10037689
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
add esi, 0xfffffff0
push esi
call fcn.10008330
mov edi, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10037674
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.10008310
int3