joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010a0
Capabilities:
Copy file
Create service
Get common file path
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x340
mov ecx, 7
xor eax, eax
push esi
push edi
mov esi, str.system32drivers_sisidex.sys
lea edi, [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x39
lea edi, [esp + 0x59]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xa
mov esi, str.SystemCurrentControlSetServices_sisidex
lea edi, [esp + 0x10]
lea eax, [esp + 0x140]
rep movsd dword es:[edi], dword [esi]
push 0x104
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x140]
lea edx, [esp + 0x244]
push ecx
push str._s_system32drivers_sisidex.sys
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x244]
push 0
push eax
push str.sisidex.sys
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x401136
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
xor eax, eax
pop esi
add esp, 0x340
ret
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
je 0x401187
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x4c]
push 0
push ecx
push 1
push 0
push 2
push 0xf01ff
push str.sisidex
push str.sisidex
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
je 0x401181
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x401187
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push 0x20006
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40112b
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 8]
push 4
push ecx
push 4
push eax
mov edi, 0x500
push str.MaxRecords
push edx
mov dword [esp + 0x20], edi
call esi
mov ecx, dword [esp + 0xc]
lea eax, [esp + 8]
push 4
push eax
push 4
push 0
push str.MaxNames
push ecx
mov dword [esp + 0x20], edi
call esi
mov eax, dword [esp + 0xc]
lea edx, [esp + 8]
push 4
push edx
push 4
push 0
push str.DebugFlags
push eax
mov dword [esp + 0x20], 0
call esi
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push 4
push ecx
push 4
push 0
push str.AttachMode
push edx
mov dword [esp + 0x20], 2
call esi
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
add esp, 0x340
ret
Function at 0x401240
Capabilities:
Delete file
Delete registry key
Get common file path
Set file attributes

Disassembly:
sub esp, 0x310
mov ecx, 8
xor eax, eax
push ebx
push ebp
push esi
push edi
mov esi, str.SystemCurrentControlSetServices
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0x38
lea edi, [esp + 0x36]
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push str.SystemCurrentControlSetServices_sisidex
stosw word es:[edi], ax
lea eax, [esp + 0x18]
push eax
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 8
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push 0xf003f
push 0
push edx
push 0x80000002
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4012cd
mov eax, dword [esp + 0x10]
push str.Enum
push eax
call ebx
mov ecx, dword [esp + 0x10]
push str.Security
push ecx
call ebx
mov edx, dword [esp + 0x10]
push edx
call ebp
lea eax, [esp + 0x14]
push str.SystemCurrentControlSetServices
push eax
call esi
add esp, 8
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push 0xf003f
push 0
push edx
push 0x80000002
call edi
test eax, eax
jne 0x401369
mov eax, dword [esp + 0x10]
push str.sisidex
push eax
call ebx
mov ecx, dword [esp + 0x10]
push ecx
call ebp
lea edx, [esp + 0x21c]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x21c]
lea ecx, [esp + 0x118]
push eax
push str._s_system32drivers_sisidex.sys
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0x118]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x310
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x310
ret
Function at 0x4020c9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x405200
cmp edx, dword [eax]
je 0x4020eb
add eax, 8
inc ecx
cmp eax, 0x405290
jl 0x4020dc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x405200]
jne 0x402219
mov eax, dword [0x405678]
cmp eax, 1
je 0x4021f3
test eax, eax
jne 0x40211c
cmp dword [0x405130], 1
je 0x4021f3
cmp edx, 0xfc
je 0x402219
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402153
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402740
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004028c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402196
lea eax, [ebp - 0x1a4]
push eax
call fcn.004028c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4043d0
push edi
call fcn.004035e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402740
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402750
lea eax, [ebp - 0xa0]
push 0x4043b0
push eax
call fcn.00402750
push dword [esi + 0x405204]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402750
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040354b
add esp, 0x2c
pop edi
jmp 0x402219
lea eax, [ebp + 8]
lea esi, [esi + 0x405204]
push 0
push eax
push dword [esi]
call fcn.004028c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x5623700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0562378f
jae 0x562370e
xor ecx, ecx
call fcn.0562378f
jae 0x562373d
xor eax, eax
call fcn.0562378f
jae 0x562374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0562378f
adc al, al
jae 0x562372f
jne 0x5623779
stosb byte es:[edi], al
jmp 0x5623711
call fcn.0562379b
sub ecx, ebx
jne 0x5623756
call fcn.05623799
jmp 0x5623775
lodsb al, byte [esi]
shr eax, 1
je 0x5623783
adc ecx, ecx
jmp 0x5623772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.05623799
cmp eax, 0x7d00
jae 0x5623772
cmp ah, 5
jae 0x5623773
cmp eax, 0x7f
ja 0x5623774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5623711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x401c66
pop dword [ebp - 0x2c]
mov eax, 0x401c66
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x59fb1c38
sub dword [ebp - 0x3c], 0xba8d6ed
mov dword [ebp - 0x38], 0xd6abdb83
sub dword [ebp - 0x38], 0xa4788f3e
mov dword [ebp - 0x34], 0xa2c1fa99
add dword [ebp - 0x34], 0xa98a4995
mov dword [ebp - 0x30], 0x503b1576
sub dword [ebp - 0x30], 0x503b1576
lea eax, [ebp - 0x3c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x15a7a958
sub dword [ebp - 0x3c], 0xa1354002
mov dword [ebp - 0x38], 0x9628ff27
add dword [ebp - 0x38], 0xab43624e
mov dword [ebp - 0x34], 0x6f6418f4
add dword [ebp - 0x34], 0xf40b5378
mov dword [ebp - 0x30], 0x5aed4155
add dword [ebp - 0x30], 0xa512beab
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x39d0e
push 0
call eax
mov ecx, 0xc989c7e
add ecx, 0xf367b8d9
mov ebx, eax
mov esi, 0xeade2621
add esi, 0x156249df
add esi, dword [ebp - 0x2c]
mov edi, 0xd0a132fa
add edi, 0x7a492e66
mov edx, dword [esi]
xor dword [ebp - 0x1c], ebx
sub edx, edi
xor dword [ebp - 0x10], 0xe6b658f
mov dword [ebx], edx
add dword [ebp - 0x18], eax
add ebx, 0xb6a642d9
sub ebx, 0xb6a642d5
add esi, 4
loop 0x401d79
add eax, 0x1482f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x28558c89
add ecx, 0xd7ea7377
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402e48
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402ea1
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402ce4
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402ce4
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402e8b
inc ebx
jmp 0x402e74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402ea8
lea eax, [ebp - 8]
call fcn.00404a38
ret

Function at 0x402eb0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404a38
test esi, esi
jne 0x402ee7
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404b28
jmp 0x402f08
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402ce4
mov dword [esp], eax
test esi, esi
je 0x402f08
cmp dword [ebx], 0
je 0x402f08
dec esi
jmp 0x402eef
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403564
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x45b008], 0x8088405
inc edx
mov dword [ebx + 0x45b008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403b20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45b024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403bb8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403b98
xor eax, eax
push ebp
push 0x403b91
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 0x403bd4
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 0x403b98
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x45b024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45b024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4048b4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45d048], 0
je 0x404915
cmp word [0x45d21c], 0xd7b2
jne 0x4048dd
cmp dword [0x45d224], 0
jbe 0x4048dd
mov eax, 0x45d218
call dword [0x45d234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45b094
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 0x40493c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45b034], 0
jne 0x404931
push 0
push 0x45b08c
push 0x45b094
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40668c
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 0x4066f2
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.00404ca8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004036e4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4066dc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4066f9
lea eax, [ebp - 0x10]
call fcn.00404a38
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404ef8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40911d
test al, 0x10
jne 0x409121
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40bea0
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 0x40bed9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404b28
jmp 0x40bee2
mov eax, ebx
mov edx, esi
call fcn.00404a8c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40beec
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 0x40bf0d
mov al, byte [esp]
jmp 0x40bf0f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c5a4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c40c
mov eax, dword [0x45c1ac]
cmp byte [eax], 0
je 0x40c620
mov eax, dword [0x45bfa0]
call fcn.004032a8
call fcn.00402c04
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.004095e0
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 0x40c668
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c656
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45bf4c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45d664]
call fcn.00405af8
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 0x40cec4
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 0x40cf9a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404ad0
lea eax, [ebp - 8]
call fcn.00404f48
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404ef8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cf84
mov eax, ebx
call fcn.00402a78
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cf7d
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.00404ef8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cf67
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cfac
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cf67
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 0x40cf84
mov eax, dword [ebp - 0x10]
call fcn.00402aa8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cfa1
lea eax, [ebp - 8]
call fcn.00404a38
ret

Function at 0x40d5f0
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 0x40d654
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.00404ca8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408d84
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d65b
lea eax, [ebp - 0xc]
call fcn.00404a38
ret

Function at 0x41b954
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x45d884
cmp dword [edi], 0
jne 0x41b9d0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x45d880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45b414
mov ecx, 2
call fcn.00402ca4
mov edx, 0x41b92c
lea eax, [esi + 5]
call fcn.0041b94c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b94c
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 0x41b9a5
mov dword [0x45d880], 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 0x41cf44
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 0x41cf4a
ret
Function at 0x41f410
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 0x41f461
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41f448
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41f438
jmp 0x41f461
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 0x41f449
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42a9b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0042a614
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404ef8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x42aa0e
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x45c0c8]
mov dl, 1
mov eax, dword [0x42a50c]
call fcn.0040c764
call fcn.0040444c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42aa18
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404ef8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x42aa70
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x45c2d4]
mov dl, 1
mov eax, dword [0x42a50c]
call fcn.0040c764
call fcn.0040444c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0042a644
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x430884
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x4307d0
call sub.user32.dll_EnumWindows
ret

Function at 0x4309a4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x430a21
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00430404
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
cmp eax, 0x3e8
jbe 0x4309c9
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00430004
cmp dword [ebp - 4], 0
je 0x430a0b
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404ef8
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430a28
lea eax, [ebp - 4]
call fcn.00404a38
ret
Function at 0x4339ec
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x45db54], 0
je 0x433b3b
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x45c140]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x433b3b
mov eax, dword [0x45db58]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x45db54]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x433b0a
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x45db54]
call fcn.00414f24
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x433b02
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x433b02
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x433b02
mov eax, dword [ebp - 0x14]
call fcn.0043c684
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x433b02
push ebp
call fcn.004339a8
pop ecx
test al, al
jne 0x433b02
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x433abe
mov eax, dword [ebp - 0x14]
call fcn.0043b1b4
dec eax
jle 0x433b02
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.00403eb4
cmp byte [ebp - 1], 0
je 0x433b02
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x433b02
mov edx, dword [ebp - 0x14]
mov eax, dword [0x45db58]
call fcn.00433174
inc edi
dec ebx
jne 0x433a51
mov eax, dword [0x45db58]
cmp dword [eax + 8], 0
jle 0x433b22
mov eax, dword [0x45db58]
call fcn.00433204
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x433b3b
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00433810
pop ecx
test al, al
jne 0x433b3b
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret