joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461930
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x499bec]
cmp dword [eax + 0x30], 0
je 0x4619da
cmp dword [ebx + 0x94], 0
jne 0x4619d4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4618c0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4619d4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x46199a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4619d4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004186ac
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4619a9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x462538
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x46256d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040448c
jmp 0x46257a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004043f0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4636a4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4636e5
mov eax, esi
call fcn.00449b68
test al, al
je 0x4636e5
mov eax, dword [ebx + 0x84]
call fcn.00449864
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4636e5
push 0
mov eax, dword [ebx + 0x84]
call fcn.00449864
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4640b8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x21c], ebx
mov edi, ecx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x4642a0
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0
push 0x80000000
push 3
push 0
push 2
push 0x80000000
lea edx, [ebp - 0x21c]
xor eax, eax
mov al, byte [ebp - 1]
call fcn.00408bdc
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
mov edx, 0x4642bc
call fcn.004046a8
mov eax, dword [ebp - 0x218]
call fcn.0040485c
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x46426b
mov eax, dword [ebp - 8]
shl eax, 9
mov edx, dword [ebp - 8]
shr edx, 0x17
mov dword [ebp - 0x14], edx
push 0
lea edx, [ebp - 0x14]
push edx
push eax
push esi
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x464265
movzx eax, di
mov ebx, eax
shl ebx, 9
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x214]
push eax
push esi
call sub.kernel32.dll_ReadFile
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
test bl, bl
je 0x4641bc
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x214]
mov ecx, 0x200
call fcn.00402d08
test bl, bl
jne 0x464265
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
push 0
push 0x4642d0
push 0x4642e4
mov eax, dword [ebp - 0x10]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x224]
call fcn.00408cc8
push dword [ebp - 0x224]
push 0x4642f4
push 0x464300
lea edx, [ebp - 0x228]
xor eax, eax
mov al, byte [ebp - 1]
call fcn.00408bdc
push dword [ebp - 0x228]
push 0x464310
lea edx, [ebp - 0x22c]
mov eax, dword [ebp - 8]
call fcn.00408bdc
push dword [ebp - 0x22c]
push 0x464320
lea edx, [ebp - 0x230]
movzx eax, di
call fcn.00408bdc
push dword [ebp - 0x230]
lea eax, [ebp - 0x220]
mov edx, 9
call fcn.0040471c
mov eax, dword [ebp - 0x220]
call fcn.0040485c
push eax
push 0
call sub.user32.dll_MessageBoxA_1
push esi
call sub.kernel32.dll_CloseHandle
test bl, bl
je 0x46427a
movzx eax, di
shl eax, 9
cmp eax, dword [ebp - 0xc]
je 0x46427e
xor eax, eax
jmp 0x464280
mov al, 1
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4642a7
lea eax, [ebp - 0x230]
mov edx, 7
call fcn.004043c0
ret
Function at 0x464328
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x64
add esp, 0xfffff004
push eax
dec eax
jne 0x464331
mov eax, dword [ebp - 4]
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x64020], ebx
mov dword [ebp - 0x64024], ebx
mov dword [ebp - 0x64028], ebx
mov dword [ebp - 0x6402c], ebx
mov dword [ebp - 0x64030], ebx
mov dword [ebp - 0x64018], ebx
mov dword [ebp - 0x6401c], ebx
mov edi, ecx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x464524
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0
push 0x80000000
push 3
push 0
push 2
push 0x80000000
lea edx, [ebp - 0x6401c]
xor eax, eax
mov al, byte [ebp - 1]
call fcn.00408bdc
mov ecx, dword [ebp - 0x6401c]
lea eax, [ebp - 0x64018]
mov edx, 0x464540
call fcn.004046a8
mov eax, dword [ebp - 0x64018]
call fcn.0040485c
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x4644ec
mov eax, dword [ebp - 8]
shl eax, 9
mov edx, dword [ebp - 8]
shr edx, 0x17
mov dword [ebp - 0x14], edx
push 0
lea edx, [ebp - 0x14]
push edx
push eax
push esi
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x4644e6
movzx eax, di
imul ebx, eax, 0x64000
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x64014]
push eax
push esi
call sub.kernel32.dll_ReadFile
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
test bl, bl
je 0x46443d
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x64014]
mov ecx, 0x64000
call fcn.00402d08
test bl, bl
jne 0x4644e6
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
push 0
push 0x464554
push 0x464568
mov eax, dword [ebp - 0x10]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x64024]
call fcn.00408cc8
push dword [ebp - 0x64024]
push 0x464578
push 0x464584
lea edx, [ebp - 0x64028]
xor eax, eax
mov al, byte [ebp - 1]
call fcn.00408bdc
push dword [ebp - 0x64028]
push 0x464594
lea edx, [ebp - 0x6402c]
mov eax, dword [ebp - 8]
call fcn.00408bdc
push dword [ebp - 0x6402c]
push 0x4645a8
lea edx, [ebp - 0x64030]
movzx eax, di
call fcn.00408bdc
push dword [ebp - 0x64030]
lea eax, [ebp - 0x64020]
mov edx, 9
call fcn.0040471c
mov eax, dword [ebp - 0x64020]
call fcn.0040485c
push eax
push 0
call sub.user32.dll_MessageBoxA_1
push esi
call sub.kernel32.dll_CloseHandle
test bl, bl
je 0x4644fe
movzx eax, di
imul eax, eax, 0x64000
cmp eax, dword [ebp - 0xc]
je 0x464502
xor eax, eax
jmp 0x464504
mov al, 1
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46452b
lea eax, [ebp - 0x64030]
mov edx, 7
call fcn.004043c0
ret
Function at 0x466250
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 0x4662a1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x466288
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x466278
jmp 0x4662a1
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 0x466289
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x481748
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x481750
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x481942
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x481958
mov eax, esi
call fcn.0047f5d4
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.004043f0
lea ecx, [ebp - 0x10]
mov edx, 0x48196c
mov eax, esi
call fcn.0047f5d4
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.004043f0
lea ecx, [ebp - 0x14]
mov edx, 0x481984
mov eax, esi
call fcn.0047f5d4
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.004043f0
lea ecx, [ebp - 0x18]
mov edx, 0x4819a0
mov eax, esi
call fcn.0047f5d4
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.004043f0
lea ecx, [ebp - 0x1c]
mov edx, 0x4819bc
mov eax, esi
call fcn.0047f5d4
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.004043f0
lea ecx, [ebp - 0x24]
mov edx, 0x4819d4
mov eax, esi
call fcn.0047f5d4
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.004087b8
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00408d54
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x4819ec
mov eax, esi
call fcn.0047f5d4
mov eax, dword [ebp - 0x28]
call fcn.004790ac
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x4819fc
mov eax, esi
call fcn.0047f5d4
mov eax, dword [ebp - 0x2c]
call fcn.004790ac
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x481a14
mov eax, esi
call fcn.0047f5d4
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00408d54
inc eax
je 0x4818e5
lea ecx, [ebp - 0x34]
mov edx, 0x481a14
mov eax, esi
call fcn.0047f5d4
mov eax, dword [ebp - 0x34]
call fcn.00408d18
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040a35c
fstp qword [ebp - 0x3c]
wait
call fcn.0040a6cc
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x481900
lea ecx, [ebp - 0x40]
mov edx, 0x481a14
mov eax, esi
call fcn.0047f5d4
mov eax, dword [ebp - 0x40]
call fcn.004790ac
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x481a24
mov eax, esi
call fcn.0047f5d4
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.004043f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481949
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004043c0
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.004043c0
ret
Function at 0x48bea4
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x4155a4]
call fcn.00404d58
xor eax, eax
push ebp
push 0x48bfe8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x497810], 0
jne 0x48bef7
mov ecx, dword [0x497994]
mov dl, 1
mov eax, dword [0x407864]
call fcn.0040c524
call fcn.00403d2c
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402f74
mov eax, ebx
call fcn.00404c04
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x48bff8
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405eac
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404c14
test eax, eax
jle 0x48bf8f
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x48bf88
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404624
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.0040460c
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408748
test eax, eax
jne 0x48bf88
mov ebx, 0x15
jmp 0x48bf94
mov ebx, 0x10
jmp 0x48bf94
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x497810]
call fcn.0048bdfc
mov eax, dword [ebp - 8]
call fcn.0048bdfc
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405ec4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48bfef
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004043c0
lea eax, [ebp - 0x10]
mov edx, dword [0x4155a4]
call fcn.00404e28
ret
Function at 0x13820
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0x8000
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
push eax
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
push ecx
push 0
mov edx, dword [ebp - 0xc]
push edx
call sub.ntoskrnl.exe_memset
add esp, 0xc
cmp dword [ebp - 0xc], 0
je 0x13874
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [ebp - 4], eax
jmp 0x13878
xor eax, eax
jmp 0x138b7
cmp dword [ebp - 4], 0xc0000004
jne 0x13895
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov ecx, dword [ebp - 8]
shl ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 4], 0xc0000004
je 0x13834
cmp dword [ebp - 4], 0
jne 0x138a9
mov eax, dword [ebp - 0xc]
jmp 0x138b7
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x13b70
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0x8000
mov dword [ebp - 0xc], 0
call dword [sym.imp.HAL.DLL_KeGetCurrentIrql]
movzx eax, al
test eax, eax
jle 0x13b98
xor eax, eax
jmp 0x13c55
mov ecx, dword [ebp - 4]
push ecx
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x13bb4
xor eax, eax
jmp 0x13c55
push 0
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 5
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xc0000004
jne 0x13be8
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edx, dword [ebp - 4]
shl edx, 1
mov dword [ebp - 4], edx
jmp 0x13bfe
cmp dword [ebp - 8], 0
jge 0x13bfe
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
jmp 0x13c55
cmp dword [ebp - 8], 0xc0000004
je 0x13b98
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
mov edx, 1
test edx, edx
je 0x13c44
cmp dword [ebp + 8], 0
je 0x13c2d
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [ebp + 8]
test eax, eax
je 0x13c2d
jmp 0x13c44
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0
jne 0x13c37
jmp 0x13c44
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax]
mov dword [ebp - 0x10], ecx
jmp 0x13c0d
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x41f980
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542d5a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5a49f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.00519be0
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x41fa40
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], 0x588a00
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x595250
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.0051c845
add esp, 8
mov dword [ebp - 0x24], str.io_error
lea eax, [ebp - 0x24]
push 0x59ad7c
push eax
call fcn.0051f05c
push edi
push esi
call fcn.00519f28
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051b03f
mov esp, ebp
pop ebp
ret 4

