joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a670
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x221c
call fcn.00434490
mov eax, dword [0x4571a0]
xor eax, esp
mov dword [esp + 0x2218], eax
push ebx
push ebp
xor ebx, ebx
push edi
xor edi, edi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edi
jmp 0x42a6a0
cmp dword [esi + 0x10], 0x20
jge 0x42a810
push edi
push str..PhysicalDrive_d
lea edx, [esp + 0x2c]
call fcn.0042a9f0
add esp, 8
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x42a802
mov edi, dword [esi + 0x10]
xor eax, eax
push 0x2000
lea ecx, [esp + 0x228]
push ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.00430980
add esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea edx, [esp + 0x18]
push edx
push 0x2000
lea eax, [esp + 0x230]
push eax
push 0xc
lea ecx, [esp + 0x2c]
push ecx
push 0x2d1400
push ebp
call ebx
test eax, eax
je 0x42a77b
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x23c]
shl edx, 7
lea ecx, [edx + esi + 0x18]
lea eax, [esp + eax + 0x224]
push ecx
call fcn.0042a830
mov edx, dword [esi + 0x10]
shl edx, 7
movzx eax, word [edx + esi + 0x18]
push eax
call fcn.0042fd86
add esp, 4
test eax, eax
je 0x42a77b
mov eax, 1
add dword [esi + 0x10], eax
mov dword [esp + 0xc], eax
cmp edi, dword [esi + 0x10]
jne 0x42a7f5
push 0x2000
lea ecx, [esp + 0x228]
push 0
push ecx
call fcn.00430980
add esp, 0xc
push 0
lea edx, [esp + 0x18]
push edx
push 0x2000
lea eax, [esp + 0x230]
push eax
push 0
push 0
push 0x2d0c10
push ebp
call ebx
test eax, eax
je 0x42a7f5
mov ecx, dword [esi + 0x10]
shl ecx, 7
lea ebx, [ecx + esi + 0x18]
lea edi, [esp + 0x234]
call fcn.0042a9b0
mov edx, dword [esi + 0x10]
shl edx, 7
movzx eax, word [edx + esi + 0x18]
push eax
call fcn.0042fd86
add esp, 4
test eax, eax
je 0x42a7f5
mov eax, 1
add dword [esi + 0x10], eax
mov dword [esp + 0xc], eax
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x10]
xor ebx, ebx
inc edi
cmp edi, 0x10
mov dword [esp + 0x10], edi
jl 0x42a6a0
mov ecx, dword [esp + 0x2224]
mov eax, dword [esp + 0xc]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042c667
add esp, 0x221c
ret
Function at 0x42ac37
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x45a010], 0
push esi
jne 0x42abaa
call fcn.0042aad0
test eax, eax
je 0x42abed
mov eax, dword [0x45a010]
cmp eax, 1
jne 0x42abcb
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x42abed
pop esi
ret
push eax
call dword [0x45a018]
test eax, eax
jne 0x42ac35
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x42abf1
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x45a010]
call dword [0x45a018]
mov edi, eax
test edi, edi
je 0x42ac16
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x42ac32
mov edi, esi
add esi, 0xff0
push edi
push dword [0x45a010]
call dword [0x45a014]
add edi, 0x10
cmp edi, esi
jb 0x42ac1e
mov eax, edi
pop edi
pop esi
ret
jmp 0x42ab97

Function at 0x42c667
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4571a0]
jne 0x42c671
repz ret
jmp fcn.0043308c

Function at 0x43f7d7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0043499f
and dword [ebp - 4], 0
cmp dword [0x45ae7c], 0
mov ebx, eax
jne 0x43f888
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x43f939
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x43f939
push eax
call fcn.0043492d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x45ae7c], eax
call esi
push eax
call fcn.0043492d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45ae80], eax
call esi
push eax
call fcn.0043492d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45ae84], eax
call esi
push eax
call fcn.0043492d
pop ecx
mov dword [0x45ae8c], eax
test eax, eax
je 0x43f888
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043492d
pop ecx
mov dword [0x45ae88], eax
mov eax, dword [0x45ae88]
cmp eax, ebx
je 0x43f8e0
cmp dword [0x45ae8c], ebx
je 0x43f8e0
push eax
call fcn.004349a8
push dword [0x45ae8c]
mov esi, eax
call fcn.004349a8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43f8e0
test edi, edi
je 0x43f8e0
call esi
test eax, eax
je 0x43f8d7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43f8d7
test byte [ebp - 0xc], 1
jne 0x43f8e0
or dword [ebp + 0x10], 0x200000
jmp 0x43f919
mov eax, dword [0x45ae80]
cmp eax, ebx
je 0x43f919
push eax
call fcn.004349a8
pop ecx
test eax, eax
je 0x43f919
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x43f919
mov eax, dword [0x45ae84]
cmp eax, ebx
je 0x43f919
push eax
call fcn.004349a8
pop ecx
test eax, eax
je 0x43f919
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45ae7c]
call fcn.004349a8
pop ecx
test eax, eax
je 0x43f939
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43f93b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x2a30195d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x2a357578]
jne 0x2a301967
repz ret
jmp fcn.2a341dce

Function at 0x2a309f40
Capabilities:
Terminate thread

Disassembly:
push 0x10
mov eax, 0x2a342707
call fcn.2a30229e
mov esi, ecx
xor edi, edi
cmp dword [esi], 0xb
mov dword [ebp - 0x14], edi
jne 0x2a30a02b
mov edi, dword [sym.imp.kernel32.dll_WaitForSingleObject]
push 0xea60
push dword [esi + 0x2e0]
call edi
or dword [esi + 0x1ac], 0xffffffff
push 1
push dword [esi + 0x2dc]
call dword [sym.imp.kernel32.dll_SetThreadPriority]
push dword [esi + 0x2e0]
call dword [sym.imp.kernel32.dll_ReleaseMutex]
mov ebx, dword [sym.imp.kernel32.dll_GetTickCount]
call ebx
shr eax, 4
add eax, 0x12c
mov dword [ebp - 0x10], eax
jmp 0x2a309fdb
push 0xea60
push dword [esi + 0x2e0]
call edi
push dword [esi + 0x2e0]
xor eax, eax
cmp dword [esi], 0xb
setne al
movzx eax, ax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.kernel32.dll_ReleaseMutex]
cmp word [ebp - 0x1c], 0
jne 0x2a309fe5
push 0x64
call dword [sym.imp.kernel32.dll_Sleep]
call ebx
shr eax, 4
cmp eax, dword [ebp - 0x10]
jb 0x2a309fa5
push 0xea60
push dword [esi + 0x2e0]
call edi
cmp dword [esi], 0xb
jne 0x2a30a00a
xor edi, edi
inc edi
push edi
push dword [esi + 0x2dc]
call dword [sym.imp.kernel32.dll_TerminateThread]
mov dword [ebp - 0x14], edi
push dword [esi + 0x2e0]
call dword [sym.imp.kernel32.dll_ReleaseMutex]
push dword [esi + 0x2e0]
call dword [sym.imp.kernel32.dll_CloseHandle]
and dword [esi + 0x2e0], 0
xor edi, edi
mov eax, dword [esi + 0x1c]
lea ebx, [esi + 0x1ac]
mov dword [ebx], edi
cmp eax, edi
je 0x2a30a05c
cmp word [ebp - 0x14], di
jne 0x2a30a059
push ebx
push eax
call sym.SEARCH.API__ixGetTempDiskSpaceUsage_12
cmp dword [ebx], edi
jne 0x2a30a05c
push ebx
push dword [esi + 0x18]
mov dword [esi + 0x1c], edi
call sym.SEARCH.API__ixGetTempDiskSpaceUsage_12
jmp 0x2a30a05c
mov dword [esi + 0x1c], edi
cmp word [esi + 0x14c], di
je 0x2a30a0c8
push edi
push edi
lea ecx, [ebp - 0x18]
call sym.SEARCH.API__ixGetTempDiskSpaceUsage_12
mov ebx, dword [0x2a358a70]
push edi
lea eax, [esi + 0x48]
push eax
mov eax, dword [0x2a358a74]
push str.Cstring
mov dword [ebp - 4], edi
call dword [eax + 0x14]
movzx eax, ax
pop ecx
push eax
push edi
call dword [ebx + 0xd0]
add esp, 0x10
push edi
push eax
lea ecx, [ebp - 0x18]
call sym.SEARCH.API__ixGetTempDiskSpaceUsage_12
cmp dword [ebp - 0x14], edi
je 0x2a30a0bc
lea ecx, [ebp - 0x18]
call sym.SEARCH.API__ixGetTempDiskSpaceUsage_12
test al, al
je 0x2a30a0bc
lea ecx, [ebp - 0x18]
call fcn.2a330802
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.2a3032b3
mov eax, dword [esi + 0x3c]
cmp eax, edi
je 0x2a30a0df
push eax
mov eax, dword [0x2a358780]
call dword [eax + 0x284]
pop ecx
mov dword [esi + 0x3c], edi
mov eax, dword [esi + 0x24]
cmp eax, edi
je 0x2a30a107
push eax
mov eax, dword [0x2a358a90]
cmp word [esi + 0x1a2], di
je 0x2a30a0fd
call dword [eax + 0x124]
jmp 0x2a30a103
call dword [eax + 0x11c]
pop ecx
mov dword [esi + 0x24], edi
mov dword [esi], 2
call fcn.2a3026e6
ret
Function at 0x2a323cd6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x2a3442a0
call fcn.2a30372f
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x428], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x2a323d84
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x41c]
push eax
call sym.SEARCH.API__ixGetTempDiskSpaceUsage_12
add esp, 0xc
test eax, eax
js 0x2a323d84
mov edi, dword [ebp - 0x41c]
cmp edi, 0x400
jg 0x2a323d6a
push edi
call fcn.2a3203ae
pop ecx
test al, al
je 0x2a323d6a
mov eax, edi
call fcn.2a341a00
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x2a323d76
push edi
lea ecx, [ebp - 0x428]
call sym.SEARCH.API__ixGetTempDiskSpaceUsage_12
push 3
push edi
push esi
push eax
call sym.SEARCH.API__ixGetTempDiskSpaceUsage_12
cmp eax, ebx
jne 0x2a323dc1
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x2a323d9d
lea ecx, [ebp - 0x418]
call fcn.2a31ffe1
mov esi, 0x8007000e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x428]
call fcn.2a31fe2e
mov eax, esi
lea esp, [ebp - 0x440]
call fcn.2a303768
ret 0x10
push 2
push ebx
push eax
call fcn.2a3212fd
mov edi, eax
mov dword [ebp - 0x41c], edi
cmp edi, ebx
jne 0x2a323de2
call fcn.2a31f619
mov esi, eax
jmp 0x2a323eac
push dword [ebp - 0x420]
push dword [ebp - 0x424]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x2a323e05
call fcn.2a31f619
jmp 0x2a323e9e
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, ebx
je 0x2a323dfb
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x424], esi
cmp eax, esi
jae 0x2a323e35
mov esi, 0x8007000e
jmp 0x2a323ea0
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call sym.SEARCH.API__ixGetTempDiskSpaceUsage_12
mov dword [ebp - 4], 1
jmp 0x2a323e63
cmp dword [ebp - 0x418], ebx
je 0x2a323e2e
push esi
push dword [ebp - 0x420]
push esi
push dword [ebp - 0x418]
call sym.SEARCH.API__ixGetTempDiskSpaceUsage_12
mov eax, dword [ebp - 0x418]
add esp, 0x10
push dword [ebp + 0x14]
mov byte [eax + esi], bl
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call sym.SEARCH.API__ixGetTempDiskSpaceUsage_12
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x2a323da2
lea ecx, [ebp - 0x418]
call fcn.2a31ffe1
jmp 0x2a323da2
Function at 0x402b80
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x47c008], 0x8088405
inc edx
mov dword [ebx + 0x47c008], edx
fld qword [ebx + 0x47c068]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret

Function at 0x402fe4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x47c024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40307c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40305c
xor eax, eax
push ebp
push 0x403055
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 0x403098
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40305c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x47c024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x47c024], ax
mov esp, ebp
pop ebp
ret

Function at 0x403d40
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47e048], 0
je 0x403da1
cmp word [0x47e21c], 0xd7b2
jne 0x403d69
cmp dword [0x47e224], 0
jbe 0x403d69
mov eax, 0x47e218
call dword [0x47e234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47c078
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403dc8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47c034], 0
jne 0x403dbd
push 0
push 0x47c070
push 0x47c078
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405a44
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405aaa
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040412c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ba8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405a94
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405ab1
lea eax, [ebp - 0x10]
call fcn.00403ebc
ret

Function at 0x40ac04
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40ac3d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403fac
jmp 0x40ac46
mov eax, ebx
mov edx, esi
call fcn.00403f10
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ac50
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40ac71
mov al, byte [esp]
jmp 0x40ac73
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b2f8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b170
mov eax, dword [0x47db28]
cmp byte [eax], 0
je 0x40b374
mov eax, dword [0x47d924]
call fcn.004029b0
call fcn.00402824
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408464
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
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 0x40b3bc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b3aa
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x47d8d4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x47e664]
call fcn.00404f58
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40bc10
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40bce6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403f54
lea eax, [ebp - 8]
call fcn.004043cc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040437c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bcd0
mov eax, ebx
call fcn.004026bc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bcc9
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 - 8]
call fcn.0040437c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bcb3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bcf8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bcb3
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bcd0
mov eax, dword [ebp - 0x10]
call fcn.004026dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bced
lea eax, [ebp - 8]
call fcn.00403ebc
ret

Function at 0x40c268
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c2cc
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0040412c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407fac
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c2d3
lea eax, [ebp - 0xc]
call fcn.00403ebc
ret

Function at 0x41a43c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x47e884
cmp dword [edi], 0
jne 0x41a4b8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x47e880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x47c3f8
mov ecx, 2
call fcn.004028b8
mov edx, 0x41a414
lea eax, [esi + 5]
call fcn.0041a434
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a434
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41a48d
mov dword [0x47e880], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41ba6c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41ba72
ret
Function at 0x41e344
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41e395
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41e37c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41e36c
jmp 0x41e395
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41e37d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42ae58
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
push 1
call sub.user32.dll_GetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42aeca
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x42ae9e
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.004040b4
jmp 0x42aea5
mov eax, ebx
call fcn.00403ebc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42aed1
cmp dword [ebp - 8], 0
je 0x42aec1
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x42aed8
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x42af7a
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x42af4d
mov edx, ebx
mov eax, dword [0x41b530]
call fcn.0041fba4
test al, al
je 0x42af3d
movzx eax, bx
push eax
call sub.user32.dll_GetClipboardData
mov esi, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, esi
mov edx, ebx
mov eax, edi
call fcn.0041fab4
call fcn.004039a4
jmp 0x42af81
movzx eax, bx
push eax
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x42af08
mov ecx, dword [0x47d8c8]
mov dl, 1
mov eax, dword [0x406e30]
call fcn.0040b47c
call fcn.004038f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42af81
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x42af88
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x42afe0
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
mov esi, eax
push esi
mov ecx, ebx
mov dx, 2
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42afe7
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret