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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10063f90
push 0x10063f88
push str.FlsAlloc
push 0x1f
call fcn.1004e46a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004e633
push dword [ebp + 8]
mov ecx, esi
call dword [0x1005f214]
call esi
jmp 0x1004e639
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1004e67d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10063fa0
push 0x10063f98
push str.FlsGetValue
push 0x21
call fcn.1004e46a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004e6b4
push dword [ebp + 8]
mov ecx, esi
call dword [0x1005f214]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1004e6bc
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10063fa8
push 0x10063fa0
push str.FlsSetValue
push 0x22
call fcn.1004e46a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004e6f6
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1005f214]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10052f80
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 0x1005301d
push ebx
push esi
call fcn.10052f49
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.1005183a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10052fca
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005301c
push edi
push eax
call fcn.10048ca8
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10052fea
call fcn.10048c6e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005301b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1005183a
add esp, 0x20
test eax, eax
jne 0x10053009
push edi
call fcn.10048c6e
jmp 0x10053011
push ebx
call fcn.10048c6e
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 0x10053020
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10053031
pop esi
ret
push ebx
push edi
push esi
call fcn.10052f49
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10048ca8
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10053059
push ebx
push esi
push edi
call fcn.100383a0
add esp, 0xc
push 0
call fcn.10048c6e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100537b3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100532ce

Function at 0x1005744f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1004a075
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 0x100574be
cmp esi, dword [ebp - 4]
je 0x100574b9
cmp dword [ebp + 0xc], 0
je 0x100574b9
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10057496
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10056fa1
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x100574c0
xor eax, eax
inc eax
jmp 0x100574c0
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10057525
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10073068]
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.1004a075
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.1004a075
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 0x1005759c
cmp word [ecx], dx
je 0x1005759c
mov eax, dword [0x10064614]
push edi
dec eax
push eax
push 0x10064500
call fcn.100574c4
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1005760f
cmp word [eax], dx
je 0x1005760f
mov eax, dword [edi]
test eax, eax
je 0x100575c0
cmp word [eax], dx
je 0x100575c0
lea eax, [ebp - 0x10]
push eax
call fcn.10056ea7
jmp 0x100575c9
lea eax, [ebp - 0x10]
push eax
call fcn.10056f42
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10057639
mov eax, dword [0x100644fc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100641f0
call fcn.100574c4
add esp, 0xc
test al, al
je 0x10057639
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10057604
cmp word [eax], di
je 0x10057604
lea eax, [ebp - 0x10]
push eax
call fcn.10056ea7
pop ecx
jmp 0x1005763b
lea eax, [ebp - 0x10]
push eax
call fcn.10056f42
jmp 0x10057601
mov eax, dword [edi]
test eax, eax
je 0x10057626
cmp word [eax], dx
je 0x10057626
lea eax, [ebp - 0x10]
push eax
call fcn.10056e5c
pop ecx
jmp 0x10057639
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 0x10057704
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10057349
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10057704
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10057704
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10057704
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10057691
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1004e898
test ebx, ebx
je 0x100576ff
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1004e898
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10057704
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 0x10057704
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1005a402
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10057706
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10036bdc
leave
ret
Function at 0x1005a775
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.1005a6f1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1005a8e4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1005a8e4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1005a899
jg 0x1005a7d1
test eax, eax
je 0x1005a88f
push 1
push 0x1000
call fcn.1004bc17
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1005a7f4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1005a886
push 0x8000
push ebx
call fcn.1005a622
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1005a81d
jg 0x1005a818
cmp ecx, 0x1000
jb 0x1005a81d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1004cd4d
add esp, 0x10
cmp eax, 0xffffffff
je 0x1005a862
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 0x1005a818
jl 0x1005a849
test ecx, ecx
jne 0x1005a80a
push dword [ebp - 0xc]
push ebx
call fcn.1005a622
push esi
call fcn.10048c6e
add esp, 0xc
xor ebx, ebx
jmp 0x1005a8f2
cmp byte [edi + 0x24], 0
je 0x1005a879
cmp dword [edi + 0x20], 5
jne 0x1005a879
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1005a884
mov ebx, dword [edi + 0x18]
jmp 0x1005a886
xor ebx, ebx
push esi
call fcn.10048c6e
pop ecx
jmp 0x1005a8f2
test ecx, ecx
jg 0x1005a85b
jl 0x1005a899
test eax, eax
jae 0x1005a85b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1004d1af
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1005a8b9
cmp byte [edi + 0x1c], 0
je 0x1005a85b
jmp 0x1005a8ea
push ebx
call fcn.10057adf
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1005a85b
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 0x1005a8f2
cmp byte [edi + 0x1c], 0
je 0x1005a8ef
mov ebx, dword [edi + 0x18]
jmp 0x1005a8f2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1004d1af
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1005b2c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1005b2ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1005b2ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402b34
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x409014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402bcc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402bac
xor eax, eax
push ebp
push 0x402ba5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402be8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402bac
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x409014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x409014], ax
mov esp, ebp
pop ebp
ret

Function at 0x403478
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40a044], 0
je 0x4034d9
cmp word [0x40a218], 0xd7b2
jne 0x4034a1
cmp dword [0x40a220], 0
jbe 0x4034a1
mov eax, 0x40a214
call dword [0x40a230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40905c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403500
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x409020], 0
jne 0x4034f5
push 0
push 0x409054
push 0x40905c
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret
Function at 0x403f30
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404160
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403fb3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404160
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403fb3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40417c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40403c
xor eax, eax
push ebp
push 0x404035
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00403d78
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40401a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40419c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40401a
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40403c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404156
cmp byte [ebp - 0xd], 0
jne 0x404083
cmp byte [ebp - 0x12], 0
je 0x404156
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40409c
dec ebx
cmp byte [ebx], 0x2e
je 0x4040ab
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40409b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404156
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4040e8
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404156
cmp byte [ebp - 0xd], 0
je 0x404156
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404156
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4042ec
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x404352
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040383c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402728
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40433c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404359
lea eax, [ebp - 0x10]
call fcn.004035f4
ret

Function at 0x4061c4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
test eax, eax
jle 0x4061fd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004036e4
jmp 0x406206
mov eax, ebx
mov edx, esi
call fcn.00403648
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406210
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA_1
test eax, eax
jle 0x406231
mov al, byte [esp]
jmp 0x406233
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x407328
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40738c
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0040383c
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.0040558c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407393
lea eax, [ebp - 0xc]
call fcn.004035f4
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x40d08b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x40d09a
pop dword [ebp - 0x50]
mov eax, 0xd00ba5d3
add eax, 0x30352ac7
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x3bf0a
push 0
mov eax, 0x7624e75d
add eax, 0x8a1bf97b
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x99e994ca
add ecx, 0x6616be07
mov edi, eax
mov esi, 0xe24e3e7e
add esi, 0x1df2fd46
add esi, dword [ebp - 0x50]
mov ebx, 0x6ccfd39b
mov dword [ebp - 0x48], 0x9ca9e494
mov edx, dword [esi]
xor dword [ebp - 4], 0xd77fe160
sub edx, ebx
xor dword [ebp - 0x38], eax
mov dword [edi], edx
xor dword [ebp - 0x48], 0x8061cbb5
add edi, 0xa454791d
add edi, 0x5bab86e7
add esi, 4
loop 0x40d0f3
add eax, 0x13e17
xor ebx, ebx
add ebx, eax
add eax, 0xb226fe40
sub eax, 0xb226fe3b
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x4025c8
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes
Move file

