joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10146ade
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10146b7b
push ebx
push esi
call fcn.10146aa7
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1013ff25
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10146b28
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10146b7a
push edi
push eax
call fcn.1013e9da
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10146b48
call fcn.1013e9a0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10146b79
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1013ff25
add esp, 0x20
test eax, eax
jne 0x10146b67
push edi
call fcn.1013e9a0
jmp 0x10146b6f
push ebx
call fcn.1013e9a0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10146b7e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10146b8f
pop esi
ret
push ebx
push edi
push esi
call fcn.10146aa7
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1013e9da
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10146bb7
push ebx
push esi
push edi
call fcn.10127390
add esp, 0xc
push 0
call fcn.1013e9a0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10146f87
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10146bcc

Function at 0x101490aa
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1013ce09
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10149119
cmp esi, dword [ebp - 4]
je 0x10149114
cmp dword [ebp + 0xc], 0
je 0x10149114
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x101490f1
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10148bfc
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1014911b
xor eax, eax
inc eax
jmp 0x1014911b
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10149180
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1020f140]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1013ce09
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1013ce09
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x101491f7
cmp word [ecx], dx
je 0x101491f7
mov eax, dword [0x101905fc]
push edi
dec eax
push eax
push 0x101904e8
call fcn.1014911f
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1014926a
cmp word [eax], dx
je 0x1014926a
mov eax, dword [edi]
test eax, eax
je 0x1014921b
cmp word [eax], dx
je 0x1014921b
lea eax, [ebp - 0x10]
push eax
call fcn.10148b02
jmp 0x10149224
lea eax, [ebp - 0x10]
push eax
call fcn.10148b9d
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10149294
mov eax, dword [0x101904e4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x101901d8
call fcn.1014911f
add esp, 0xc
test al, al
je 0x10149294
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1014925f
cmp word [eax], di
je 0x1014925f
lea eax, [ebp - 0x10]
push eax
call fcn.10148b02
pop ecx
jmp 0x10149296
lea eax, [ebp - 0x10]
push eax
call fcn.10148b9d
jmp 0x1014925c
mov eax, dword [edi]
test eax, eax
je 0x10149281
cmp word [eax], dx
je 0x10149281
lea eax, [ebp - 0x10]
push eax
call fcn.10148ab7
pop ecx
jmp 0x10149294
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1014935f
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10148fa4
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1014935f
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1014935f
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1014935f
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x101492ec
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1014312d
test ebx, ebx
je 0x1014935a
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1014312d
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1014935f
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1014935f
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10140ba1
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10149361
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1012559f
leave
ret
Function at 0x1014cfa1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1014cf1d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1014d110
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1014d110
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1014d0c5
jg 0x1014cffd
test eax, eax
je 0x1014d0bb
push 1
push 0x1000
call fcn.1013e7b9
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1014d020
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1014d0b2
push 0x8000
push ebx
call fcn.1014ce4e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1014d049
jg 0x1014d044
cmp ecx, 0x1000
jb 0x1014d049
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10142246
add esp, 0x10
cmp eax, 0xffffffff
je 0x1014d08e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1014d044
jl 0x1014d075
test ecx, ecx
jne 0x1014d036
push dword [ebp - 0xc]
push ebx
call fcn.1014ce4e
push esi
call fcn.1013e9a0
add esp, 0xc
xor ebx, ebx
jmp 0x1014d11e
cmp byte [edi + 0x24], 0
je 0x1014d0a5
cmp dword [edi + 0x20], 5
jne 0x1014d0a5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1014d0b0
mov ebx, dword [edi + 0x18]
jmp 0x1014d0b2
xor ebx, ebx
push esi
call fcn.1013e9a0
pop ecx
jmp 0x1014d11e
test ecx, ecx
jg 0x1014d087
jl 0x1014d0c5
test eax, eax
jae 0x1014d087
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.101440b4
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1014d0e5
cmp byte [edi + 0x1c], 0
je 0x1014d087
jmp 0x1014d116
push ebx
call fcn.1014b6dd
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1014d087
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1014d11e
cmp byte [edi + 0x1c], 0
je 0x1014d11b
mov ebx, dword [edi + 0x18]
jmp 0x1014d11e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.101440b4
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1014e700
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1014e72d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1014e72d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401020
Capabilities:
Terminate process

Disassembly:
push esi
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401063
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x401063
push 0x800
mov ecx, esi
call dword [0x4222bc]
call esi
test eax, eax
jne 0x4010a2
push 0x4225a4
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4010a2
push str.LdrEnumerateLoadedModules
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4010a2
push 0
push 0x401100
push 0
mov ecx, esi
call dword [0x4222bc]
call esi
push 0xa
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
jne 0x4010c6
push 0x3eb
call fcn.00403650
add esp, 4
push 0xc000001d
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00407440
cmp eax, 0x5010300
jae 0x4010ea
push 0x3ec
call fcn.00403650
add esp, 4
push 0x47e
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.0040fcde
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401fb0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x28]
mov ebx, dword [ebp + 0x20]
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x38], eax
movzx eax, byte [ebp + 0x14]
mov dword [ebp - 0x34], eax
mov ax, word [ebp + 0xc]
mov dword [ebp - 0x20], esi
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x30], ecx
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
mov edi, dword [ebp + 0x24]
mov dword [ebp - 8], edi
cmp esi, 0xffffffff
je 0x402055
push 0
push 0
xorps xmm0, xmm0
movq qword [ebp - 0x40], xmm0
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x40204b
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x402055
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x4020b4
test ebx, ebx
je 0x40205f
mov dword [ebx], 0
test edi, edi
je 0x402069
mov dword [edi], 0
xor esi, esi
nop dword [eax + eax]
lea eax, [ebp - 0x38]
push eax
call fcn.00402290
add esp, 4
test al, al
jne 0x40208a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x40209f
mov eax, 0x51eb851f
mul dword [ebp - 0x14]
shr edx, 5
cmp edx, 2
je 0x4020b2
mov edi, 0x10dc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 5
jl 0x402070
jmp 0x4020b4
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
test edi, edi
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.0040ffbe
mov esp, ebp
pop ebp
ret
Function at 0x402c70
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x44]
push 0x20
xor esi, esi
push eax
mov dword [ebp - 0x48], esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x402d20
cmp eax, 0x20
ja 0x402d20
call fcn.00408670
push esi
mov ebx, eax
mov dword [ebp - 0x58], edx
lea eax, [ebp - 0x48]
push eax
push 1
push str.D:P_A_CIOI_FA___SY__A_CIOI_FA___BA__A_CIOI_FRFX___BU_
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorA
test eax, eax
je 0x402d20
mov eax, dword [ebp - 0x48]
push ebx
push dword [ebp - 0x58]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x44]
push eax
push str._sTemp_asw._08x_08x
push edi
mov dword [ebp - 0x54], 0xc
mov dword [ebp - 0x4c], esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x54]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x402d28
movzx eax, word [ebp - 0x44]
push ebx
push dword [ebp - 0x58]
push eax
push str._c:_asw._08x_08x
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x54]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x402d28
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x402d36
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
test esi, esi
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.0040ffbe
mov esp, ebp
pop ebp
ret
Function at 0x402d60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push 0xa
push str.EDAT_ECOO
push 0x400000
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x402e79
push edi
push ebx
push 0x400000
call dword [sym.imp.KERNEL32.dll_LoadResource]
push ebx
push 0x400000
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x402e78
cmp ebx, 0x40
jae 0x402e78
test edi, edi
je 0x402e78
mov ecx, dword [esi + 0x10]
cmp ebx, ecx
ja 0x402dd6
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x402dcb
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], ebx
mov word [eax + ebx*2], cx
jmp 0x402de2
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.00403770
cmp dword [esi + 0x14], 8
jb 0x402dea
mov esi, dword [esi]
lea eax, [ebx + edi]
xor edx, edx
xor ecx, ecx
cmp edi, eax
cmova ebx, edx
test ebx, ebx
je 0x402e78
cmp ebx, 0x20
jb 0x402e62
lea eax, [edi - 1]
add eax, ebx
lea edx, [ebx - 1]
lea edx, [esi + edx*2]
cmp esi, eax
ja 0x402e12
cmp edx, edi
jae 0x402e62
mov eax, ebx
and eax, 0xffffffe0
nop word [eax + eax]
movq xmm1, qword [edi]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
add ecx, 0x20
movups xmmword [esi], xmm1
movq xmm1, qword [edi + 8]
punpcklbw xmm1, xmm0
movups xmmword [esi + 0x10], xmm1
movq xmm1, qword [edi + 0x10]
punpcklbw xmm1, xmm0
movups xmmword [esi + 0x20], xmm1
movq xmm1, qword [edi + 0x18]
add edi, 0x20
punpcklbw xmm1, xmm0
movups xmmword [esi + 0x30], xmm1
add esi, 0x40
cmp ecx, eax
jne 0x402e20
cmp ecx, ebx
je 0x402e78
sub edi, ecx
movzx eax, byte [edi + ecx]
lea esi, [esi + 2]
inc ecx
mov word [esi - 2], ax
cmp ecx, ebx
jne 0x402e68
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4033a0
Capabilities:
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x10], ecx
push esi
push esi
push esi
push 0x1000002
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
jne 0x4033e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x403476
push edi
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x403400
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x40346e
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40345f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40345f
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], esi
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 0x422790
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40345f
mov ecx, dword [ebp - 0xc]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push 0x422794
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
jmp 0x403467
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
test esi, esi
pop esi
sete al
xor ecx, ebp
pop ebx
call fcn.0040ffbe
mov esp, ebp
pop ebp
ret
Function at 0x4034a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, 0x400000
push 0x10
cmovne esi, eax
mov dword [ebp - 0x18], ecx
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40359f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40359f
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x14]
push eax
push 0x422790
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40359f
mov ecx, dword [ebp - 0x14]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push 0x422794
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
test ebx, ebx
je 0x403563
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push str.StringFileInfo040904b0Edition
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x403563
push dword [ebp - 0x10]
call fcn.004142fa
add esp, 4
mov dword [ebx], eax
test edi, edi
je 0x40358c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push str.StringFileInfo040904b0SubEdition
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40358c
push dword [ebp - 0x10]
push 0x40
push edi
call fcn.004136f6
add esp, 0xc
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ffbe
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ffbe
mov esp, ebp
pop ebp
ret

Function at 0x403ec0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
push 0
push eax
push 0x403b00
push 0
push 0
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x403efb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
je 0x403f08
lock inc dword [0x42c9b4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ffbe
mov esp, ebp
pop ebp
ret

Function at 0x403f20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
push 0
push eax
push 0x403c90
push 0
push 0
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x403f5b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
je 0x403f68
lock inc dword [0x42c9b4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ffbe
mov esp, ebp
pop ebp
ret
Function at 0x4072d0
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4214a0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push ecx
push 8
push eax
mov dword [ebp - 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4073d3
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 0x19
push edi
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov eax, dword [ebp - 0x14]
xor ecx, ecx
shr eax, 3
mov edx, 8
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004100e3
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push dword [ebp - 0x14]
push esi
push 0x19
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x4073f5
mov ebx, dword [esi]
push ebx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x407417
push ebx
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
movzx eax, byte [eax]
dec eax
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
push esi
mov ebx, dword [eax]
call fcn.004100ec
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ffbe
mov esp, ebp
pop ebp
ret
push str.Unable_to_open_process_token_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x30]
call fcn.00407200
push 0x429d2c
lea eax, [ebp - 0x30]
push eax
call fcn.0041143a
push str.Unable_to_retrieve_process_mandatory_label_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x30]
call fcn.00407200
push 0x429d2c
lea eax, [ebp - 0x30]
push eax
call fcn.0041143a
push str.Unable_to_verify_mandatory_label_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x40]
call fcn.00407200
push 0x429d2c
lea eax, [ebp - 0x40]
push eax
call fcn.0041143a
int3
Function at 0x407830
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421540
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x407919
cmp dword [ebp - 0x14], 0
jl 0x407891
jg 0x407882
cmp dword [ebp - 0x18], 0x40000000
jbe 0x407891
push str.Unable_to_process_files_over_1GB_
push 0xdf
jmp 0x407925
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
test esi, esi
jne 0x4078af
push str.Unable_to_open_file_mapping_
jmp 0x40791e
mov dword [ebp - 0x2c], esi
push 0
push 0
push 0
push 4
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x4078d5
push str.Unable_to_open_file_mapping_
jmp 0x40791e
mov dword [ebp - 0x30], edi
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
push dword [ebp - 0x18]
push edi
call fcn.00407940
add esp, 0xc
mov bl, al
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ffbe
mov esp, ebp
pop ebp
ret
push str.Unable_to_determine_file_size_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x28]
call fcn.00407200
push 0x429d2c
lea eax, [ebp - 0x28]
push eax
call fcn.0041143a
int3