joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10053381
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1006e05c]
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.1004606b
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.1004606b
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 0x100533f8
cmp word [ecx], dx
je 0x100533f8
mov eax, dword [0x10062034]
push edi
dec eax
push eax
push 0x10061f20
call fcn.10053320
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1005346b
cmp word [eax], dx
je 0x1005346b
mov eax, dword [edi]
test eax, eax
je 0x1005341c
cmp word [eax], dx
je 0x1005341c
lea eax, [ebp - 0x10]
push eax
call fcn.10052d03
jmp 0x10053425
lea eax, [ebp - 0x10]
push eax
call fcn.10052d9e
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10053495
mov eax, dword [0x10061f1c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10061c10
call fcn.10053320
add esp, 0xc
test al, al
je 0x10053495
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10053460
cmp word [eax], di
je 0x10053460
lea eax, [ebp - 0x10]
push eax
call fcn.10052d03
pop ecx
jmp 0x10053497
lea eax, [ebp - 0x10]
push eax
call fcn.10052d9e
jmp 0x1005345d
mov eax, dword [edi]
test eax, eax
je 0x10053482
cmp word [eax], dx
je 0x10053482
lea eax, [ebp - 0x10]
push eax
call fcn.10052cb8
pop ecx
jmp 0x10053495
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 0x10053560
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.100531a5
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10053560
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10053560
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10053560
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100534ed
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10044830
test ebx, ebx
je 0x1005355b
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10044830
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10053560
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 0x10053560
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100560f2
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10053562
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10032619
leave
ret
Function at 0x10056311
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.1005628d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10056480
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10056480
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10056435
jg 0x1005636d
test eax, eax
je 0x1005642b
push 1
push 0x1000
call fcn.10044162
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10056390
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10056422
push 0x8000
push ebx
call fcn.100561be
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100563b9
jg 0x100563b4
cmp ecx, 0x1000
jb 0x100563b9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1004a13c
add esp, 0x10
cmp eax, 0xffffffff
je 0x100563fe
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 0x100563b4
jl 0x100563e5
test ecx, ecx
jne 0x100563a6
push dword [ebp - 0xc]
push ebx
call fcn.100561be
push esi
call fcn.100441bf
add esp, 0xc
xor ebx, ebx
jmp 0x1005648e
cmp byte [edi + 0x24], 0
je 0x10056415
cmp dword [edi + 0x20], 5
jne 0x10056415
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10056420
mov ebx, dword [edi + 0x18]
jmp 0x10056422
xor ebx, ebx
push esi
call fcn.100441bf
pop ecx
jmp 0x1005648e
test ecx, ecx
jg 0x100563f7
jl 0x10056435
test eax, eax
jae 0x100563f7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10047c24
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10056455
cmp byte [edi + 0x1c], 0
je 0x100563f7
jmp 0x10056486
push ebx
call fcn.1004f73a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100563f7
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 0x1005648e
cmp byte [edi + 0x1c], 0
je 0x1005648b
mov ebx, dword [edi + 0x18]
jmp 0x1005648e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10047c24
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4057f1
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f0
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e0
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405842
xor eax, eax
jmp 0x405869
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405869
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x40583e
call esi
pop esi
leave
ret 4

Function at 0x4058a3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x468250], 0x44
push eax
xor eax, eax
push 0x468250
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4058e2
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4058e6
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x405984
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405d8b
mov edi, eax
cmp edi, 0xffffffff
je 0x4059c5
test byte [esp + 0x10], 1
push esi
je 0x4059a7
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4059ad
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4059b6
xor eax, eax
inc eax
jmp 0x4059c7
test byte [esp + 0x10], 4
jne 0x4059c5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x401000
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x5c
mov dword [esp], 0xfffffff5
mov edi, dword [sym.imp.kernel32.dll_GetStdHandle]
call edi
lea ecx, [ebp - 0x1c]
xor edx, edx
sub esp, 4
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteConsoleW]
sub esp, 0x14
test eax, eax
je 0x401058
mov edx, dword [ebp - 0x1c]
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x34], eax
mov ecx, dword [sym.imp.kernel32.dll_GetConsoleOutputCP]
mov dword [ebp - 0x40], ecx
call ecx
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x1c], edx
xor edx, edx
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov dword [esp + 0x14], edx
xor edx, edx
mov dword [esp + 4], edx
mov dword [esp + 0x10], ecx
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [ebp - 0x38], eax
call eax
mov ecx, dword fs:[0x18]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x2c], eax
sub esp, 0x20
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
sub esp, 0xc
test eax, eax
je 0x401047
mov ecx, dword [ebp - 0x40]
call ecx
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x1c], edx
mov edx, dword [ebp - 0x2c]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp - 0x30]
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 0xc], esi
xor esi, esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 4], ebx
mov ebx, dword [ebp - 0x38]
mov dword [esp], eax
call ebx
sub esp, 0x20
mov dword [esp], 0xfffffff5
call edi
mov edi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
sub esp, 4
mov dword [esp + 0x10], esi
lea esi, [ebp - 0x1c]
mov dword [esp + 8], edx
mov dword [esp + 4], edi
mov dword [esp + 0xc], esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
mov ecx, dword [ebp - 0x3c]
sub esp, 0x14
mov dword [esp + 8], edi
xor edi, edi
mov dword [esp + 4], edi
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x401044
Function at 0x401880
Capabilities:
Enumerate services
Get process heap flags
Stop service

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
xor ebx, ebx
lea edi, [ebp - 0x40]
sub esp, 0x6c
mov dword [ebp - 0x50], eax
lea esi, [ebp - 0x44]
xor eax, eax
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 4], eax
mov dword [esp], edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
call sym._EnumDependentServicesW_24
sub esp, 0x18
test eax, eax
jne 0x401910
mov ebx, eax
xor ecx, ecx
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0xea
je 0x401940
mov dword [esp + 8], ecx
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, ebx
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor ecx, ecx
mov dword [ebp - 0x50], ecx
lea eax, [ebp - 0x3c]
mov ecx, 1
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._ControlService_12
mov ecx, dword [ebp - 0x50]
sub esp, 0xc
mov ebx, eax
jmp 0x4018e2
mov ecx, dword [ebp - 0x44]
xor edx, edx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, eax
mov eax, dword [ebp - 0x44]
sub esp, 0xc
mov dword [esp + 8], ecx
mov dword [ebp - 0x54], ecx
mov ecx, 1
mov dword [esp + 4], ecx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
mov dword [esp], eax
call sym._EnumDependentServicesW_24
mov ecx, dword [ebp - 0x54]
sub esp, 0x18
test eax, eax
je 0x4018e2
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x4018e2
mov dword [ebp - 0x58], ecx
lea esi, [ecx + 4]
xor edi, edi
mov eax, dword [esi]
mov dword [esp], 0x68
mov dword [esp + 4], eax
call sym._output_string
mov eax, 0xf003f
mov dword [esp + 8], eax
mov eax, dword [esi - 4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call sym._OpenServiceW_12
sub esp, 0xc
test eax, eax
mov edx, eax
je 0x4019fd
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
call sym._StopService
mov edx, dword [ebp - 0x54]
mov dword [esp], edx
mov ebx, eax
call sym._CloseServiceHandle_4
sub esp, 4
test ebx, ebx
je 0x401a20
inc edi
add esi, 0x24
cmp dword [ebp - 0x40], edi
ja 0x4019ac
test ebx, ebx
mov ecx, dword [ebp - 0x58]
jne 0x401912
jmp 0x4018e2
mov eax, dword [esi]
mov dword [esp], 0x69
mov dword [esp + 4], eax
call sym._output_string
jmp 0x401a01
Function at 0x401a40
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
push eax
mov eax, 0x2038
call fcn.00402f28
sub esp, eax
mov esi, edx
mov eax, dword [esp + eax]
mov dword [esp], 0
mov dword [ebp - 0x2030], eax
mov eax, 0xf003f
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
call sym._OpenSCManagerW_12
sub esp, 0xc
test eax, eax
je 0x401c28
mov dword [esp + 4], esi
mov edi, 0xf003f
mov ebx, eax
mov dword [esp + 8], edi
mov dword [esp], eax
call sym._OpenServiceW_12
mov dword [ebp - 0x202c], eax
sub esp, 0xc
test eax, eax
je 0x401c40
lea eax, [ebp - 0x201c]
mov ecx, 0x1000
mov dword [esp + 0xc], eax
lea edi, [ebp - 0x2018]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [ebp - 0x201c], ecx
call sym._GetServiceDisplayNameW_16
sub esp, 0x10
cmp word [ebp - 0x2018], 0
jne 0x401aff
xor eax, eax
lea esi, [esi]
lea edi, [edi]
movzx edx, word [esi + eax]
mov word [edi + eax], dx
add eax, 2
test edx, edx
jne 0x401af0
cmp dword [ebp - 0x2030], 2
mov dword [esp + 4], edi
jne 0x401b80
mov dword [esp], 0x6f
call sym._output_string
mov edx, dword [ebp - 0x202c]
mov eax, ebx
call sym._StopService
mov dword [ebp - 0x2030], eax
test eax, eax
je 0x401bd0
mov dword [esp + 4], edi
mov dword [esp], 0x70
call sym._output_string
mov edx, dword [ebp - 0x2030]
mov dword [ebp - 0x2030], edx
mov eax, dword [ebp - 0x202c]
mov dword [esp], eax
call sym._CloseServiceHandle_4
sub esp, 4
mov dword [esp], ebx
call sym._CloseServiceHandle_4
mov edx, dword [ebp - 0x2030]
mov eax, edx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x6c
call sym._output_string
xor eax, eax
xor edx, edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x202c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._StartServiceW_12
mov dword [ebp - 0x2030], eax
sub esp, 0xc
test eax, eax
je 0x401bf0
mov dword [esp + 4], edi
mov dword [esp], 0x6d
call sym._output_string
mov edx, dword [ebp - 0x2030]
jmp 0x401b49
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
call sym._output_error_string
test eax, eax
je 0x401c68
xor edx, edx
jmp 0x401b49
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
call sym._output_error_string
test eax, eax
jne 0x401be6
mov dword [esp + 4], edi
mov dword [esp], 0x6e
mov dword [ebp - 0x2030], eax
call sym._output_string
mov edx, dword [ebp - 0x2030]
jmp 0x401b49
mov dword [esp], 0x6a
call sym._output_string
lea esp, [ebp - 0xc]
xor edx, edx
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x6b
call sym._output_string
mov dword [esp], ebx
call sym._CloseServiceHandle_4
xor edx, edx
mov eax, edx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], edi
mov dword [esp], 0x71
mov dword [ebp - 0x2030], eax
call sym._output_string
mov edx, dword [ebp - 0x2030]
jmp 0x401b49
Function at 0x402440
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
test eax, eax
je 0x4024b0
cmp byte [esi + eax - 1], 0xa
mov ebx, eax
je 0x4024a8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4070a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
xor eax, eax
jmp 0x40246d
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x402e80
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete dl
movzx edx, dl
inc edx
mov dword [esp], edx
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
Function at 0x98a68c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x98a6b3
call fcn.0092cbf8
mov dword [eax], esi
call fcn.0092cbe5
push 0x16
pop esi
mov dword [eax], esi
call fcn.0092d83a
mov eax, esi
jmp 0x98a708
test dword [ebp + 0xc], 0xfffffff9
jne 0x98a699
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x98a6e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0092cc0b
pop ecx
call fcn.0092cbe5
mov eax, dword [eax]
jmp 0x98a708
test al, 0x10
jne 0x98a706
test al, 1
je 0x98a706
test byte [ebp + 0xc], 2
je 0x98a706
call fcn.0092cbf8
mov dword [eax], 5
call fcn.0092cbe5
mov dword [eax], 0xd
jmp 0x98a6d7
xor eax, eax
pop esi
pop ebp
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x40ad30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
or ebp, 0xffffffff
jmp 0x40ad52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40ad59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40ad48
mov eax, 1
add ebx, ebx
jne 0x40ad6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40ad60
jne 0x40ad7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40ad60
xor ecx, ecx
sub eax, 3
jb 0x40ad90
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40ae02
mov ebp, eax
add ebx, ebx
jne 0x40ad9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40ada8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40adcc
inc ecx
add ebx, ebx
jne 0x40adb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40adad
jne 0x40adc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40adad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40adec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40addd
jmp 0x40ad4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40adec
add edi, ecx
jmp 0x40ad4e
pop esi
mov edi, esi
mov ecx, 0x6c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40ae0a
cmp byte [edi], 1
jne 0x40ae0a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40ae0f
lea edi, [esi + 0x8000]
mov eax, dword [edi]
or eax, eax
je 0x40ae7e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc99c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xca08]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40ae3c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xca10]
or eax, eax
je 0x40ae78
mov dword [ebx], eax
add ebx, 4
jmp 0x40ae59
call dword [esi + 0xca0c]
mov ebp, dword [esi + 0xca14]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40aeb2
sub esp, 0xffffff80
jmp 0x401e0a
Function at 0x10001180
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], esi
mov eax, dword [ecx]
test eax, eax
je 0x1000128f
sub ecx, ebx
test eax, eax
mov dword [ebp + 8], ecx
push edi
js 0x1000127f
xor edx, edx
mov eax, 0x10002068
lea ecx, [edx + 5]
cmp dword [eax + 4], esi
jne 0x100011bb
mov edx, dword [eax]
add eax, 0x10
sub ecx, 1
jne 0x100011b4
mov dword [ebp - 4], edx
mov edi, 1
xor esi, esi
lea ecx, [ecx]
test edx, edi
je 0x1000126b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + ebx]
mov eax, dword [esi + 0x10002008]
add ecx, 2
test eax, eax
je 0x100011ef
cmp eax, dword [ebx]
je 0x10001221
mov eax, dword [esi + 0x10002004]
add ecx, dword [ebp - 0x14]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x10001218
test dl, dl
je 0x10001214
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x10001218
add ecx, 2
add eax, 2
test dl, dl
jne 0x100011f8
xor eax, eax
jmp 0x1000121d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10001268
mov eax, dword [ebx]
mov dword [esi + 0x10002008], eax
lea eax, [ebp - 8]
push eax
push 0x40
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
mov eax, dword [esi + 0x1000200c]
mov dword [ebx], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
mov edx, dword [ebp - 4]
add esi, 0x10
rol edi, 1
cmp esi, 0x30
jb 0x100011d0
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + ebx + 4]
add ebx, 4
test eax, eax
jne 0x100011a4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret