joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10040b90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, eax
mov ecx, 0x104
mov ebx, edi
call fcn.10015350
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push eax
mov eax, dword [edx]
push ebp
push 0
push str.AltLiveUpdateURL
push eax
mov dword [esp + 0x30], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, 0xea
jne 0x10040c1d
call fcn.10011c20
mov ecx, dword [edi]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [edi]
mov dword [edx - 8], eax
mov ecx, dword [edi]
mov word [ecx + eax*2], 0
mov ecx, dword [esp + 0x18]
add ecx, 2
mov dword [esp + 0x18], ecx
shr ecx, 1
call fcn.10015350
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push ebp
push 0
push str.AltLiveUpdateURL
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
call fcn.10011c20
mov edx, dword [edi]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [edi]
mov dword [ecx - 8], eax
mov edx, dword [edi]
mov word [edx + eax*2], 0
pop edi
xor eax, eax
test esi, esi
pop esi
pop ebp
sete al
pop ebx
ret 8
Function at 0x1004a680
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x870
mov eax, dword [0x1006e020]
xor eax, esp
mov dword [esp + 0x86c], eax
mov eax, dword [esp + 0x878]
push esi
push edi
mov ecx, 0x17
mov esi, str.SELECT__Value__FROM___s__WHERE__Property__s
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
push edx
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x80]
push ecx
movsw word es:[edi], word [esi]
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x88c]
add esp, 0x10
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x78]
push eax
xor esi, esi
push ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
call sub.msi.dll_MsiEnumClientsA
test eax, eax
jne 0x1004a77a
mov edx, dword [esp + 0xc]
push esi
push edx
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x1004a77a
mov eax, dword [esp + 8]
cmp eax, esi
je 0x1004a70d
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [esp + 0xc]
lea eax, [esp + 8]
push eax
push ecx
mov dword [esp + 0x10], esi
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
jne 0x1004a77a
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x884]
lea eax, [esp + 0x10]
push eax
push ebx
push 1
push ecx
mov dword [esp + 0x20], edx
call sub.msi.dll_MsiRecordSetStreamA
test eax, eax
mov eax, dword [esp + 8]
jne 0x1004a77e
cmp eax, esi
je 0x1004a753
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, dword [esp + 0xc]
cmp eax, esi
je 0x1004a761
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x86c]
xor ecx, esp
call fcn.10056d50
add esp, 0x870
ret
mov eax, dword [esp + 8]
cmp eax, esi
je 0x1004a788
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, dword [esp + 0xc]
cmp eax, esi
je 0x1004a796
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [esp + 0x874]
pop edi
pop esi
xor ecx, esp
xor al, al
call fcn.10056d50
add esp, 0x870
ret
Function at 0x1004aaf0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x10057c00
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1006e020]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [0x1006eb44]
mov ecx, 2
lea edx, [esp + 0x18]
mov dword [esp + 0x18], eax
call fcn.10011c80
test eax, eax
mov ebp, dword [esp + 0x18]
je 0x1004ab3f
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov dword [ebp], edx
mov dword [esp + 0x24], 0
mov eax, dword [0x1006eb44]
mov dword [esp + 0x14], eax
push 0x104
mov ecx, 0x104
lea ebx, [esp + 0x18]
mov byte [esp + 0x28], 1
call fcn.10015350
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov edi, ebx
call fcn.10011c20
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esi - 8], eax
mov word [esi + eax*2], 0
cmp dword [esi - 8], 0
jge 0x1004ab96
or eax, 0xffffffff
jmp 0x1004abb2
push 0x1005e064
push esi
call dword [sym.imp.MSVCR80.dll_wcsstr]
add esp, 8
test eax, eax
jne 0x1004abae
or eax, 0xffffffff
jmp 0x1004abb2
sub eax, esi
sar eax, 1
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
lea ecx, [esi - 0xc]
setg bl
cmp ecx, 0x1006eb34
je 0x1004abdb
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x1004abdb
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
lea edx, [ebp - 0xc]
cmp edx, 0x1006eb34
je 0x1004abf9
lea esi, [ebp - 0xc]
push esi
call edi
test eax, eax
jg 0x1004abf9
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x1004ac10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x10058808
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1006e020]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebx, ecx
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x1004ad02
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsNetworkPathW]
test eax, eax
jne 0x1004accb
lea esi, [esp + 0x10]
call fcn.10015b70
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
mov ebx, esi
call fcn.10015350
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
mov edi, esi
call fcn.10011c20
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esi - 8], eax
push esi
mov word [esi + eax*2], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x1004ace0
push esi
call fcn.1004aaf0
add esp, 4
test al, al
mov esi, edi
je 0x1004acc6
call fcn.10015b40
xor al, al
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
call fcn.10015b40
mov al, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
lea ecx, [esi - 0xc]
cmp ecx, 0x1006eb34
je 0x1004ad02
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1004ad02
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
xor al, al
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x1004b130
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x650
mov eax, dword [0x1006e020]
xor eax, esp
mov dword [esp + 0x64c], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov word [esp + 0x38], ax
lea eax, [esp + 0x3a]
push eax
mov esi, ecx
mov edi, edx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x1004b1a5
cmp byte [ebp + 8], 0
je 0x1004b1bb
lea edx, [esp + 0xc]
push edx
push 0x12
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jge 0x1004b1bb
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x64c]
xor ecx, esp
call fcn.10056d50
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xc]
push edx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x444]
lea ecx, [esp + 0x34]
push 0x104
push eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 0x145
mov dword [esp + 0x30], 0x1004b100
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
lea edx, [esp + 0x10]
lea ecx, [esp + 0x440]
push edx
mov dword [esp + 0x2c], ecx
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov esi, eax
xor edi, edi
test esi, esi
je 0x1004b265
lea eax, [esp + 0x238]
push eax
mov eax, esi
call fcn.1004b010
add esp, 4
test eax, eax
jl 0x1004b265
lea edi, [esp + 0x238]
mov eax, ebx
call fcn.10015870
mov edi, 1
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x1004b27a
mov eax, dword [esp + 8]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x14]
call eax
test esi, esi
je 0x1004b28b
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push esi
push eax
call edx
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0x654]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.10056d50
mov esp, ebp
pop ebp
ret
Function at 0x1004b560
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x1005997b
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
mov eax, dword [0x1006e020]
xor eax, esp
mov dword [esp + 0x1a8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1006e020]
xor eax, esp
push eax
lea eax, [esp + 0x1c4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1d4]
mov eax, dword [ebp]
mov eax, dword [eax - 8]
cmp eax, 0x10
jge 0x1004b5ec
lea ecx, [esp + 0x18]
xor ebx, ebx
push ecx
mov edi, 0x100615a8
mov dword [esp + 0x1c], ebx
call fcn.10015700
mov dword [esp + 0x1cc], ebx
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x1004b5ec
lea edx, [esp + 0x1c]
push edx
push 0x102
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1004b5f3
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x1004b6a1
mov ecx, dword [ebp]
push ebx
xor eax, eax
push ebx
push 0x10
mov dword [esp + 0x1b9], eax
mov dword [esp + 0x1bd], eax
mov dword [esp + 0x1c1], eax
mov word [esp + 0x1c5], ax
mov byte [esp + 0x1c7], al
lea eax, [esp + 0x1b8]
push eax
push 0xffffffffffffffff
push ecx
push ebx
push ebx
mov byte [esp + 0x1cc], bl
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push esi
call ebp
push str.freeaddrinfo
push esi
mov edi, eax
call ebp
cmp edi, ebx
mov ebp, eax
je 0x1004b67e
cmp ebp, ebx
je 0x1004b67e
lea edx, [esp + 0x14]
push edx
push ebx
push ebx
lea eax, [esp + 0x1b8]
push eax
mov dword [esp + 0x24], ebx
call edi
test eax, eax
jne 0x1004b692
mov ecx, dword [esp + 0x14]
push ecx
call ebp
jmp 0x1004b690
lea edx, [esp + 0x1ac]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x1004b692
mov bl, 1
call dword [sym.imp.WS2_32.dll_WSACleanup]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, bl
mov ecx, dword [esp + 0x1c4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1a8]
xor ecx, esp
call fcn.10056d50
add esp, 0x1bc
ret
Function at 0x1004b760
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
mov eax, dword [esi + 4]
push ebx
push edi
push 0x400
lea edi, [esi + 0x24]
push edi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 4]
xor ebx, ebx
add ecx, 0xfffffff7
cmp ecx, 0x1f
mov dword [esp + 0x28], edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x2c], 0x400
mov dword [esp + 0x10], 0xffffff50
mov dword [esp + 8], eax
ja case.0x1004b7b5.10
movzx ecx, byte [ecx + 0x1004b8cc]
jmp dword [ecx*4 + 0x1004b8b4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
lea edx, [esp + 8]
push edx
push ebx
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [sym.imp.USER32.dll_GetParent]
push eax
call edi
lea ecx, [esp + 8]
push ecx
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0x4e
push eax
call ebx
mov edx, dword [esi + 4]
push edx
call edi
push 1
push 0x27
push pe_nt_image_headers32
push eax
call ebx
mov eax, dword [esi + 4]
push eax
call edi
push 0
push 0xd
push pe_nt_image_headers32
push eax
call ebx
mov eax, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [sym.imp.USER32.dll_GetParent]
push eax
call edi
lea ecx, [esp + 8]
push ecx
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0x4e
push eax
call ebx
mov edx, dword [esi + 4]
push edx
call edi
push 1
push 0x28
jmp 0x1004b803
mov edi, dword [sym.imp.USER32.dll_GetParent]
push eax
call edi
lea ecx, [esp + 8]
push ecx
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0x4e
push eax
call ebx
mov edx, dword [esi + 4]
push edx
call edi
push 1
push 0x26
jmp 0x1004b803
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x30], ebx
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [esp + 8]
push ecx
push ebx
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1004bdf0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esi + 0x5c]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [edi + 0x10], 0xffffffff
je 0x1004be1b
mov eax, dword [edi + 0x20]
test eax, eax
je 0x1004be1b
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x2c]
push eax
push ecx
push edx
lea eax, [esi + 4]
push eax
call fcn.100565b0
mov ecx, dword [esp + 4]
mov byte [esi + 0x24], 0
mov dword [ecx], 0
xor eax, eax
ret 4
Function at 0x1004bf70
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x20
cmp byte [esi + 0x24], 0
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push edi
mov edi, eax
je 0x1004bf96
mov eax, dword [esi + 0x5c]
push 0
push 0xd
push pe_nt_image_headers32
push eax
call ebx
mov byte [esi + 0x24], 0
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [esi + 4]
or eax, 0xffffffff
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14]
push eax
push 0
movzx edx, di
push 0x1039
shr edi, 0x10
push ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edi
call ebx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x20]
cmp ecx, eax
mov edx, dword [esp + 0x24]
jne 0x1004c008
mov edi, dword [esi + 0x30]
cmp edx, edi
jne 0x1004c008
test edi, edi
jl 0x1004c02e
test eax, eax
jl 0x1004c02e
mov eax, dword [esi + 4]
lea edx, [esp + 8]
push edx
push 0
push 0x4e
push eax
mov dword [esp + 0x20], 0xffffff51
call ebx
pop edi
xor eax, eax
pop ebx
add esp, 0x20
ret
push 0
push 0
mov dword [esi + 0x2c], ecx
mov ecx, dword [esi + 4]
push 0x1004
push ecx
mov dword [esi + 0x30], edx
call ebx
mov edx, dword [esi + 4]
sub eax, 1
push eax
push 0
push 0x1015
push edx
call ebx
pop edi
xor eax, eax
pop ebx
add esp, 0x20
ret

Function at 0x1004c040
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x20
cmp byte [esi + 0x24], 0
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push edi
mov edi, eax
je 0x1004c066
mov eax, dword [esi + 0x5c]
push 0
push 0xd
push pe_nt_image_headers32
push eax
call ebp
mov byte [esi + 0x24], 0
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
push 0
movzx edx, di
push 0x1039
shr edi, 0x10
push ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
call ebp
mov eax, dword [esp + 0x24]
test eax, eax
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], ecx
jl 0x1004c0ed
test ecx, ecx
jl 0x1004c0ed
mov eax, dword [esi + 4]
lea edx, [esp + 8]
push edx
push 0
push 0x4e
push eax
mov dword [esp + 0x20], 0xffffff51
call ebp
mov ecx, dword [esi + 4]
push 0
push 0
push 0x1004
push ecx
call ebp
mov edx, dword [esi + 4]
sub eax, 1
push eax
push 0
push 0x1015
push edx
call ebp
pop edi
xor eax, eax
pop ebp
add esp, 0x20
ret
Function at 0x1004c3d0
Capabilities:
Log keystrokes via polling

Disassembly:
test eax, eax
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
je 0x1004c42a
cmp eax, dword [esi + 4]
je 0x1004c42a
or eax, 0xffffffff
cmp dword [esi + 0x30], eax
je 0x1004c3ed
cmp dword [esi + 0x2c], eax
jne 0x1004c42a
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
je 0x1004c41c
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 4]
push 0
push 0
push 0x1004
sub eax, 1
push ecx
mov dword [esi + 0x30], eax
call edi
sub eax, 1
mov dword [esi + 0x2c], eax
jmp 0x1004c42a
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov edx, dword [esi + 4]
push 0
push 0
push 0x1004
push edx
call edi
sub eax, 1
push eax
mov eax, dword [esi + 4]
push 0
push 0x1015
push eax
call edi
xor eax, eax
pop edi
ret
Function at 0x100568e2
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x1006e020]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.10056877
mov eax, sym.DeployUi.dll_Ordinal_8
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x10056931
cmp dword [ebp - 0x1c], 5
jb 0x10056949
jmp 0x10056945
cmp dword [ebp - 0x10], 1
jne 0x10056949
cmp dword [ebp - 0x1c], 4
ja 0x10056945
jne 0x10056949
cmp dword [ebp - 0x18], 0
jbe 0x10056949
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1005d69c
call fcn.100232c0
test eax, eax
jge 0x1005696a
mov byte [0x10070bfc], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10056d50
add ebp, 0x78
leave
ret

Function at 0x10056b1c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10070888], 0
push esi
jne 0x10056a8f
call fcn.100569ba
test eax, eax
je 0x10056ad2
mov eax, dword [0x10070888]
cmp eax, 1
jne 0x10056ab0
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x10056ad2
pop esi
ret
push eax
call dword [0x10070890]
test eax, eax
jne 0x10056b1a
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 0x10056ad6
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x10070888]
call dword [0x10070890]
mov edi, eax
test edi, edi
je 0x10056afd
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x10056b19
lea edi, [esi + 0xff0]
push esi
push dword [0x10070888]
call dword [0x1007088c]
add esi, 0x10
cmp esi, edi
jb 0x10056b03
mov eax, esi
pop edi
pop esi
ret
jmp 0x10056a7c

Function at 0x10056d50
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1006e020]
jne 0x10056d5a
repz ret
jmp fcn.10057252
Function at 0x40272c
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.0040372c
test esi, esi
jne 0x402762
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.0040381c
jmp 0x402780
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402640
mov edi, eax
test esi, esi
je 0x402780
cmp dword [ebx], 0
je 0x402780
dec esi
jmp 0x402769
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x402e44
Capabilities:
Query or enumerate registry value

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

Function at 0x403534
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x413034], 0
je 0x403595
cmp word [0x413208], 0xd7b2
jne 0x40355d
cmp dword [0x413210], 0
jbe 0x40355d
mov eax, 0x413204
call dword [0x413220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x412084
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4035bc
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x412024], 0
jne 0x4035b1
push 0
push 0x41207c
push 0x412084
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4036e8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004024d0
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x413035], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4036b0
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4043c0
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 0x404426
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.0040388c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d38
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404410
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40442d
lea eax, [ebp - 0x10]
call fcn.0040372c
ret

Function at 0x404a48
Capabilities:
Query or enumerate registry value

Disassembly:
add esp, 0xffffff54
cmp byte [0x4120dc], 0
jne 0x404b1a
mov byte [0x4120dc], 1
xor eax, eax
mov dword [0x4120d4], eax
mov dword [esp + 0x18], 0x94
lea eax, [esp + 0x18]
push eax
call sub.KERNEL32.DLL_GetVersionExA
cmp dword [esp + 0x1c], 3
ja 0x404a90
cmp dword [esp + 0x1c], 3
jne 0x404af0
cmp dword [esp + 0x20], 0x33
jbe 0x404af0
mov dword [esp + 4], 9
push esp
push 0x20019
push 0
push 0x404b24
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x404b1a
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0x404b54
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x404b1a
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
cmp byte [esp + 8], 0x31
jne 0x404b1a
cmp byte [esp + 9], 0
jne 0x404b1a
jmp 0x404b05
push 0
push 0x404b54
push 0x404b5c
call sub.KERNEL32.DLL_GetProfileIntA
test eax, eax
je 0x404b1a
mov eax, dword [0x4120d0]
call fcn.00403aa4
push eax
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x4120d4], eax
add esp, 0xac
ret

Function at 0x404da4
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov byte [ebp - 2], dl
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
and eax, 0xff
bt dword [0x4120e0], eax
jae 0x404ddd
xor eax, eax
mov al, byte [ebp - 2]
add eax, 1
jno 0x404dce
call fcn.00402f1c
cmp eax, 0xff
jbe 0x404dda
call fcn.00402f14
mov byte [ebp - 2], al
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
push 0
xor eax, eax
mov al, byte [ebp - 1]
push eax
call sub.user32.dll_MapVirtualKeyA
cmp eax, 0xff
jbe 0x404dfe
call fcn.00402f14
push eax
mov al, byte [ebp - 1]
push eax
call sub.user32.dll_keybd_event
pop ecx
pop ebp
ret