joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405ac0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405ad5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405b14
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x405b10
lea ebx, [ebx]
cmp esi, edx
jae 0x405b14
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x405b00
cmp esi, edx
jb 0x405b19
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x406590
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push 0
push 0
push 0
push 0
push 0x54c064
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ebx, eax
test ebx, ebx
jne 0x4065c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0x50
push str.www.SecurityXploded.com
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x4065f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 0x100
push 0
push 0
push 0
push str._product_versions.xml
push 0x54c0f0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
test edi, edi
jne 0x40662e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0xc]
call esi
pop edi
push ebx
call esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x406652
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x40666a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call esi
push dword [ebp - 0xc]
call esi
pop edi
push ebx
call esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
xor esi, esi
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x4066bf
mov edi, edi
mov ecx, dword [ebp - 4]
cmp ecx, 1
jb 0x4066c5
lea eax, [esi + ecx]
cmp eax, dword [ebp + 0xc]
ja 0x4066c5
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push ecx
add eax, esi
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x4066bf
add esi, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x406680
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp + 8]
push edi
mov byte [esi + eax], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0xc]
call esi
pop edi
push ebx
call esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406750
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
push 0x44
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.0051fcf0
add esp, 0xc
mov eax, 3
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push dword [ebp + 8]
mov dword [ebp - 0x54], 0x44
push 0
mov dword [ebp - 0x28], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4067af
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
jmp 0x4067c4
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov esi, 1
mov edi, dword [ebp + 8]
add edi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4067e1
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4067f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 3
push 0
push 0
push dword [ebp + 8]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop ebp
ret
Function at 0x406810
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x599808]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push 0x54c05c
lea eax, [ebp - 0x1c]
push ebx
push eax
mov dword [ebp - 0x1c], 0
call fcn.0051f917
add esp, 0xc
test eax, eax
jne 0x406865
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x406851
push eax
call fcn.0051f7dc
add esp, 4
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051eae1
mov esp, ebp
pop ebp
ret
call fcn.00411ed2
mov eax, dword [eax + 0xc]
push 2
push 0x8a
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x406896
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051eae1
mov esp, ebp
pop ebp
ret
push esi
push edi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test esi, esi
je 0x406999
test edi, edi
je 0x406999
movzx edx, word [edi + 0xe]
mov ecx, edx
xor esi, esi
dec ecx
je 0x4068e6
sub ecx, 3
je 0x4068df
sub ecx, 4
jne 0x4068eb
mov esi, 0x400
jmp 0x4068eb
mov esi, 0x40
jmp 0x4068eb
mov esi, 8
mov eax, dword [edi + 4]
imul eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov ecx, eax
and ecx, reloc.WS2_32.dll_closesocket
jns 0x406909
dec ecx
or ecx, 0xfffffffc
inc ecx
mov edx, 4
sub edx, ecx
xor ecx, ecx
cmp edx, 4
cmove edx, ecx
add eax, edx
imul eax, dword [edi + 8]
add esi, eax
push 0x54c060
lea eax, [esi + 0x36]
mov dword [ebp - 0x12], eax
xor eax, eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov ecx, 0x4d42
push ebx
push eax
mov word [ebp - 0x14], cx
mov dword [ebp - 0xa], 0x36
call fcn.0051f917
add esp, 0xc
test eax, eax
jne 0x40699f
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40699f
push eax
push 1
lea eax, [ebp - 0x14]
push 0xe
push eax
call fcn.005201ea
push dword [ebp - 0x18]
lea eax, [esi + 0x28]
push 1
push eax
push edi
call fcn.005201ea
push dword [ebp - 0x18]
call fcn.0051f7dc
add esp, 0x24
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051eae1
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0051eae1
mov esp, ebp
pop ebp
ret
Function at 0x407b40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539ce8
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x599808]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 3
push 0
push 0
push dword [ebp + 8]
mov dword [ebp - 4], 0
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push dword [edi + 0x20]
mov esi, eax
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.0041487c
cmp esi, 0x20
mov esi, dword [ebp + 8]
setae bl
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407bbf
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40e107
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.00411ed2
mov ebx, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40e13e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0040e15d
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 0x413f6e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x599808]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5cfd98]
push esi
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x413fba
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x413fd7
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x5cfd98], eax
jmp 0x413fc3
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x413fd7
push 0x800
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x414044
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x413ff2
xor eax, eax
jmp 0x414044
lea eax, [ebp - 0x210]
push eax
call fcn.00520f27
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x414023
push 0x54ea54
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005234ff
add esp, 0xc
test eax, eax
jne 0x413fee
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005234ff
add esp, 0xc
test eax, eax
jne 0x413fee
lea eax, [ebp - 0x210]
push eax
call fcn.00418c11
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0051eae1
leave
ret
Function at 0x414814
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], esi
je 0x414859
call fcn.00411ed2
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x414859
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x414875
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00412997
mov ebx, eax
test edi, edi
je 0x414873
test esi, esi
je 0x414873
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x418ec1
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x546fdc
call fcn.00520d59
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x6c], esi
jne 0x418ee7
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x418f3b
call fcn.0040b12a
push eax
lea ecx, [ebp - 0x10]
call fcn.00401000
mov ecx, dword [edi + 0x6c]
lea edx, [ebp - 0x10]
mov eax, dword [ecx]
push edx
mov dword [ebp - 4], esi
call dword [eax + 0x8c]
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00520cb1
push eax
call fcn.00401fd0
add esp, 0x14
test edi, edi
je 0x418f2e
push edi
call fcn.00520e40
pop ecx
mov esi, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004017e0
mov eax, esi
call fcn.00520d27
ret 8
Function at 0x41f2fc
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x599808]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x20], eax
mov eax, dword [0x5d00b0]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
test eax, eax
jne 0x41f355
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41f372
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x5d00b0], eax
jmp 0x41f35e
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x41f372
mov eax, dword [ebp - 0x20]
push ebx
push edi
push eax
push dword [ebp + 8]
call esi
jmp 0x41f4af
mov eax, dword [ebp - 0x20]
and dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.00539042
lea eax, [ebp - 0x14]
push eax
call fcn.00520f27
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
call fcn.00520ecb
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
lea edi, [esi + 1]
call fcn.00539042
lea eax, [ebp - 0x14]
push eax
call fcn.00520f27
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.00520ecb
add esp, 0x38
add edi, esi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.00539042
lea eax, [ebp - 0x14]
push eax
call fcn.00520f27
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.00520ecb
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
add edi, esi
call fcn.00539042
lea eax, [ebp - 0x14]
push eax
call fcn.00520f27
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.00520ecb
push 7
lea eax, [ebp - 0x14]
push eax
push 0x800
add edi, esi
call fcn.00539042
add esp, 0x44
lea eax, [ebp - 0x14]
push eax
call fcn.00520f27
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.00520ecb
lea eax, [edi + esi]
xor ecx, ecx
mov word [ebx + eax*2 + 2], cx
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051eae1
leave
ret
Function at 0x423490
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
mov ecx, dword [esi + 4]
push eax
push dword [ebp + 0xc]
call fcn.00418e28
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4234cc
call fcn.004236ab
mov dword [esi + 0xc], 1
jmp 0x4234d1
call fcn.004236ab
cmp dword [esi], 0
je 0x42351a
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4234f4
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0040cbf3
jmp 0x423505
push 0xff
mov ecx, esi
call fcn.00401760
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040cf84
jmp 0x42353e
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x42353e
push dword [esi]
push dword [ebp - 4]
call fcn.0041da7a
pop esi
leave
ret 0xc

Function at 0x423602
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.004236ab
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x42364a
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040cbf3
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040cf84
jmp 0x423655
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0041da7a
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4426bf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4426d7
call fcn.00411ed2
mov esi, dword [eax + 0xc]
push 0x55499c
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x44272d
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x44272c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x44270d
xor esi, esi
jmp 0x442723
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.00442733
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x50348f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
test byte [esi + 4], 1
push edi
mov dword [ebp - 4], ebx
je 0x5034a9
mov edi, dword [esi + 0xc]
jmp 0x5034e9
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x5034c2
call fcn.0040bc23
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x5034d7
call fcn.0040bc23
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x5034e9
call fcn.0040bc23
call fcn.00411ed2
cmp dword [eax + 0x3c], 0
je 0x5034fe
push edi
mov ecx, ebx
call fcn.00502d2b
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.005036c1
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x7c]
test ecx, ecx
je 0x503521
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x7c], 0
test ebx, ebx
je 0x50352a
mov edi, ebx
mov dword [eax + 0x7c], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x533fff
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x599808]
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
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00528f14
mov dword [ebp - 0x14], eax
cmp dword [0x5d4568], edi
jne 0x5340f0
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x53407d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x5341d0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x5341d0
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5341d0
push eax
call ebx
push 0x578078
push esi
mov dword [0x5d4568], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x578088
push esi
mov dword [0x5d456c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x5d4570], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5d4578], eax
test eax, eax
je 0x5340ed
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5d4574], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x534115
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x534108
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x53412a
push 4
pop eax
jmp 0x5341d2
cmp dword [ebp - 0x14], edi
je 0x53412a
push dword [0x5d4568]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x53410f
mov eax, dword [0x5d4574]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x534188
cmp dword [0x5d4578], esi
je 0x534188
push eax
call ebx
push dword [0x5d4578]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x534188
test eax, eax
je 0x534188
call ecx
test eax, eax
je 0x53417d
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 0x53417d
test byte [ebp - 8], 1
jne 0x534188
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x5341b8
mov eax, dword [0x5d456c]
cmp eax, esi
je 0x5341b5
push eax
call ebx
test eax, eax
je 0x5341b5
call eax
mov edi, eax
test edi, edi
je 0x5341b5
mov eax, dword [0x5d4570]
cmp eax, esi
je 0x5341b5
push eax
call ebx
test eax, eax
je 0x5341b5
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x5d4568]
call ebx
test eax, eax
je 0x5341d0
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x5341d2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051eae1
leave
ret
Function at 0x4039e0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x635b33
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x6e306c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x148], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x138], 0xff
push 0xff
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.004ef2d0
add esp, 0xc
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x140], 0
lea ecx, [ebp - 0x128]
call fcn.00402bf0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x134]
push ecx
mov edx, dword [ebp + 0x28]
or edx, 8
push edx
push 0
lea ecx, [ebp + 0xc]
call fcn.00404120
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403acb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x13c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x128]
call fcn.00402ab0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00402ab0
mov eax, dword [ebp - 0x13c]
jmp 0x403bff
mov ecx, dword [ebp - 0x140]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 0x138]
push edx
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x12c]
push ecx
mov edx, dword [ebp - 0x134]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
jne 0x403b88
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x128]
call fcn.00404310
push fcn.004f3370
lea ecx, [ebp - 0x14c]
push ecx
lea ecx, [ebp - 0x128]
call fcn.004041f0
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x128]
call fcn.00404170
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x154]
push edx
lea ecx, [ebp - 0x128]
call fcn.004041f0
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x158]
push ecx
call fcn.00405930
add esp, 0x14
lea edx, [ebp - 0x128]
push edx
mov ecx, dword [ebp + 0x24]
call fcn.00403e20
lea ecx, [ebp - 0x128]
call fcn.00404260
mov eax, dword [ebp - 0x12c]
add eax, 1
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x138], 0xff
push 0xff
push 0
lea ecx, [ebp - 0x110]
push ecx
call fcn.004ef2d0
add esp, 0xc
cmp dword [ebp - 0x130], 0
je 0x403acb
mov edx, dword [ebp - 0x134]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x144], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x128]
call fcn.00402ab0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00402ab0
mov eax, dword [ebp - 0x144]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004239b8
mov esp, ebp
pop ebp
ret 0x24