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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40b790
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40b797
cmp ebx, dword [eax + 4]
jae 0x40b797
xor eax, eax
jmp 0x40b987
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40b7a8
xor eax, eax
inc eax
jmp 0x40b986
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40b7be
cmp ecx, edx
jae 0x40b903
cmp dword [eax + 4], 0
je 0x40b7c7
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40b7af
cmp dword [ebp + 8], 0
je 0x40b7e9
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40b903
cmp eax, esi
jae 0x40b903
mov eax, dword [0x419a38]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40b80e
cmp dword [esi*4 + 0x419a40], edi
je 0x40b907
inc esi
cmp esi, eax
jl 0x40b7fc
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40b983
cmp dword [ebp - 8], 0x1000000
jne 0x40b983
test byte [ebp - 0xc], 0xcc
je 0x40b88c
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40b983
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40b983
cmp word [eax + 0x18], 0x10b
jne 0x40b983
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40b983
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40b88c
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40b88c
test byte [ecx + 0x27], 0x80
jne 0x40b903
push 1
push 0x419a80
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40b7a0
mov ecx, dword [0x419a38]
test ecx, ecx
mov edx, ecx
jle 0x40b8c0
lea eax, [ecx*4 + 0x419a3c]
cmp dword [eax], edi
je 0x40b8c0
dec edx
sub eax, 4
test edx, edx
jg 0x40b8b4
test edx, edx
jne 0x40b8f1
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40b8cd
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40b8e5
lea eax, [edx*4 + 0x419a40]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40b8d3
cmp ecx, 0x10
jge 0x40b8f1
inc ecx
mov dword [0x419a38], ecx
push 0
push 0x419a80
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40b7a0
xor eax, eax
jmp 0x40b986
test esi, esi
jle 0x40b7a0
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x419a80
call ebx
test eax, eax
jne 0x40b7a0
cmp dword [esi*4 + 0x419a40], edi
je 0x40b95d
mov eax, dword [0x419a38]
lea esi, [eax - 1]
test esi, esi
jl 0x40b94b
cmp dword [esi*4 + 0x419a40], edi
je 0x40b947
dec esi
jns 0x40b93b
test esi, esi
jge 0x40b95b
cmp eax, 0x10
jge 0x40b956
inc eax
mov dword [0x419a38], eax
lea esi, [eax - 1]
jmp 0x40b95d
je 0x40b975
xor ecx, ecx
test esi, esi
jl 0x40b975
lea eax, [ecx*4 + 0x419a40]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40b963
push 0
push 0x419a80
call ebx
jmp 0x40b7a0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40bd87
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40bda7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040be8d
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40bdca
test byte [esp + 8], 2
je 0x40bdca
call fcn.0040be7b
mov dword [eax], 0xd
call fcn.0040be84
mov dword [eax], 5
jmp 0x40bda3
xor eax, eax
ret

Function at 0x40d0fd
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x419b0c]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x40d146
call ebp
mov esi, eax
cmp esi, ebx
je 0x40d12c
mov dword [0x419b0c], 1
jmp 0x40d14b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x40d141
push 2
pop eax
mov dword [0x419b0c], eax
jmp 0x40d146
mov eax, dword [0x419b0c]
cmp eax, 1
jne 0x40d1a3
cmp esi, ebx
jne 0x40d15e
call ebp
mov esi, eax
cmp esi, ebx
jne 0x40d15e
xor eax, eax
jmp 0x40d24a
cmp word [esi], bx
mov eax, esi
je 0x40d173
inc eax
inc eax
cmp word [eax], bx
jne 0x40d165
inc eax
inc eax
cmp word [eax], bx
jne 0x40d165
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.0040a4d8
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x40d196
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x40d24a
push ebp
push esi
push edi
call fcn.0040a4f0
add esp, 0xc
jmp 0x40d188
cmp eax, 2
je 0x40d1ac
cmp eax, ebx
jne 0x40d157
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x40d157
cmp byte [ebp], bl
mov esi, ebp
je 0x40d1e2
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x40d157
push esi
add edi, eax
call fcn.00409dd0
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x40d1bf
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.0040a4d8
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x40d25b
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x40d23c
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x40d251
push edi
call fcn.00409dd0
push esi
lea edi, [edi + eax + 1]
call fcn.0040be13
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x40d202
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.0040a3c0
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x40d157
Function at 0x40d473
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00409650
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40d50e
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x419758]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40d50e
cmp eax, 1
je 0x40d52f
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40d50e
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40d4db
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40d50a
xor eax, eax
inc eax
jmp 0x40d54e
cmp edi, eax
jae 0x40d512
xor eax, eax
jmp 0x40d54e
cmp eax, esi
jae 0x40d519
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x419758]
jmp 0x40d532
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40da30
Capabilities:
Get file version info

