joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459385
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x48dc38]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x30], edx
push esi
push 0x80
push 3
push esi
push 7
push SysReAllocString
push ecx
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4593ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4593dd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x45948c
mov esi, 0x80004005
jmp 0x45948c
push esi
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], esi
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45942a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x45941d
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4594a9
mov esi, 0x80004005
jmp 0x4594a9
cmp dword [ebp - 0x2c], 0x24
je 0x459437
mov esi, 0x8007001e
jmp 0x4594a9
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
cmp ecx, eax
je 0x45945a
test ecx, ecx
jne 0x4594a4
cmp eax, 0xb0c50000
je 0x45945a
cmp eax, 0xb0c50001
je 0x45945a
cmp eax, 0xb0c50002
jne 0x4594a4
mov edx, dword [ebp + 8]
test edx, edx
je 0x459477
mov ecx, esi
mov eax, dword [edx + ecx*4]
lea edx, [ebp - 0x24]
cmp eax, dword [edx + ecx*4]
mov edx, dword [ebp + 8]
jne 0x4594a4
inc ecx
cmp ecx, 4
jne 0x459463
test ebx, ebx
je 0x459487
mov eax, dword [ebx]
cmp eax, 0xffffffff
jne 0x45949f
mov eax, dword [ebp - 0x14]
mov dword [ebx], eax
mov eax, dword [ebp - 0x34]
mov dword [eax], edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047c8b0
leave
ret 0xc
cmp eax, dword [ebp - 0x14]
je 0x459487
mov esi, 0x8007000d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x45948c
Function at 0x4594b8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x48dc38]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x2c], 0
push ebx
push esi
push edi
mov edi, ecx
push ecx
mov dword [ebp - 0x34], edi
mov eax, dword [edi + 0x10]
mov ecx, dword [edi]
push dword [eax + 0xc]
push dword [eax + 8]
call fcn.0047b0cc
mov ebx, eax
test ebx, ebx
js 0x4595d8
push 0
lea eax, [ebp - 0x2c]
push eax
push 0x24
pop esi
push esi
lea eax, [ebp - 0x28]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x459532
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x459522
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
js 0x4595d8
mov ebx, 0x80004005
jmp 0x4595d8
cmp dword [ebp - 0x2c], esi
je 0x459541
mov ebx, 0x8007001e
jmp 0x4595d8
push dword [ebp - 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [ebp - 0x30], edx
test edx, edx
jne 0x459563
mov ebx, 0x8007000e
jmp 0x4595d8
push 9
pop ecx
lea esi, [ebp - 0x28]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
and dword [ebp - 0x2c], 0
mov edi, dword [ebp - 0x34]
push 0x24
pop esi
push 0
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x10]
sub eax, esi
push eax
lea eax, [esi + edx]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4595b2
add esi, dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 0
mov edx, dword [ebp - 0x30]
jne 0x459577
cmp esi, dword [ebp - 0x10]
je 0x4595ab
mov ebx, 0x8007001e
jmp 0x4595d0
mov ecx, edx
mov dword [edi + 0x14], ecx
jmp 0x4595d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x4595c9
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
js 0x4595d0
mov ebx, 0x80004005
mov ecx, dword [ebp - 0x30]
call fcn.004585b2
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047c8b0
leave
ret
Function at 0x459798
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0xc], ecx
push 0xa00000
push eax
mov edi, edx
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x4597d4
mov esi, 0x8007000e
jmp 0x459965
mov ecx, dword [ebp + 8]
lea edx, [ebp - 4]
call fcn.0047afa1
mov esi, eax
test esi, esi
js 0x459945
mov ecx, dword [ebp - 4]
call fcn.00457fb3
mov esi, eax
test esi, esi
js 0x459945
push 0
push 0x8000080
push 2
push 0
push 5
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x459844
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x459834
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x459945
mov esi, 0x80004005
jmp 0x459945
push ecx
push dword [edi + 0x24]
mov ecx, ebx
push dword [edi + 0x20]
call fcn.0047b0cc
mov esi, eax
test esi, esi
js 0x45993e
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x459920
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x459920
mov edx, dword [ebp - 0xc]
push ecx
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 8]
add ecx, dword [edi + 0x18]
mov eax, dword [eax + 0xc]
adc eax, dword [edi + 0x1c]
push eax
push ecx
mov ecx, dword [edx]
call fcn.0047b0cc
mov esi, eax
test esi, esi
js 0x45993e
xor eax, eax
xor edx, edx
mov ecx, dword [edi + 0x20]
sub ecx, eax
mov eax, dword [edi + 0x24]
sbb eax, edx
test eax, eax
jb 0x4598c9
ja 0x4598c2
cmp ecx, 0xa00000
jbe 0x4598c9
mov eax, 0xa00000
jmp 0x4598cf
mov eax, dword [edi + 0x20]
sub eax, dword [ebp - 8]
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
and dword [ebp - 0x10], 0
push 0
push ecx
push eax
mov eax, dword [ebp - 0xc]
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x459920
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
mov edx, esi
mov ecx, ebx
call fcn.0047b10f
mov esi, eax
test esi, esi
js 0x45993e
mov eax, dword [ebp - 8]
xor edx, edx
add eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
cmp edx, dword [edi + 0x24]
ja 0x45993e
jb 0x4598aa
cmp eax, dword [edi + 0x20]
jae 0x45993e
jmp 0x4598aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x459937
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x45993e
mov esi, 0x80004005
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x18]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 4], 0
je 0x459965
mov ecx, dword [ebp - 4]
call fcn.004585b2
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x45ad76
Capabilities:
Get disk information

Disassembly:
push 0x224
mov eax, 0x489d65
call fcn.0047ceef
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x230], edi
mov eax, dword [0x4124bc]
xor ebx, ebx
mov dword [ebp - 0x18], eax
mov ax, word [0x4124c0]
mov word [ebp - 0x14], ax
mov ax, word [edi]
push 0x208
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x220]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x45ae39
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call dword [sym.imp.WDSCORE.dll_CurrentIP]
mov esi, eax
lea eax, [ebp - 0x18]
push ebx
push eax
push 0x41251c
push 0x3000000
call fcn.00459d8f
add esp, 0x10
xor ecx, ecx
push ecx
push ecx
push edi
push esi
push 0x4124c8
push 0x412368
push 0x144
push ecx
push 0x41203c
push ecx
push eax
call dword [sym.imp.WDSCORE.dll_WdsSetupLogMessageW]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x45af0d
xor eax, eax
lea edx, [edi + 4]
lea ecx, [ebp - 0x220]
mov word [ebp - 0x1a], ax
call fcn.0043a318
mov dword [ebp - 0x224], eax
mov dword [ebp - fcn.0045a840], 0x402a04
lea eax, [ebp - 0x22c]
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x22c], ebx
call fcn.0045a7f0
test al, al
je 0x45aee6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call dword [sym.imp.WDSCORE.dll_CurrentIP]
mov esi, eax
mov eax, dword [ebp - 0x230]
push ebx
add eax, 4
push eax
lea eax, [ebp - 0x220]
push eax
push 0x412544
push 0x3000000
call fcn.00459d8f
add esp, 0x14
xor ecx, ecx
push ecx
push ecx
push edi
push esi
push 0x4124c8
push 0x412368
push 0x14f
push ecx
push 0x41203c
push ecx
push eax
call dword [sym.imp.WDSCORE.dll_WdsSetupLogMessageW]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x45aef6
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x224], ebx
mov bl, 1
mov dword [esi], eax
lea ecx, [ebp - 0x228]
mov dword [ebp - fcn.0045a840], 0x402a04
call fcn.0045a730
mov al, bl
call fcn.0047cea1
ret
Function at 0x45e833
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 4], ebx
je 0x45e856
push dword [esi + 4]
mov eax, dword fs:[0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov dword [esi + 4], ebx
cmp dword [esi + 8], ebx
je 0x45e871
push dword [esi + 8]
mov eax, dword fs:[0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov dword [esi + 8], ebx
cmp dword [esi + 0xc], ebx
je 0x45e88c
push dword [esi + 0xc]
mov eax, dword fs:[0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov dword [esi + 0xc], ebx
cmp dword [esi + 0x10], ebx
je 0x45e8a7
push dword [esi + 0x10]
mov eax, dword fs:[0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov dword [esi + 0x10], ebx
cmp dword [esi + 0x14], ebx
je 0x45e8c2
push dword [esi + 0x14]
mov eax, dword fs:[0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov dword [esi + 0x14], ebx
push 0x20
pop eax
mov byte [esi], bl
inc esi
sub eax, 1
jne 0x45e8c5
pop esi
pop ebx
ret
Function at 0x45f518
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push esi
mov esi, ecx
cmp dword [esi + 8], 0xffffffff
mov dword [esi], fcn.00419ee0
mov dword [esi + 4], 0x402b78
je 0x45f53d
push dword [esi + 8]
call dword [sym.imp.ntdll.dll_NtClose]
or dword [esi + 8], 0xffffffff
cmp dword [esi + 0xc], 0
je 0x45f55b
push dword [esi + 0xc]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
and dword [esi + 0xc], 0
mov eax, 0x40271c
mov dword [esi + 4], eax
mov dword [esi], eax
pop esi
ret

Function at 0x45f56d
Capabilities:
Access peb ldr_data
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x48dc38]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
lea ebx, [edi + 8]
cmp dword [ebx], 0xffffffff
je 0x45f59a
push dword [ebx]
call dword [sym.imp.ntdll.dll_NtClose]
or dword [ebx], 0xffffffff
push esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 0x24
lea eax, [ebp - 0xc]
mov dword [ebp - 0x40], 0x18
push 5
mov dword [ebp - 0x38], eax
xor ecx, ecx
lea eax, [edi + 0x18]
mov dword [ebp - 0x3c], ecx
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x34], 0x40
push eax
push 0x100001
push ebx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov esi, eax
test esi, esi
js 0x45f620
push 5
push 0x18
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x18]
push eax
push dword [ebx]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov esi, eax
test esi, esi
js 0x45f620
mov eax, dword [ebp - 0x20]
push eax
mov dword [edi + 0x10], eax
mov eax, dword fs:[0x30]
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [edi + 0xc], eax
test eax, eax
jne 0x45f620
mov esi, 0xc0000017
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047c8b0
leave
ret 8

Function at 0x45f8b1
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x45f8dc
mov eax, dword fs:[0x30]
push edi
push dword [esi + 4]
xor edi, edi
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov dword [esi + 4], edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
pop edi
pop esi
ret
Function at 0x462be0
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov eax, ecx
mov dword [esp + 8], eax
push esi
push edi
test eax, eax
je 0x462c7c
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x462c7c
test edx, edx
je 0x462c7c
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x462c7c
push dword [ebp + 0xc]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
push ecx
push ecx
mov ecx, eax
call fcn.00462b9e
mov esi, eax
cmp esi, 1
jne 0x462c3b
push 0x14
pop eax
mov byte [ebx], 0
inc ebx
sub eax, 1
jne 0x462c30
jmp 0x462c78
test esi, esi
js 0x462c78
mov edx, dword [esp + 0x10]
lea esi, [esp + 0x18]
mov ecx, dword [esp + 0x14]
sub esp, 0x10
mov edi, esp
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0045f2f0
cmp dword [esp + 0xc], 0
mov esi, eax
je 0x462c78
push dword [esp + 0xc]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
jmp 0x462c81
mov eax, 0x80070057
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x473d34
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edx, ebx
cmp dword [esi + 4], ebx
jbe 0x473d5a
mov ecx, ebx
mov eax, dword [esi + 8]
lea ecx, [ecx + 0x5c]
inc edx
mov dword [eax + ecx - 0x48], ebx
mov dword [eax + ecx - 0x54], ebx
cmp edx, dword [esi + 4]
jb 0x473d46
push dword [esi + 8]
mov eax, dword fs:[0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov edi, dword [esi + 0xc]
mov dword [esi + 8], ebx
test edi, edi
je 0x473d8d
mov ecx, edi
call fcn.00473d34
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov dword [esi + 0xc], ebx
pop esi
pop ebx
ret

Function at 0x47843c
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
mov edi, ebx
shr edi, 2
lea edx, [ecx + edi*4]
neg edi
je 0x478478
imul eax, dword [edx + edi*4], 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, esi
rol eax, 0xd
imul esi, eax, 5
sub esi, 0x19ab949c
add edi, 1
jne 0x478455
mov eax, ebx
xor ecx, ecx
and eax, 3
sub eax, 1
je 0x47849e
sub eax, 1
je 0x478495
sub eax, 1
jne 0x4784b4
movzx ecx, byte [edx + 2]
shl ecx, 0x10
movzx eax, byte [edx + 1]
shl eax, 8
xor ecx, eax
movzx eax, byte [edx]
xor eax, ecx
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor esi, eax
xor esi, ebx
mov eax, esi
shr eax, 0x10
xor eax, esi
imul ecx, eax, 0x85ebca6b
pop edi
pop esi
pop ebx
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0xc2b2ae35
mov eax, ecx
shr eax, 0x10
xor eax, ecx
pop ebp
ret 4
Function at 0x47b10f
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
mov dword [ebp - 8], edx
push edi
mov edi, esi
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 8], esi
jbe 0x47b173
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
mov eax, dword [ebp + 8]
sub eax, edi
push eax
lea eax, [edi + edx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x47b155
add edi, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
cmp edi, dword [ebp + 8]
jb 0x47b128
jmp 0x47b173
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x47b16c
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x47b173
mov esi, 0x80004005
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x47b17c
mov dword [eax], edi
pop edi
mov eax, esi
pop esi
leave
ret 8

Function at 0x47b4be
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x48dc38]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20
lea eax, [ebp - 0x44]
mov esi, 0xc04
push eax
push 8
push 0x404
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x47b50c
push 3
lea eax, [ebp - 0x44]
push 0x418e00
push eax
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffff800
add esi, eax
mov ecx, dword [ebp - 4]
mov ax, si
xor ecx, ebp
pop esi
call fcn.0047c8b0
leave
ret
Function at 0x47cfe0
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x48c010
call fcn.0047d2cc
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x47d040
cmp eax, 0xffffffff
je 0x47d040
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x47d039
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x47d039
cmp edx, 0x10000000
jae 0x47d039
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x47d036
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x47d0b0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x47d0ee
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x47d0e6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x47d0f0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x47d0d6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x47d1d0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47d1ff
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47d1ff
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x480b9a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 0x64
pop esi
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 4
push eax
push 0x20019
xor edi, edi
push edi
push 0x4054f8
push SysReAllocString
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x480bf8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push edi
push edi
push 0x40553c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x480bf8
cmp dword [ebp - 8], esi
jb 0x480bf8
mov esi, dword [ebp - 8]
cmp dword [ebp - 4], edi
je 0x480c06
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x48593b
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, ebx
push edi
mov dword [ebp - 8], esi
cmp dword [ebp + 8], ebx
jne 0x485964
mov eax, 0x80070057
push eax
mov dword [ebp - 4], eax
call fcn.004314fa
jmp 0x485a9b
cmp dword [ebp + 0xc], ebx
je 0x485951
lea eax, [ebp - 8]
push eax
push ebx
push 0x405ce4
push dword [ebp + 8]
call fcn.004307e7
mov dword [ebp - 4], eax
test eax, eax
jns 0x485990
push eax
call fcn.004314fa
mov esi, dword [ebp - 8]
jmp 0x485a9b
mov esi, dword [ebp - 8]
push esi
call fcn.004380e4
test eax, eax
jne 0x485a12
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
test eax, eax
jle 0x4859b5
movzx eax, ax
or eax, 0x80070000
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call sub.WDSCORE.dll_CurrentIP
push dword [ebp - 4]
mov edi, eax
push esi
push 0x405d80
push 0x2000000
call fcn.00459d8f
add esp, 0x10
xor ecx, ecx
push ecx
push ecx
push ebx
push edi
push 0x405cf8
push 0x405778
push 0x198
push ecx
push 0x41203c
push ecx
push eax
call sub.WDSCORE.dll_WdsSetupLogMessageW
mov edi, dword [ebp - 4]
test edi, edi
jns 0x485a9e
push edi
call fcn.004314fa
jmp 0x485a9e
push ebx
push ebx
mov edi, 0x405dc8
push edi
push esi
call fcn.0043a0cd
test eax, eax
je 0x485a96
push esi
push 0xffffffffffffffff
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x485a8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call sub.WDSCORE.dll_CurrentIP
push 0x405df8
push 0x2000000
mov edi, eax
call fcn.00459d8f
pop ecx
pop ecx
xor ecx, ecx
push ecx
push ecx
push ebx
push edi
push 0x405cf8
push 0x405778
push 0x1a2
push ecx
push 0x41203c
push ecx
push eax
call sub.WDSCORE.dll_WdsSetupLogMessageW
mov eax, 0x80070490
push eax
mov dword [ebp - 4], eax
call fcn.004314fa
mov edi, 0x80070490
jmp 0x485a9e
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
jmp 0x485a9b
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov edi, dword [ebp - 4]
push edi
call fcn.00431467
test esi, esi
je 0x485aae
push esi
call fcn.00431523
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4865f8
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x48dc38]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x118
xor esi, esi
lea eax, [ebp - 0x11c]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.ntdll.dll_RtlGetVersion]
test eax, eax
js 0x48665a
cmp dword [ebp - 0x11c], 0xa
jne 0x486656
cmp dword [ebp - 0x114], 0x3839
jb 0x486656
inc esi
mov eax, esi
jmp 0x48665c
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0047c8b0
leave
ret

Function at 0x48666f
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x48dc38]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.ntdll.dll_RtlGetVersion]
test eax, eax
js 0x4866c1
cmp dword [ebp - 0x11c], 6
sbb eax, eax
inc eax
jmp 0x4866c3
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047c8b0
leave
ret

Function at 0x4866d5
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x48dc38]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x118
xor esi, esi
lea eax, [ebp - 0x11c]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.ntdll.dll_RtlGetVersion]
test eax, eax
js 0x486738
cmp dword [ebp - 0x11c], 6
ja 0x486731
jne 0x486734
cmp dword [ebp - 0x118], 1
jb 0x486734
xor esi, esi
inc esi
mov eax, esi
jmp 0x48673a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0047c8b0
leave
ret