joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476110
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5097de
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x564690]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x10]
mov dword [edi], 0
push eax
push 0
lea ecx, [edi + 4]
mov dword [ebp - 0x10], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.00485a10
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
lea eax, [ebp - 0x10]
mov dword [edi + 0x20], 0
push eax
push 0
lea ecx, [edi + 0x24]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.00485a10
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
lea ecx, [edi + 0x40]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x58], esi
mov dword [edi + 0x60], edx
mov byte [edi + 0x64], 0
mov dword [edi + 0x68], eax
test byte [esi + 8], 8
mov byte [ebp - 4], 2
je 0x476238
test dl, 0x10
jne 0x476238
mov eax, 1
jmp 0x47623a
xor eax, eax
mov byte [edi + 0x6c], al
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x70], eax
push dword [esi + 0x18]
call fcn.004890b0
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 0x1c
Function at 0x488050
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
sub edx, edi
sar edx, 1
mov esi, 0x811c9dc5
mov ecx, 0
add edx, edx
je 0x488081
lea ecx, [ecx]
movzx eax, byte [ecx + edi]
xor esi, eax
inc ecx
imul esi, esi, 0x1000193
cmp ecx, edx
jb 0x488070
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x489460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
call fcn.00461650
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 5
push esi
push ebx
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x489538
push 0xf0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ecx, eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x4894be
push ecx
push ebx
call eax
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadResource]
push dword [ebp - 8]
xor esi, esi
push ebx
call eax
test eax, eax
je 0x489525
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x489525
push dword [ebp - 4]
push eax
call fcn.0048b750
add esp, 8
mov ebx, eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
mov edi, eax
test edi, edi
je 0x489504
cmp edi, 0xffffffff
jne 0x48950c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp ebx, dword [ebp - 8]
je 0x48952d
test ebx, ebx
je 0x48952d
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x48952d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x489538
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48ab70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b7a6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x564690]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x48ac1c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x48ac1c
call fcn.0045bc40
mov esi, eax
jmp 0x48ad0c
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x48ac3f
call fcn.0045bc40
jmp 0x48acff
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
test ebx, ebx
jne 0x48ac5d
call fcn.0045bc40
jmp 0x48acff
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x48ac7e
mov esi, 0x8007000e
jmp 0x48ad01
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00489ee0
jmp 0x48aca8
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x48acbf
mov esi, 0x8007000e
jmp 0x48ad01
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x48acdf
call fcn.0045bc40
jmp 0x48acff
mov eax, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.0048aa10
mov esi, eax
test edi, edi
je 0x48ad0c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x48ad30
lea ecx, [ebp - 0x418]
call fcn.0048a2f0
jmp 0x48ad30
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e50b4
mov esp, ebp
pop ebp
ret 0x10
Function at 0x48b630
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x48b649
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48b655
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x48b650
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x48d170
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b9f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x564690]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x565ae0]
imul eax, eax
mov dword [ebp - 0x14], 0
and eax, reloc.OLEAUT32.dll_VariantInit
jns 0x48d1b2
dec eax
or eax, 0xfffffff8
inc eax
cmp eax, 2
jne 0x48d1c7
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
lea eax, [ebp - 0x10]
push eax
call fcn.0048d050
add esp, 4
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
mov eax, dword [esi - 0xc]
add eax, 0xfffffffc
push eax
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.004074d0
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48d211
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
Function at 0x48da00
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x48da1c
mov ecx, dword [ebp + 0xc]
call fcn.00405960
mov al, 1
pop edi
pop ebp
ret
mov ecx, dword [0x565ae0]
mov byte [ebp + 0xb], 0
lea edx, [ecx + 2]
lea eax, [ecx + 1]
imul eax, edx
imul eax, ecx
cdq
mov ecx, 0x18
idiv ecx
cmp edx, 0xa
jne 0x48da4f
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
call fcn.0048ef70
test al, al
jne 0x48da5e
dec dword [0x566f34]
push ebx
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [edi]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
test ebx, ebx
jne 0x48da8f
push dword [edi]
mov ecx, dword [ebp + 0xc]
call fcn.00402620
mov al, byte [ebp + 0xb]
pop ebx
pop edi
pop ebp
ret
push esi
push ebx
call fcn.004e3b54
push ebx
mov esi, eax
push 0
push esi
call fcn.004e6690
mov ecx, dword [edi]
add esp, 0x10
push 0
push 0
push ebx
push esi
push dword [ecx - 0xc]
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
mov eax, dword [0x565ae0]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 0x80000001
jns 0x48dad7
dec ecx
or ecx, 0xfffffffe
inc ecx
cmp ecx, 1
jne 0x48dafa
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test ebx, ebx
jne 0x48db0a
push dword [edi]
mov ecx, dword [ebp + 0xc]
call fcn.00402620
jmp 0x48db53
test esi, esi
jne 0x48db12
xor ecx, ecx
jmp 0x48db20
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x48db17
sub ecx, edx
push ecx
mov ecx, dword [ebp + 0xc]
push esi
call fcn.00412b80
mov ecx, dword [0x565ae0]
mov byte [ebp + 0xb], 1
lea edx, [ecx + 2]
lea eax, [ecx + 1]
imul eax, edx
imul eax, ecx
cdq
mov ecx, 0x12
idiv ecx
cmp edx, 0xf
jne 0x48db53
dec dword [0x566f3c]
test esi, esi
je 0x48db60
push esi
call fcn.004e5c83
add esp, 4
mov al, byte [ebp + 0xb]
pop esi
pop ebx
pop edi
pop ebp
ret
Function at 0x492460
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.004e6660
mov eax, dword [0x564690]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x4924c5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4924c5
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.004e987d
add eax, 0x40
push eax
call fcn.004ec087
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004e50b4
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call fcn.004ebfc2
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x492554
call fcn.00492320
test eax, eax
jle 0x492554
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004e50b4
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004e50b4
add esp, 0x108
ret
Function at 0x4a4550
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24
call fcn.004e6660
mov eax, dword [0x564690]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, esi
push edi
mov dword [ebp - 0x18], esi
lea ecx, [eax + 1]
jmp 0x4a4580
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4a4580
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
sub eax, ecx
lea edi, [eax + 1]
push edi
push esi
push 8
push 0xfde9
mov dword [ebp - 0x20], 8
call ebx
mov esi, eax
test esi, esi
jg 0x4a45f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ec
jne 0x4a45da
mov ecx, dword [ebp - 0x18]
push 0
push 0
push edi
push ecx
push 0
push 0xfde9
mov dword [ebp - 0x20], 0
call ebx
mov esi, eax
test esi, esi
jg 0x4a45f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jne 0x4a468a
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
push edx
push eax
jmp 0x4a4678
lea eax, [esi + esi]
call fcn.004eb600
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov eax, esp
push esi
push eax
push edi
push ecx
push edx
push 0xfde9
mov dword [ebp - 0x24], eax
call ebx
test eax, eax
je 0x4a468a
mov esi, dword [ebp - 0x1c]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a4623
push 8
sub eax, edx
lea ecx, [ebp - 0x14]
push ecx
inc eax
push eax
push esi
push 0
push 0xfde9
call ebx
test eax, eax
je 0x4a468a
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x14]
push edx
push eax
call fcn.004e76cd
mov esi, eax
add esp, 8
test esi, esi
jne 0x4a472e
call fcn.004ed58f
cmp dword [eax], 2
je 0x4a4670
call fcn.004ed58f
cmp dword [eax], 9
jne 0x4a4682
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
push ecx
push edx
call fcn.004eb00b
mov esi, eax
add esp, 8
test esi, esi
jne 0x4a472e
push 0xa9
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.00490fd0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
push 0x52f274
push eax
push 0x52f270
push ecx
push str.fopen_
push 5
call fcn.00490bb0
add esp, 0x2c
call fcn.004ed58f
cmp dword [eax], 2
jne 0x4a4700
push 0xac
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.00490fd0
add esp, 0x14
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50b4
mov esp, ebp
pop ebp
ret
push 0xae
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.00490fd0
add esp, 0x14
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50b4
mov esp, ebp
pop ebp
ret
push 0x563680
call fcn.0048f630
mov edi, eax
add esp, 4
test edi, edi
jne 0x4a4760
push esi
call fcn.004e785d
add esp, 4
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50b4
mov esp, ebp
pop ebp
ret
push 0
push edi
call fcn.0048f0c0
push esi
push 1
push 0x6a
push edi
call fcn.0048f420
add esp, 0x18
mov eax, edi
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50b4
mov esp, ebp
pop ebp
ret
Function at 0x4c3390
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x4c33a9
mov esi, edi
mov edi, eax
jmp 0x4c33ab
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x4c33bb
mov eax, ebx
jmp 0x4c33c5
push eax
push ebx
call fcn.004946d0
add esp, 8
test eax, eax
jne 0x4c33cd
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x4c33e9
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [edi + 4]
jl 0x4c33d4
cmp eax, dword [esi + 4]
jge 0x4c3400
mov edi, edi
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [esi + 4]
jl 0x4c33f0
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
test eax, eax
jle 0x4c3421
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x4c341e
dec eax
test eax, eax
jg 0x4c3410
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x4fec98
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x564690]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004f0db1
mov dword [ebp - 0x14], eax
cmp dword [0x569f7c], edi
jne 0x4fed89
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4fed16
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4fee69
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4fee69
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4fee69
push eax
call ebx
push 0x5534d8
push esi
mov dword [0x569f7c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x569f80], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5534fc
push esi
mov dword [0x569f84], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x569f8c], eax
test eax, eax
je 0x4fed86
push 0x553518
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x569f88], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4fedae
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4feda1
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4fedc3
push 4
pop eax
jmp 0x4fee6b
cmp dword [ebp - 0x14], edi
je 0x4fedc3
push dword [0x569f7c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4feda8
mov eax, dword [0x569f88]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4fee21
cmp dword [0x569f8c], esi
je 0x4fee21
push eax
call ebx
push dword [0x569f8c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4fee21
test eax, eax
je 0x4fee21
call ecx
test eax, eax
je 0x4fee16
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4fee16
test byte [ebp - 8], 1
jne 0x4fee21
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4fee51
mov eax, dword [0x569f80]
cmp eax, esi
je 0x4fee4e
push eax
call ebx
test eax, eax
je 0x4fee4e
call eax
mov edi, eax
test edi, edi
je 0x4fee4e
mov eax, dword [0x569f84]
cmp eax, esi
je 0x4fee4e
push eax
call ebx
test eax, eax
je 0x4fee4e
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x569f7c]
call ebx
test eax, eax
je 0x4fee69
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4fee6b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e50b4
leave
ret
Function at 0x501272
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004f1c15
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x5012aa
xor eax, eax
jmp 0x5012d6
cmp esi, dword [ebp - 4]
je 0x5012d3
cmp dword [ebp + 0xc], 0
je 0x5012d3
push dword [edi + 0x9c]
call fcn.00500e80
push dword [edi + 0x9c]
mov esi, eax
call fcn.004f10c9
pop ecx
pop ecx
cmp esi, eax
je 0x5012a6
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x1056c
Capabilities:
Complete processing asynchronous io request

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0x60]
mov ecx, dword [eax + 8]
push edi
mov edi, dword [eax + 0xc]
movzx eax, byte [eax + 1]
dec eax
dec eax
je 0x10588
dec eax
je 0x105ad
jmp 0x105b1
sub ecx, 0
je 0x105a6
dec ecx
jne 0x105b1
push ebx
mov ebx, dword [esp + 0x10]
push edi
push 1
push dword [ebx]
call dword [sym.imp.ntoskrnl.exe_PoSetPowerState]
mov dword [ebx + 0x18], edi
pop ebx
jmp 0x105ad
mov eax, dword [esp + 0xc]
mov dword [eax + 0x14], edi
and dword [esi + 0x18], 0
push esi
call dword [sym.imp.ntoskrnl.exe_PoStartNextPowerIrp]
mov edi, dword [esi + 0x18]
xor dl, dl
mov ecx, esi
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, edi
pop edi
pop esi
ret 8
Function at 0x11acc
Capabilities:
Complete processing asynchronous io request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax + 1]
cmp eax, 0x17
push esi
ja case.0x11978.10
jmp dword [eax*4 + 0x11ae7]
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 8]
xor ecx, ecx
inc ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 8], ecx
jmp 0x11a68
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 8]
mov dword [eax + 0xc], ecx
mov dword [eax + 8], 3
jmp 0x11a68
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 8]
mov dword [eax + 0xc], ecx
mov dword [eax + 8], 2
jmp 0x11a68
mov eax, dword [ebp + 0x14]
cmp dword [eax + 8], 2
jmp 0x119ef
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x34], 0
jne case.0x11978.22
mov ecx, dword [eax + 8]
mov dword [eax + 0xc], ecx
mov dword [eax + 8], 4
jmp 0x11a68
mov eax, dword [ebp + 0x14]
cmp dword [eax + 8], 4
jne 0x11a68
mov ecx, dword [eax + 0xc]
jmp 0x1198e
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 8]
mov dword [eax + 0xc], ecx
mov dword [eax + 8], 5
jmp 0x11a68
mov esi, dword [ebp + 0x14]
cmp byte [esi + 0x31], 0
je 0x11a58
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x1c]
test eax, eax
mov dword [esi + 8], 6
je 0x11a4d
push ebx
push edi
mov edi, dword [eax + 0x28]
lea ebx, [edi + 0x30]
mov ecx, ebx
call dword [sym.imp.HAL.dll_ExAcquireFastMutex]
mov ecx, dword [esi + 0x2c]
mov eax, dword [esi + 0x28]
mov dword [ecx], eax
mov dword [eax + 4], ecx
dec dword [edi + 0x2c]
mov ecx, ebx
call dword [sym.imp.HAL.dll_ExReleaseFastMutex]
pop edi
pop ebx
push esi
push dword [ebp + 8]
call fcn.00010ebc
jmp 0x11ac8
cmp byte [esi + 0x30], 0
je 0x11a68
mov eax, dword [esi + 8]
and dword [esi + 8], 0
mov dword [esi + 0xc], eax
xor esi, esi
jmp 0x11ad2
push dword [ebp + 0xc]
push dword [ebp + 0x14]
call fcn.000118bc
jmp 0x11ac8
push dword [ebp + 0xc]
push dword [ebp + 0x14]
call fcn.0001158e
jmp 0x11ac8
push dword [ebp + 0xc]
push dword [ebp + 0x14]
call fcn.0001176e
jmp 0x11ac8
push dword [ebp + 0xc]
push dword [ebp + 0x14]
call fcn.000116de
jmp 0x11ac8
push dword [ebp + 0xc]
push dword [ebp + 0x14]
call fcn.000117c0
jmp 0x11ac8
mov esi, 0xc0000001
jmp 0x11ad2
mov eax, dword [ebp + 0x14]
and byte [eax + 0x30], 0
jmp 0x11a68
push dword [ebp + 0xc]
push dword [ebp + 0x14]
call fcn.00010638
mov esi, eax
jmp 0x11ad2
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x18]
mov ecx, dword [ebp + 0xc]
xor dl, dl
mov dword [ecx + 0x18], esi
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, esi
pop esi
pop ebp
ret 0x10