joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41bd20
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [ecx + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x41bd30
xor al, al
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41bd2d
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x41bd2d
mov edx, 0x10b
cmp word [eax + 0x18], dx
sete al
ret

Function at 0x41bd80
Capabilities:
Enumerate pe sections

Disassembly:
mov edx, dword [ecx + 4]
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
xor edi, edi
xor esi, esi
nop
mov eax, dword [edx + 0x3c]
movzx ecx, word [eax + edx + 6]
add eax, edx
cmp edi, ecx
jae 0x41bdc8
movzx ecx, word [eax + 0x14]
add ecx, esi
lea eax, [ecx + eax + 0x18]
test eax, eax
je 0x41bdc8
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x41bdb9
add ecx, edx
cmp ecx, ebx
ja 0x41bdc2
mov ebp, dword [eax + 8]
add ebp, ecx
cmp ebp, ebx
ja 0x41bdca
inc edi
add esi, 0x28
jmp 0x41bd90
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4

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

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push esi
mov esi, ecx
test ebx, ebx
jne 0x41bdf9
pop esi
xor al, al
pop ebx
add esp, 8
ret 8
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x3c]
mov edx, dword [esi]
mov edx, dword [edx]
add eax, ecx
mov eax, dword [eax + 0x78]
push edi
push eax
mov ecx, esi
call edx
mov edi, eax
mov dword [esp + 0xc], edi
test edi, edi
jne 0x41be23
pop edi
pop esi
xor al, al
pop ebx
add esp, 8
ret 8
mov eax, dword [esp + 0x18]
push ebp
cmp eax, 0xffff
ja 0x41be3e
pop ebp
pop edi
mov word [ebx], ax
pop esi
mov al, 1
pop ebx
add esp, 8
ret 8
mov ecx, dword [edi + 0x20]
mov eax, dword [esi]
mov edx, dword [eax]
push ecx
mov ecx, esi
call edx
mov ecx, dword [edi + 0x18]
lea ebp, [eax + ecx*4]
mov dword [esp + 0x14], eax
mov ebx, eax
cmp eax, ebp
je 0x41beaa
lea ebx, [ebx]
mov eax, ebp
sub eax, ebx
sar eax, 2
cdq
sub eax, edx
mov edx, dword [esi]
mov edx, dword [edx]
sar eax, 1
lea edi, [ebx + eax*4]
mov eax, dword [edi]
push eax
mov ecx, esi
call edx
mov ecx, dword [esp + 0x1c]
mov dl, byte [ecx]
test dl, dl
je 0x41be91
cmp dl, byte [eax]
jne 0x41be91
mov dl, byte [ecx + 1]
inc ecx
inc eax
test dl, dl
jne 0x41be84
movzx edx, byte [eax]
movzx eax, byte [ecx]
sub eax, edx
je 0x41beb6
test eax, eax
jle 0x41bea4
lea ebx, [edi + 4]
jmp 0x41bea6
mov ebp, edi
cmp ebx, ebp
jne 0x41be60
pop ebp
pop edi
pop esi
xor al, al
pop ebx
add esp, 8
ret 8
mov ebx, dword [esp + 0x10]
mov ecx, dword [ebx + 0x24]
mov eax, dword [esi]
mov edx, dword [eax]
push ecx
mov ecx, esi
call edx
sub edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
sar edi, 2
mov ax, word [eax + edi*2]
add ax, word [ebx + 0x10]
pop ebp
pop edi
pop esi
mov word [ecx], ax
mov al, 1
pop ebx
add esp, 8
ret 8
Function at 0x41f4c0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov edi, dword [esp + 0x18]
push 0
lea eax, [edi + ebp]
push eax
push 0
push 0x8000004
push 0
push 0xffffffffffffffff
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 0x14], eax
test eax, eax
jne 0x41f4f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
ret 0x10
mov edx, dword [esi]
push 0
push 0
push 6
lea ecx, [esp + 0x24]
push ecx
push edx
push eax
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x41f4eb
mov eax, dword [esi + 0x14]
push ebx
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x41f5c9
mov edx, dword [esp + 0x18]
lea ecx, [ebx + edi]
push ecx
push ebp
push edx
call fcn.0041f390
mov eax, dword [esp + 0x28]
add esp, 0xc
push 4
push 0x4fd37c
push str.g_shared_section
mov ecx, esi
mov dword [0x4fd37c], eax
call fcn.0041f480
mov dword [0x4fd37c], 0
test eax, eax
jne 0x41f5c4
push 4
push 0x4fd3f4
push str.g_shared_IPC_size
mov ecx, esi
mov dword [0x4fd3f4], edi
call fcn.0041f480
mov dword [0x4fd3f4], 0
test eax, eax
jne 0x41f5c4
push 4
push 0x4fd3f8
push str.g_shared_policy_size
mov ecx, esi
mov dword [0x4fd3f8], ebp
call fcn.0041f480
xor ebp, ebp
mov dword [0x4fd3f8], ebp
cmp eax, ebp
je 0x41f5e2
cmp eax, 1
jne 0x41f5d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
pop edi
pop esi
pop ebp
ret 0x10
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
ret 0x10
push 0x34
call fcn.00439524
add esp, 4
cmp eax, ebp
je 0x41f60d
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x20]
push ecx
mov ecx, dword [esi + 0x18]
push edx
mov edx, dword [esi + 8]
push ecx
mov ecx, dword [esi]
push edx
push ecx
mov ecx, eax
call fcn.00422bc0
jmp 0x41f60f
xor eax, eax
push 0x400
push edi
push ebx
mov ecx, eax
mov dword [esi + 0x1c], eax
call fcn.00423150
test al, al
jne 0x41f630
pop ebx
pop edi
pop esi
mov eax, 8
pop ebp
ret 0x10
pop ebx
pop edi
mov dword [esi + 4], ebp
pop esi
xor eax, eax
pop ebp
ret 0x10
Function at 0x4278e0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x5c
mov eax, dword [0x4fa5ac]
xor eax, esp
mov dword [esp + 0x58], eax
cmp byte [esp + 0x60], 0
push edi
mov edi, ecx
jne 0x427912
cmp dword [edi + 0x1c], 0
jne 0x427944
mov al, 1
pop edi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00439589
add esp, 0x5c
ret 4
push 0
push 0x431fb0
push 1
push str.NtMapViewOfSection
push 0x4a81c0
call fcn.00427340
push 1
push 0x4320f0
push 1
push str.NtUnmapViewOfSection
push 0x4a81c0
mov ecx, edi
call fcn.00427340
mov eax, dword [edi]
push ebx
mov ebx, dword [eax]
push ebp
push esi
mov esi, dword [edi + 0x1c]
push 0x40
push 0x1000
shl esi, 6
add esi, 0x50
push esi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0x58
push 0
push 0x4fd410
mov ebp, eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x30], 0
mov dword [esp + 0x28], 0x10
call fcn.004395a0
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push esi
push ebp
mov ecx, edi
call fcn.00426e30
test al, al
je 0x4279fa
lea edx, [esp + 0x10]
push edx
push 0x10
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4279fa
cmp dword [esp + 0x10], 0x10
jne 0x4279fa
lea ecx, [esp + 0x14]
push ecx
push 0x20
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ecx, dword [edi]
push 0x58
push 0x4fd410
push str.g_originals
call fcn.0041f480
pop esi
pop ebp
test eax, eax
pop ebx
sete al
pop edi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00439589
add esp, 0x5c
ret 4
mov ecx, dword [esp + 0x68]
pop esi
pop ebp
pop ebx
pop edi
xor ecx, esp
xor al, al
call fcn.00439589
add esp, 0x5c
ret 4

Function at 0x428800
Capabilities:
Create pipe

Disassembly:
push ecx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push esi
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov esi, eax
cmp esi, 0xffffffff
je 0x428860
mov eax, dword [esp + 0xc]
push 3
push 0
push 0
lea edx, [esp + 0x10]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x428866
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
pop esi
pop ecx
ret
mov eax, dword [esp + 4]
pop esi
pop ecx
ret
Function at 0x428940
Capabilities:
Create process on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x38]
push esi
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x428981
pop esi
pop ecx
ret
cmp dword [esp + 0x10], 0
mov eax, 0x101c01
mov dword [esp + 4], 0x100c43
je 0x42899e
mov eax, 0x1fffff
mov dword [esp + 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebp
push edi
mov edi, dword [esp + 0x18]
push 1
push 0
push eax
mov eax, dword [esi]
push esi
push edi
push eax
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call ebp
test eax, eax
jne 0x4289d6
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
pop ecx
ret
mov edx, dword [esp + 0x10]
push 1
push 0
push edx
lea eax, [esi + 4]
push eax
mov eax, dword [eax]
push edi
push eax
call ebx
push eax
call ebp
pop edi
neg eax
pop ebp
sbb eax, eax
pop ebx
neg eax
pop esi
pop ecx
ret
Function at 0x431840
Capabilities:
Resume thread
Suspend thread

Disassembly:
sub esp, 0x98
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
mov eax, dword [eax + 4]
xor ebx, ebx
push eax
mov dword [esp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 1
je 0x4318b8
cmp dword [0x4fc768], 1
jne 0x43189f
call fcn.00408d70
cmp eax, 3
jg 0x43189f
push 3
push 0xb6
push str.._srcWow64.cc
lea ecx, [esp + 0x18]
mov ebx, 1
call fcn.0040d230
add eax, 4
push str.Check_failed:_false.
push eax
call fcn.004025f0
add esp, 8
test bl, 1
je 0x4318ad
lea ecx, [esp + 0xc]
call fcn.0040cc70
pop esi
xor al, al
pop ebx
add esp, 0x98
ret
mov ecx, dword [esi + 8]
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push ecx
call edi
cmp eax, 0x102
je 0x431924
mov ebp, dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0x80
je 0x431924
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x431924
mov ecx, esi
call fcn.0042e110
mov bl, al
test bl, bl
je 0x431903
mov eax, dword [esi]
mov eax, dword [eax + 4]
push eax
call ebp
test eax, eax
jne 0x431924
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x431924
test bl, bl
jne 0x431931
mov edx, dword [esi + 8]
push 0xffffffffffffffff
push edx
call edi
cmp eax, 0x102
jne 0x4318d5
pop edi
pop ebp
pop esi
xor al, al
pop ebx
add esp, 0x98
ret
pop edi
pop ebp
pop esi
mov al, 1
pop ebx
add esp, 0x98
ret
Function at 0x431e10
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0xd4
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], 0
call fcn.00411f40
mov ebx, 1
cmp dword [eax + 0x24], ebx
je 0x431e3c
pop esi
mov al, bl
pop ebx
add esp, 0xd4
ret
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push ebx
push 0
call edi
push 0
push 0
push ebx
push 0
mov dword [esi + 8], eax
call edi
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [esi + 8]
mov ebp, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 0
push 0
mov edi, eax
mov eax, dword [esi]
mov eax, dword [eax]
push 0x100002
lea ecx, [esp + 0x28]
push ecx
push eax
push edx
push edi
call ebp
test eax, eax
je 0x431f74
mov eax, dword [esi]
mov eax, dword [eax]
mov edx, dword [esi + 0xc]
push 0
push 0
push 0x100002
lea ecx, [esp + 0x20]
push ecx
push eax
push edx
push edi
call ebp
test eax, eax
je 0x431f74
mov eax, dword [esi]
mov eax, dword [eax]
push 0x40
push 0x1000
push 0x1000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
cmp dword [0x4fc768], ebx
jne 0x431f06
call fcn.00408d70
cmp eax, 3
jg 0x431f06
test edi, edi
jne 0x431f06
push 3
push 0x70
push str.._srcWow64.cc
lea ecx, [esp + 0x5c]
mov dword [esp + 0x1c], ebx
call fcn.0040d230
add eax, 4
push str.Check_failed:_buffer.
push eax
call fcn.004025f0
add esp, 8
test byte [esp + 0x10], bl
je 0x431f15
lea ecx, [esp + 0x50]
call fcn.0040cc70
test edi, edi
je 0x431f74
push 0x2c
lea ecx, [esp + 0x28]
push 0
push ecx
call fcn.004395a0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov ecx, dword [esi]
add esp, 0xc
mov dword [esp + 0x20], edx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x2c], eax
mov eax, dword [ecx]
push 0x10
lea ecx, [esp + 0x28]
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x431f74
cmp dword [esp + 0x18], 0x10
jne 0x431f74
push edi
mov ecx, esi
call fcn.00431a70
test al, al
je 0x431f74
mov ecx, esi
call fcn.00431840
test al, al
jne 0x431f81
pop edi
pop ebp
pop esi
xor al, al
pop ebx
add esp, 0xd4
ret
mov edx, dword [esi]
mov eax, dword [edx]
push edi
push eax
call fcn.0042e030
add esp, 8
pop edi
pop ebp
pop esi
pop ebx
add esp, 0xd4
ret
Function at 0x432900
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0xdc
mov eax, dword [0x4fa5ac]
xor eax, esp
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0xe0]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xf4]
xor ebx, ebx
push 0xffffffffffffffff
xor ecx, ecx
push ebx
mov word [esp + 0xd8], cx
mov ebp, 7
push eax
lea ecx, [esp + 0xd8]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0xf0], ebp
mov dword [esp + 0xec], ebx
call fcn.00401e30
push 4
push 0x4a8da8
push 4
push ebx
lea ecx, [esp + 0xdc]
call fcn.00401300
test eax, eax
jne 0x4329c9
push 0xffffffffffffffff
push 4
lea eax, [esp + 0xd4]
xor edx, edx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], dx
call fcn.00401e30
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0xd8]
call fcn.00401e30
mov esi, 8
cmp dword [esp + 0x34], esi
jb 0x4329ce
mov edx, dword [esp + 0x20]
push edx
call fcn.004390ba
add esp, 4
jmp 0x4329ce
mov esi, 8
lea eax, [esp + 0xcc]
push eax
call fcn.00432550
add esp, 4
test al, al
je 0x4329fe
mov byte [edi], bl
cmp dword [esp + 0xe4], esi
jb 0x432ad8
mov ecx, dword [esp + 0xd0]
push ecx
jmp 0x432ad0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or eax, 0xffffffff
push eax
push ebx
lea eax, [esp + 0xd4]
xor edx, edx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], dx
call fcn.00401e30
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0xd8]
call fcn.00401e30
cmp dword [esp + 0x34], esi
jb 0x432a50
mov edx, dword [esp + 0x20]
push edx
call fcn.004390ba
add esp, 4
mov eax, dword [esp + 0xd0]
cmp dword [esp + 0xe4], esi
jae 0x432a67
lea eax, [esp + 0xd0]
push eax
call edi
cmp eax, 0xffffffff
jne 0x432af3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x432a8e
cmp esi, 3
je 0x432a8e
cmp esi, 0x7b
jne 0x432b14
mov esi, 8
push 1
push 0xffffffffffffffff
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xd8]
mov dword [esp + 0x24], 0x5c
call fcn.00409520
cmp eax, 0xffffffff
jne 0x432a07
mov ecx, dword [esp + 0x10]
mov byte [ecx], bl
cmp dword [esp + 0xe4], esi
jb 0x432ad8
mov edx, dword [esp + 0xd0]
push edx
call fcn.004390ba
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xe8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00439589
add esp, 0xdc
ret
test eax, 0x400
je 0x432a93
mov edx, dword [esp + 0x10]
mov byte [edx], 1
cmp dword [esp + 0xe4], esi
jb 0x432ad8
mov eax, dword [esp + 0xd0]
push eax
jmp 0x432ad0
mov ebx, 1
cmp dword [0x4fc768], ebx
jne 0x432b50
call fcn.00408d70
cmp eax, 3
jg 0x432b50
push 3
push 0x6b
push str.._srcwin_utils.cc
lea ecx, [esp + 0x44]
call fcn.0040d230
add eax, 4
push str.Check_failed:_false.
push eax
call fcn.004025f0
add esp, 8
jmp 0x432b54
mov bl, byte [esp + 0x14]
test bl, 1
je 0x432b62
lea ecx, [esp + 0x38]
call fcn.0040cc70
cmp dword [esp + 0xe4], 8
jb 0x432b7c
mov ecx, dword [esp + 0xd0]
push ecx
call fcn.004390ba
add esp, 4
mov eax, esi
jmp 0x432ada
Function at 0x4357f0
Capabilities:
Get common file path
Get program files directory

Disassembly:
sub esp, 0x2dc
mov eax, dword [0x4fa5ac]
xor eax, esp
mov dword [esp + 0x2d8], eax
push ebx
push esi
mov esi, dword [esp + 0x2e8]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xe2]
xor ebx, ebx
push ecx
mov dword [esp + 0x4c], ebx
mov word [esp + 0xe4], ax
call fcn.004395a0
add esp, 0xc
lea edx, [esp + 0xd8]
push edx
push ebx
push ebx
push 0x26
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x43593e
xor eax, eax
mov word [esp + 0x28], ax
lea eax, [esp + 0xd8]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebx
lea edx, [eax + 2]
jmp 0x435870
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x435870
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0xdc]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00402040
xor edx, edx
mov eax, esi
mov word [esp + 0xc], dx
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4358b0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x10]
call fcn.00402040
push 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.00413c60
add esp, 0xc
test al, al
mov esi, 8
sete bl
cmp dword [esp + 0x20], esi
jb 0x4358fb
mov edx, dword [esp + 0xc]
push edx
call fcn.004390ba
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
cmp dword [esp + 0x3c], esi
jb 0x435925
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004390ba
add esp, 4
pop esi
mov al, bl
pop ebx
mov ecx, dword [esp + 0x2d8]
xor ecx, esp
call fcn.00439589
add esp, 0x2dc
ret
cmp dword [0x4fc768], 1
jne 0x43597c
call fcn.00408d70
cmp eax, 3
jg 0x43597c
push 3
push 0xd0
push str..installerutilinstall_util.cc
lea ecx, [esp + 0x50]
mov ebx, 1
call fcn.0040d230
add eax, 4
push str.Check_failed:_false.
push eax
call fcn.004025f0
add esp, 8
test bl, 1
je 0x43598a
lea ecx, [esp + 0x44]
call fcn.0040cc70
mov ecx, dword [esp + 0x2e0]
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.00439589
add esp, 0x2dc
ret

Function at 0x439589
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4fa5ac]
jne 0x439593
repz ret
jmp fcn.00441209
Function at 0x44f56d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00440ca7
and dword [ebp - 4], 0
cmp dword [0x4fe30c], 0
mov ebx, eax
jne 0x44f61e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x44f6cf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x44f6cf
push eax
call fcn.00440c35
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4fe30c], eax
call esi
push eax
call fcn.00440c35
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4fe310], eax
call esi
push eax
call fcn.00440c35
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4fe314], eax
call esi
push eax
call fcn.00440c35
pop ecx
mov dword [0x4fe31c], eax
test eax, eax
je 0x44f61e
push 0x4bebb4
push edi
call esi
push eax
call fcn.00440c35
pop ecx
mov dword [0x4fe318], eax
mov eax, dword [0x4fe318]
cmp eax, ebx
je 0x44f676
cmp dword [0x4fe31c], ebx
je 0x44f676
push eax
call fcn.00440cb0
push dword [0x4fe31c]
mov esi, eax
call fcn.00440cb0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x44f676
test edi, edi
je 0x44f676
call esi
test eax, eax
je 0x44f66d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44f66d
test byte [ebp - 0xc], 1
jne 0x44f676
or dword [ebp + 0x10], 0x200000
jmp 0x44f6af
mov eax, dword [0x4fe310]
cmp eax, ebx
je 0x44f6af
push eax
call fcn.00440cb0
pop ecx
test eax, eax
je 0x44f6af
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x44f6af
mov eax, dword [0x4fe314]
cmp eax, ebx
je 0x44f6af
push eax
call fcn.00440cb0
pop ecx
test eax, eax
je 0x44f6af
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4fe30c]
call fcn.00440cb0
pop ecx
test eax, eax
je 0x44f6cf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44f6d1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x458850
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
sub esp, 0xc0
mov eax, dword [0x4fa5ac]
xor eax, esp
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0xc8]
push ebx
push ebp
push esi
mov esi, dword [esp + 0xd0]
push edi
xor ebx, ebx
mov edi, 1
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
cmp dword [0x4fc768], edi
jne 0x4588c4
call fcn.00408d70
cmp eax, 3
jg 0x4588c4
test esi, esi
jne 0x4588c4
push 3
push 0x58
push str..wini18n.cc
lea ecx, [esp + 0x28]
mov ebx, edi
call fcn.0040d230
add eax, 4
push str.Check_failed:_language.
push eax
call fcn.004025f0
add esp, 8
test bl, 1
je 0x4588d5
lea ecx, [esp + 0x1c]
and ebx, 0xfffffffe
call fcn.0040cc70
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx esi, ax
mov ecx, 0x1400
cmp cx, si
je 0x458a2c
push 9
lea edx, [esp + 0xbc]
push edx
movzx edi, si
push 0x59
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp dword [0x4fc768], 1
mov ebp, eax
jne 0x458955
call fcn.00408d70
cmp eax, 3
jg 0x458955
test ebp, ebp
jne 0x458955
or ebx, 2
call sub.KERNEL32.dll_GetLastError
push eax
push 3
push 0x62
push str..wini18n.cc
lea ecx, [esp + 0x2c]
call fcn.0040d320
push str.Failed_getting_language_id
add eax, 0xc
push str.Check_failed:_0___result_length.
push eax
call fcn.004025f0
add esp, 8
push eax
call fcn.004025f0
add esp, 8
test bl, 2
je 0x458966
lea ecx, [esp + 0x1c]
and ebx, 0xfffffffd
call fcn.0040d380
cmp ebp, 1
jle 0x458a80
mov ecx, dword [esp + 0x10]
dec ebp
push ebp
lea eax, [esp + 0xbc]
push eax
call fcn.00402040
mov ebp, dword [esp + 0x14]
mov ecx, ebp
call fcn.00406560
and esi, 0xfc00
xor ecx, ecx
cmp cx, si
je 0x458a28
push 9
lea edx, [esp + 0xbc]
push edx
push 0x5a
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp dword [0x4fc768], 1
mov esi, eax
jne 0x458a04
call fcn.00408d70
cmp eax, 3
jg 0x458a04
test esi, esi
jne 0x458a04
or ebx, 4
call sub.KERNEL32.dll_GetLastError
push eax
push 3
push 0x6a
push str..wini18n.cc
lea ecx, [esp + 0x2c]
call fcn.0040d320
push str.Failed_getting_region_id
add eax, 0xc
push str.Check_failed:_0___result_length.
push eax
call fcn.004025f0
add esp, 8
push eax
call fcn.004025f0
add esp, 8
test bl, 4
je 0x458a12
lea ecx, [esp + 0x1c]
call fcn.0040d380
cmp esi, 1
jle 0x458a28
dec esi
push esi
lea eax, [esp + 0xbc]
push eax
mov ecx, ebp
call fcn.00402040
mov al, 1
jmp 0x458a82
cmp dword [0x4fc768], edi
jne 0x458a72
call fcn.00408d70
cmp eax, 3
jg 0x458a72
push 3
push 0x73
push str..wini18n.cc
lea ecx, [esp + 0x28]
or ebx, 8
call fcn.0040d230
push str.Cannot_determine_language_for_a_supplemental_locale.
add eax, 4
push str.Check_failed:_false.
push eax
call fcn.004025f0
add esp, 8
push eax
call fcn.004025f0
add esp, 8
test bl, 8
je 0x458a80
lea ecx, [esp + 0x1c]
call fcn.0040cc70
xor al, al
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00439589
add esp, 0xc0
ret