joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413945
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00413604
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x41398f
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040fbbe
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040fb8f
jmp 0x41399a
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00427e26
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4139a0
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0041b749
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4139dd
call fcn.00413604
mov dword [esi + 0xc], 1
jmp 0x4139e2
call fcn.00413604
cmp dword [esi], 0
je 0x413a2b
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x413a03
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040fbbe
jmp 0x413a15
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00401f10
push pe_nt_image_headers32
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040fb8f
jmp 0x413a4f
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x413a4f
push dword [esi]
push dword [ebp + 8]
call fcn.00427e26
pop esi
pop ebp
ret 0xc

Function at 0x41421a
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x414245
call fcn.00421ee9
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 8], eax
test eax, eax
jne 0x414268
push eax
push dword [esi + 4]
call fcn.004141a0
push esi
push eax
mov ecx, 0x58658c
call fcn.00413ecb
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x4145e5
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x5284ef
call fcn.0051067f
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x18]
mov ebx, dword [ebp + 8]
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
push ebx
call fcn.004145a5
and dword [ebp - 4], 0
mov dword [esi], vtable.CFtpConnection.0
call fcn.0040fcc4
push eax
lea ecx, [esi + 0x18]
call fcn.00401e40
push dword [ebp + 0xc]
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.00401fb0
push dword [esi + 8]
mov eax, dword [ebp + 0x20]
mov ebx, dword [ebx + 8]
neg eax
sbb eax, eax
and eax, 0x8000000
push eax
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 4], eax
test eax, eax
jne 0x41466d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi + 8]
call fcn.004141a0
push dword [esi + 0xc]
mov ecx, 0x58658c
push eax
call fcn.00413ecb
mov eax, esi
call fcn.00510757
ret 0x1c

Function at 0x415151
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00421ee9
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41518a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00414d93
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x4151e8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x41520c
cmp dword [edi + 0x74], 0
jne 0x41520c
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00421ee9
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004151a9
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x41b63d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41b684
call fcn.00421ee9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41b684
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41b6a0
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041b142
mov esi, eax
test edi, edi
je 0x41b69e
test ebx, ebx
je 0x41b69e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41be5b
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x52f5bd
call fcn.0051067f
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x41be80
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41bed2
call fcn.0040fcc4
push eax
lea ecx, [ebp - 0x10]
call fcn.00401e40
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005101ee
push eax
call fcn.00402390
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004010d0
mov eax, esi
call fcn.00510757
ret 8

Function at 0x41c35e
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x41c39c
push 0x53b8fc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x41c3aa
push str.MoveFileTransactedA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41c3aa
push dword [esi]
push 2
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x41c3ac
cmp dword [esi + 4], 0
je 0x41c3aa
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_MoveFileA]
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x42246b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x584cc0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x4224b3
push 0x53c8e0
push 4
push eax
call fcn.0050fb12
push eax
call fcn.00402390
add esp, 0x10
jmp 0x4224c9
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x42254c
push edi
call fcn.00510817
mov edi, dword [eax]
call fcn.00510817
and dword [eax], 0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0050f6b3
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.00510817
cmp dword [eax], 0
je 0x422520
call fcn.00510817
push dword [eax]
call fcn.004115e4
pop ecx
jmp 0x422527
call fcn.00510817
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
pop edi
je 0x42254c
cmp dword [ebp - 0x11c], esi
jae 0x42254c
push 0
push 0
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x42254e
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0050ed6a
leave
ret
Function at 0x42255b
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x584cc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.00416db4
pop ecx
cmp eax, esi
je 0x422645
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x422645
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.00513670
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x422645
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x422645
cmp esi, 0x14
jge 0x422645
push 0x10
push 0
push edi
call fcn.0051445c
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x422634
call fcn.00510817
cmp dword [eax], 0x22
je 0x422634
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.00510860
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x42260a
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x5881c0], 0
jne 0x4226d0
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x4226f9
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.0042246b
pop ecx
pop ecx
test eax, eax
jne 0x4226fb
inc edi
cmp edi, esi
jl 0x4226d6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050ed6a
leave
ret 8
Function at 0x4240ad
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4240f5
call fcn.00421ee9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4240f5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x424138
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x424121
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x424121
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x424135
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x42aef3
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x584cc0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x42af28
xor eax, eax
jmp 0x42af7b
lea eax, [ebp - 0x210]
push eax
call fcn.00510860
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x42af59
push 0x53d004
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0051522f
add esp, 0xc
test eax, eax
jne 0x42af24
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0051522f
add esp, 0xc
test eax, eax
jne 0x42af24
lea eax, [ebp - 0x210]
push eax
call fcn.00413d41
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0050ed6a
leave
ret
Function at 0x44c634
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004b0322
call fcn.00421906
cmp dword [eax + 0x14], 0
jne 0x44c651
mov ecx, esi
pop esi
jmp fcn.0044c179
pop esi
ret

Function at 0x44fc58
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00435c1f
call fcn.00421906
cmp dword [eax + 0x14], 0
jne 0x44fc75
mov ecx, esi
pop esi
jmp fcn.0044f62b
pop esi
ret

Function at 0x47a17c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x47a196
call fcn.00421ee9
mov esi, dword [eax + 0xc]
push dword [0x589f8c]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x47a1b4
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x47a1ac
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x47a1e1
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x47a1ae
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0047a0aa
mov esi, eax
jmp 0x47a1d3