Disassembly:
sub esp, 0x214
push ebx
push esi
push edi
push 0x104
lea eax, [esp + 0x1c]
push eax
push ecx
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jbe 0x40daa8
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x40daa8
mov ecx, dword [esp + 0x10]
push esi
push edi
push ecx
lea edx, [esp + 0x24]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0x4048dc
push esi
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40daa1
movzx ebx, word [eax + 2]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x214
ret
Function at 0x4106f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
push edi
mov edi, eax
mov esi, 1
call fcn.00410550
test eax, eax
je 0x41071f
mov esi, dword [eax + 0x34]
shr esi, 0xb
push eax
and esi, 1
call fcn.0040e1b0
add esp, 4
pop edi
mov eax, esi
pop esi
add esp, 8
ret
push edi
call fcn.00410670
mov edi, eax
test edi, edi
je 0x410787
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0x404ec4
push edi
mov dword [esp + 0x24], 4
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410772
mov esi, dword [esp + 8]
shr esi, 0xb
push edi
and esi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
add esp, 8
ret
push eax
push 0x404e8c
call fcn.004129a0
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
add esp, 8
ret

Function at 0x410ab0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20c
push ebx
push esi
push edi
mov edi, eax
xor ebx, ebx
call fcn.00410550
mov esi, eax
test esi, esi
je 0x410b0a
mov edi, dword [esi + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov eax, edi
push eax
call ebx
cmp word [edi + eax*2 - 2], 0x3a
jne 0x410aeb
push edi
call ebx
mov ecx, dword [esi + 0xc]
mov word [ecx + eax*2 - 2], 0
mov edi, dword [esi + 0xc]
call fcn.00410a60
push esi
mov edi, eax
call fcn.0040e1b0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x20c
ret
push edi
call fcn.00410670
mov esi, eax
test esi, esi
je 0x410b6f
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0x404f84
push esi
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410b5a
lea edi, [esp + 0x10]
call fcn.00410a60
push esi
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x20c
ret
push eax
push 0x404f48
call fcn.004129a0
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x20c
ret
Function at 0x410b80
Capabilities:
Accept command line arguments
Check mutex on windows
Get common file path
Set current directory

Disassembly:
sub esp, 0xb0
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0x41ac10
call fcn.0040bdf7
add esp, 8
push 0x41ac10
push 0x4163e0
call fcn.0040ff10
mov esi, eax
test esi, esi
je 0x410d25
cmp word [esi], 0
je 0x410d25
push edi
xor eax, eax
mov ecx, 0x2b
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
push 0x41ac10
lea eax, [esp + 0xc]
push eax
call fcn.0040ff10
push 0x41a458
call fcn.004129e0
mov eax, dword [esp + 0x10]
test eax, eax
pop edi
je 0x410bfb
call fcn.004111c0
test eax, eax
je 0x410d32
mov eax, esi
call fcn.004106f0
test eax, eax
mov dword [0x41a664], eax
jne 0x410c2d
mov eax, dword [0x4181d8]
test eax, eax
jne 0x410c2d
push 0x4050a8
call fcn.004129a0
add esp, 4
xor eax, eax
pop esi
add esp, 0xb0
ret 0x10
mov eax, dword [0x401e80]
test eax, eax
jne 0x410c5a
mov eax, esi
call fcn.00410ab0
test eax, eax
je 0x410c5a
push 0x405068
call fcn.004129a0
add esp, 4
xor eax, eax
pop esi
add esp, 0xb0
ret 0x10
call fcn.00407160
push esi
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov dword [0x41aa04], eax
jne 0x410c93
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x405030
call fcn.004129a0
add esp, 8
xor eax, eax
pop esi
add esp, 0xb0
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x410cca
mov eax, dword [0x41aa04]
test eax, eax
je 0x410d32
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x41aa04], 0
xor eax, eax
pop esi
add esp, 0xb0
ret 0x10
push 0x104
push 0x41aa08
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x410d09
push 0x41aa08
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x410d16
push 0x405000
call fcn.004129a0
add esp, 4
mov eax, 1
pop esi
add esp, 0xb0
ret 0x10
push 0x404fd0
call fcn.004129a0
add esp, 4
mov eax, 1
pop esi
add esp, 0xb0
ret 0x10
push 0x404f90
call fcn.004129a0
add esp, 4
xor eax, eax
pop esi
add esp, 0xb0
ret 0x10

Function at 0x4123c0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x41b868
push 0
mov dword [0x41b658], eax
mov eax, dword [esp + 0xc]
push eax
push 0x412350
push 0x4000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x41b86c], eax
je 0x412406
push 0xfffffffffffffffe
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
ret 4
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push 0x405214
call fcn.004129b0
mov edx, dword [0x41b86c]
add esp, 8
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x41b86c], 0
ret 4

Function at 0x4129b0
Capabilities:
Print debug messages

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x400
lea eax, [esp + 0x408]
push eax
push ecx
lea edx, [esp + 8]
push edx
call dword [sym.imp.USER32.dll_wvsprintfA]
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x400
ret
Function at 0x412b50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
xor esi, esi
push esi
push 0xf003f
push 1
push esi
push esi
push 0x41b8e0
push 0x80000002
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x412bbe
mov eax, dword [esp + 0x1c]
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push ecx
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x412baf
mov esi, 1
mov eax, dword [esp + 4]
test eax, eax
je 0x412bbe
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10
ret 8

Function at 0x412bd0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
xor esi, esi
push esi
push 0xf003f
push 1
push esi
push esi
push 0x41b8e0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x412c30
mov ecx, dword [esp + 4]
push 4
lea edx, [esp + 0x18]
push edx
push 4
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x412c21
mov esi, 1
mov eax, dword [esp + 4]
test eax, eax
je 0x412c30
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret 8
Function at 0x4133e0
Capabilities:
Delete file

Disassembly:
sub esp, 0x250
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov edi, dword [ebp + 4]
push edi
mov ebx, 0x40554c
call fcn.0040be13
add esp, 4
cmp eax, 2
jbe 0x413417
cmp word [edi], 0x5c
jne 0x413417
cmp word [edi + 2], 0x5c
jne 0x413417
mov ebx, 0x405538
add edi, 4
push edi
call fcn.0040be13
push ebx
mov esi, eax
call fcn.0040be13
add esi, eax
lea eax, [esi + esi + 4]
push eax
call fcn.0040e4c0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4134b0
push ebx
push esi
call fcn.0040bdf7
push edi
push esi
call fcn.0040bdcd
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x413465
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4134a0
push 0
push 0x80
push 1
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x413493
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4134a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4134a7
mov dword [ebp + 8], 6
push esi
call fcn.0040e1b0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x250
ret

Function at 0x413a80
Capabilities:
Hide graphical window

Disassembly:
test eax, eax
mov eax, dword [esi + 0x4c]
je 0x413af9
test eax, eax
jne 0x413b1e
mov dword [esi + 0x4c], 1
call fcn.004071e0
test eax, eax
je 0x413aa7
push 0x30
call dword [sym.imp.USER32.dll_MessageBeep]
call fcn.004071e0
test eax, eax
je 0x413ae8
mov eax, dword [esi + 0x44]
push edi
push 9
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x44]
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
push 0x13
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ecx
call edi
mov edx, dword [esi + 0x44]
push 0x13
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push edx
call edi
pop edi
call fcn.004071e0
test eax, eax
je 0x413b1e
mov dword [esi + 0x50], 1
ret
test eax, eax
je 0x413b1e
mov eax, dword [esi + 0x50]
test eax, eax
mov dword [esi + 0x4c], 0
je 0x413b1e
mov eax, dword [esi + 0x44]
push 0
push eax
mov dword [esi + 0x50], 0
call dword [sym.imp.USER32.dll_FlashWindow]
ret

Function at 0x414180
Capabilities:
Create thread

Disassembly:
push ecx
mov eax, dword [0x41bce0]
test eax, eax
jne 0x4141ef
push 0x14
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [0x41bce0], eax
je 0x4141ef
mov ecx, dword [esp + 8]
push 0
push 0
mov dword [eax], ecx
push 0
mov dword [eax + 0xc], 0
push 0
mov dword [eax + 0x10], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [0x41bce0]
lea edx, [esp]
push edx
push 0
push ecx
push 0x414170
push 0
push 0
mov dword [ecx + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x41bce0]
mov dword [ecx + 4], eax
pop ecx
ret 4
Function at 0x414200
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
push esi
lea eax, [esp + 4]
push eax
push 0x104
push ebx
push 1
push 0
push 0
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryW
mov esi, eax
test esi, esi
je 0x414274
push edi
xor eax, eax
mov ecx, 0x47
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], 0x11c
call edi
test eax, eax
jne 0x414259
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], 0x114
call edi
cmp dword [esp + 0x10], 5
pop edi
jb 0x414268
push 0x403828
jmp 0x41426d
push 0x403820
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
xor eax, eax
test esi, esi
setne al
pop esi
add esp, 0x120
ret

Function at 0x4143c0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x208
push ebx
push esi
push edi
mov edi, dword [esp + 0x218]
xor ebx, ebx
cmp edi, ebx
mov esi, ecx
je 0x414413
cmp word [edi], bx
je 0x414413
cmp byte [esp + 0x21c], bl
jne 0x4144a0
lea ebx, [esp + 0xc]
call fcn.00414200
test al, al
je 0x414411
push edi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 4], eax
xor ebx, ebx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4144d2
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4055e0
push eax
call edi
mov edx, dword [esi + 4]
push 0x4055c8
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
push 0x4055b0
push eax
call edi
mov ecx, dword [esi + 4]
push 0x405598
push ecx
mov dword [esi + 0x14], eax
call edi
mov edx, dword [esi + 4]
push 0x405580
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 4]
push 0x405564
push eax
call edi
cmp dword [esi + 0xc], ebx
mov dword [esi + 0x20], eax
je 0x4144af
cmp dword [esi + 0x10], ebx
je 0x4144af
cmp dword [esi + 0x14], ebx
je 0x4144af
cmp dword [esi + 0x18], ebx
je 0x4144af
cmp dword [esi + 0x1c], ebx
je 0x4144af
cmp eax, ebx
je 0x4144af
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x208
ret 8
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 4], eax
jmp 0x414413
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4144d2
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 4], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x208
ret 8
Function at 0x407b24
Capabilities:
Block operations on executable memory pages using arbitrary code guard

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 2
push eax
push 9
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0xa
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
leave
ret
Function at 0x40b129
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
cmp edx, esi
je 0x40b166
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0x40b15f
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0x40b16b
add edx, 0x28
cmp edx, esi
jne 0x40b150
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x40b168

Function at 0x40b738
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test eax, eax
je 0x40b777
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40b777
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40b777
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40b777
cmp dword [ecx + 0x74], 0xe
jbe 0x40b777
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40d642
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x41f7d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
push ecx
lea ecx, [ebp - 0x210]
mov dword [ebx], esi
mov dword [ebx + 4], esi
call fcn.0040d43a
push 0x402168
lea ecx, [ebp - 0x210]
call fcn.0040d3f2
lea eax, [ebp - 0x210]
push eax
push esi
push 0x1f0003
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov dword [ebp - 0x218], eax
test eax, eax
jne 0x40d6be
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
je 0x40d6fa
mov ecx, dword [ebp + 4]
mov edx, 0xc9
push 0x40212c
call fcn.004164a0
mov esi, eax
jmp 0x40d6fa
lea edx, [ebp - 0x214]
mov dword [ebp - 0x214], esi
mov ecx, eax
call fcn.00416224
mov edi, eax
test edi, edi
jns 0x40d6ee
mov ecx, dword [ebp + 4]
mov edx, 0xcf
push edi
push 0x40212c
call fcn.004164ec
mov esi, edi
jmp 0x40d6fa
mov eax, dword [ebp - 0x214]
cdq
mov dword [ebx], eax
mov dword [ebx + 4], edx
lea ecx, [ebp - 0x218]
call fcn.00407f98
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040aec0
leave
ret 8