joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41fc90
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x446f30
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x457118]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, 1
mov dword [esp + 0x1c], edi
mov esi, dword [esp + 0x24]
cmp dword [esi - 4], edi
jle 0x41fcd8
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00401c30
mov esi, dword [esp + 0x24]
lea edx, [esp + 0x10]
push edx
push 0x10000
push 0
push esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41fd52
lea eax, [esi - 0x10]
mov byte [esp + 0x1c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fd15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fd3d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret
mov ebp, dword [esp + 0x28]
cmp dword [ebp - 4], edi
jle 0x41fd6d
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00401c30
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [esp + 0x10]
push ecx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
test edi, edi
sete dl
lea eax, [esi - 0x10]
mov byte [esp + 0x1c], 0
lea ecx, [eax + 0xc]
mov edi, edx
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fdb0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fdd4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret
Function at 0x420370
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x448513
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x457118]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x457118]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
mov dword [esp + 0x23c], 0
mov ebx, dword [esp + 0x244]
cmp dword [ebx - 4], 1
jle 0x4203df
mov eax, dword [ebx - 0xc]
push eax
lea ecx, [esp + 0x248]
push ecx
call fcn.00401c30
mov ebx, dword [esp + 0x244]
lea edx, [esp + 0x18]
push edx
push 8
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4204ef
mov eax, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
xor edi, edi
push edi
push edi
push edi
push edi
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x38]
push edx
push edi
push eax
mov dword [esp + 0x3c], 0x208
call ebp
cmp eax, 0x103
je 0x4204b6
lea esp, [esp]
test eax, eax
jne 0x4204ef
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x28]
call fcn.00401720
lea ebx, [esp + 0x20]
mov byte [esp + 0x23c], 1
call fcn.00415a10
mov byte [esp + 0x23c], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42047f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x38]
push edx
add edi, 1
push edi
push eax
mov dword [esp + 0x3c], 0x208
call ebp
cmp eax, 0x103
mov ebx, dword [esp + 0x244]
jne 0x420430
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 0xfffffff0
mov dword [esp + 0x23c], 0xffffffff
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4204e8
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov eax, 1
jmp 0x420514
lea eax, [ebx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x23c], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420512
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0042e417
add esp, 0x22c
ret
Function at 0x420540
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x448513
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x457118]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x457118]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [esp + 0x23c], edi
mov ebx, dword [esp + 0x244]
cmp dword [ebx - 4], 1
jle 0x4205ab
mov eax, dword [ebx - 0xc]
push eax
lea ecx, [esp + 0x248]
push ecx
call fcn.00401c30
mov ebx, dword [esp + 0x244]
lea edx, [esp + 0x18]
push edx
push 1
push edi
push ebx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4206b5
mov eax, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push edi
push edi
push edi
push edi
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x38]
push edx
push edi
push eax
mov dword [esp + 0x3c], 0x208
call ebp
cmp eax, 0x103
je 0x42067c
test eax, eax
jne 0x4206b5
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x28]
call fcn.00401720
lea ebx, [esp + 0x20]
mov byte [esp + 0x23c], 1
call fcn.00415a10
mov byte [esp + 0x23c], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x420645
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x38]
push edx
add edi, 1
push edi
push eax
mov dword [esp + 0x3c], 0x208
call ebp
cmp eax, 0x103
mov ebx, dword [esp + 0x244]
jne 0x4205f6
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 0xfffffff0
mov dword [esp + 0x23c], 0xffffffff
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4206ae
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov eax, 1
jmp 0x4206da
lea eax, [ebx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x23c], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4206d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0042e417
add esp, 0x22c
ret
Function at 0x420770
Capabilities:
Access peb ldr_data
Hash data with md5

Disassembly:
push 0xffffffffffffffff
push 0x446ee4
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x457118]
xor eax, esp
mov dword [esp + 0x74], eax
push ebp
push esi
push edi
mov eax, dword [0x457118]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov eax, dword [esp + 0x98]
xor ebp, ebp
mov dword [esp + 0x90], ebp
mov dword [esp + 0x14], ebp
push eax
mov eax, dword [esp + 0xa0]
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x20], 0x67452301
mov dword [esp + 0x24], 0xefcdab89
mov dword [esp + 0x28], 0x98badcfe
mov dword [esp + 0x2c], 0x10325476
call fcn.0042c0d0
add esp, 4
lea esi, [esp + 0x1c]
lea ecx, [esp + 0x74]
call fcn.0042c190
mov eax, dword [0x458a2c]
mov edx, dword [eax + 0xc]
mov ecx, 0x458a2c
call edx
add eax, 0x10
mov dword [ebx], eax
mov dword [esp + 0x90], ebp
mov dword [esp + 0x14], 1
mov eax, dword [0x458a2c]
mov edx, dword [eax + 0xc]
mov ecx, 0x458a2c
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x90], 1
movzx eax, byte [esp + ebp + 0x74]
push eax
push str._02x
lea edi, [esp + 0x18]
call fcn.00405760
mov esi, dword [esp + 0x18]
mov eax, dword [esi - 0xc]
add esp, 8
push eax
push esi
push ebx
call fcn.004161d0
lea eax, [esi - 0x10]
mov byte [esp + 0x90], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420893
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 1
cmp ebp, 0x10
jl 0x420828
mov eax, ebx
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0042e417
add esp, 0x84
ret

Function at 0x420970
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x446e89
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x457118]
xor eax, esp
mov dword [esp + 0x1c], eax
push edi
mov eax, dword [0x457118]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0xc], 0
mov eax, dword [0x458a2c]
mov edx, dword [eax + 0xc]
mov edi, ecx
mov ecx, 0x458a2c
mov dword [esp + 0x10], edi
call edx
add eax, 0x10
mov dword [edi], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x30], 0
push eax
mov dword [esp + 0x10], 1
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x420a36
movzx ecx, byte [esp + 0x23]
movzx edx, byte [esp + 0x22]
movzx eax, byte [esp + 0x21]
push ecx
movzx ecx, byte [esp + 0x24]
push edx
movzx edx, byte [esp + 0x27]
push eax
movzx eax, byte [esp + 0x2a]
push ecx
movzx ecx, byte [esp + 0x2d]
push edx
movzx edx, byte [esp + 0x30]
push eax
movzx eax, word [esp + 0x32]
push ecx
movzx ecx, word [esp + 0x34]
push edx
mov edx, dword [esp + 0x34]
push eax
push ecx
push edx
push str._08X__04X__04x__02X_02X__02X_02X_02X_02X_02X_02X
call fcn.00405760
add esp, 0x30
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0042e417
add esp, 0x2c
ret
Function at 0x420a60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x447679
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x457118]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x20], esp
mov esi, esp
call fcn.00401a70
add eax, 0x10
lea ebx, [esp + 0x18]
mov dword [esi], eax
call fcn.00421370
add esp, 4
mov esi, 1
mov dword [esp + 0x28], esi
mov edx, dword [0x458a2c]
mov eax, dword [edx + 0xc]
mov ecx, 0x458a2c
call eax
mov ebx, dword [esp + 0x30]
add eax, 0x10
mov dword [ebx], eax
mov edi, dword [esp + 0x14]
mov eax, dword [edi - 0xc]
mov dword [esp + 0x18], esi
xor esi, esi
test eax, eax
jle 0x420c60
test esi, esi
jl 0x420c97
cmp esi, eax
jg 0x420c97
mov dl, byte [esi + edi]
cmp dl, 0x41
mov byte [esp + 0x34], dl
jl 0x420b1b
cmp esi, eax
jg 0x420c97
cmp dl, 0x5a
jle 0x420c00
cmp esi, eax
jg 0x420c97
cmp dl, 0x61
jl 0x420b39
cmp esi, eax
jg 0x420c97
cmp dl, 0x7a
jle 0x420c00
cmp esi, eax
jg 0x420c97
cmp dl, 0x30
jl 0x420b57
cmp esi, eax
jg 0x420c97
cmp dl, 0x39
jle 0x420c00
cmp esi, eax
jg 0x420c97
cmp dl, 0x2d
je 0x420c00
cmp esi, eax
jg 0x420c97
cmp dl, 0x5f
je 0x420c00
cmp esi, eax
jg 0x420c97
cmp dl, 0x2e
je 0x420c00
cmp esi, eax
jg 0x420c97
cmp dl, 0x20
mov edi, ebx
jne 0x420ba1
push 0x2b
call fcn.004157a0
jmp 0x420c4e
push 0x25
call fcn.004157a0
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 0xc]
jg 0x420c97
movsx ecx, byte [esi + eax]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00421d40
add esp, 8
mov byte [esp + 0x28], 2
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
push ebx
call fcn.004161d0
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420c4e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x420c4e
cmp esi, eax
jg 0x420c97
mov eax, dword [ebx]
mov edi, dword [eax - 0xc]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
lea ebp, [edi + 1]
sub eax, ebp
or eax, ecx
jge 0x420c2e
mov ecx, ebp
mov eax, ebx
call fcn.00401b80
mov dl, byte [esp + 0x34]
test ebp, ebp
mov eax, dword [ebx]
movsx cx, dl
mov word [eax + edi*2], cx
jl 0x420c97
mov eax, dword [ebx]
cmp ebp, dword [eax - 8]
jg 0x420c97
mov dword [eax - 0xc], ebp
mov edx, dword [ebx]
mov word [edx + ebp*2], 0
mov edi, dword [esp + 0x14]
mov eax, dword [edi - 0xc]
add esi, 1
cmp esi, eax
jl 0x420aee
lea eax, [edi - 0x10]
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420c81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
push 0x80070057
call fcn.00401000
int3
Function at 0x421a20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x447600
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x457118]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [esp + 0x1c], edi
mov eax, dword [0x458a2c]
mov edx, dword [eax + 0xc]
mov ecx, 0x458a2c
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x30], edi
mov eax, dword [0x458a2c]
mov edx, dword [eax + 0xc]
mov ecx, 0x458a2c
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
cmp esi, edi
mov ebx, 1
mov byte [esp + 0x30], bl
jge 0x421a9c
push 0x44fc00
lea eax, [esp + 0x1c]
call fcn.00401ae0
neg esi
mov word [esp + 0x1e], di
mov eax, 0x66666667
imul esi
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
lea eax, [edi + edi*4]
add eax, eax
sub esi, eax
lea ecx, [esp + 0x24]
push ecx
add esi, 0x30
lea ecx, [esp + 0x20]
mov word [esp + 0x20], si
call fcn.00401720
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x24]
push ecx
mov ebx, eax
mov byte [esp + 0x38], 2
call fcn.004156e0
add esp, 8
mov byte [esp + 0x30], 3
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebp - 0x10]
cmp eax, esi
je 0x421b3f
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x421b2e
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x421b2e
call fcn.00401a70
mov ebp, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x421b25
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x14], ebp
jmp 0x421b3f
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.00401ae0
mov ebp, dword [esp + 0x14]
mov byte [esp + 0x30], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421b64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421b89
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, edi
test esi, esi
jg 0x421aa1
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0x14]
push ecx
push esi
lea ebx, [esp + 0x20]
call fcn.004156e0
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x421bce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 0xfffffff0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421bf3
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x421d40
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4475c1
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x457118]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, dword [esp + 0x38]
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], eax
mov eax, dword [0x458a2c]
mov edx, dword [eax + 0xc]
mov ecx, 0x458a2c
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov esi, 1
mov dword [esp + 0x30], esi
mov eax, dword [0x458a2c]
mov edx, dword [eax + 0xc]
mov ecx, 0x458a2c
call edx
add eax, 0x10
mov dword [edi], eax
push 0x44fc04
lea ebx, [esi + 0xf]
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], esi
call fcn.00401ae0
xor eax, eax
mov word [esp + 0x14], ax
mov word [esp + 0x16], ax
mov eax, dword [esp + 0x3c]
and eax, 0xf
jl 0x421ef9
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx - 0xc]
jg 0x421ef9
mov ax, word [ecx + eax*2]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x18]
mov word [esp + 0x18], ax
call fcn.00401720
lea edx, [esp + 0x20]
push edi
push edx
mov ebx, eax
mov byte [esp + 0x38], 2
call fcn.004156e0
add esp, 8
mov byte [esp + 0x30], 3
mov ecx, dword [eax]
mov esi, dword [edi]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x421e60
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x421e55
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x421e55
call fcn.00401a70
mov ebp, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x421e4e
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [edi], ebp
jmp 0x421e60
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, edi
call fcn.00401ae0
mov ebx, 2
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421e89
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421eae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi]
shr dword [esp + 0x3c], 4
cmp dword [ecx - 0xc], ebx
jl 0x421dc9
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x421ee3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push 0x80070057
call fcn.00401000
int3
Function at 0x422460
Capabilities:
Get session user name

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
push 0x44da60
xor ebx, ebx
mov ebp, 1
call fcn.00401ae0
xor ecx, ecx
mov eax, 0x104
mov dword [esp + 0x10], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042d31c
mov edi, dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov esi, eax
add esp, 4
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
jne 0x4224ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4224ea
push esi
call fcn.0042ed62
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042d31c
mov esi, eax
add esp, 8
lea eax, [esp + 0x10]
push eax
push esi
call edi
mov ebp, eax
test esi, esi
jne 0x4224f2
xor eax, eax
jmp 0x422506
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4224f7
sub eax, edx
sar eax, 1
mov ebx, eax
mov eax, dword [esp + 0x18]
push esi
call fcn.00401ae0
push esi
call fcn.0042ed62
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x422750
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x446d86
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
mov eax, dword [0x457118]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
fldz
xor ebx, ebx
fstp qword [esi + 0x10]
mov dword [esi], 4
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov eax, dword [0x458a2c]
mov edx, dword [eax + 0xc]
mov ecx, 0x458a2c
call edx
add eax, 0x10
mov dword [esi + 0x18], eax
lea eax, [esi + 0x1c]
mov dword [esp + 0x20], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
push eax
mov byte [esp + 0x24], 1
mov edx, dword [esp + 0x2c]
xor ecx, ecx
push ecx
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x18], bl
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x38]
push ecx
push edx
lea ecx, [edi + eax]
push ecx
lea edx, [esp + 0x28]
push edx
mov eax, edi
call fcn.00424520
add esp, 0x1c
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x18
ret 8
Function at 0x422830
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x448470
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x457118]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x20]
mov eax, dword [0x458a2c]
mov edx, dword [eax + 0xc]
mov ecx, 0x458a2c
call edx
add eax, 0x10
mov dword [ebx], eax
push ecx
mov dword [esp + 0x10], esp
mov esi, esp
push ecx
mov eax, esp
mov dword [esp + 0x20], 0
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], esp
push eax
call fcn.00414fd0
push esi
call fcn.00420cb0
lea ecx, [esp + 0x30]
add esp, 8
push ecx
call fcn.00421150
add esp, 8
mov byte [esp + 0x18], 1
call fcn.00423b60
mov byte [esp + 0x18], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4228d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret 8

Function at 0x422a10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4474a8
mov eax, dword fs:[0]
push eax
push ecx
push edi
mov eax, dword [0x457118]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0
mov eax, dword [0x458a2c]
mov edx, dword [eax + 0xc]
mov ecx, 0x458a2c
call edx
add eax, 0x10
mov dword [esp + 8], eax
mov byte [esp + 0x14], 1
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
push 0x44fc38
lea edi, [esp + 0x14]
call fcn.00405760
push 1
mov edx, edi
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x38]
push esi
push ecx
call fcn.004215a0
add esp, 0x20
mov edi, esi
mov byte [esp + 0x14], 2
call fcn.00402e30
mov byte [esp + 0x14], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x422ab6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x14], 0
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422adb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422b03
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x10
ret 0xc