Function at 0x4f589b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4f58b3
mov edi, dword [esi + 0xc]
jmp 0x4f58f3
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4f58cc
call fcn.0041f795
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4f58e1
call fcn.0041f795
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4f58f3
call fcn.0041f795
call fcn.00421ee9
cmp dword [eax + 0x3c], 0
je 0x4f5908
push edi
mov ecx, ebx
call fcn.004f46cf
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004f57b5
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4f5926
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4f5932
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x50ed6a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x584cc0]
jne 0x50ed74
repz ret
jmp fcn.00516994
Function at 0x50f616
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 0x50f63d
call fcn.0051082a
mov dword [eax], esi
call fcn.00510817
push 0x16
pop esi
mov dword [eax], esi
call fcn.00516f8b
mov eax, esi
jmp 0x50f692
test dword [ebp + 0xc], 0xfffffff9
jne 0x50f623
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x50f66a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0051083d
pop ecx
call fcn.00510817
mov eax, dword [eax]
jmp 0x50f692
test al, 0x10
jne 0x50f690
test al, 1
je 0x50f690
test byte [ebp + 0xc], 2
je 0x50f690
call fcn.0051082a
mov dword [eax], 5
call fcn.00510817
mov dword [eax], 0xd
jmp 0x50f661
xor eax, eax
pop esi
pop ebp
ret

Function at 0x525ebf
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x584cc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00517ae9
and dword [ebp - 0x14], 0
cmp dword [0x58c8c8], 0
mov dword [ebp - 0x18], eax
jne 0x525f72
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x52601a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x52601a
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x56067c
push ebx
mov dword [0x58c8c8], eax
call edi
push eax
call esi
push 0x560668
push ebx
mov dword [0x58c8cc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x58c8d0], eax
call edi
push eax
call esi
mov dword [0x58c8d8], eax
test eax, eax
je 0x525f72
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x58c8d4], eax
mov eax, dword [0x58c8d4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x525fcb
cmp dword [0x58c8d8], ecx
je 0x525fcb
push eax
call esi
push dword [0x58c8d8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x525fcb
test ebx, ebx
je 0x525fcb
call edi
test eax, eax
je 0x525fc2
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x525fc2
test byte [ebp - 8], 1
jne 0x525fcb
or dword [ebp + 0x10], 0x200000
jmp 0x525ffe
mov eax, dword [0x58c8cc]
cmp eax, dword [ebp - 0x18]
je 0x525ffe
push eax
call esi
test eax, eax
je 0x525ffe
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x525ffe
mov eax, dword [0x58c8d0]
cmp eax, dword [ebp - 0x18]
je 0x525ffe
push eax
call esi
test eax, eax
je 0x525ffe
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x58c8c8]
call esi
test eax, eax
je 0x52601a
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x52601c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050ed6a
leave
ret
Function at 0x401450
Capabilities:
Access pe header
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x18
mov dword [ebp - 0x10], edx
mov edi, dword [sym.imp.kernelbase.dll_LoadLibraryExW]
mov dword [esp + 8], 8
mov dword [esp + 4], 0
mov dword [esp], eax
call edi
mov dword [esi], eax
sub esp, 0xc
test eax, eax
je 0x4014e5
mov edi, dword [ebp - 0x10]
mov dword [esp], eax
mov dword [esp + 4], edi
call dword [sym.imp.kernelbase.dll_GetProcAddress]
sub esp, 8
mov edx, eax
test eax, eax
je 0x4014b0
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x3ec
mov dword [esp], 0
call sym._output_write
mov eax, dword [esi]
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_FreeLibrary]
mov edx, dword [ebp - 0x14]
sub esp, 4
jmp 0x40149d
cmp dword [ebp + 8], 0
je 0x4014fa
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0xc1
je 0x40151f
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x3eb
mov dword [esp], 0
call sym._output_write
mov dword [esp], 3
call dword [sym.imp.kernelbase.dll_ExitProcess]
mov dword [esp + 8], 0x20
mov dword [esp + 4], 0
mov dword [esp], ebx
call edi
sub esp, 0xc
test eax, eax
je 0x4014fa
and eax, 0xfffffffc
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
push edx
movzx eax, word [eax + 4]
call sym._reexec_self
jmp 0x4014fa
Function at 0x401f00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x401f58
cmp byte [esi + ebx - 1], 0xa
je 0x401f2c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4030f8], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x402f10
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
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 al
movzx eax, al
inc eax
mov dword [esp], eax
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
nop
nop
nop
Function at 0x401250
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401269
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40127d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40129e
cmp esi, eax
jae 0x401277
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401290
cmp esi, eax
jae 0x401277
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402c20
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x425fb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebp
push esi
mov esi, ecx
push edi
lea ebp, [esi + 0xc4]
xor eax, eax
mov ecx, 0x11
mov edi, ebp
rep stosd dword es:[edi], eax
push ecx
mov eax, esp
mov dword [esp + 0x18], esp
push eax
mov ecx, esi
mov dword [ebp], 0x44
call fcn.00402be0
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004028a0
push 0x427864
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x2c], 0
call fcn.00402130
push str.setupx.exe
push eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x38], 1
call fcn.00402130
add esp, 0x18
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x20], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402cc7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x14]
lea eax, [esi + 0x108]
push eax
push ebp
push ecx
push 0
push 0x8000010
push 0
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
mov dword [esi + 0x118], eax
jne 0x402d04
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x150]
jmp 0x402d14
mov eax, dword [esi + 0x1c]
push 0
push 0x64
push 0x65
push eax
call dword [sym.imp.USER32.dll_SetTimer]
lea eax, [edi - 0x10]
mov byte [esp + 0x20], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402d33
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402d59
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebp
add esp, 0x18
ret