joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b354
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x43b370
cmp dword [esi + 4], 0
je 0x43b39d
test byte [ebx + 0x55], 1
jne 0x43b38f
mov eax, ebx
call fcn.00439f60
test eax, eax
jne 0x43b38f
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x43b4ad
mov edx, esi
mov eax, ebx
call fcn.0043ae78
jmp 0x43b4ad
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x43b4a6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043d1c4
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00437bfc
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0043b354
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043d1c4
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43b4ad
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x441a04
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x486b80]
cmp byte [eax + 0xc], 0
je 0x441b71
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x441b6a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x487b68], 0
jne 0x441a58
push 0x441b78
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x441b80
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x487b68], eax
cmp dword [0x485d70], 0
jne 0x441b53
push 0x441b90
call sub.kernel32.dll_LoadLibraryA
mov dword [0x485d70], eax
cmp dword [0x485d70], 0
je 0x441b53
push 0x441b9c
mov eax, dword [0x485d70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x487b6c], eax
push 0x441bac
mov eax, dword [0x485d70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x487b70], eax
push 0x441bc0
mov eax, dword [0x485d70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x487b74], eax
push 0x441bd8
mov eax, dword [0x485d70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x487b78], eax
push 0x441bf0
mov eax, dword [0x485d70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x487b7c], eax
push 0x441c04
mov eax, dword [0x485d70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x487b80], eax
push 0x441c1c
mov eax, dword [0x485d70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x487b84], eax
push 0x441c34
mov eax, dword [0x485d70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x487b88], eax
push 0x441c50
mov eax, dword [0x485d70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x487b8c], eax
push 0x441c5c
mov eax, dword [0x485d70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x487b90], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x441b71
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4459fc
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004040e8
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x445a4b
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404358
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44d160
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44d1b0]
test si, 4
je 0x44d174
or bl, 1
test si, 8
je 0x44d17e
or bl, 4
test si, 1
je 0x44d188
or bl, 8
test si, 2
je 0x44d192
or bl, 0x10
test si, 0x10
je 0x44d19c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44d1ab
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44d1b4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44d1ec]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44d1cd
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44d1dc
or bl, 4
test esi, 0x20000000
je 0x44d1e7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x453894
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4538a6
add esp, 0xfffffff0
call fcn.004035dc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00422a5c
mov eax, dword [0x4866e8]
mov dword [eax + 4], ebx
mov dword [eax], 0x453c38
mov eax, dword [0x4866fc]
mov dword [eax + 4], ebx
mov dword [eax], 0x453c44
mov eax, ebx
call fcn.00453c50
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41a31c]
call fcn.004032a0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41a31c]
call fcn.004032a0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41a31c]
call fcn.004032a0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41a31c]
call fcn.004032a0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41a31c]
call fcn.004032a0
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x45006c
push eax
push 0
push 0
mov eax, dword [0x4868d4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x424480]
call fcn.004258c4
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x424480]
call fcn.004258c4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x424480]
call fcn.004258c4
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00454070
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453f4c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453f4c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453f4c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4539e3
call fcn.00403634
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x453d30
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x453edb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x453ebc
mov dl, 1
mov eax, dword [0x41a980]
call fcn.004032a0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004040e8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x453eab
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00441d64
test al, al
je 0x453e9e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x453eec
lea eax, [ebp - 0x254]
call fcn.0040943c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x453e9e
xor eax, eax
push ebp
push 0x453e97
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x453f24
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x453e80
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404358
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x453e80
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404358
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453e9e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x453da1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041ec4c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453ee2
lea eax, [ebp - 0x260]
call fcn.004040e8
ret

Function at 0x454810
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x487bb4]
cmp byte [eax + 0xa5], 0
jne 0x454881
cmp dword [0x487bcc], 0
jne 0x454842
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4547cc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x487bcc], eax
cmp dword [0x487bc8], 0
jne 0x45485d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x487bc8], eax
cmp dword [0x487bd0], 0
jne 0x454881
push esp
push 0
push 0
push 0x454770
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x487bd0], eax
pop edx
ret
Function at 0x454978
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45498f
add esp, 0xfffffff0
call fcn.004035dc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00422a5c
mov eax, dword [0x4868c0]
cmp word [eax + 2], 0
jne 0x4549b7
mov eax, dword [0x4868c0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00456050
mov eax, dword [0x4869bc]
cmp word [eax + 2], 0
jne 0x4549d1
mov eax, dword [0x4869bc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00456248
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41a31c]
call fcn.004032a0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41a31c]
call fcn.004032a0
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x424c30]
call fcn.0042a878
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x454b58
mov eax, dword [0x486778]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042ac48
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4567e8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x486778]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d128
test eax, eax
je 0x454ac6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408e1c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d150
test eax, eax
je 0x454ada
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404358
mov eax, dword [0x4865ec]
cmp byte [eax], 0
jne 0x454b0e
mov eax, ebx
call fcn.00454c80
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004569c4
mov eax, ebx
call fcn.00457388
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x454b4e
call fcn.00403634
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x454f00
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x487bb4]
cmp dword [eax + 0x30], 0
je 0x454faa
cmp dword [ebx + 0x94], 0
jne 0x454fa4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x454e90
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x454fa4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x454f6a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x454fa4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041c8cc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x454f79
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x455b0c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x455b41
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004041d8
jmp 0x455b4e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040413c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x456ba0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x456be1
mov eax, esi
call fcn.0043d424
test al, al
je 0x456be1
mov eax, dword [ebx + 0x84]
call fcn.0043d1c4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x456be1
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043d1c4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x473af0
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x473b15
cmp dword [esp + 4], 5
jb 0x473b15
mov al, 1
jmp 0x473b17
xor eax, eax
add esp, 0x94
ret
Function at 0x8ebf61
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.008ebfe0
jae 0x8ebf6d
xor ecx, ecx
call fcn.008ebfe0
jae 0x8ebf97
xor eax, eax
call fcn.008ebfe0
jae 0x8ebfa8
mov al, 0x10
call fcn.008ebfe0
adc al, al
jae 0x8ebf89
jne 0x8ebfd5
stosb byte es:[edi], al
jmp 0x8ebf6e
call fcn.008ebfec
dec ecx
loop 0x8ebfb4
mov eax, ebp
call fcn.008ebfea
jmp 0x8ebfd6
lodsb al, byte [esi]
shr eax, 1
je 0x8ebffc
adc ecx, 2
mov ebp, eax
jmp 0x8ebfd6
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.008ebfea
cmp eax, 0x7d00
jae 0x8ebfd4
cmp eax, 0x500
jae 0x8ebfd5
cmp eax, 0x7f
ja 0x8ebfd6
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8ebf6e
pop ebp
ret 8
Function at 0x401bc0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x584450
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x5f4760]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 4], 0
call fcn.00401c80
mov dword [ebp - 0xb0], 0x94
push 0x90
push 0
lea eax, [ebp - 0xac]
push eax
call fcn.004add60
add esp, 0xc
lea ecx, [ebp - 0xb0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x401c56
cmp dword [ebp - 0xac], 6
jae 0x401c40
call fcn.00401060
jmp 0x401c58
mov ecx, ebx
call fcn.00401530
jmp 0x401c58
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a314d
mov esp, ebp
pop ebp
ret

Function at 0x401c80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583810
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x5f4760]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0xb0], 0x94
push 0x90
push 0
lea eax, [ebp - 0xac]
push eax
call fcn.004add60
add esp, 0xc
lea ecx, [ebp - 0xb0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x401d13
cmp dword [ebp - 0xac], 6
jae 0x401cff
push esi
call fcn.004017e0
add esp, 4
jmp 0x401d15
call fcn.00401a30
jmp 0x401d15
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a314d
mov esp, ebp
pop ebp
ret
Function at 0x401ef0
Capabilities:
Encode data using base64

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, eax
push 0
mov esi, ecx
push 0x5d2b98
mov ecx, edi
call fcn.004027e0
mov eax, 0xaaaaaaab
mul dword [esp + 0x14]
shr edx, 1
lea edx, [edx + edx*2]
xor ebp, ebp
test edx, edx
jbe 0x401fad
dec edx
mov eax, 0xaaaaaaab
mul edx
mov ebx, edx
shr ebx, 1
inc ebx
lea ebp, [ebx + ebx*2]
mov edi, edi
movzx eax, byte [esi]
shr eax, 2
movzx ecx, byte [eax + 0x5cdd48]
push ecx
mov eax, 1
call fcn.00402100
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
and edx, 3
shr eax, 4
shl edx, 4
movzx ecx, byte [edx + eax + 0x5cdd48]
push ecx
mov eax, 1
call fcn.00402100
movzx edx, byte [esi + 1]
movzx eax, byte [esi + 2]
shr eax, 6
and edx, 0xf
movzx ecx, byte [eax + edx*4 + 0x5cdd48]
push ecx
mov eax, 1
call fcn.00402100
movzx edx, byte [esi + 2]
and edx, 0x3f
movzx eax, byte [edx + 0x5cdd48]
push eax
mov eax, 1
call fcn.00402100
add esi, 3
sub ebx, 1
jne 0x401f30
cmp ebp, dword [esp + 0x14]
jae 0x402038
mov al, byte [esi]
inc ebp
cmp ebp, dword [esp + 0x14]
jae 0x401fc5
mov bl, byte [esi + 1]
jmp 0x401fc7
xor bl, bl
movzx esi, al
mov ecx, esi
shr ecx, 2
movzx edx, byte [ecx + 0x5cdd48]
push edx
mov eax, 1
call fcn.00402100
movzx ebx, bl
mov eax, ebx
shr eax, 4
and esi, 3
shl esi, 4
movzx ecx, byte [eax + esi + 0x5cdd48]
push ecx
mov eax, 1
call fcn.00402100
cmp ebp, dword [esp + 0x14]
jae 0x402018
and ebx, 0xf
mov dl, byte [ebx*4 + 0x5cdd48]
mov byte [esp + 0x14], dl
jmp 0x40201d
mov byte [esp + 0x14], 0x3d
mov eax, dword [esp + 0x14]
push eax
mov eax, 1
call fcn.00402100
push 0x3d
mov eax, 1
call fcn.00402100
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret
Function at 0x4028f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x118
mov eax, dword [0x5f4760]
xor eax, esp
mov dword [esp + 0x114], eax
push ebp
push esi
mov esi, ecx
call fcn.00403480
push 0x103
xor ebp, ebp
lea eax, [esp + 0x1d]
push ebp
push eax
mov byte [esp + 0x24], 0
call fcn.004add60
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x20019
push ebp
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360EntAdmin.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x102
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4029e4
mov eax, dword [esp + 8]
test eax, eax
je 0x4029f3
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x14]
push edx
push ebp
push 0x5d2be4
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4029e4
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402991
sub eax, edx
je 0x4029e4
lea eax, [esp + 0x18]
mov ebp, 1
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4029a8
sub eax, edx
push edi
lea ecx, [esp + 0x1c]
mov edi, eax
push ecx
mov eax, esi
call fcn.004033b0
mov edx, dword [esi]
mov ecx, dword [edx - 0xc]
lea eax, [ecx - 1]
pop edi
test eax, eax
jl 0x402a0c
cmp eax, ecx
jg 0x402a0c
cmp byte [edx + eax], 0x5c
je 0x4029e4
push 0x5d2c20
push esi
mov edx, ebp
call fcn.00403150
mov eax, dword [esp + 8]
test eax, eax
je 0x4029f3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x11c]
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.004a314d
add esp, 0x118
ret
push 0x80070057
call fcn.00401e70
int3
Function at 0x402a50
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x58b907
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x5f4760]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f4760]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x138]
lea eax, [esp + 0x14]
xor ebx, ebx
push eax
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
call fcn.004030f0
mov dword [esp + 0x130], ebx
lea ecx, [esp + 0x18]
push ecx
call fcn.004030f0
mov byte [esp + 0x130], 1
lea esi, [esp + 0x18]
call fcn.00402a20
test eax, eax
jne 0x402af5
mov byte [esp + 0x130], bl
mov edx, esi
push edx
call fcn.00403090
mov dword [esp + 0x130], 0xffffffff
lea eax, [esp + 0x14]
push eax
call fcn.00403090
xor eax, eax
jmp 0x402bb3
push str.err1
mov edi, 4
lea eax, [esp + 0x18]
call fcn.004033b0
push 0x103
lea ecx, [esp + 0x25]
push ebx
push ecx
mov byte [esp + 0x2c], bl
call fcn.004add60
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
add esp, 0xc
push edx
push 0x104
lea eax, [esp + 0x28]
push eax
push 0x5d2b98
push ecx
push str.error
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x24]
call fcn.00402fe0
mov byte [esp + 0x130], 2
mov eax, dword [esp + 0x1c]
push eax
call fcn.004a3641
mov ecx, eax
add esp, 4
or ecx, edx
mov dword [ebp], eax
mov dword [ebp + 4], edx
je 0x402b77
lea esi, [edi - 3]
jmp 0x402b79
xor esi, esi
mov byte [esp + 0x130], 1
lea edx, [esp + 0x1c]
push edx
call fcn.00403090
mov byte [esp + 0x130], bl
lea eax, [esp + 0x18]
push eax
call fcn.00403090
mov dword [esp + 0x130], 0xffffffff
lea ecx, [esp + 0x14]
push ecx
call fcn.00403090
mov eax, esi
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.004a314d
add esp, 0x120
ret 4

Function at 0x402ec0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402ed7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402f08
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x402f04
cmp esi, eax
jae 0x402f08
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x402ef4
cmp esi, eax
jb 0x402f0e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret