joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f36d0
Capabilities:
Encode data using xor

Disassembly:
cmp dword [eax - 0x5d], ebx
aad 0xfb
xchg edx, eax
pop edi
imul ebp, dword [eax + 0x54], 0xa7a090a5
fist dword [ecx]
jmp 0x4f3695
mov al, byte [0xeb11dba7]
cli
out dx, eax
wait
invalid
jecxz 0x4f373c
mov edx, 0x93fad743
cmp esp, ecx
imul ebp, dword [eax - 0xb0d3ae4], 0xfffffff6
xor ch, cl
lea ebp, [ecx]
push esp
jb 0x4f3689
cmp cl, byte [ebp - 0x26]
aam 0xb5
inc ebx
cli
inc edx
imul esp, dword [edx + 0x16212f6b], 0xe6bcb691
out 0x61, al
imul ebp, dword [edi], 0x21
push ss
xchg ecx, eax
mov dh, 0xbc
out 0xe6, al
popal
aam 0x87
inc ebp
scasd eax, dword es:[edi]
push es
pop esi
inc edx
mov ebx, 0x55070ed4
cmp edx, dword [eax]
loop 0x4f36f1
sbb al, 0x45
cmp dword [edx], esp
cmp edx, ecx
add byte [edi - 0x64759733], 0x9f
cmp eax, 0x4c8556ed
mov ch, 0xd2
ret 0x9c0a
or byte [edx + 0x165b7ea0], dl
sbb al, byte [ecx + 0x47]
xchg edx, eax
mov al, byte [0x1a165b7e]
inc ecx
inc edi
xor dword [ebx + 0x3a], esi
push 0x72713cbf
or dword [ecx + 0x7b424b54], ebx
push eax
or edi, dword [ebx + 0x7b]
sbb al, 0xe8
test al, 0x8d
arpl word [ebx], cx
mov edx, 0x18755f23
adc ebx, dword [esi - 0x1c]
dec ecx
adc byte [ebp + 0x17], 0x2c
test byte [edx], bl
salc
jbe 0x4f373b
cmp eax, 0x3893d3a1
inc esi
dec esi
xchg edi, eax
pop esp
mov ebp, 0xa695b284
ret

Function at 0x53e240
Capabilities:
Encode data using xor

Disassembly:
and ebx, esp
cld
sar dword [edx + 0x53a5c864], 1
std
scasd eax, dword es:[edi]
adc byte [0xdd687738], dh
pop edx
adc edi, dword [edx + 0x1e0e4345]
push 0xba135add
inc ebp
inc ebx
push cs
push ds
movsd dword es:[edi], dword [esi]
push ss
jle 0x53e207
dec edi
mov esi, 0xa215c99c
add dword [edi], edi
aas
or al, dh
clc
mov al, 0x2d
js 0x53e21b
mov al, byte [0x106d8872]
inc esp
mov bh, 0xec
mov ecx, 0xa66d730a
cmpsb byte [esi], byte es:[edi]
ror byte ss:[edx], 0x55
fdivr qword [esi + edx*8 + 0x48]
wait
sar dh, cl
xlatb
xchg ebp, eax
pushal
cdq
push edx
push 0xdc5e49d4
sub dword [eax + 0x64538ec2], 0xffffffb2
sub al, 0xe2
mov eax, 0x94a67d57
aam 0x49
pop esi
fadd qword [ebx + 0x538ec2a8]
mov dl, 0x2c
loop 0x53e1f3
push edi
jge 0x53e1e4
xchg esp, eax
idiv byte [eax]
arpl word [esi + 0x28], sp
dec esp
sbb byte [ebp - 0x49], cl
xchg dword [ecx], eax
xchg byte [ebx + 0x76a86fd9], dl
fadd qword [esp + esi*2 - 0x766ac94a]
ret
cmp byte [ebx + 0x66], ah
sub byte [eax + ebx + 0x4d], cl
mov bh, 0x87
add dword [esi - 0x5790266d], eax
jbe 0x53e22d
test byte [esi + esi*4 + 0x36], dh
xchg ebp, eax
mov ebx, eax
pop ebx
pop esp
cli
nop
invalid
Function at 0x6579fd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6603b8
cmp edx, dword [eax]
je 0x657a1f
add eax, 8
inc ecx
cmp eax, 0x660448
jl 0x657a10
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6603b8]
jne 0x657b4d
mov eax, dword [0xa5cda4]
cmp eax, 1
je 0x657b27
test eax, eax
jne 0x657a50
cmp dword [0x6602e4], 1
je 0x657b27
cmp edx, 0xfc
je 0x657b4d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x657a87
lea eax, [ebp - 0x1a4]
push 0x65ca80
push eax
call fcn.006583e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00658870
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x657aca
lea eax, [ebp - 0x1a4]
push eax
call fcn.00658870
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65ca7c
push edi
call fcn.0065a740
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x65ca60
push eax
call fcn.006583e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.006583f0
lea eax, [ebp - 0xa0]
push 0x65ca5c
push eax
call fcn.006583f0
push dword [esi + 0x6603bc]
lea eax, [ebp - 0xa0]
push eax
call fcn.006583f0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x65ca34
push eax
call fcn.0065a6b4
add esp, 0x2c
pop edi
jmp 0x657b4d
lea eax, [ebp + 8]
lea esi, [esi + 0x6603bc]
push 0
push eax
push dword [esi]
call fcn.00658870
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 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rdata
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x432072
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x1ed256b1
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x432060
nop
mov eax, section..text
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0xe114cd3
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x10007b80
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebx, esp
call fcn.10007b97

Function at 0x1000a240
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push esi
push edi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebx, esp
call fcn.1000a257

Function at 0x1000e9b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b6246
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x100f51d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea eax, [esi + 8]
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov dword [eax], 0
add eax, 4
mov dword [ebp - 0x18], eax
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov byte [eax + 0x18], cl
mov dword [ebp - 4], 2
mov dword [esi], vtable.CRapidDigest.0
mov dword [esi + 4], vtable.CRapidDigest.1.0
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], ecx
mov dword [ebp - 4], 3
mov eax, dword [0x100f9bdc]
add eax, 8
mov dword [esi], vtable.ATL::CComObject_class_CRapidDigest_.1.0
push eax
mov dword [esi + 4], vtable.ATL::CComObject_class_CRapidDigest_.0
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x1000ea90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b6296
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x100f51d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea eax, [esi + 8]
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov dword [eax], 0
add eax, 4
mov dword [ebp - 0x18], eax
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov byte [eax + 0x18], cl
mov dword [ebp - 4], 2
mov dword [esi], vtable.CSerialDigest.0
mov dword [esi + 4], vtable.CSerialDigest.1.0
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], ecx
mov dword [ebp - 4], 3
mov eax, dword [0x100f9bdc]
add eax, 8
mov dword [esi], vtable.ATL::CComObject_class_CSerialDigest_.1.0
push eax
mov dword [esi + 4], vtable.ATL::CComObject_class_CSerialDigest_.0
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10010630
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x10010645
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x10010650
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10010650
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x10011d60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b6886
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x100f51d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov byte [ebp - 4], 1
push 0x60
push 0
push edi
mov ebx, dword [0x100be420]
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x10011e0c
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x10011e0c
call fcn.1000ff80
mov edi, eax
jmp 0x10011f41
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x10011e2f
call fcn.1000ff80
jmp 0x10011f34
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x10011e4d
call fcn.1000ff80
jmp 0x10011f34
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x10011e6e
mov edi, 0x8007000e
jmp 0x10011f36
mov byte [ebp - 4], 2
mov ecx, 2
mul ecx
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x434], edx
test edx, edx
ja 0x10011f85
jb 0x10011e98
cmp eax, 0xffffffff
ja 0x10011f85
cmp eax, 0x400
jbe 0x10011eb4
push eax
lea ecx, [ebp - 0x418]
call fcn.1000ff50
mov dword [ebp - 4], 1
jmp 0x10011ee8
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
jmp 0x10011ee8
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x10011ef9
mov edi, 0x8007000e
jmp 0x10011f36
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x10011f14
call fcn.1000ff80
jmp 0x10011f34
xor edx, edx
mov eax, dword [ebp - 0x418]
mov word [eax + ecx*2], dx
push dword [ebp + 0x14]
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.10011bc0
mov edi, eax
test esi, esi
je 0x10011f41
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10011f5e
lea ecx, [ebp - 0x418]
call fcn.1000ff30
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10071699
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.10010ca0
int3
Function at 0x10012560
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100125b9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100125b9
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x100125a8
cmp esi, edx
jae 0x100125b9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x10012596
cmp esi, edx
jae 0x100125b9
cmp word [esi], 0
je 0x100125b9
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x10012c50
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x100f51d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x10012e02
test edi, edi
je 0x10012e02
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0
push 0
push eax
mov dword [ebp - 0x218], 1
call fcn.10097030
push ebx
push str.SOFTWARE360SafeLiveUpupdatecfg
push 0x100e37fc
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 0x410
push 0x103
push eax
call fcn.100124b0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x210]
add esp, 0x20
push eax
push 0x20219
push 0
lea eax, [ebp - 0x20c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x10012d47
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x10012d2a
lea ecx, [ebp - 0x214]
push ecx
push edi
lea ecx, [ebp - 0x218]
push ecx
push 0
push 0x100e38b4
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x210]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10012d41
mov eax, dword [ebp - 0x214]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10071699
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp byte [ebp + 0x14], 0
je 0x10012e02
lea eax, [ebp - 0x210]
push eax
push 0x20219
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x10012e02
lea eax, [ebp - 0x214]
mov dword [ebp - 0x218], 1
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 0x206
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push str.Path
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xe
push str.updatecfg.ini
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1009cc3c
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
push 0x208
push edi
push 0
push 0x100e38b4
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10071699
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10071699
mov esp, ebp
pop ebp
ret
Function at 0x10013250
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b6980
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x100f51d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, edx
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov esi, dword [ebp + 0x18]
or esi, 0xf003f
mov ecx, 0x37
call fcn.10012b40
push 0
test eax, eax
je 0x100132c2
lea ecx, [ebp - 0x14]
push ecx
push 0
push esi
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call eax
jmp 0x100132db
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
jne 0x1001336c
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1001336c
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
sub esp, 0xc
call fcn.10012c10
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
je 0x10013337
mov esi, dword [ebp - 0x14]
mov ecx, 0x45
call fcn.10012b40
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 3
push 0
push str.Blob
push esi
test eax, eax
je 0x1001332c
call eax
jmp 0x10013332
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov dword [ebp - 0x18], esi
mov edi, dword [ebp - 0x14]
mov ecx, 0x46
call fcn.10012b40
push edi
test eax, eax
je 0x10013366
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100161d0
Capabilities:
Get file size
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
push ebx
mov ebx, ecx
mov dword [esp + 0xc], 0
mov eax, edx
mov dword [esp + 0x1c], eax
push esi
push edi
cmp ebx, 0xffffffff
je 0x100163b9
test eax, eax
je 0x100163b9
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100163b9
mov edi, dword [ebp + 8]
mov dword [eax], 0
test edi, edi
jne 0x1001621f
lea eax, [edi + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
push 1
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x34]
push eax
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x100163b9
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x100163b9
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x34]
jl 0x100163b9
jg 0x1001627f
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x30]
jb 0x100163b9
call fcn.10016140
neg eax
sbb eax, eax
and eax, 0x18000000
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [esp + 0x58]
xor edx, edx
push 0
push esi
push dword [esp + 0x3c]
lea ecx, [esi + edi]
mov eax, ecx
div esi
push dword [esp + 0x3c]
sub ecx, edx
add ecx, esi
mov dword [esp + 0x1c], ecx
call fcn.100b57c0
push 0
push esi
push edx
push eax
call fcn.10071660
mov ecx, eax
mov esi, edx
mov edx, dword [esp + 0x28]
mov eax, edx
sub eax, ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
sbb eax, esi
mov dword [esp + 0x10], ecx
xor esi, esi
cmp esi, eax
jl 0x10016301
jg 0x100162fb
mov esi, dword [esp + 0xc]
cmp esi, dword [esp + 0x18]
jbe 0x10016305
mov esi, edx
sub esi, ecx
jmp 0x10016305
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
push 0
push edx
push dword [esp + 0x34]
or eax, 2
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x100163ae
push 0
push esi
push dword [esp + 0x18]
push dword [esp + 0x2c]
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov esi, eax
test esi, esi
je 0x100163a4
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
sub edx, ecx
mov eax, dword [esp + 0x2c]
sbb eax, dword [esp + 0x34]
test eax, eax
jg 0x10016365
jl 0x1001635f
cmp edx, edi
jae 0x10016365
mov edi, dword [esp + 0x28]
sub edi, ecx
sub ecx, dword [esp + 0x10]
mov edx, edi
add ecx, esi
push edi
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.10010090
add esp, 8
lea eax, [esp + 0x30]
push 1
push eax
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1001639d
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], 1
mov dword [eax], edi
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10016590
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100f51d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100f9eb0]
mov byte [ebp - 0x20d], 0x40
push ebx
mov ebx, ecx
test eax, eax
jne 0x10016670
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.10097030
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0xf5
ja 0x10016652
push esi
push edi
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x100165f4
mov eax, dword [0x100e3d78]
mov dword [edi], eax
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10016610
mov ecx, 6
mov esi, str.Netapi32.dll
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x20c]
movsw word es:[edi], word [esi]
call fcn.10016930
pop edi
pop esi
test eax, eax
je 0x10016652
push str.Netbios
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10016652
mov dword [0x100f9eb0], eax
jmp 0x10016657
mov eax, dword [0x100f9eb0]
test eax, eax
jne 0x10016670
mov al, byte [ebp - 0x20d]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10071699
mov esp, ebp
pop ebp
ret
push ebx
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10071699
mov esp, ebp
pop ebp
ret
Function at 0x1001d210
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x100f51d4]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, edx
test ebx, ebx
je 0x1001d376
lea ecx, [esp + 0x10]
xor eax, eax
push ecx
push 0
push 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [esi]
push 0
push esi
call dword [eax + 0x14]
test eax, eax
jne 0x1001d376
cmp dword [esp + 0x10], 0xffffffff
je 0x1001d376
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [esi]
push ecx
push 0x40
lea ecx, [esp + 0x20]
push ecx
push esi
call dword [eax + 0xc]
test eax, eax
js 0x1001d376
cmp dword [esp + 0xc], 0x40
jne 0x1001d376
mov eax, 0x5a4d
cmp word [esp + 0x18], ax
jne 0x1001d376
mov edx, dword [esp + 0x54]
sub esp, 8
mov ecx, esi
call fcn.1001ebf0
cmp eax, 0xffffffff
je 0x1001d376
mov eax, dword [esi]
lea ecx, [esp + 0xc]
push ecx
push 0xf8
push edi
push esi
mov dword [esp + 0x1c], 0
call dword [eax + 0xc]
test eax, eax
js 0x1001d376
cmp dword [esp + 0xc], 0xf8
jne 0x1001d376
cmp dword [edi], 0x4550
jne 0x1001d376
movzx eax, word [edi + 0x18]
mov edx, 0x10b
mov ecx, eax
cmp ax, dx
je 0x1001d362
mov eax, 0x20b
cmp cx, ax
jne 0x1001d376
mov edx, dword [esp + 0x54]
sub esp, 8
mov ecx, esi
call fcn.1001ebf0
cmp eax, 0xffffffff
je 0x1001d376
mov eax, dword [esi]
lea ecx, [esp + 0xc]
push ecx
push 0x108
push ebx
push esi
mov dword [esp + 0x1c], 0
call dword [eax + 0xc]
test eax, eax
js 0x1001d376
cmp dword [esp + 0xc], 0x108
jne 0x1001d376
cmp dword [ebx], 0x4550
jne 0x1001d376
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.10071699
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.10071699
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x5c]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10071699
mov esp, ebp
pop ebp
ret