joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406160
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 8
test ecx, ecx
je 0x40628e
test edx, edx
js 0x40628e
test eax, eax
je 0x406275
mov dword [ebp - 8], edx
test edx, edx
jle 0x406272
push ebx
push esi
push edi
nop
cmp edx, 3
jl 0x4061fd
mov dl, byte [ecx]
movzx ebx, byte [ecx + 1]
movzx esi, dl
mov edx, esi
shr edx, 2
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 1], bl
mov bl, byte [ecx + 2]
movzx edi, byte [ebp - 1]
mov byte [eax], dl
mov edx, edi
shr edx, 4
shl esi, 4
or edx, esi
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 1], dl
movzx esi, bl
mov edx, esi
shr edx, 6
add edi, edi
add edi, edi
or edx, edi
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
add ecx, 3
mov byte [eax + 2], dl
and esi, 0x3f
movzx edx, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 3], dl
mov edx, dword [ebp - 8]
jmp 0x40625b
mov bl, byte [ecx]
inc ecx
mov byte [ebp - 2], bl
cmp edx, 2
jne 0x406210
mov bl, byte [ecx]
mov byte [ebp - 1], bl
inc ecx
jmp 0x406214
mov byte [ebp - 1], 0
movzx esi, byte [ebp - 2]
mov edi, esi
shr edi, 2
movzx ebx, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx edi, byte [ebp - 1]
mov byte [eax], bl
mov ebx, edi
shr ebx, 4
shl esi, 4
or ebx, esi
and ebx, 0x3f
movzx ebx, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 1], bl
cmp edx, 1
jne 0x40624a
mov bl, 0x3d
jmp 0x406254
and edi, 0xf
mov bl, byte [edi*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 2], bl
mov byte [eax + 3], 0x3d
sub edx, 3
add eax, 4
mov dword [ebp - 8], edx
test edx, edx
jg 0x406190
mov edx, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov byte [eax], 0
lea ecx, [edx + 2]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, eax
add eax, eax
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x4068b0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0
push 0
push 0
mov esi, eax
push 0
push esi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 8], eax
test eax, eax
jne 0x4068da
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 0
push SysReAllocString
push 0
push 0
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
test edi, edi
jne 0x406900
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx]
mov edx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push ecx
push edx
xor esi, esi
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40694c
jmp 0x406920
mov eax, dword [ebp - 4]
test eax, eax
je 0x406929
add esi, eax
cmp esi, dword [ebx]
jae 0x40694c
test eax, eax
je 0x40694c
mov ecx, dword [ebx]
mov edx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
sub ecx, esi
push ecx
lea eax, [esi + edx]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x406920
mov dword [ebx], esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
mov ecx, dword [ebp - 8]
push ecx
call esi
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407e00
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x581e00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [edx]
push 0xff
mov esi, ecx
lea ecx, [ebp - 0x103]
push 0
push ecx
mov dword [ebp - 0x110], eax
mov byte [ebp - 0x104], 0
call fcn.00510790
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
add esp, 0xc
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x104]
push eax
push esi
push edi
mov dword [ebp - 0x108], 0x100
call ebx
inc esi
mov dword [ebp - 0x10c], 0
test eax, eax
jne 0x407ed6
lea esp, [esp]
cmp eax, 0xea
je 0x407ed6
mov ecx, dword [ebp - 0x110]
push ecx
lea edx, [ebp - 0x104]
push edx
call fcn.0050e729
add esp, 8
test eax, eax
je 0x407ecc
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x104]
push ecx
push esi
push edi
mov dword [ebp - 0x108], 0x100
call ebx
inc esi
test eax, eax
je 0x407e80
jmp 0x407ed6
mov dword [ebp - 0x10c], 1
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050cbf9
mov esp, ebp
pop ebp
ret 4
Function at 0x408640
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x581e00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push esi
push edi
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x138], 0x583348
xor edi, edi
push edi
push 2
call ebx
mov esi, eax
lea eax, [ebp - 0x130]
push eax
push esi
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
mov ecx, dword [ebp - 0x138]
push ecx
lea edx, [ebp - 0x10c]
push edx
call fcn.00519920
add esp, 8
test eax, eax
je 0x4086bf
lea eax, [ebp - 0x130]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x408691
jmp 0x4086c5
mov edi, dword [ebp - 0x128]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4086d6
inc dword [ebp - 0x134]
mov eax, dword [ebp - 0x138]
sub eax, 0xffffff80
mov dword [ebp - 0x138], eax
cmp eax, 0x583cc8
jl 0x408670
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x134]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050cbf9
mov esp, ebp
pop ebp
ret

Function at 0x40f38a
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.0041cc0a
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 0x40f3c3
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.0040efcc
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 0x40f421
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 0x40f445
cmp dword [edi + 0x74], 0
jne 0x40f445
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0041cc0a
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.0040f3e2
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 0x415802
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 0x415849
call fcn.0041cc0a
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x415849
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x415865
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00415307
mov esi, eax
test edi, edi
je 0x415863
test ebx, ebx
je 0x415863
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x416714
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x52ef63
call fcn.00510684
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x416739
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41678b
call fcn.00416c29
push eax
lea ecx, [ebp - 0x10]
call fcn.00401f70
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.0051212f
push eax
call fcn.004092a0
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.00401d00
mov eax, esi
call fcn.0051075c
ret 8

Function at 0x4185ae
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x581e00]
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 0x4185f6
push 0x5390a8
push 4
push eax
call fcn.0050dc3e
push eax
call fcn.004092a0
add esp, 0x10
jmp 0x41860c
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x41868f
push edi
call fcn.00510b92
mov edi, dword [eax]
call fcn.00510b92
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.0050ccfb
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.00510b92
cmp dword [eax], 0
je 0x418663
call fcn.00510b92
push dword [eax]
call fcn.0040f495
pop ecx
jmp 0x41866a
call fcn.00510b92
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
pop edi
je 0x41868f
cmp dword [ebp - 0x11c], esi
jae 0x41868f
push 0
push 0
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x418691
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0050cbf9
leave
ret
Function at 0x41869e
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x581e00]
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.00410c4f
pop ecx
cmp eax, esi
je 0x418788
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x418788
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.00510790
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 0x418788
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x418788
cmp esi, 0x14
jge 0x418788
push 0x10
push 0
push edi
call fcn.0051265e
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x418777
call fcn.00510b92
cmp dword [eax], 0x22
je 0x418777
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.0051214c
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x41874d
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 [0x585e14], 0
jne 0x418813
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x41883c
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.004185ae
pop ecx
pop ecx
test eax, eax
jne 0x41883e
inc edi
cmp edi, esi
jl 0x418819
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050cbf9
leave
ret 8
Function at 0x41998a
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 0x4199d2
call fcn.0041cc0a
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4199d2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x419a15
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 0x4199fe
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 0x4199fe
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x419a12
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 0x42579e
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x581e00]
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 0x4257d3
xor eax, eax
jmp 0x425826
lea eax, [ebp - 0x210]
push eax
call fcn.0051214c
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x425804
push 0x539ea8
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005138d4
add esp, 0xc
test eax, eax
jne 0x4257cf
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005138d4
add esp, 0xc
test eax, eax
jne 0x4257cf
lea eax, [ebp - 0x210]
push eax
call fcn.00410cd5
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0050cbf9
leave
ret

Function at 0x442bcd
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.0044288c
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x442c17
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041379d
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00405ea0
jmp 0x442c22
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0041e4c7
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x442c28
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.00415fe7
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 0x442c65
call fcn.0044288c
mov dword [esi + 0xc], 1
jmp 0x442c6a
call fcn.0044288c
cmp dword [esi], 0
je 0x442cb3
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x442c8b
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041379d
jmp 0x442c9d
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00401fc0
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00405ea0
jmp 0x442cd7
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 0x442cd7
push dword [esi]
push dword [ebp + 8]
call fcn.0041e4c7
pop esi
pop ebp
ret 0xc

Function at 0x472df4
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 0x472e0e
call fcn.0041cc0a
mov esi, dword [eax + 0xc]
push dword [0x587be8]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x472e2c
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 0x472e24
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x472e59
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x472e26
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00472d22
mov esi, eax
jmp 0x472e4b

Function at 0x4e9fe1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00413bba
call fcn.0040eab1
cmp eax, esi
pop esi
jne 0x4e9ffd
mov ecx, 0x586288
jmp fcn.00426254
ret
Function at 0x4f2991
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 0x4f29a9
mov edi, dword [esi + 0xc]
jmp 0x4f29e9
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4f29c2
call fcn.0041cfc9
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4f29d7
call fcn.0041cfc9
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4f29e9
call fcn.0041cfc9
call fcn.0041cc0a
cmp dword [eax + 0x3c], 0
je 0x4f29fe
push edi
mov ecx, ebx
call fcn.004f184f
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004f28ab
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4f2a1c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4f2a28
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 0x50cbf9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x581e00]
jne 0x50cc03
repz ret
jmp fcn.00515704
Function at 0x5247b3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x581e00]
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.005187b9
and dword [ebp - 0x14], 0
cmp dword [0x58a6a0], 0
mov dword [ebp - 0x18], eax
jne 0x524866
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x52490e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x52490e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x55f834
push ebx
mov dword [0x58a6a0], eax
call edi
push eax
call esi
push 0x55f820
push ebx
mov dword [0x58a6a4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x58a6a8], eax
call edi
push eax
call esi
mov dword [0x58a6b0], eax
test eax, eax
je 0x524866
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x58a6ac], eax
mov eax, dword [0x58a6ac]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x5248bf
cmp dword [0x58a6b0], ecx
je 0x5248bf
push eax
call esi
push dword [0x58a6b0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x5248bf
test ebx, ebx
je 0x5248bf
call edi
test eax, eax
je 0x5248b6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x5248b6
test byte [ebp - 8], 1
jne 0x5248bf
or dword [ebp + 0x10], 0x200000
jmp 0x5248f2
mov eax, dword [0x58a6a4]
cmp eax, dword [ebp - 0x18]
je 0x5248f2
push eax
call esi
test eax, eax
je 0x5248f2
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5248f2
mov eax, dword [0x58a6a8]
cmp eax, dword [ebp - 0x18]
je 0x5248f2
push eax
call esi
test eax, eax
je 0x5248f2
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x58a6a0]
call esi
test eax, eax
je 0x52490e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x524910
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050cbf9
leave
ret
Function at 0x100169c
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x100300c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor ebx, ebx
test eax, eax
js 0x10016ea
cmp al, 6
jb 0x10016ea
push 0x10011b0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x10016ea
push 0x10011cc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x10016ea
push ebx
push ebx
push 1
push ebx
call eax
call fcn.0100188d
cmp dword [0x1003378], 2
jne 0x1001743
mov eax, dword [0x100336c]
cmp eax, 6
ja 0x100170c
jne 0x1001743
cmp dword [0x1003370], ebx
jbe 0x1001743
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], ebx
call dword [sym.imp.msvcrt.dll_rand_s]
pop ecx
test eax, eax
jne 0x1001743
movzx eax, byte [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
mov esi, ebx
je 0x1001743
push 1
push 0x2000
push 0x10000
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
inc esi
cmp esi, dword [ebp - 0x28]
jb 0x100172a
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
push edi
call fcn.0100160b
mov esi, eax
cmp esi, ebx
jl 0x1001846
push 2
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, eax
cmp esi, ebx
jl 0x1001846
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x28]
push eax
cmp edi, 6
je 0x1001808
push 0x10011e0
push 1
push ebx
push 0x1001210
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x1001840
cmp edi, 9
ja case.0x10017a8.6
jmp dword [edi*4 + 0x1001860]
push ebx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
jmp 0x1001835
push 1
jmp 0x10017b0
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
jmp 0x1001835
push 1
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
jmp 0x1001835
push ebx
jmp 0x10017cc
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x18]
jmp 0x1001835
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
jmp 0x1001835
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
jmp 0x1001835
xor esi, esi
jmp 0x1001837
mov esi, 0x80004001
jmp 0x1001837
push 0x10011f0
push 1
push ebx
push 0x1001200
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x1001840
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x24]
push edx
push eax
call dword [ecx + 0xc]
mov esi, eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp esi, ebx
pop edi
setl al
pop esi
xor ecx, ebp
pop ebx
call fcn.01001bcf
leave
ret 0x10