joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ff0c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x44ff58
mov eax, esi
call fcn.00437f90
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x44ff58
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x44ff58
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x450097
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x44ff98
cmp eax, 0x108
ja 0x44ff98
mov eax, esi
call fcn.00437f90
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x45008e
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x450097
jmp 0x45008e
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x450077
cmp eax, 0x20a
ja 0x450077
test byte [esi + 0x50], 0x80
jne 0x44ffca
sub eax, 0x203
je 0x44ffc7
sub eax, 3
je 0x44ffc7
sub eax, 3
jne 0x44ffca
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x44ffde
dec eax
je 0x44fff3
dec eax
je 0x450010
dec eax
je 0x44fff3
jmp 0x450017
mov ecx, ebx
mov eax, dword [0x45cf94]
mov eax, dword [eax]
mov edx, esi
call fcn.004415b8
jmp 0x45008e
cmp byte [esi + 0x5d], 1
jne 0x450009
mov eax, esi
mov si, 0xffed
call fcn.004032e4
jmp 0x450097
or word [esi + 0x54], 1
jmp 0x45008e
and word [esi + 0x54], 0xfffe
jmp 0x45008e
mov eax, dword [0x45ee0c]
cmp byte [eax + 0x20], 0
je 0x45008e
mov eax, dword [0x45ee0c]
cmp dword [eax + 0x1c], 0
je 0x45008e
mov eax, dword [ebx]
mov edx, dword [0x45ee0c]
cmp eax, dword [edx + 0x1c]
jne 0x45008e
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.00437ed4
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.004032e4
jmp 0x450097
cmp eax, 0xb00b
jne 0x45008e
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0044e874
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x453518
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 0x453534
cmp dword [esi + 4], 0
je 0x453561
test byte [ebx + 0x55], 1
jne 0x453553
mov eax, ebx
call fcn.00452124
test eax, eax
jne 0x453553
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x453671
mov edx, esi
mov eax, ebx
call fcn.0045303c
jmp 0x453671
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 0x45366a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00455388
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.0044fe40
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00453518
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.00455388
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453671
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 0x459a80
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x45d16c]
cmp byte [eax + 0xc], 0
je 0x459bed
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x459be6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x45ee60], 0
jne 0x459ad4
push 0x459bf4
call sub.kernel32.dll_GetModuleHandleA_1
mov ebx, eax
push 0x459bfc
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45ee60], eax
cmp dword [0x45cc10], 0
jne 0x459bcf
push 0x459c0c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x45cc10], eax
cmp dword [0x45cc10], 0
je 0x459bcf
push 0x459c18
mov eax, dword [0x45cc10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45ee64], eax
push 0x459c28
mov eax, dword [0x45cc10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45ee68], eax
push 0x459c3c
mov eax, dword [0x45cc10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45ee6c], eax
push 0x459c54
mov eax, dword [0x45cc10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45ee70], eax
push 0x459c6c
mov eax, dword [0x45cc10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45ee74], eax
push 0x459c80
mov eax, dword [0x45cc10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45ee78], eax
push 0x459c98
mov eax, dword [0x45cc10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45ee7c], eax
push 0x459cb0
mov eax, dword [0x45cc10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45ee80], eax
push 0x459ccc
mov eax, dword [0x45cc10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45ee84], eax
push 0x459cd8
mov eax, dword [0x45cc10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45ee88], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459bed
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x45a1a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x118], ecx
mov ecx, edx
test ecx, ecx
js 0x45a1c7
mov ebx, dword [eax + ecx*4]
dec ecx
push ebx
jns 0x45a1c0
mov eax, esp
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
inc ecx
mov eax, dword [ebp - 4]
mov edx, dword [0x401094]
call fcn.00404b08
xor eax, eax
push ebp
push 0x45a2c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [0x45ee90]
call fcn.00404e1c
dec eax
test eax, eax
jl 0x45a295
inc eax
mov dword [ebp - 0x10], eax
xor edi, edi
lea eax, [ebp - 0x10f]
mov edx, 0xff
call fcn.004069cc
push 0xff
lea eax, [ebp - 0x10f]
push eax
mov eax, edi
shl eax, 3
sub eax, edi
mov edx, dword [0x45ee90]
mov eax, dword [edx + eax*4 + 0x14]
push eax
call sub.user32.dll_GetWindowTextA
mov esi, dword [ebp - 8]
inc esi
dec esi
test esi, esi
jl 0x45a28b
inc esi
mov ebx, dword [ebp - 4]
lea edx, [ebp - 0x118]
lea eax, [ebp - 0x10f]
call fcn.004087b4
mov eax, dword [ebp - 0x118]
lea edx, [ebp - 0x114]
call fcn.00407d34
mov edx, dword [ebp - 0x114]
mov eax, dword [ebx]
call fcn.00404338
jne 0x45a285
mov dword [ebp - 0xc], edi
jmp 0x45a295
add ebx, 4
dec esi
jne 0x45a24f
inc edi
dec dword [ebp - 0x10]
jne 0x45a20f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a2cc
lea eax, [ebp - 0x118]
mov edx, 2
call fcn.00403f50
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
inc ecx
mov edx, dword [0x401094]
call fcn.004049c8
ret
Function at 0x4150c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040a290
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41518b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41518b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41513e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x415149
or bh, 8
and edi, 0x8000000
je 0x415164
mov eax, dword [0x43287c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41518b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415560
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41558b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4155af
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4155ca
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x419d56
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x419d98
call fcn.0041e2b3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x419d98
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x419d8f
xor eax, eax
jmp 0x419da0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00419da6
pop edi
pop esi
pop ebx
ret 4

Function at 0x41ea6c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41ea9a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41eab8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041e9d2
jmp 0x41eab8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41eab8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041e9d2
test edi, edi
mov eax, edi
jne 0x41eaa2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4033f0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00405b60
test esi, esi
jne 0x403428
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405c9c
jmp 0x403446
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403334
mov edi, eax
test esi, esi
je 0x403446
cmp dword [ebx], 0
je 0x403446
dec esi
jmp 0x40342f
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x403b24
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x535020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403bbc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403b9c
xor eax, eax
push ebp
push 0x403b95
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403bf4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403b9c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x535020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x535020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404dcc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x53c054], 0
je 0x404e2d
cmp word [0x53c330], 0xd7b2
jne 0x404df5
cmp dword [0x53c338], 0
jbe 0x404df5
mov eax, 0x53c32c
call dword [0x53c348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404e58
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x535030], 0
jne 0x404e49
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404ff8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x535034], 0
je 0x40501e
mov edx, esi
mov eax, ebx
call dword [0x535034]
jmp 0x40502d
mov eax, 8
call fcn.0040307c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x53c055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404fc0
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.KERNEL32.DLL_CreateThread_1
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x40a18c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x53eb60
push 0xa
push 0x40a220
mov eax, dword [0x53eb50]
push eax
call sub.KERNEL32.DLL_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40a1b0
call fcn.00413d44
push ebx
mov eax, dword [0x53eb50]
push eax
call sub.KERNEL32.DLL_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40a1c7
call fcn.00413d44
push ebx
call sub.KERNEL32.DLL_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40a1d9
call fcn.00413d44
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x53eb64], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x53eb68], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x53eb6c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x53eb70], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x53eb74], ecx
add edx, dword [eax + 0x14]
mov dword [0x53eb78], edx
pop esi
pop ebx
ret

Function at 0x40b9f4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40ba9d
test eax, edx
je 0x40baa0
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40ba1d
push edx
mov edx, eax
mov eax, esp
call fcn.00405d7c
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40ba33
push eax
lea eax, [esp + 8]
call fcn.00405d7c
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40ba42
movzx eax, word [eax]
sub eax, ecx
jmp 0x40ba69
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40ba83
add ecx, 4
js 0x40ba5a
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40ba80
push eax
mov eax, ecx
mov edx, 2
call fcn.00405098
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40ba67
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40ba69
xor eax, eax
ret
test eax, eax
je 0x40bab0
test edx, edx
jne 0x40ba04
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40ced8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405bec
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40cef6
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40cf17
cmp ebx, 3
je 0x40cf17
cmp ebx, 0x7b
je 0x40cf17
mov eax, esi
call fcn.0040ce98
test al, al
jne 0x40cf1b
xor eax, eax
jmp 0x40cf1d
mov al, 1
pop esi
pop ebx
ret

Function at 0x40cf20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405bec
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40cf39
test al, 0x10
jne 0x40cf3d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x411424
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
test eax, eax
jle 0x41145d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405c9c
jmp 0x411466
mov eax, ebx
mov edx, esi
call fcn.00405b60
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x411470
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
test eax, eax
jle 0x411492
movzx eax, word [esp]
jmp 0x411494
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x411c1c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x411d41
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00411a30
mov esi, eax
mov eax, dword [0x53bd0c]
cmp byte [eax], 0
je 0x411ce9
mov eax, dword [0x53b854]
call fcn.0040352c
call fcn.004031e4
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.KERNEL32.DLL_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x411bf8]
call fcn.004075dc
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.KERNEL32.DLL_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x411d5c
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x411d25
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x53b798]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x53eb50]
call fcn.004076d0
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411d48
lea eax, [ebp - 4]
mov edx, dword [0x411bf8]
call fcn.004075e8
ret
Function at 0x4129a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x412a76
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405bb4
lea eax, [ebp - 4]
call fcn.004065d0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405bec
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x412a60
mov eax, ebx
call fcn.0040307c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x412a59
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405bec
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x412a43
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x412a88
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x412a43
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412a60
mov eax, dword [ebp - 0x10]
call fcn.00403098
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412a7d
lea eax, [ebp - 4]
call fcn.00405b50
ret

Function at 0x413b73
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.004053dc
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.KERNEL32.DLL_MultiByteToWideChar
mov edi, eax
cmp edi, 0x104
jbe 0x413b96
mov eax, edi
add eax, eax
call fcn.0040307c
mov esi, eax
jmp 0x413b98
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.KERNEL32.DLL_MultiByteToWideChar
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x413bd1
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x413bbb
mov eax, esp
cmp esi, eax
je 0x413bde
mov eax, esi
call fcn.00403098
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x413c18
cmp bl, 0
je 0x413c14
cmp bl, 0x41
jl 0x413c0f
cmp bl, 0x5a
jg 0x413c0f
or bl, 0x20
xor al, bl
inc esi
jmp 0x413bf3
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x413b58