joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4060a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x42f6ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, edx
push edi
mov edi, dword [ebp + 0xc]
mov esi, ebx
imul esi, dword [ebp + 8]
cmp byte [edi], 0
mov eax, ecx
mov dword [ebp - 8], eax
je 0x4060e6
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4060e1
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x40610e
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x4060f7
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp - 8]
call fcn.0040e520
add esp, 0xc
add dword [edi + 0x1c], esi
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor edx, edx
div ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c7c7
mov esp, ebp
pop ebp
ret

Function at 0x406130
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x42f6ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
cmp byte [esi], 0
push edi
mov dword [ebp - 0xc], ebx
mov edi, 1
je 0x406175
push 0
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 5]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406170
mov byte [esi + 8], 1
mov edi, dword [ebp - 0xc]
jmp 0x4061a2
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x406186
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp - 5]
push eax
call fcn.0040e520
lea eax, [ebx + edi]
mov ebx, dword [ebp - 0xc]
add esp, 0xc
mov dword [esi + 0x1c], eax
cmp edi, 1
jne 0x4061c0
movzx eax, byte [ebp - 5]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c7c7
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x4061ad
cmp byte [esi + 8], 0
je 0x4061ad
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.0040c7c7
mov esp, ebp
pop ebp
ret
Function at 0x406280
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x42f6ac]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [edi], 0
je 0x4062c9
cmp byte [edi + 1], 0
je 0x4062b7
push 2
push 0
push 0
push dword [edi + 4]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4062cf
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c7c7
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x18]
mov dword [edi + 0x1c], eax
cmp byte [edi], 0
je 0x4062ee
cmp byte [edi + 1], 0
je 0x4062ea
push 1
push 0
push 0
push dword [edi + 4]
call ecx
sub eax, dword [edi + 0xc]
jmp 0x4062f1
xor eax, eax
jmp 0x4062f1
mov eax, dword [edi + 0x1c]
push ebx
mov ebx, 0xffff
cmp eax, ebx
push esi
cmovb ebx, eax
push 0x404
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], ebx
call fcn.0040d0b9
mov esi, eax
add esp, 4
test esi, esi
jne 0x40632a
pop esi
pop ebx
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c7c7
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0xc], 0xffffffff
cmp ebx, eax
jbe 0x406427
mov edi, edi
mov ecx, dword [ebp - 0x10]
add eax, 0x400
cmp eax, ebx
mov edx, eax
cmova edx, ebx
mov ebx, dword [ebp - 0x10]
sub ecx, edx
sub ebx, ecx
cmp ebx, 0x404
mov eax, 0x404
cmova ebx, eax
cmp byte [edi], 0
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], ecx
je 0x40638e
cmp byte [edi + 1], 0
je 0x406427
mov eax, dword [edi + 0xc]
push 0
push 0
add eax, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x406391
mov dword [edi + 0x1c], ecx
cmp byte [edi], 0
mov ecx, ebx
mov dword [ebp - 0x14], ebx
je 0x4063b9
push 0
lea eax, [ebp - 8]
push eax
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4063b4
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x4063e2
mov edx, dword [edi + 0x1c]
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
jbe 0x4063cc
mov ecx, dword [edi + 0x18]
sub ecx, edx
mov dword [ebp - 0x14], ecx
push ecx
mov ecx, dword [edi + 0x14]
add ecx, edx
push ecx
push esi
call fcn.0040e520
mov eax, dword [ebp - 0x14]
add esp, 0xc
add dword [edi + 0x1c], eax
xor edx, edx
div ebx
cmp eax, 1
jne 0x406427
lea eax, [ebx - 3]
test eax, eax
js 0x406412
dec eax
cmp byte [eax + esi], 0x50
jne 0x40640e
cmp byte [eax + esi + 1], 0x4b
jne 0x40640e
cmp byte [eax + esi + 2], 5
jne 0x40640e
cmp byte [eax + esi + 3], 6
je 0x406444
test eax, eax
jns 0x4063f2
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x406427
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
cmp eax, ebx
jb 0x406340
push esi
call fcn.0040d081
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add esp, 4
xor ecx, ebp
pop esi
pop ebx
pop edi
call fcn.0040c7c7
mov esp, ebp
pop ebp
ret
add eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
jmp 0x406415
Function at 0x4071c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
jne 0x40725b
cmp dword [esi + 4], 0xffffffff
jne 0x40725b
lea edi, [esi + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4071f2
sub ecx, edx
mov al, byte [ecx + esi + 0x13f]
cmp al, 0x5c
je 0x40721d
cmp al, 0x2f
je 0x40721d
push 0x42ab3c
push 0x104
push edi
call fcn.0040d52d
add esp, 0xc
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406000
add esp, 8
test eax, eax
jne 0x40723c
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, eax
call fcn.00406450
xor ecx, ecx
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov dword [esi], eax
mov eax, ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
pop edi
mov eax, 0x1000000
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x407980
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x42f6ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x4079b2
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4079b2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebx]
test al, al
je 0x407a5e
push esi
mov esi, ebx
mov ecx, ebx
cmp al, 0x2f
je 0x4079c9
cmp al, 0x5c
jne 0x4079cb
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4079c1
cmp esi, ebx
je 0x407a07
sub esi, ebx
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0040e520
add esp, 0xc
cmp esi, 0x104
jae 0x407a6e
lea edx, [ebp - 0x20c]
mov ecx, edi
mov byte [ebp + esi - 0x20c], 0
call fcn.00407980
mov byte [ebp - 0x108], 0
pop esi
test edi, edi
je 0x407a28
push edi
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0040d14b
add esp, 0xc
push ebx
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0040d52d
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x407a5e
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040c7c7
mov esp, ebp
pop ebp
ret
call fcn.0040d453
int3
Function at 0x407f10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4238da
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x42f6ac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.0040bfc9
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x407fb6
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], str.bad_locale_name
call fcn.0040d5c7
push 0x42d7fc
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], vtable.std::runtime_error.0
call fcn.0040ebfb
push edi
push esi
call fcn.0040c263
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040c7c7
mov esp, ebp
pop ebp
ret 4

Function at 0x408970
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x430770]
test ecx, ecx
je 0x4089e1
mov eax, dword [0x430774]
push esi
push 1
push dword [eax + 4]
push dword [eax]
push dword [ebp + 0xc]
push 3
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
push 5
push dword [0x430770]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x430780], 0
mov esi, eax
jne 0x4089dc
mov eax, dword [0x430774]
cmp dword [eax + 0x10], 1
jle 0x4089da
push 0x43076c
push 0
push 0x430764
push 0x4087c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x430768], eax
mov eax, esi
pop esi
pop ebp
ret 8
xor eax, eax
pop ebp
ret 8
Function at 0x40a540
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423872
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x42f6ac]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x42c498
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov eax, dword [edi]
lea esi, [edi + 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], 1
mov dword [edi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push ecx
lea eax, [ecx - 0x18]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [eax + 4]
push esi
add ecx, edi
call fcn.0040b950
mov dword [ebp - 4], 2
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.0040ba10
lea eax, [esi + 4]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x4c], 0
mov byte [esi + 0x45], 0
lea ecx, [esi + 8]
mov dword [esi + 0x10], ecx
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [0x431bf0]
mov dword [esi + 0x50], 0
mov dword [esi + 0x48], eax
mov dword [esi + 0x40], 0
sub esp, 8
mov ecx, esi
push dword [ebp + 8]
mov byte [ebp - 4], 3
call fcn.0040b2b0
test eax, eax
jne 0x40a6a4
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 0xc]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x40a692
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x40a6a4
push 0
call fcn.00408430
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 0x10
Function at 0x40b4c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4239e8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x42f6ac]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x42f6ac]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x40b614
cmp byte [ebx + 0x45], 0
je 0x40b614
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x40b520
xor al, al
jmp 0x40b616
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
cmp ecx, 0x10
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 8
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x40b560
cmp dword [esp + 0x2c], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x2c]
lea edi, [esp + 0x1c]
cmovae edi, dword [esp + 0x1c]
lea esi, [esp + 0x1c]
cmovae esi, dword [esp + 0x1c]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40b5a1
dec eax
je 0x40b5a5
sub eax, 2
je 0x40b5fb
xor bl, bl
jmp 0x40b5fd
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp ecx, 0x10
lea eax, [esp + 0x18]
cmovae eax, edx
sub esi, eax
je 0x40b5dc
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [esp + 0x20]
cmovae eax, edx
push 1
push eax
call fcn.0040dd86
add esp, 0x10
cmp esi, eax
jne 0x40b59d
cmp byte [ebx + 0x45], 0
je 0x40b5fb
test esi, esi
jne 0x40b560
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.0040b120
jmp 0x40b560
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x40b610
push dword [esp + 0x18]
call fcn.0040c7d6
add esp, 4
mov al, bl
jmp 0x40b616
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0040c7c7
mov esp, ebp
pop ebp
ret
Function at 0x41bb58
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42f6ac]
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.00410d36
mov dword [ebp - 0x14], eax
cmp dword [0x431a90], edi
jne 0x41bc49
push 0x800
push edi
push 0x4298fc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x41bbd6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41bd29
push 0x4298fc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x41bd29
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41bd29
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x431a90], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x431a94], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x431a98], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x431aa0], eax
test eax, eax
je 0x41bc46
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x431a9c], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41bc6e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41bc61
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x41bc83
push 4
pop eax
jmp 0x41bd2b
cmp dword [ebp - 0x14], edi
je 0x41bc83
push dword [0x431a90]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41bc68
mov eax, dword [0x431a9c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x41bce1
cmp dword [0x431aa0], esi
je 0x41bce1
push eax
call ebx
push dword [0x431aa0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41bce1
test eax, eax
je 0x41bce1
call ecx
test eax, eax
je 0x41bcd6
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 0x41bcd6
test byte [ebp - 8], 1
jne 0x41bce1
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x41bd11
mov eax, dword [0x431a94]
cmp eax, esi
je 0x41bd0e
push eax
call ebx
test eax, eax
je 0x41bd0e
call eax
mov edi, eax
test edi, edi
je 0x41bd0e
mov eax, dword [0x431a98]
cmp eax, esi
je 0x41bd0e
push eax
call ebx
test eax, eax
je 0x41bd0e
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x431a90]
call ebx
test eax, eax
je 0x41bd29
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x41bd2b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c7c7
leave
ret
Function at 0x41efc9
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00414f6a
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 0x41f001
xor eax, eax
jmp 0x41f02d
cmp esi, dword [ebp - 4]
je 0x41f02a
cmp dword [ebp + 0xc], 0
je 0x41f02a
push dword [edi + 0x9c]
call fcn.0041ebd7
push dword [edi + 0x9c]
mov esi, eax
call fcn.00411321
pop ecx
pop ecx
cmp esi, eax
je 0x41effd
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x4013c9
Capabilities:
Access peb ldr_data

Disassembly:
xor eax, eax
pushal
mov ebx, dword fs:[0x30]
mov ebx, dword [ebx + 0xc]
mov ebx, dword [ebx + 0x14]
mov edi, ebx
mov esi, dword [ebx + 0x28]
xor eax, eax
xor edx, edx
mov ecx, dword [esi]
test cx, cx
je 0x401416
mov al, cl
cmp al, 0x61
jb 0x4013f1
sub al, 0x20
ror edx, 0xd
add edx, eax
ror edx, 0xd
shr ecx, 0x10
test cx, cx
je 0x401416
mov al, cl
cmp al, 0x61
jb 0x401409
sub al, 0x20
ror edx, 0xd
add edx, eax
ror edx, 0xd
lea esi, [esi + 4]
jmp 0x4013e2
cmp edx, dword [esp + 0x18]
je 0x401426
mov ebx, dword [ebx]
cmp edi, dword [ebx]
jne 0x4013db
xor eax, eax
jmp 0x401429
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x401431
Capabilities:
Resolve function by parsing pe exports

Disassembly:
xor eax, eax
pushal
mov ebx, ecx
mov eax, dword [ebx + 0x3c]
mov eax, dword [ebx + eax + 0x78]
test eax, eax
je 0x401518
lea esi, [ebx + eax]
test edx, 0xffff0000
je 0x40151e
mov ecx, dword [esi + 0x18]
mov edi, dword [esi + 0x20]
lea edi, [ebx + edi]
mov ebp, dword [edi + ecx*4 - 4]
lea ebp, [ebx + ebp]
xor eax, eax
xor edx, edx
mov al, byte [ebp]
test al, al
je 0x40147d
cmp al, 0x61
jb 0x401475
sub al, 0x20
ror edx, 0xd
add edx, eax
inc ebp
jmp 0x401468
cmp edx, dword [esp + 0x14]
je 0x40148d
dec ecx
jne 0x40145d
xor eax, eax
jmp 0x401518
mov edx, dword [esi + 0x24]
lea edx, [ebx + edx]
mov edx, dword [edx + ecx*2 - 2]
and edx, 0xffff
mov eax, dword [esi + 0x1c]
lea eax, [ebx + eax]
mov eax, dword [eax + edx*4]
lea eax, [ebx + eax]
cmp eax, esi
jbe 0x401518
mov ecx, dword [ebx + 0x3c]
mov ecx, dword [ebx + ecx + 0x7c]
add esi, ecx
cmp eax, esi
jae 0x401518
mov ebp, eax
xor eax, eax
xor edx, edx
mov al, byte [ebp]
cmp al, 0x61
jb 0x4014c9
sub al, 0x20
ror edx, 0xd
add edx, eax
ror edx, 0xd
inc ebp
cmp al, 0x2e
je 0x4014d8
jmp 0x4014c0
ror edx, 0xd
add edx, 0x44
ror edx, 0x1a
add edx, 0x4c
ror edx, 0x1a
add edx, 0x4c
ror edx, 0xd
mov ecx, edx
call fcn.004013c9
test eax, eax
je 0x401518
mov ecx, eax
xor eax, eax
xor edx, edx
mov al, byte [ebp]
test al, al
je 0x401513
cmp al, 0x61
jb 0x40150b
sub al, 0x20
ror edx, 0xd
add edx, eax
inc ebp
jmp 0x4014fe
call fcn.00401431
mov dword [esp + 0x1c], eax
popal
ret
mov ecx, dword [esi + 0x10]
cmp edx, ecx
jb 0x401536
mov eax, dword [esi + 0x14]
dec eax
cmp edx, eax
ja 0x401536
sub edx, ecx
mov ecx, edx
jmp 0x40148d
xor eax, eax
jmp 0x401518
Function at 0x40271e
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 8
call fcn.0040e6c1
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.0040e6c1
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], esp
mov eax, 0
call fcn.0040e6bb
cmp dword [ebp - 0x1c], esp
je 0x4027b8
push 0x19
push 0x40160f1
push 6
call fcn.0040e6b5
add esp, 0xc
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], esp
push dword [ebp - 4]
push 0
push 0x1f0fff
mov eax, 1
call fcn.0040e6bb
cmp dword [ebp - 0x1c], esp
je 0x4027f1
push 0x46
push 0x40160f1
push 6
call fcn.0040e6b5
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 0xc]
push eax
push 0xf01ff
push dword [ebp - 8]
mov eax, 2
call fcn.0040e6bb
cmp dword [ebp - 0x1c], esp
je 0x402829
push 0x73
push 0x40160f1
push 6
call fcn.0040e6b5
add esp, 0xc
mov dword [ebp - 0x1c], esp
push dword [ebp - 0x10]
push str.SeDebugPrivilege
push 0
mov eax, 3
call fcn.0040e6bb
cmp dword [ebp - 0x1c], esp
je 0x40285f
push 0x9d
push 0x40160f1
push 6
call fcn.0040e6b5
add esp, 0xc
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x14]
add ebx, 0xc
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], 2
mov ebx, dword [ebp - 0x14]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 8
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov dword [ebp - 0x1c], esp
push 0
push 0
push 0
push dword [ebp - 0x14]
push 0
push dword [ebp - 0xc]
mov eax, 4
call fcn.0040e6bb
cmp dword [ebp - 0x1c], esp
je 0x4028f8
push 0x1ad
push 0x40160f1
push 6
call fcn.0040e6b5
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push dword [ebp - 8]
mov eax, 5
call fcn.0040e6bb
cmp dword [ebp - 0x1c], esp
je 0x402927
push 0x1ed
push 0x40160f1
push 6
call fcn.0040e6b5
add esp, 0xc
mov eax, dword [ebp - 0x18]
jmp 0x40292f
push eax
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.0040e6af
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.0040e6af
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x407903
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push 0x33
call 0x40790d
add dword [esp], 5
retf

Function at 0x407acb
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push 0x33
call 0x407ad5
add dword [esp], 5
retf