joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403709
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x6a2f7c]
inc dword [0x6a2f7c]
test eax, eax
jne 0x4037ff
push esi
push edi
xor edi, edi
cmp dword [0x6a2f78], edi
je 0x403735
push 1
call fcn.0055aa2a
pop ecx
jmp 0x40373d
xor eax, eax
inc eax
call fcn.00401446
mov esi, eax
push 1
push esi
call fcn.00403806
push esi
call fcn.00403afe
push esi
call fcn.00403b21
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, 0x4a0336
mov edx, ecx
test edx, edx
je 0x403772
mov dword [0x69f670], ecx
mov dword [0x69f674], eax
cmp eax, 0xffffffff
je 0x40377e
mov dword [0x69f65c], eax
jmp 0x403784
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [0x6a30b0], 1
cmp dword [0x6a2f78], edi
je 0x40379d
push 1
call fcn.0055aa2a
pop ecx
jmp 0x4037a5
xor eax, eax
inc eax
call fcn.00401446
mov esi, eax
push 1
push esi
call fcn.00403806
push esi
call fcn.00403afe
push esi
call fcn.00403b21
add esp, 0x10
call fcn.00403f3f
test eax, eax
jne 0x4037fd
push 8
call fcn.004013b3
pop ecx
cmp eax, edi
je 0x4037de
mov dword [eax + 4], edi
mov dword [eax], 0x627290
mov edi, eax
push 0x403fd0
mov esi, 0x6a70c8
call fcn.004038ad
pop ecx
call fcn.00403f3f
test eax, eax
jne 0x4037fd
mov dword [0x6a70cc], edi
pop edi
pop esi
mov eax, dword [ebp + 8]
pop ebp
ret 4

Function at 0x403f54
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x31
pop eax
push 0x62
mov word [ebp - 0x68], ax
lea eax, [ebp - 0x66]
push 0
push eax
call fcn.00402394
add esp, 0xc
push 0x64
lea eax, [ebp - 0x68]
push eax
push str.RUNNING_ON_VALGRIND
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jle 0x403fb3
push esi
push edi
push 2
pop ecx
mov edi, 0x628220
lea esi, [ebp - 0x68]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
pop edi
pop esi
je 0x403faa
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x403fb3
xor eax, eax
inc eax
jmp 0x403fb5
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403fc1
leave
ret

Function at 0x403fc1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x403fcb
repz ret
jmp fcn.005d6b64
Function at 0x409280
Capabilities:
Get cpu information
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x6bbf40], 0
jne 0x409383
mov byte [0x6bbf40], 1
call fcn.00403f3f
test eax, eax
je 0x4092d0
push 0x64
call fcn.00560168
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], edx
fild qword [ebp - 0x128]
pop ecx
fstp qword [0x6b0a88]
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
mov dword [ebp - 0x124], 4
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x409348
cmp dword [ebp - 0x108], 2
jne 0x409348
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x12c]
push eax
push 0
push str.MHz
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
js 0x409348
mov eax, dword [ebp - 0x12c]
mov ecx, 0xf4240
mul ecx
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], edx
fild qword [ebp - 0x120]
jmp 0x409365
push 0x1f4
call fcn.00560168
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], edx
fild qword [ebp - 0x120]
pop ecx
lea eax, [ebp - 0x150]
fstp qword [0x6b0a88]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x13c]
mov dword [0x6b063c], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403fc1
leave
ret
Function at 0x409473
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f7239
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [section..data]
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
xor ebx, ebx
mov dword [0x6b05b0], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.1830B7BD_F7A3_4c4d_989B_C004DE465EDE
push str._s__u
lea eax, [ebp - 0x98]
push 0x40
push eax
call fcn.00409627
add esp, 0x14
lea edx, [ebp - 0x98]
push edx
push 1
xor ecx, ecx
push ebx
mov word [ebp - 0x18], cx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
mov dword [ebp - 0x9c], edi
cmp edi, ebx
je 0x4095ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40950c
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], ebx
call fcn.0040a69b
cmp eax, ebx
je 0x409522
mov dword [0x6b05b0], eax
jmp 0x4095af
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp eax, ebx
je 0x40953d
push 0x5c0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0xa8], esi
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x409554
push edi
push esi
call fcn.0040a731
jmp 0x409556
xor eax, eax
mov byte [ebp - 4], bl
mov dword [0x6b05b0], eax
cmp eax, ebx
jne 0x40957d
push 0x62a518
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 1
call fcn.005e51ac
push eax
mov esi, 1
call fcn.0040a7e1
add esp, 4
cmp eax, ebx
jne 0x4095aa
push 0x62a518
lea ecx, [ebp - 0xa0]
push ecx
mov dword [ebp - 0xa0], 3
call fcn.005e51ac
mov eax, dword [0x6b05b0]
inc dword [eax + 0x5bc]
push edi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp esi, ebx
jne 0x4095ce
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x6b05b0
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.00403fc1
mov esp, ebp
pop ebp
ret

Function at 0x40a731
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f5fbe
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea esi, [edi + 8]
push 0x5a0
lea eax, [esi + 8]
push 0
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
push eax
mov dword [esi], 0
call fcn.00402394
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [ebp - 4], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x40a7c7
push 0x62a518
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], 2
call fcn.005e51ac
mov ecx, dword [ebp + 0xc]
mov dword [edi], ecx
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 8
Function at 0x40b60e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edi
cmp dword [0x6a1b84], edi
jne 0x40b641
call fcn.0040b766
push 0x7d0
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
lea esi, [esp + 0x2c]
call fcn.0040d9c0
mov eax, dword [0x6a2be4]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x14]
mov dword [0x6a2be4], eax
mov eax, dword [0x6a1b84]
cmp dword [eax + 0x18], edi
jne 0x40b743
xor eax, eax
push 0x208
mov word [esp + 0x4c], ax
lea eax, [esp + 0x4e]
push edi
push eax
call fcn.00402394
add esp, 0xc
push edi
push 0x1a
lea eax, [esp + 0x50]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40b6f7
lea eax, [esp + 0x48]
push eax
call fcn.005d637a
lea eax, [esp + 0x4c]
pop ecx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40b6b9
sub eax, edx
sar eax, 1
cmp eax, 4
jb 0x40b6f7
lea eax, [esp + 0x48]
push str.system32config_systemprofile
push eax
call fcn.005d5fcd
pop ecx
pop ecx
test eax, eax
jne 0x40b6f7
lea eax, [esp + 0x48]
push str.localservice_application_data
push eax
call fcn.005d5fcd
pop ecx
pop ecx
test eax, eax
je 0x40b743
call fcn.004abfcd
test al, al
je 0x40b743
cmp dword [0x6a2be4], edi
je 0x40b716
call fcn.004b7058
mov eax, dword [esp + 0x44]
mov dword [0x6a2be4], eax
lea eax, [esp + 0x2c]
call fcn.004b71a5
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [esp + 0x25c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00403fc1
mov esp, ebp
pop ebp
ret 0x10
push ebx
call fcn.0040da15
pop ecx
mov esi, eax
cmp dword [0x6a2be4], edi
je 0x40b762
call fcn.004b7058
mov eax, dword [esp + 0x44]
mov dword [0x6a2be4], eax
mov edi, esi
jmp 0x40b716

Function at 0x40c0fd
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov dword [ebp - 0x24], esi
xor eax, eax
mov word [ebp - 0x20], ax
push edi
lea eax, [ebp - 0x20]
push eax
mov edi, edx
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], esi
call fcn.0040c17c
pop ecx
cmp dword [ebp - 0x10], esi
je 0x40c162
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], esi
jae 0x40c144
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
push esi
push dword [ebp - 0x24]
push edi
call fcn.0040c65b
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 1
xor edi, edi
lea esi, [ebp - 0x20]
call fcn.0040bab7
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00403fc1
leave
ret
Function at 0x41056a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [eax + 0x14], 8
jb 0x410572
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x410585
shr eax, 4
and eax, 1
ret
xor al, al
ret

Function at 0x410b65
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [eax + 0x14], 8
jb 0x410b6d
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
ret
Function at 0x4113a9
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x150
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x14c], eax
push ebx
xor ebx, ebx
mov dword [esp + 4], ebx
push edi
mov dword [esi], ebx
mov dword [esi + 0x18], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.IsWow64Process
push str.kernel32.dll
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
jne 0x4113fb
xor eax, eax
jmp 0x411419
lea ecx, [esp + 8]
push ecx
push edi
mov dword [esp + 0x10], ebx
call eax
test eax, eax
jne 0x411410
push 2
pop eax
jmp 0x411419
xor eax, eax
cmp dword [esp + 8], ebx
setne al
mov dword [esi + 0x24], eax
push 0x118
lea eax, [esp + 0x38]
push ebx
mov dword [esi + 0x3c], 0xf
mov dword [esi + 0x38], ebx
mov byte [esi + 0x28], bl
push eax
mov dword [esp + 0x3c], 0x11c
call fcn.00402394
add esp, 0xc
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
push 5
pop edi
mov dword [esi + 4], eax
mov dword [esi + 8], edx
mov dword [esi + 0xc], ecx
cmp eax, edi
jne 0x41147c
cmp edx, ebx
jle 0x4114ad
xor eax, eax
cmp edx, 1
setne al
inc eax
mov dword [esi], eax
jmp 0x4114ad
push 6
pop ecx
cmp eax, ecx
jne 0x4114a5
sub edx, ebx
je 0x41149d
dec edx
je 0x411495
dec edx
je 0x411491
mov dword [esi], ecx
jmp 0x4114ad
mov dword [esi], edi
jmp 0x4114ad
mov dword [esi], 4
jmp 0x4114ad
mov dword [esi], 3
jmp 0x4114ad
jle 0x4114ad
mov dword [esi], 8
movzx eax, word [esp + 0x144]
mov dword [esi + 0x10], eax
movzx eax, word [esp + 0x146]
push 8
mov dword [esi + 0x14], eax
pop ecx
xor eax, eax
mov dword [esp + 0xc], ebx
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [esp + 0xc]
cmp eax, ebx
je 0x411502
cmp eax, 6
je 0x4114f9
cmp eax, 9
jne 0x411505
mov dword [esi + 0x18], 1
jmp 0x411505
mov dword [esi + 0x18], 2
jmp 0x411505
mov dword [esi + 0x18], ebx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x154]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x28]
pop edi
pop ebx
mov dword [esi + 0x20], eax
xor ecx, esp
mov eax, esi
call fcn.00403fc1
mov esp, ebp
pop ebp
ret
Function at 0x4116e4
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x44], 0
push ebx
mov ebx, dword [ebp + 0xc]
cmp dword [ebx + 0x14], 8
push esi
push edi
jb 0x411708
mov eax, dword [ebx]
jmp 0x41170a
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esi, dword [0x6a1b84]
and dword [ebp - 0x10], 0
push 4
mov edi, 0x6093d0
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0xc], 0xf
mov byte [ebp - 0x20], 0
call fcn.0040f8cd
lea eax, [ebp - 0x20]
push eax
call fcn.0040f97f
mov esi, str.chrome_child.dll
test al, al
jne 0x411750
mov esi, 0x61fd04
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.0040d0a1
push esi
push ebx
call fcn.0040d6e0
push ebx
call fcn.00411854
lea esi, [ebp - 0x3c]
mov dword [esp], str.Software360360se6Chrome
call fcn.0040bead
cmp dword [ebp - 0x28], 8
mov eax, dword [ebp - 0x3c]
jae 0x411783
mov eax, esi
push 0x20019
push eax
push 0x80000001
lea esi, [ebp - 0x50]
call fcn.004106f5
xor esi, esi
cmp dword [ebp - 0x50], esi
je 0x41181a
push str.nosign_sygyzy
lea eax, [ebp - 0x50]
push eax
call fcn.00410ab4
test al, al
jne 0x41181a
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], esi
jne 0x4117eb
push 4
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], esi
mov byte [ebp - 0x20], 0
call fcn.0040f8cd
mov esi, dword [ebp - 0x48]
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x44], 1
call fcn.0040f97f
mov byte [ebp - 0x3d], 1
test al, al
je 0x4117ef
mov byte [ebp - 0x3d], 0
test byte [ebp - 0x44], 1
je 0x411801
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.0040d0a1
cmp byte [ebp - 0x3d], 0
je 0x41181a
cmp dword [ebx + 0x14], 8
jb 0x411811
mov eax, dword [ebx]
jmp 0x411813
mov eax, ebx
push eax
call fcn.004b6bba
pop ecx
cmp dword [ebx + 0x14], 8
jb 0x411822
mov ebx, dword [ebx]
push 8
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
lea esi, [ebp - 0x50]
mov ebx, eax
call fcn.00410999
push 1
xor edi, edi
lea esi, [ebp - 0x3c]
call fcn.0040bab7
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret
Function at 0x411f46
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x48], eax
cmp dword [ecx + 0x14], 0x10
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
jb 0x411f6e
mov edx, dword [ecx]
mov dword [esp + 0x14], edx
jmp 0x411f72
mov dword [esp + 0x14], ecx
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x18], ecx
mov dword [esp + 0xc], eax
test eax, eax
jne 0x411f87
and dword [esp + 0x10], eax
jmp 0x411f97
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411f8a
sub eax, edx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x38]
call fcn.00410588
cmp dword [eax + 0x14], 8
jb 0x411fae
mov esi, dword [eax]
jmp 0x411fb0
mov esi, eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1c]
call fcn.00410588
cmp dword [eax + 0x14], 8
jb 0x411fc5
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
setne bl
push 1
xor edi, edi
lea esi, [esp + 0x20]
call fcn.0040bab7
push 1
lea esi, [esp + 0x3c]
call fcn.0040bab7
mov ecx, dword [esp + 0x54]
pop edi
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.00403fc1
mov esp, ebp
pop ebp
ret 4

Function at 0x412ffd
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [eax + 0x14], 8
push ebx
push esi
push edi
jb 0x413010
mov ebx, dword [eax]
jmp 0x413012
mov ebx, eax
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x413095
push esi
call fcn.004013d6
mov edi, eax
pop ecx
test edi, edi
je 0x413095
push esi
push 0
push edi
call fcn.00402394
add esp, 0xc
push edi
push esi
push dword [ebp - 8]
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x41308e
and dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push str.VarFileInfoTranslation
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x41308e
cmp dword [ebp - 4], 0
je 0x41308e
push 0x14
call fcn.004013b3
mov esi, eax
pop ecx
test esi, esi
je 0x413095
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
call fcn.0041309c
jmp 0x413097
push edi
call fcn.00404e46
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41316f
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x224], eax
mov ax, word [esi + 8]
push ebx
mov word [ebp - 0x14], ax
mov ax, word [esi + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [ebp - 0x12], ax
call edi
mov word [ebp - 0x10], ax
mov ax, word [esi + 0xc]
mov word [ebp - 0xe], ax
mov ax, word [esi + 8]
mov word [ebp - 0xc], ax
mov ebx, 0x4e4
mov eax, ebx
mov word [ebp - 0xa], ax
call edi
mov word [ebp - 6], bx
mov word [ebp - 8], ax
xor edi, edi
mov ebx, 0x104
push dword [ebp - 0x228]
movzx ecx, word [ebp + edi*2 - 0x12]
movzx eax, word [ebp + edi*2 - 0x14]
push ecx
push eax
push str.StringFileInfo_04x_04x_ls
push ebx
lea eax, [ebp - 0x21c]
push ebx
push eax
add edi, 2
call fcn.00413268
mov eax, dword [esi + 4]
and dword [ebp - 0x220], 0
add esp, 0x1c
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x41323c
cmp dword [ebp - 0x220], 0
jne 0x413253
cmp edi, 8
jb 0x4131de
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret 8
push dword [ebp - 0x220]
push dword [ebp - 0x224]
call fcn.0040bed1
mov al, 1
jmp 0x413243
Function at 0x41402f
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push str.ntdll.dll
mov dword [ebp - 0x218], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor ebx, ebx
cmp eax, ebx
je 0x414233
push str.RtlHashUnicodeString
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x6a1af0], eax
cmp eax, ebx
je 0x414233
mov esi, 0x104
push esi
lea eax, [ebp - 0x214]
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, eax
cmp edi, ebx
je 0x414233
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x414233
xor eax, eax
cmp edi, ebx
jbe 0x414233
lea ecx, [ebp + edi*2 - 0x216]
cmp word [ecx], 0x5c
je 0x4140d1
inc eax
sub ecx, 2
cmp eax, edi
jb 0x4140be
jmp 0x414233
push dword [ebp - 0x218]
sub edi, eax
xor eax, eax
mov word [ebp + edi*2 - 0x214], ax
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.00414242
add esp, 0xc
push 0x62d6d4
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.00414242
add esp, 0xc
push str.khtn.bin
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.00414242
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 5
push 0x80000000
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x218], esi
cmp esi, 0xffffffff
je 0x414233
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 4
jbe 0x41422c
test bl, 3
jne 0x41422c
cmp ebx, 0x400
ja 0x41422c
shr eax, 2
call fcn.004a6891
and dword [ebp - 0x21c], 0
push 0
lea eax, [ebp - 0x21c]
push eax
push ebx
push dword [0x6a78e4]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x414214
cmp dword [ebp - 0x21c], ebx
jne 0x414214
mov edx, dword [0x6a78e8]
mov ecx, dword [0x6a78e4]
sub edx, ecx
sar edx, 2
lea eax, [edx - 1]
cmp edx, eax
ja 0x4141c3
push str.invalid_vector_T__subscript
call fcn.005e1eae
mov edi, dword [ecx + eax*4]
call fcn.004a6891
mov eax, dword [0x6a78e4]
mov ecx, dword [0x6a78e8]
xor edx, edx
mov esi, eax
cmp eax, ecx
je 0x4141e7
add edx, dword [esi]
add esi, 4
cmp esi, ecx
jne 0x4141de
cmp edi, edx
je 0x414201
push ecx
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004a690c
push dword [ebp - 0x218]
jmp 0x41422d
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004a6821
jmp 0x414233
push dword [0x6a78e8]
lea eax, [ebp - 0x220]
push dword [0x6a78e4]
push eax
call fcn.004a690c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret
Function at 0x414f3d
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x104
mov eax, dword [0x6b222c]
and dword [esp], 0
push ebx
push esi
push edi
cmp eax, 0xffffffff
je 0x414fde
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x414fde
push 0x40
pop ecx
lea eax, [esp + 0x10]
push eax
push dword [0x6b222c]
mov esi, ebx
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call edi
push ebx
call fcn.00404e46
pop ecx
mov dword [esp + 0xc], 0x40
mov esi, dword [0x6a2cc8]
xor bl, bl
jmp 0x414fc1
lea eax, [esp + esi*4 + 0x10]
mov ecx, dword [eax]
test ecx, ecx
je 0x414fc0
mov edx, dword [esi*4 + 0x69f348]
test edx, edx
je 0x414fc0
and dword [eax], 0
push ecx
call edx
pop ecx
mov bl, 1
dec esi
test esi, esi
jg 0x414fa2
dec dword [esp + 0xc]
cmp dword [esp + 0xc], 0
jle 0x414fd4
test bl, bl
jne 0x414f98
push 0
push dword [0x6b222c]
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41539a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], eax
cmp eax, esi
jne 0x4153c4
mov dword [ebp - 0x48], esi
jmp 0x4153d3
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4153c7
sub eax, edx
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x24]
call fcn.00410588
cmp dword [eax + 0x14], 8
jb 0x4153e6
mov eax, dword [eax]
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push esi
push esi
push eax
call ebx
push 1
xor edi, edi
lea esi, [ebp - 0x24]
mov dword [ebp - 0x48], eax
call fcn.0040bab7
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x41540e
xor al, al
jmp 0x4154bc
cmp dword [ebp - 0x50], edi
je 0x4154ba
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004013b3
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x54]
pop ecx
mov dword [ebp - 0x58], eax
test eax, eax
jne 0x41543e
and dword [ebp - 0x54], edi
jmp 0x41544d
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415441
sub eax, edx
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x24]
call fcn.00410588
cmp dword [eax + 0x14], 8
jb 0x415460
mov eax, dword [eax]
push dword [ebp - 0x48]
push dword [ebp - 0x44]
push eax
call ebx
push 1
xor edi, edi
lea esi, [ebp - 0x24]
call fcn.0040bab7
push dword [ebp - 0x44]
lea esi, [ebp - 0x24]
call fcn.0040bead
mov eax, esi
lea ecx, [ebp - 0x40]
call fcn.00411e23
mov edi, dword [ebp - 0x50]
mov esi, eax
call fcn.0040d3fa
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.0040d0a1
push 1
xor edi, edi
lea esi, [ebp - 0x24]
call fcn.0040bab7
cmp dword [ebp - 0x44], edi
je 0x4154ba
push dword [ebp - 0x44]
call fcn.00404e46
pop ecx
mov al, 1
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret 4