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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push edi
push 0
push 0
call ebx
xor ecx, ecx
mov edi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041005d
add esp, 4
push eax
push edi
mov dword [esp + 0x18], eax
call ebx
mov edi, dword [esp + 0x10]
cmp word [edi], 0
mov dword [esp + 0xc], edi
je 0x402ab8
jmp 0x402974
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x402a8f
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402990
sub eax, edx
sar eax, 1
add eax, eax
push eax
mov eax, dword [esi + 0x70f8]
lea ecx, [eax + eax*2]
lea edx, [esi + ecx*4 + 0x70fc]
push edi
push edx
call fcn.00452110
add esp, 0xc
mov ebx, edi
call fcn.00402ad0
mov ecx, dword [esi + 0x70f8]
push 0x48
push 0
push 0x490a58
mov dword [esi + ecx*4 + 0x7234], eax
call fcn.00451da0
mov eax, dword [esi + 0x70f8]
lea edx, [eax + eax*2]
movzx eax, word [esi + edx*4 + 0x70fc]
add esp, 0xc
push eax
mov ebx, 0x490a58
call fcn.004027f0
test eax, eax
je 0x402a89
mov edx, dword [0x490a58]
mov ecx, edx
xor ebx, ebx
imul ecx, ecx, 0x680
lea edi, [ecx + esi + 0x8f8]
lea esp, [esp]
mov eax, edi
lea ecx, [eax + 2]
mov dword [esp + 0x14], ecx
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402a30
sub eax, dword [esp + 0x14]
sar eax, 1
je 0x402a4e
inc ebx
add edi, 0x40
cmp ebx, 0x1a
jl 0x402a20
jmp 0x402a85
mov eax, 0x490a5c
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402a56
imul edx, edx, 0x1a
sub eax, edi
sar eax, 1
add eax, eax
add edx, ebx
push eax
shl edx, 6
lea ecx, [edx + esi + 0x8f8]
push 0x490a5c
push ecx
call fcn.00452110
add esp, 0xc
mov edi, dword [esp + 0xc]
inc dword [esi + 0x70f8]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402a94
sub eax, edx
sar eax, 1
lea eax, [edi + eax*2 + 2]
mov dword [esp + 0xc], eax
cmp word [eax], cx
jne 0x402970
mov edi, dword [esp + 0x10]
push edi
call fcn.0044f44a
add esp, 4
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402ad0
Capabilities:
Get disk information

Disassembly:
sub esp, 0xb0
mov eax, dword [0x487fb0]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebp
push esi
push edi
xor eax, eax
xor ebp, ebp
push 0x7e
lea ecx, [esp + 0x36]
push ebp
push ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov word [esp + 0x3c], ax
call fcn.00451da0
add esp, 0xc
test byte [0x4915a4], 1
jne 0x402b44
or dword [0x4915a4], 1
push str.ZwQueryVolumeInformationFile
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4915a0], eax
movzx edx, word [ebx]
push edx
lea eax, [esp + 0x34]
push str.._c:
push eax
mov edx, 0x80
call fcn.00402ce0
add esp, 0xc
push ebp
push 0x80
push 3
push ebp
push 3
push 0xc0000000
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x402bab
push 1
push 0x18
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
push esi
call dword [0x4915a0]
mov edi, eax
test edi, edi
jl 0x402ba0
mov ebp, dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jge 0x402bcb
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
mov eax, dword [esp + 0xc]
jne 0x402bcd
mov eax, ebp
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0044f3b0
add esp, 0xb0
ret

Function at 0x402df0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
push esi
push 1
push str.SeDebugPrivilege
mov dword [esp + 0xc], 0
xor esi, esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x402e7a
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402e7a
lea ecx, [esp + 8]
push ecx
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x402e7a
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push esi
push esi
push 0x10
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x14]
push esi
push edx
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x402e7a
mov esi, 1
mov eax, dword [esp + 4]
test eax, eax
je 0x402e89
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x1c
ret
Function at 0x4031d0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
xor ebx, ebx
push edi
mov edi, ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
cmp ebp, ebx
je 0x40329e
push esi
movzx eax, ax
push str.RC_DATA
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x403292
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x403292
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x403292
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jbe 0x403292
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40326f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x403292
pop esi
pop edi
mov dword [esp + 8], 1
mov eax, dword [esp + 8]
pop ebp
pop ebx
add esp, 8
ret
push 0
lea ecx, [esp + 0x18]
push ecx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403292
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
pop esi
pop edi
pop ebp
pop ebx
add esp, 8
ret
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x403840
Capabilities:
Create service
Delete file
Delete service
Get common file path
Start service

Disassembly:
sub esp, 0x428
mov eax, dword [0x487fb0]
xor eax, esp
mov dword [esp + 0x424], eax
push ebx
push ebp
push esi
push edi
xor eax, eax
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x236]
push edx
mov word [esp + 0x1c], ax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov word [esp + 0x2e], ax
mov word [esp + 0x238], cx
call fcn.00451da0
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x3a]
push ecx
mov word [esp + 0x3c], ax
call fcn.00451da0
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00450213
add esp, 4
xor esi, esi
lea esp, [esp]
call fcn.00450225
push eax
call fcn.00450213
add esp, 4
call fcn.00450225
and eax, 0x8000001f
jns 0x4038df
dec eax
or eax, 0xffffffe0
inc eax
mov dx, word [eax*2 + str.ABCEDGHIJKLMNOPQRSTRZXC0123456789]
mov word [esp + esi*2 + 0x10], dx
inc esi
cmp esi, 6
jl 0x4038c0
lea eax, [esp + 0x22c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x230]
push edx
lea eax, [esp + 0x2c]
push str._s_s.sys
push eax
mov edx, 0x104
call fcn.00401330
add esp, 0x10
cmp dword [0x48f4e8], 0
push 0
je 0x403948
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea ecx, [esp + 0x24]
push ecx
mov ecx, eax
mov eax, 0x6d
jmp 0x40395a
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea edx, [esp + 0x24]
mov ecx, eax
push edx
mov eax, 0x6c
call fcn.004031d0
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
add esp, 4
push 0xf003f
push 0
push 0
call ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x4039de
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x38]
push eax
push 0
push 3
push 1
push 0xf01ff
lea ecx, [esp + 0x38]
push ecx
mov edx, ecx
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x4039c1
push 0xf01ff
lea eax, [esp + 0x14]
push eax
push edi
call ebp
mov esi, eax
test esi, esi
je 0x4039d7
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test esi, esi
je 0x4039d7
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xf003f
push 0
push 0
call ebx
mov edi, eax
test edi, edi
je 0x403a22
push 0xf01ff
lea ecx, [esp + 0x14]
push ecx
push edi
call ebp
mov esi, eax
test esi, esi
je 0x403a1b
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x434]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0044f3b0
add esp, 0x428
ret
Function at 0x404100
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x78
mov eax, dword [0x487fb0]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
xor edi, edi
push 0x60
lea eax, [esp + 0x1c]
push edi
push eax
mov ebx, ecx
mov esi, edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call fcn.00451da0
add esp, 0xc
cmp esi, edi
je 0x4041e1
cmp ebx, edi
jbe 0x4041e1
push esi
mov eax, ebx
lea esi, [esp + 0x14]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], 0x67452301
mov dword [esp + 0x20], 0xefcdab89
mov dword [esp + 0x24], 0x98badcfe
mov dword [esp + 0x28], 0x10325476
call fcn.004043e0
mov eax, esi
call fcn.004044f0
push 0x21
call fcn.0041005d
mov esi, eax
add esp, 8
xor eax, eax
cmp esi, edi
je 0x4041e3
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], al
mov ebx, esi
jmp 0x4041b0
movzx ecx, byte [esp + edi + 0x68]
push ecx
push str._02x
push ebx
call fcn.00450247
inc edi
add esp, 0xc
add ebx, 2
cmp edi, 0x10
jl 0x4041b0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0044f3b0
add esp, 0x78
ret
xor eax, eax
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044f3b0
add esp, 0x78
ret
Function at 0x406420
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
sub esp, 0xc
push esi
push edi
xor edi, edi
push 1
push ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x406488
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push ebx
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
cmp esi, edi
je 0x406488
push ebp
lea ebp, [esi + 1]
push ebp
call fcn.0041005d
mov edi, eax
add esp, 4
test edi, edi
je 0x406487
push ebp
push 0
push edi
call fcn.00451da0
add esp, 0xc
push 0
push 0
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
pop ebp
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x10
push 2
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
mov ecx, dword [esp + 8]
push ecx
call fcn.0041005d
mov edx, dword [esp + 0xc]
push edx
mov esi, eax
push 0
push esi
call fcn.00451da0
add esp, 0x10
lea eax, [esp + 8]
push eax
push esi
push 0
push 0x10
push 2
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
test eax, eax
je 0x40652c
test esi, esi
je 0x4064d8
push esi
call fcn.0044f44a
add esp, 4
lea edx, [esp + 0xc]
push edx
push 0
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov eax, dword [esp + 0xc]
push eax
call fcn.0041005d
mov ecx, dword [esp + 0x10]
push ecx
mov esi, eax
push 0
push esi
call fcn.00451da0
add esp, 0x10
lea edx, [esp + 0xc]
push edx
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
je 0x406566
test esi, esi
je 0x4065b0
push esi
call fcn.0044f44a
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
add esp, 0xc
ret 4
test esi, esi
je 0x4064d8
mov ecx, dword [esi + 0xc]
push edi
push ecx
call fcn.0045c3b5
add esp, 8
test eax, eax
je 0x40654a
mov esi, dword [esi + 8]
test esi, esi
jne 0x406530
jmp 0x4064d8
mov edx, dword [esi + 0x2c]
mov eax, dword [esp + 0x18]
mov dword [eax], edx
mov ecx, dword [esi + 0x30]
pop edi
mov dword [eax + 4], ecx
mov eax, 1
pop esi
add esp, 0xc
ret 4
test esi, esi
je 0x4065b0
lea ebx, [ebx]
lea eax, [esi + 8]
push edi
push eax
call fcn.0045c3b5
add esp, 8
test eax, eax
je 0x406593
mov esi, dword [esi]
test esi, esi
jne 0x406570
mov eax, dword [esp + 0x10]
pop edi
pop esi
add esp, 0xc
ret 4
mov ecx, dword [esi + 0x194]
mov eax, dword [esp + 0x18]
mov dword [eax], ecx
mov edx, dword [esi + 0x198]
mov dword [eax + 4], edx
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x406630
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 8]
push eax
push 0x101
xor esi, esi
push esi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4066bd
mov eax, dword [esp + 8]
test eax, eax
je 0x4066cc
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 8]
push edx
push esi
push 0x48df70
push esi
push ebx
push eax
call edi
test eax, eax
jne 0x4066bc
mov eax, dword [esp + 8]
test eax, eax
jbe 0x4066bc
add eax, 4
push eax
mov dword [esp + 0xc], eax
call fcn.0041005d
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
push 0
push esi
call fcn.00451da0
mov edx, dword [esp + 0x1c]
add esp, 0x10
lea ecx, [esp + 8]
push ecx
push esi
push 0x48df70
push 0
push ebx
push edx
call edi
pop edi
mov eax, dword [esp + 8]
test eax, eax
je 0x4066cc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret

Function at 0x4066e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
push eax
push 0x101
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40673c
mov eax, dword [esp + 4]
test eax, eax
je 0x40674b
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 4]
push ecx
push 0x48df74
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 4]
test eax, eax
je 0x40674b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
add esp, 0xc
ret

Function at 0x4071e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
push esi
lea eax, [esp + 4]
push eax
push 0x101
xor esi, esi
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407239
mov eax, dword [esp + 4]
test eax, eax
je 0x407248
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
push 0x48df74
push esi
push str.InstallDate
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 4]
test eax, eax
je 0x407248
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
test eax, eax
je 0x40729a
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push edi
push eax
mov dword [esp + 0x1c], esi
call fcn.004501ec
mov edi, eax
add esp, 4
test edi, edi
je 0x407299
push 0x104
call fcn.0041005d
push 0x104
mov esi, eax
push 0
push esi
call fcn.00451da0
push edi
push str._Y__m__d__H:_M:_S
push 0x104
push esi
call fcn.00451036
add esp, 0x20
pop edi
mov eax, esi
pop esi
add esp, 0x14
ret
Function at 0x407430
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
lea eax, [esp + 8]
push eax
push 0x101
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4074df
mov edx, dword [esp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 8]
push ecx
push ebx
push ebx
push ebx
push str.DigitalProductId
push edx
call edi
test eax, eax
jne 0x4074d3
mov eax, dword [esp + 8]
cmp eax, 0x43
jbe 0x4074d3
add eax, 4
push esi
push eax
call fcn.0041005d
mov esi, eax
mov eax, dword [esp + 0x10]
add eax, 4
push eax
push ebx
push esi
call fcn.00451da0
mov edx, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esp + 0xc]
push ecx
push esi
push ebx
push ebx
push str.DigitalProductId
push edx
call edi
test eax, eax
jne 0x4074c9
mov eax, dword [esp + 0xc]
push eax
mov eax, esi
call fcn.004072b0
mov ebx, eax
push esi
call fcn.0044f44a
add esp, 4
pop esi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop ebx
add esp, 8
ret
Function at 0x4074f0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x17c
mov eax, dword [0x487fb0]
xor eax, esp
mov dword [esp + 0x178], eax
test byte [0x4915ac], 1
jne 0x407530
or dword [0x4915ac], 1
push str.RtlGetVersion
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4915a8], eax
push ebx
push 0x110
lea eax, [esp + 0x30]
push 0
push eax
mov dword [esp + 0x34], 0
call fcn.00451da0
xor eax, eax
xor ecx, ecx
push 0x3e
push ecx
lea edx, [esp + 0x152]
push edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov word [esp + 0x154], cx
call fcn.00451da0
add esp, 0x18
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [esp + 4]
cmp ax, 9
je 0x4075b1
mov ebx, 0x20
cmp ax, 6
jne 0x4075b6
mov ebx, 0x40
mov eax, dword [0x4915a8]
test eax, eax
je 0x407715
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], 0x114
call eax
test eax, eax
jne 0x407715
mov eax, dword [esp + 0x2c]
push edi
cmp eax, 5
jne 0x407624
cmp dword [esp + 0x34], 1
jne 0x4076ef
lea eax, [esp + 0x140]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x407600
mov edx, dword [0x47e1e8]
mov cx, word [0x47e1ec]
mov dword [eax], edx
mov word [eax + 4], cx
jmp 0x4076ef
cmp eax, 6
jne 0x4076b3
mov eax, dword [esp + 0x34]
cmp eax, 1
jne 0x407659
lea edi, [esp + 0x140]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x407640
mov edx, dword [0x47e1f0]
mov dword [edi], edx
jmp 0x4076ef
cmp eax, 2
jne 0x407685
lea edi, [esp + 0x140]
add edi, 0xfffffffe
jmp 0x407670
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x407670
mov eax, dword [0x47e1f4]
mov dword [edi], eax
jmp 0x4076ef
cmp eax, 3
jne 0x4076ef
lea eax, [esp + 0x140]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x407694
mov ecx, dword [0x47e1f8]
mov edx, dword [0x47e1fc]
mov dword [eax], ecx
mov dword [eax + 4], edx
jmp 0x4076ef
cmp eax, 0xa
jne 0x4076ef
cmp dword [esp + 0x34], 0
jne 0x4076ef
lea eax, [esp + 0x140]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4076d0
mov ecx, dword [0x47e200]
mov dx, word [0x47e204]
mov dword [eax], ecx
mov word [eax + 4], dx
mov eax, dword [esp + 0x38]
push ebx
push eax
lea ecx, [esp + 0x148]
push ecx
push str.Microsoft_Windows__s__d__d
push 0x490f50
mov edx, 0x208
call fcn.00401330
add esp, 0x14
pop edi
mov ecx, dword [esp + 0x17c]
pop ebx
xor ecx, esp
mov eax, 0x490f50
call fcn.0044f3b0
add esp, 0x17c
ret
Function at 0x40ae30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46dded
mov eax, dword fs:[0]
push eax
sub esp, 0x7f4
mov eax, dword [0x487fb0]
xor eax, esp
mov dword [esp + 0x7ec], eax
push esi
mov eax, dword [0x487fb0]
xor eax, esp
push eax
lea eax, [esp + 0x7fc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x80c]
push eax
lea eax, [esp + 0x10]
push eax
mov esi, ecx
call fcn.0040feb0
push 0
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
push 0x80
push 0x96c80000
mov dword [esp + 0x820], 0
mov ecx, dword [esi + 4]
push 0
push ecx
lea ecx, [esp + 0x30]
call fcn.004108f8
lea ecx, [esp + 0xc]
call fcn.0041046d
lea ecx, [esp + 0xc]
call fcn.00410394
lea edx, [esp + 0xc]
push edx
mov esi, eax
mov dword [esp + 0x808], 0xffffffff
call fcn.0040af10
mov eax, esi
mov ecx, dword [esp + 0x7fc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x7ec]
xor ecx, esp
call fcn.0044f3b0
add esp, 0x800
ret 4
Function at 0x410992
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
xor edi, edi
call esi
test ax, ax
jge 0x4109a8
push 8
pop edi
push 2
call esi
test ax, ax
jge 0x4109b4
or edi, 2
push 1
call esi
test ax, ax
jge 0x4109c0
or edi, 1
push 0x10
call esi
test ax, ax
jge 0x4109cc
or edi, 4
push 0x12
call esi
test ax, ax
jge 0x4109d8
or edi, 0x20
mov eax, edi
pop edi
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
cmp byte [ebp + 0xc], 0
mov ebx, dword [ebp + 8]
je 0x413f0b
mov ecx, dword [esi + 0x84]
cmp eax, ecx
je 0x413f0b
cmp ebx, dword [esi + 0xec]
je 0x413f0b
cmp byte [esi + 0xe4], 0
jne 0x413f0b
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0xec]
cmp ebx, eax
je 0x413fe6
push edi
test eax, eax
je 0x413f6c
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0xec]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x11c]
push 1
xor edi, edi
push edi
push edi
push edi
push str.killfocus
push dword [esi + 0xec]
mov ecx, esi
call fcn.00413e64
mov dword [esi + 0xec], edi
test ebx, ebx
je 0x413fe5
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
cmp eax, esi
jne 0x413fe5
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xdc]
test al, al
je 0x413fe5
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xe8]
test al, al
je 0x413fe5
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [esi + 0xec], ebx
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0xec]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x11c]
push 1
xor eax, eax
push eax
push eax
push eax
push str.setfocus
push dword [esi + 0xec]
mov ecx, esi
call fcn.00413e64
pop edi
pop esi
pop ebx
leave
ret 8