Disassembly:
push 0x70
mov eax, 0x4552ed
call fcn.00436a25
mov edi, ecx
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ebx, ebx
mov dword [edi], eax
mov dword [edi + 4], ebx
mov dword [ebp - 4], ebx
mov dword [edi + 8], ebx
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 1
push eax
push ebx
push ebx
push 0x459a80
mov dword [ebp - 0x74], ebx
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x4027ae
mov esi, dword [ebp - 0x74]
mov dword [ebp - 0x7c], esi
push esi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 2
call fcn.004059e5
push 0x467af4
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00407d34
push eax
lea ecx, [ebp - 0x40]
call fcn.004059b2
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 5
call fcn.00407c3e
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push ebx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40266f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40279b
push str.NvNode
lea ecx, [ebp - 0x40]
call fcn.00407d34
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push ebx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4026a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40279b
push str.launcher.log
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.004090f8
mov byte [ebp - 4], 6
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x58]
mov dword [esp], str..bak
call fcn.004090f8
mov dword [esp], str.67DF32C5_5AAE_4C02_BAA0_9DE41E8E9FE2
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [edi + 4]
mov dword [edi + 4], eax
test ecx, ecx
je 0x4026ef
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 4]
test eax, eax
je 0x40278b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402718
push 0x1388
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40274f
jmp 0x40278b
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40274f
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x58]
push 1
cmovae ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
push 0x80
push 4
push ebx
push 3
push 0x100004
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [edi + 8]
mov dword [edi + 8], eax
test ecx, ecx
je 0x40278b
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x58]
call fcn.00407c3e
lea ecx, [ebp - 0x28]
call fcn.00407c3e
lea ecx, [ebp - 0x40]
call fcn.00407c3e
test esi, esi
je 0x4027ae
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, edi
call fcn.004369cf
ret
Function at 0x402891
Capabilities:
Write file on windows

Disassembly:
push 0x54
mov eax, 0x455322
call fcn.00436a25
mov edi, ecx
mov al, byte [ebp + 8]
mov esi, dword [ebp + 0xc]
mov byte [ebp - 0x60], al
lea eax, [ebp - 0x5c]
push dword [ebp - 0x60]
push eax
call fcn.004027b6
and dword [ebp - 4], 0
mov ecx, eax
push esi
call fcn.00405aa6
push eax
lea ecx, [ebp - 0x44]
call fcn.00405acc
push 2
push 0x467be0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.00407f6c
push eax
lea ecx, [ebp - 0x2c]
call fcn.00405acc
lea ecx, [ebp - 0x44]
call fcn.00407dc4
lea ecx, [ebp - 0x5c]
call fcn.00407dc4
and dword [ebp - 0x60], 0
lea ecx, [ebp - 0x60]
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push ecx
push dword [ebp - 0x1c]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x2c]
call fcn.00407dc4
call fcn.004369cf
ret 8

Function at 0x402927
Capabilities:
Check if file exists

Disassembly:
push esi
push edi
push str.23FC14F6_CBB0_400C_AB0D_D94A864ED2B7
xor edi, edi
push edi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
test esi, esi
je 0x40296e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40298c
cmp eax, 0x102
je 0x402969
cmp eax, 0xffffffff
je 0x402961
mov edi, 0x8000ffff
jmp 0x40298c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x402979
push 2
pop edi
jmp 0x40298c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x402989
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x40298c
xor edi, edi
inc edi
test esi, esi
je 0x402997
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
Function at 0x40299c
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x45534f
call fcn.004369f1
mov ebx, ecx
xor edi, edi
cmp dword [ebx + 8], edi
je 0x4029bd
push str.Shutdown_requested.
push 0x49
call fcn.00402891
mov dword [ebp - 0x10], edi
push str.Global1E6C4F0F_8ABF_4709_AAAD_0341CF2D44A7
push edi
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], edi
test esi, esi
je 0x402a28
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x402a20
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
or dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, 0x96
jb 0x4029c0
cmp dword [ebx + 8], edi
je 0x402a19
push str.Exiting_with_timeout
push 0x45
mov ecx, ebx
call fcn.00402891
mov eax, 0x800705b4
jmp 0x402a7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x402a4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x10], eax
cmp eax, 2
je 0x402a5e
test ecx, ecx
je 0x402a4e
push str.Cannot_open_existing_event.
push 0x49
mov ecx, ebx
call fcn.00402891
mov eax, dword [ebp - 0x10]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x402a70
test ecx, ecx
je 0x402a70
push str.No_event_to_wait_for__exiting_with_S_OK
push 0x49
mov ecx, ebx
call fcn.00402891
test esi, esi
je 0x402a7b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
call fcn.004369ba
ret