Function at 0x427bc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542e86
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5a49f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], 0x59560c
call fcn.0051b48c
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00519e25
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45a9c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1cc
mov eax, dword [0x5a49f0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x5a5da8], 0
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x15c], ebx
jne 0x45a9f6
call fcn.0045cf70
test al, al
je 0x45aa07
mov byte [0x5a5da8], 1
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051b03f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x5b4]
test eax, eax
je 0x45aa28
push 0x400
push eax
call fcn.004ac610
add esp, 8
call fcn.0045cf70
test al, al
jne 0x45a9f6
push esi
push edi
nop word [eax + eax]
mov esi, 2
mov dword [ebp - 0x150], 4
lea eax, [ebp - 0x44]
mov dword [ebp - 0x148], esi
mov dword [ebp - 0x14c], eax
nop
lea eax, [ebp - 0x18c]
push eax
call fcn.00441760
push 1
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x17c], xmm0
movups xmmword [ebp - 0x16c], xmm0
call fcn.0044c6c0
movups xmm1, xmmword [ebp - 0x17c]
add esp, 8
lea ecx, [esi - 1]
movaps xmm0, xmm1
psrldq xmm0, 4
movd eax, xmm0
push eax
movd eax, xmm1
push eax
push 0
push ecx
call fcn.0051bc00
imul esi, dword [ebp - 0x164]
mov edi, eax
lea eax, [ebp - 0x19c]
mov ebx, edx
push eax
mov dword [ebp - 0x154], esi
call fcn.00441760
mov esi, dword [eax + 8]
lea eax, [ebp - 0x1ac]
push eax
call fcn.00441760
mov edx, dword [ebp - 0x148]
add esp, 8
inc edx
mov dword [ebp - 0x158], edx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add ecx, esi
push 0
push edx
adc eax, 0
push eax
push ecx
call fcn.0051bc00
shld edx, eax, 8
shl eax, 8
xor ebx, edx
xor edi, eax
mov dword [ebp - 0x168], ebx
lea eax, [ebp - 0x1bc]
mov dword [ebp - 0x16c], edi
push eax
call fcn.00441760
lea esi, [eax + 8]
lea eax, [ebp - 0x1cc]
push eax
call fcn.00441760
add esp, 8
mov ecx, dword [eax]
add ecx, dword [esi]
mov eax, dword [ebp - 0x148]
mov esi, dword [ebp - 0x158]
add eax, 2
imul ecx, eax
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x148], esi
shl ecx, 0x10
xor eax, ecx
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x14c]
movups xmm0, xmmword [ebp - 0x16c]
movups xmmword [eax], xmm0
add eax, 0x10
sub dword [ebp - 0x150], 1
mov dword [ebp - 0x14c], eax
jne 0x45aa50
movsd xmm0, qword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
lea eax, [ebp - 0x44]
sub esp, 8
movsd qword [esp], xmm0
push 0x40
push eax
call fcn.004ac350
add esp, 0x10
call fcn.0045cf70
test al, al
je 0x45aa30
lea eax, [ebp - 0x144]
mov byte [ebp - 0x144], 0
push 0x100
push eax
call fcn.004ac540
add esp, 8
cmp byte [ebp - 0x144], 0
pop edi
pop esi
je 0x45abe5
lea eax, [ebp - 0x144]
push 0x400
push eax
call fcn.004ac610
add esp, 8
call fcn.0045cf70
test al, al
jne 0x45a9f6
push 0x54a874
push dword [ebp - 0x15c]
call fcn.0044ca50
add esp, 8
call fcn.0045cf70
xor edx, edx
mov ecx, 0x23
test al, al
pop ebx
cmovne ecx, edx
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051b03f
mov esp, ebp
pop ebp
ret
Function at 0x401a10
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push str.NcrOdometerStartupService
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x401a75
mov ecx, dword [esp + 0x28]
push 0xa
push 0x14
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.MSVCR90.dll__itoa_s]
mov ecx, dword [esp + 0x34]
add esp, 0x10
push 0
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push ecx
push 1
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [esp + 0x1c]
pop esi
xor ecx, esp
call fcn.00401d82
add esp, 0x1c
ret
Function at 0x4028b8
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4028f5
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402915
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404168
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x403018
Capabilities:
Query or enumerate registry value

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

Function at 0x403d7c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48a04c], 0
je 0x403ddd
cmp word [0x48a220], 0xd7b2
jne 0x403da5
cmp dword [0x48a228], 0
jbe 0x403da5
mov eax, 0x48a21c
call dword [0x48a238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48706c
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 0x403e04
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x487030], 0
jne 0x403df9
push 0
push 0x487064
push 0x48706c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret