joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a10d0
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585778
push 0x4badc4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x1c], 1
mov dword [ebp - 4], 0
push edx
push ecx
push ebx
mov eax, 0x564d5868
mov ebx, 0
mov ecx, 0xa
mov edx, 0x5658
in eax, dx
cmp ebx, 0x564d5868
sete byte [ebp - 0x1c]
pop ebx
pop ecx
pop edx
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a1510
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4a1576
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4a1576
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4a1557
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4a1cf0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4a1d28
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x4a23c0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4a2409
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4a2880
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4dbe20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004a2430
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004a24b0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004a24b0
lea ecx, [esi + 0xc]
call fcn.004ca2e8
lea ecx, [esi + 0x10]
call fcn.004ca2e8
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004a3a40
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004a3a40
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004a3a40
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004ca35d
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004ca35d
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4a4df0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x5a9b0c]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4a4e03
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4a4e44
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x5a9bb4]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4a4e76
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4a4e7a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4a4e6b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4a4e98
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4a4e9c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4a4e8d
xor ecx, ecx
mov eax, 0x5a9b1c
xor ebx, ebx
mov bl, byte [ecx + 0x5a9bc4]
cmp byte [esp + ebx + 0x14], 0
je 0x4a4ec7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x5a9bdc]
cmp byte [esp + ebx + 0x14], 0
je 0x4a4ede
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x4a4eae
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4a4e37
lea edx, [esp + 0x84]
push edx
call fcn.004a4f20
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4ba64d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4ba66d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004bce1a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4ba690
test byte [esp + 8], 2
je 0x4ba690
call fcn.004bce8d
mov dword [eax], 0xd
call fcn.004bce96
mov dword [eax], 5
jmp 0x4ba669
xor eax, eax
ret

Function at 0x4cc7c4
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4cc7fc
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004ca804
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004ca7dc
jmp 0x4cc808
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4cdebe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4cdf00
call fcn.004d3dbf
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4cdf00
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4cdef7
xor eax, eax
jmp 0x4cdf08
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004cdf0e
pop edi
pop esi
pop ebx
ret 4

Function at 0x4d42d3
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4d4301
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d431f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d4239
jmp 0x4d431f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d431f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d4239
test edi, edi
mov eax, edi
jne 0x4d4309
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401360
Capabilities:
Create udp socket
Initialize winsock library
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x18e
push eax
mov word [ebp - 0x1a8], ax
lea eax, [ebp - 0x1a6]
push eax
call fcn.0040eb10
add esp, 0xc
lea eax, [ebp - 0x1a8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4013ca
or eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040767f
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x1ac]
push 4
push eax
push 0x1005
push 0xffff
push edi
mov dword [ebp - 0x1ac], 0xbb8
call esi
push 4
lea eax, [ebp - 0x1ac]
push eax
push 0x1006
push 0xffff
push edi
call esi
push 4
lea eax, [ebp - 0x1ac]
mov dword [ebp - 0x1ac], 4
push eax
push 0x1001
push 0xffff
push edi
call esi
xorps xmm0, xmm0
mov eax, 2
movdqu xmmword [ebp - 0x14], xmm0
push 0x501
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push eax
push 0
push 4
lea eax, [ebp - 0x1b0]
mov dword [ebp - 0x10], 0x3d389f73
push eax
push edi
mov dword [ebp - 0x1b0], 0xd0d0d
call dword [sym.imp.WS2_32.dll_sendto]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0040767f
mov esp, ebp
pop ebp
ret
Function at 0x401e60
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.0040eb10
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x401f54
cmp dword [ebp - 0x114], 5
jbe 0x401f54
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], 0
push eax
push 0x20119
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem_
push closesocket
mov dword [ebp - 0x128], 4
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x124], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401f54
push esi
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x128]
push eax
push 0
push str.EnableLUA
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x11c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x401f54
xor eax, eax
cmp dword [ebp - 0x120], eax
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040767f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0040767f
mov esp, ebp
pop ebp
ret

Function at 0x401f70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x401fde
push 0x38
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 0
push 0
push eax
call fcn.0040eb10
add esp, 0xc
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x401fe7
call fcn.00401e60
test eax, eax
je 0x401fe7
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x38], 0x440
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], str.runas
mov dword [ebp - 0x24], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x405440
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x40544d
xor eax, eax
pop ebp
ret 4
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x405517
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x41dab0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x41dab0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x41dab0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x41dab0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x41dab0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x41dab0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x41dab0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x41dab0]
dec edi
jne 0x405462
pop edi
test esi, esi
je 0x40553a
jmp 0x405520
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x41dab0]
dec esi
jne 0x405520
not ecx
mov eax, ecx
pop esi
pop ebp
ret 4

Function at 0x405c10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edx
mov esi, ebx
mov eax, ecx
imul esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp byte [edi], 0
je 0x405c55
push 0
lea ecx, [ebp + 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405c45
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
xor edx, edx
pop edi
pop esi
div ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x405c66
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp - 4]
call fcn.0040c770
add dword [edi + 0x18], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x405c90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
mov edi, 1
cmp byte [esi], 0
je 0x405ccb
push 0
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 1]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405cc6
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x405cf8
mov ebx, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x405cdc
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x10]
add eax, ebx
push edi
push eax
lea eax, [ebp - 1]
push eax
call fcn.0040c770
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 8]
mov dword [esi + 0x18], eax
cmp edi, 1
jne 0x405d0c
movzx eax, byte [ebp - 1]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x405d03
cmp byte [esi + 8], 0
je 0x405d03
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405dd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
mov edi, ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [edi], 0
je 0x405e04
cmp byte [edi + 1], 0
je 0x405dfd
push 2
push 0
push 0
push dword [edi + 4]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x405e0a
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x14]
mov dword [edi + 0x18], eax
cmp byte [edi], 0
push ebx
je 0x405e2f
cmp byte [edi + 1], 0
je 0x405e28
push 1
push 0
push 0
push dword [edi + 4]
call ecx
mov ebx, eax
sub ebx, dword [edi + 0xc]
jmp 0x405e32
xor ebx, ebx
mov dword [ebp - 8], ebx
jmp 0x405e41
mov ebx, dword [edi + 0x18]
mov eax, 0xffff
mov dword [ebp - 8], ebx
mov dword [ebp - 4], eax
cmp ebx, eax
jae 0x405e44
mov dword [ebp - 4], ebx
push esi
push 0x404
call fcn.0040772f
mov esi, eax
add esp, 4
test esi, esi
jne 0x405e5f
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 4
mov dword [ebp - 0x10], 0
cmp ecx, eax
jbe 0x405f5f
add eax, 0x400
cmp eax, ecx
mov edx, eax
mov eax, 0x404
cmova edx, ecx
mov ecx, ebx
sub ecx, edx
mov dword [ebp - 0x1c], edx
sub ebx, ecx
mov dword [ebp - 0x18], ecx
cmp ebx, 0x404
cmova ebx, eax
cmp byte [edi], 0
je 0x405ec0
cmp byte [edi + 1], 0
je 0x405f5f
mov eax, dword [edi + 0xc]
push 0
push 0
add eax, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x405ec3
mov dword [edi + 0x18], ecx
cmp byte [edi], 0
mov ecx, ebx
mov dword [ebp - 0xc], ebx
je 0x405eeb
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405ee6
mov byte [edi + 8], 1
mov eax, dword [ebp - 0x14]
jmp 0x405f14
mov edx, dword [edi + 0x18]
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x14]
jbe 0x405efe
mov ecx, dword [edi + 0x14]
sub ecx, edx
mov dword [ebp - 0xc], ecx
push ecx
mov ecx, dword [edi + 0x10]
add ecx, edx
push ecx
push esi
call fcn.0040c770
mov eax, dword [ebp - 0xc]
add esp, 0xc
add dword [edi + 0x18], eax
xor edx, edx
div ebx
cmp eax, 1
jne 0x405f5f
lea eax, [ebx - 3]
test eax, eax
jle 0x405f4e
dec eax
cmp byte [eax + esi], 0x50
jne 0x405f40
cmp byte [eax + esi + 1], 0x4b
jne 0x405f40
cmp byte [eax + esi + 2], 5
jne 0x405f40
cmp byte [eax + esi + 3], 6
je 0x405f46
test eax, eax
jg 0x405f24
jmp 0x405f4e
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
jne 0x405f5f
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 8]
cmp eax, ecx
jb 0x405e76
push esi
call fcn.004077c1
mov eax, dword [ebp - 0x10]
add esp, 4
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x406c40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x406cbe
cmp dword [edi + 4], 0xffffffff
jne 0x406cbe
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x41da98
push 0x104
push esi
call fcn.004077f9
add esp, 0xc
mov dword [ebp - 4], 0
push 0x1c
call fcn.004076b4
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x14], ecx
mov ecx, eax
mov word [eax], 0x100
mov dword [eax + 0x18], 0
mov dword [eax + 0xc], 0
call fcn.00405f80
mov dword [edi], eax
mov eax, dword [0x54ed9c]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
pop edi
mov eax, 0x1000000
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40fcd4
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040a2bb
mov dword [ebp - 0x14], eax
cmp dword [0x54ecc4], esi
jne 0x40fdc7
push 0x800
push esi
push 0x419658
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40fd54
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40fea7
push esi
push esi
push 0x419658
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40fea7
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40fea7
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x54ecc4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x54ecc8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x54eccc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x54ecd4], eax
test eax, eax
je 0x40fdc4
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x54ecd0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40fdec
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40fddf
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40fe01
push 4
pop eax
jmp 0x40fea9
cmp dword [ebp - 0x14], esi
je 0x40fe01
push dword [0x54ecc4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40fde6
mov eax, dword [0x54ecd0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40fe5f
cmp dword [0x54ecd4], edi
je 0x40fe5f
push eax
call ebx
push dword [0x54ecd4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40fe5f
test eax, eax
je 0x40fe5f
call ecx
test eax, eax
je 0x40fe54
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40fe54
test byte [ebp - 8], 1
jne 0x40fe5f
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40fe8f
mov eax, dword [0x54ecc8]
cmp eax, edi
je 0x40fe8c
push eax
call ebx
test eax, eax
je 0x40fe8c
call eax
mov esi, eax
test esi, esi
je 0x40fe8c
mov eax, dword [0x54eccc]
cmp eax, edi
je 0x40fe8c
push eax
call ebx
test eax, eax
je 0x40fe8c
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x54ecc4]
call ebx
test eax, eax
je 0x40fea7
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40fea9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040767f
mov esp, ebp
pop ebp
ret
Function at 0x4017c3
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push 0x18
push 0x4032c0
call fcn.0040303c
xor edi, edi
mov dword [ebp - 0x24], edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
call fcn.00401cb9
test eax, eax
jne 0x4017f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4018a4
call fcn.00401f87
test eax, eax
jne 0x401806
push 5
pop esi
jmp 0x4018a4
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
jne 0x401814
push 0x57
jmp 0x401800
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
cmp dword [ebp - 0x20], 2
jl 0x401810
lea eax, [ebp - 0x24]
push eax
push 0x401154
push dword [esi + 4]
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0xc
cmp eax, 1
jne 0x401810
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x24]
dec eax
sub eax, 1
je 0x401868
dec eax
sub eax, 1
jne 0x401859
cmp dword [ebp - 0x20], 3
je 0x40185e
push 0x57
pop esi
jmp 0x40189a
mov ecx, dword [esi + 8]
call fcn.00401765
jmp 0x401898
cmp dword [ebp - 0x20], 5
jne 0x401859
push dword [esi + 0x10]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 8]
call fcn.004016f2
jmp 0x401898
mov esi, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xfffffffe
call fcn.00401d44
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]