joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421820
Capabilities:
List user accounts

Disassembly:
push ebp
sub esp, 0x5c
lea ebp, [esp - 4]
mov eax, dword [0x4dc104]
xor eax, ebp
mov dword [ebp + 0x5c], eax
push 0x38
mov eax, 0x4b4a3a
call fcn.0048ccab
xor ebx, ebx
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x10], ebx
mov dword [ebp], ebx
mov dword [ebp + 8], ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp + 0x10]
push eax
push 0xffffffffffffffff
lea eax, [ebp + 0x14]
push eax
push ebx
push 3
push ebx
call sub.NETAPI32.dll_NetUserEnum
mov dword [ebp + 0xc], eax
cmp eax, ebx
je 0x42187c
cmp eax, 0xea
jne 0x42199f
push dword [ebp + 0x14]
lea esi, [ebp + 4]
call fcn.0042271d
mov dword [ebp - 4], ebx
mov esi, dword [ebp + 0x14]
cmp esi, ebx
je 0x42197c
mov dword [ebp + 0x18], ebx
cmp dword [ebp + 0x10], ebx
jbe 0x42197c
cmp esi, ebx
je 0x421975
push 7
pop edi
push ebx
lea ecx, [ebp + 0x40]
mov dword [ebp + 0x58], edi
call fcn.004069e2
mov byte [ebp - 4], 1
push ebx
lea ecx, [ebp + 0x24]
mov dword [ebp + 0x3c], edi
call fcn.004069e2
mov byte [ebp - 4], 2
push dword [esi]
lea ecx, [ebp - 0x28]
call fcn.004040cf
mov byte [ebp - 4], 3
xor edi, edi
lea eax, [ebp + 0x40]
inc edi
or dword [ebp + 0x1c], edi
push eax
lea ecx, [ebp - 0x28]
call fcn.0041fdf7
pop ecx
test al, al
je 0x421904
lea edx, [ebp + 0x24]
lea ecx, [ebp + 0x40]
call fcn.0041ff12
mov byte [ebp + 0x23], 1
test al, al
jne 0x421907
mov byte [ebp + 0x23], bl
mov dword [ebp - 4], 2
test byte [ebp + 0x1c], 1
je 0x421922
and dword [ebp + 0x1c], 0xfffffffe
push ebx
push edi
lea ecx, [ebp - 0x28]
call fcn.00405617
cmp byte [ebp + 0x23], bl
je 0x421946
push dword [esi]
lea ecx, [ebp - 0x44]
call fcn.004040cf
mov byte [ebp - 4], 4
inc dword [ebp + 0x68]
mov byte [ebp - 4], 2
push ebx
push edi
lea ecx, [ebp - 0x44]
call fcn.00405617
add esi, 0x74
mov byte [ebp - 4], 1
push ebx
push edi
lea ecx, [ebp + 0x24]
call fcn.00405617
mov byte [ebp - 4], bl
push ebx
push edi
lea ecx, [ebp + 0x40]
call fcn.00405617
inc dword [ebp + 0x18]
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp + 0x10]
jb 0x4218a1
jmp 0x42197c
mov dword [ebp + 0xc], 0xc
or dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
cmp dword [ebp + 0xc], 0xea
je 0x42184f
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x5c]
xor ecx, ebp
call fcn.00488689
add ebp, 0x60
leave
ret
Function at 0x421d55
Capabilities:
List user accounts

Disassembly:
push ebp
sub esp, 0x5c
lea ebp, [esp - 4]
mov eax, dword [0x4dc104]
xor eax, ebp
mov dword [ebp + 0x5c], eax
push 0x50
mov eax, 0x4b49dc
call fcn.0048ccab
mov eax, dword [ebp + 0x68]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x6c]
mov dword [ebp + 4], eax
mov eax, dword [ebp + 0x70]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x74]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x78]
xor ebx, ebx
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x7c]
mov dword [ebp - 0x1c], eax
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x24], ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x10]
push eax
push 0xffffffffffffffff
lea eax, [ebp + 0x14]
push eax
push ebx
push 3
push ebx
call sub.NETAPI32.dll_NetUserEnum
mov dword [ebp + 0xc], eax
cmp eax, ebx
je 0x421dd5
cmp eax, 0xea
jne 0x421f17
push dword [ebp + 0x14]
lea esi, [ebp]
call fcn.0042271d
mov dword [ebp - 4], ebx
mov esi, dword [ebp + 0x14]
cmp esi, ebx
je 0x421ef4
mov dword [ebp + 0x18], ebx
cmp dword [ebp + 0x10], ebx
jbe 0x421ef4
cmp esi, ebx
je 0x421eed
push 7
pop edi
push ebx
lea ecx, [ebp + 0x40]
mov dword [ebp + 0x58], edi
call fcn.004069e2
mov byte [ebp - 4], 1
push ebx
lea ecx, [ebp + 0x24]
mov dword [ebp + 0x3c], edi
call fcn.004069e2
mov byte [ebp - 4], 2
push dword [esi]
lea ecx, [ebp - 0x40]
call fcn.004040cf
mov byte [ebp - 4], 3
xor edi, edi
lea eax, [ebp + 0x40]
inc edi
or dword [ebp + 0x1c], edi
push eax
lea ecx, [ebp - 0x40]
call fcn.0041fdf7
pop ecx
test al, al
je 0x421e5d
lea edx, [ebp + 0x24]
lea ecx, [ebp + 0x40]
call fcn.0041ff12
mov byte [ebp + 0x23], 1
test al, al
jne 0x421e60
mov byte [ebp + 0x23], bl
mov dword [ebp - 4], 2
test byte [ebp + 0x1c], 1
je 0x421e7b
and dword [ebp + 0x1c], 0xfffffffe
push ebx
push edi
lea ecx, [ebp - 0x40]
call fcn.00405617
cmp byte [ebp + 0x23], bl
je 0x421ebe
push dword [esi]
lea ecx, [ebp - 0x5c]
call fcn.004040cf
mov byte [ebp - 4], 4
push dword [ebp - 0x1c]
lea eax, [ebp + 0x24]
push dword [ebp + 8]
push dword [ebp - 0x10]
push ebx
push dword [ebp - 0x20]
push dword [ebp - 0x18]
push eax
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp - 0x5c]
push eax
call dword [ebp + 4]
add esp, 0x24
mov byte [ebp - 4], 2
push ebx
push edi
lea ecx, [ebp - 0x5c]
call fcn.00405617
add esi, 0x74
mov byte [ebp - 4], 1
push ebx
push edi
lea ecx, [ebp + 0x24]
call fcn.00405617
mov byte [ebp - 4], bl
push ebx
push edi
lea ecx, [ebp + 0x40]
call fcn.00405617
inc dword [ebp + 0x18]
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp + 0x10]
jb 0x421dfa
jmp 0x421ef4
mov dword [ebp + 0xc], 0xc
or dword [ebp - 4], 0xffffffff
mov esi, dword [ebp]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
cmp dword [ebp + 0xc], 0xea
je 0x421da8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x5c]
xor ecx, ebp
call fcn.00488689
add ebp, 0x60
leave
ret
Function at 0x42433e
Capabilities:
Create service

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x4dc104]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x34
mov eax, 0x4b3dd4
call fcn.0048ccab
mov eax, dword [ebp + 0x80c]
mov dword [ebp - 0x14], eax
push 0x400
lea eax, [ebp]
xor ebx, ebx
push eax
push ebx
mov esi, ecx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
xor edi, edi
inc edi
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x42443d
cmp dword [esi + 0x78], ebx
jne 0x4243a7
mov dword [ebp - 0x10], ebx
jmp 0x4243b8
cmp dword [esi + 0x7c], 8
jb 0x4243b2
mov eax, dword [esi + 0x68]
jmp 0x4243b5
lea eax, [esi + 0x68]
mov dword [ebp - 0x10], eax
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x40]
call fcn.004040cf
mov dword [ebp - 4], edi
lea ecx, [esi + 0x80]
cmp dword [ecx + 0x18], 8
jb 0x4243d8
mov ecx, dword [ecx + 4]
jmp 0x4243db
add ecx, 4
cmp dword [eax + 0x18], 8
mov dword [ebp - 0x1c], ecx
jb 0x4243e9
mov eax, dword [eax + 4]
jmp 0x4243ec
add eax, 4
cmp dword [esi + 0x60], 8
mov dword [ebp - 0x18], eax
jb 0x4243fa
mov edx, dword [esi + 0x4c]
jmp 0x4243fd
lea edx, [esi + 0x4c]
cmp dword [esi + 0x44], 8
jb 0x424408
mov eax, dword [esi + 0x30]
jmp 0x42440b
lea eax, [esi + 0x30]
push ebx
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
push ebx
push 0x4c9f38
push dword [ebp - 0x18]
push edi
push 3
push 0x10
push 0xf01ff
push edx
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov byte [ebp - 4], bl
push ebx
push edi
lea ecx, [ebp - 0x40]
call fcn.00405617
push str._installed.
add esi, 0x48
push esi
push dword [ebp - 0x14]
call fcn.00423f4c
add esp, 0xc
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.00488689
add ebp, 0x804
leave
ret 4
Function at 0x424506
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push 0xc
mov eax, 0x4aec49
call fcn.0048ccde
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, edi
je 0x4245c0
cmp dword [esi + 0x44], 8
jb 0x42453c
mov ecx, dword [esi + 0x30]
jmp 0x42453f
lea ecx, [esi + 0x30]
push 0xf01ff
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x4245c0
lea ebx, [esi + 4]
push ebx
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
call edi
test eax, eax
je 0x4245af
cmp dword [esi + 8], 1
je 0x4245a8
push ebx
push 1
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4245af
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x4245af
cmp dword [esi + 8], 3
jne 0x42459c
push 0x1f4
jmp 0x42457f
cmp dword [esi + 8], 1
jne 0x4245af
or dword [ebp - 0x14], 2
jmp 0x4245af
mov dword [ebp - 0x14], 2
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x4245c0
or dword [ebp - 0x14], 4
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
call fcn.0048cd83
ret

Function at 0x424ab0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebx
xor ebx, ebx
push ebp
push edi
cmp dword [esi + 0x34], ebx
ja 0x424ac4
cmp dword [esi + 0x30], 0x40
jbe 0x424bc8
mov edi, dword [esi + 0x28]
mov ebp, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 0x40
push edi
call ebp
test eax, eax
jne 0x424bcd
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x424bcd
mov byte [esi + 0x38], 1
mov eax, dword [edi + 0x3c]
mov edi, dword [esi + 0x34]
xor ecx, ecx
lea edx, [eax + 0xf8]
cmp edi, ecx
jb 0x424bc8
ja 0x424b0f
mov ecx, dword [esi + 0x30]
cmp ecx, edx
jbe 0x424bc8
mov edx, dword [esi + 0x28]
add eax, edx
push 0xf8
push eax
mov dword [esi + 0x24], eax
call ebp
test eax, eax
jne 0x424bcd
mov eax, dword [esi + 0x24]
cmp dword [eax], 0x4550
jne 0x424bcd
mov ecx, 0x2000
test word [eax + 0x16], cx
jne 0x424b45
mov byte [esi + 0x44], 1
mov edx, eax
movzx eax, word [edx + 0x18]
mov ecx, 0x10b
cmp ax, cx
jne 0x424b61
mov dword [esi + 0x40], 1
add edx, 0x78
jmp 0x424b78
mov ecx, 0x20b
cmp ax, cx
jne 0x424b7b
mov dword [esi + 0x40], 2
add edx, 0x88
mov dword [esi + 0x20], edx
cmp dword [esi + 0x20], ebx
je 0x424bcd
mov eax, dword [esi + 0x24]
movzx ecx, word [eax + 6]
mov dword [esi + 0x3c], ecx
test ecx, ecx
je 0x424bcd
movzx edx, word [eax + 0x14]
mov ebx, dword [esi + 0x34]
lea ecx, [ecx + ecx*4]
add ecx, ecx
add ecx, ecx
add ecx, ecx
sub ecx, dword [esi + 0x28]
add ecx, edx
lea edi, [ecx + eax + 0x18]
xor ecx, ecx
cmp ebx, ecx
jb 0x424bc8
ja 0x424bb6
mov ecx, dword [esi + 0x30]
cmp ecx, edi
jbe 0x424bc8
pop edi
mov ebx, 1
lea edx, [edx + eax + 0x18]
pop ebp
mov eax, ebx
mov dword [esi + 0x1c], edx
pop ebx
ret
mov ebx, 2
pop edi
pop ebp
mov eax, ebx
pop ebx
ret
Function at 0x424da0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [eax + 0x24]
movzx edx, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
lea eax, [edx + ecx + 0x18]
xor edx, edx
test esi, esi
jbe 0x424dcf
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x424dc7
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x424dd1
inc edx
add eax, 0x28
cmp edx, esi
jb 0x424db7
xor eax, eax
pop esi
pop ebx
ret

Function at 0x424de0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [ebx + 0x24]
movzx ecx, word [eax + 0x14]
push ebp
push esi
movzx esi, word [eax + 6]
xor edx, edx
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0x424e0f
mov eax, dword [ecx + 0xc]
cmp edi, eax
jb 0x424e07
mov ebp, dword [ecx + 8]
add ebp, eax
cmp edi, ebp
jb 0x424e14
inc edx
add ecx, 0x28
cmp edx, esi
jb 0x424df7
pop esi
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 0xc]
pop esi
add eax, dword [ebx + 0x28]
pop ebp
add eax, edi
ret

Function at 0x425180
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b23b1
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push edi
mov eax, dword [0x4dc104]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x28]
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], ebx
mov eax, dword [0x4ee75c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4ee75c
call edx
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], 1
cmp eax, ebx
jbe 0x425283
cmp eax, 1
jne 0x425242
test esi, esi
jns 0x425224
lea eax, [esp + 0x14]
push ebp
push eax
mov ecx, esi
call fcn.00424ef0
add esp, 8
mov dword [esp + 0x20], 2
call fcn.00403951
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x425277
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.004250a0
add esp, 4
mov dword [esp + 0x20], 4
call fcn.00403951
jmp 0x42525f
lea ecx, [esp + 0x14]
push ebp
push ecx
mov ecx, esi
call fcn.00424ef0
add esp, 8
mov dword [esp + 0x20], 6
call fcn.00403951
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x425283
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x427300
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b479d
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4dc104]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [esi], eax
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x24]
push eax
mov dword [esi + 8], edx
call fcn.00427370
xor eax, eax
mov dword [esp + 0x14], eax
mov byte [esi + 0x30], al
mov byte [esi + 0x31], al
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0xc

Function at 0x427510
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4aeab4
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4dc104]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0x38]
xor ebx, ebx
mov dword [esp + 0x30], ebx
push 0xc
mov dword [esp + 0x1c], ebx
call fcn.004896b9
add esp, 4
mov dword [esp + 0x14], eax
mov ecx, 1
mov dword [esp + 0x30], ecx
cmp eax, ebx
je 0x42756c
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
jmp 0x42756e
xor eax, eax
mov byte [esp + 0x30], bl
mov dword [ebp], eax
mov dword [esp + 0x30], ebx
push ebx
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x44]
push ebx
push ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x42760c
mov edi, dword [ebp]
cmp esi, dword [edi + 4]
je 0x4275cd
mov eax, dword [edi]
push esi
push eax
call fcn.00489372
mov ecx, dword [edi + 4]
add esp, 8
mov dword [edi], eax
cmp esi, ecx
jbe 0x4275ca
mov edx, esi
sub edx, ecx
push edx
add ecx, eax
push ebx
push ecx
call fcn.0048ad80
add esp, 0xc
mov dword [edi + 4], esi
mov eax, dword [ebp]
mov edx, dword [esp + 0x3c]
push ebx
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], esi
mov eax, dword [eax]
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4275f3
cmp dword [esp + 0x14], esi
je 0x42760c
mov esi, dword [ebp]
cmp dword [esi + 4], ebx
je 0x42760c
mov eax, dword [esi]
push ebx
push eax
call fcn.00489372
add esp, 8
mov dword [esi], eax
mov dword [esi + 4], ebx
mov eax, ebp
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 0x427630
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
xor esi, esi
xor ebp, ebp
push edi
test ebx, ebx
jb 0x4276a6
ja 0x427649
cmp esi, dword [esp + 0x20]
jae 0x4276aa
mov ecx, dword [esp + 0x20]
sub ecx, esi
mov eax, ebx
sbb eax, ebp
test eax, eax
ja 0x427665
jb 0x427661
cmp ecx, 0x10000
jae 0x427665
mov edi, ecx
jmp 0x42766a
mov edi, 0x10000
mov ecx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
push edi
lea edx, [esi + ecx]
push edx
push eax
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4276a6
mov eax, dword [esp + 0x10]
cmp eax, edi
jne 0x4276a6
add esi, eax
adc ebp, 0
cmp ebp, ebx
jb 0x427649
ja 0x4276a6
cmp esi, dword [esp + 0x20]
jb 0x427649
cmp esi, dword [esp + 0x20]
jne 0x4276c7
cmp ebp, ebx
jne 0x4276c7
or esi, ebp
je 0x4276bf
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret

Function at 0x427810
Capabilities:
Get file size

Disassembly:
sub esp, 0xc
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
lea eax, [esp]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x427836
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 0xc
ret
or eax, 0xffffffff
or edx, 0xffffffff
add esp, 0xc
ret
Function at 0x427e00
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x4af98c
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4dc104]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x34]
xor ebx, ebx
mov dword [esp + 0x2c], ebx
push 0xc
mov dword [esp + 0x20], ebx
call fcn.004896b9
add esp, 4
mov dword [esp + 0x14], eax
mov ecx, 1
mov dword [esp + 0x2c], ecx
cmp eax, ebx
je 0x427e5c
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
jmp 0x427e5e
xor eax, eax
mov byte [esp + 0x2c], bl
mov dword [edi], eax
mov dword [esp + 0x2c], ebx
lea eax, [esp + 0x14]
push eax
push esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x427f0f
mov ecx, dword [esp + 0x14]
mov edx, ecx
and edx, dword [esp + 0x18]
cmp edx, 0xffffffff
je 0x427f0f
lea eax, [esp + 0x14]
push esi
push eax
call fcn.00427510
add esp, 8
mov ebp, eax
mov dword [esp + 0x2c], 2
mov esi, dword [edi]
add dword [esi + 8], 0xffffffff
jne 0x427ecd
cmp dword [esi + 4], ebx
je 0x427ecd
mov eax, dword [esi]
push ebx
push eax
call fcn.00489372
add esp, 8
mov dword [esi], eax
mov dword [esi + 4], ebx
mov eax, dword [ebp]
inc dword [eax + 8]
mov dword [edi], eax
mov byte [esp + 0x2c], bl
mov esi, dword [esp + 0x14]
dec dword [esi + 8]
cmp dword [esi + 8], ebx
lea eax, [esi + 8]
jne 0x427f0f
cmp dword [esi + 4], ebx
je 0x427efe
mov eax, dword [esi]
push ebx
push eax
call fcn.00489372
add esp, 8
mov dword [esi], eax
mov dword [esi + 4], ebx
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0048867e
add esp, 4
mov dword [esp + 0x14], ebx
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x428710
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b0829
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4dc104]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
xor esi, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], esi
mov eax, dword [0x4ee75c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4ee75c
call edx
mov edi, dword [esp + 0x2c]
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x24], esi
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push ebp
push esi
push 0xfde9
mov dword [esp + 0x38], 1
call ebx
cmp eax, 1
jle 0x428840
lea ecx, [esp + 0x14]
push ecx
mov edi, eax
call fcn.00429e40
mov dword [esp + 0x24], 2
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
xor edi, edi
push edi
push edi
push eax
push ecx
push 0xffffffffffffffff
push ebp
push edi
push 0xfde9
call ebx
cmp eax, 1
jle 0x4287f8
mov edx, dword [esi]
mov byte [edx + eax - 1], 0
mov edx, dword [esi]
cmp edx, edi
jne 0x4287d8
mov ebx, dword [esp + 0x2c]
xor eax, eax
push eax
push edx
mov ecx, ebx
call fcn.004063cd
jmp 0x4287fc
mov eax, edx
lea ebx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4287e0
sub eax, ebx
mov ebx, dword [esp + 0x2c]
push eax
push edx
mov ecx, ebx
call fcn.004063cd
jmp 0x4287fc
mov ebx, dword [esp + 0x2c]
mov byte [esp + 0x24], 0
add dword [esi + 8], 0xffffffff
jne 0x42882a
cmp dword [esi + 4], edi
je 0x42881d
mov eax, dword [esi]
push edi
push eax
call fcn.00489372
add esp, 8
mov dword [esi], eax
mov dword [esi + 4], edi
push esi
call fcn.0048867e
add esp, 4
mov dword [esp + 0x14], edi
mov eax, ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x428860
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b07d9
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4dc104]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
xor esi, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], esi
mov eax, dword [0x4ee75c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4ee75c
call edx
mov edi, dword [esp + 0x2c]
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x24], esi
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
push esi
push 0xffffffffffffffff
push ebp
push esi
push 0xfde9
mov dword [esp + 0x30], 1
call ebx
cmp eax, 1
jle 0x428987
lea ecx, [esp + 0x14]
push ecx
mov edi, eax
call fcn.00429f30
mov dword [esp + 0x24], 2
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
push 0xffffffffffffffff
push ebp
push 0
push 0xfde9
call ebx
cmp eax, 1
jle 0x42894e
mov edx, dword [esi]
xor ecx, ecx
mov word [edx + eax*2 - 2], cx
mov edx, dword [esi]
test edx, edx
jne 0x428925
mov ebx, dword [esp + 0x2c]
xor eax, eax
push eax
push edx
mov ecx, ebx
call fcn.0040658b
jmp 0x428952
mov eax, edx
lea edi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x428930
mov ebx, dword [esp + 0x2c]
sub eax, edi
sar eax, 1
push eax
push edx
mov ecx, ebx
call fcn.0040658b
jmp 0x428952
mov ebx, dword [esp + 0x2c]
mov byte [esp + 0x24], 0
add dword [esi + 8], 0xffffffff
jne 0x428971
xor edi, edi
call fcn.0042a010
push esi
call fcn.0048867e
add esp, 4
mov dword [esp + 0x14], edi
mov eax, ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x42a070
Capabilities:
Compare security identifiers

Disassembly:
push 0xffffffffffffffff
push 0x4ad968
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4dc104]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, dword [0x4ef568]
xor esi, esi
cmp dword [edi], esi
je 0x42a140
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esp + 0x14], esi
cmp eax, esi
je 0x42a0c7
push eax
call ebx
mov dword [esp + 0x10], esi
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push eax
push esi
push esi
push esi
lea ecx, [esp + 0x24]
push ecx
push 1
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
test eax, eax
jne 0x42a12d
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x42a12d
cmp dword [esp + 0x10], esi
je 0x42a12d
mov ecx, dword [edi]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x42a12d
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x42a116
push eax
call ebx
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 4
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x42a140
push eax
call ebx
xor al, al
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 4