joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459f24
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x48ec38]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
or dword [ebp - 0x264], 0xffffffff
push ebx
mov dword [ebp - 0x268], eax
xor ebx, ebx
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x270], edx
inc eax
push edi
lea edx, [ebp - 0x260]
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x25c], ebx
call fcn.0047bd41
mov esi, eax
test esi, esi
js 0x45a108
mov edx, dword [ebp - 0x260]
lea ecx, [ebp - 0x25c]
push ebx
call fcn.00458e89
mov esi, eax
test esi, esi
js 0x45a0f7
push ebx
mov edx, 0x4120c8
lea ecx, [ebp - 0x25c]
call fcn.00458fe5
mov esi, eax
test esi, esi
js 0x45a0f7
mov edi, dword [ebp - 0x25c]
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x459fee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x459fe8
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x45a0fd
test byte [ebp - 0x258], 0x10
jne 0x45a082
mov edx, dword [ebp - 0x268]
xor eax, eax
add eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x23c]
adc ecx, 0
mov edx, dword [edx + 0x10]
cmp eax, dword [edx + 0x10]
jne 0x45a082
cmp ecx, dword [edx + 0x14]
jne 0x45a082
mov edx, dword [ebp - 0x260]
lea ecx, [ebp - 0x25c]
push 0
call fcn.00458e89
mov esi, eax
test esi, esi
js 0x45a0ca
push 0
lea edx, [ebp - 0x22c]
lea ecx, [ebp - 0x25c]
call fcn.00458fe5
mov esi, eax
test esi, esi
js 0x45a0ca
mov ecx, dword [ebp - 0x270]
lea eax, [ebp - 0x264]
mov edi, dword [ebp - 0x25c]
push eax
lea eax, [ebp - 0x26c]
mov edx, dword [ecx]
push eax
lea eax, [ecx + 4]
mov ecx, edi
push eax
call fcn.0045a135
mov esi, eax
test esi, esi
jns 0x45a0aa
lea eax, [ebp - 0x258]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x459fee
mov eax, dword [ebp - 0x264]
cmp eax, 0xffffffff
jne 0x45a0d2
mov esi, 0x80070002
jmp 0x45a0e9
mov ecx, dword [ebp - 0x268]
mov edx, edi
push 0
lea ecx, [ecx + 4]
call fcn.00458e89
mov esi, eax
test esi, esi
jns 0x45a098
mov eax, dword [ebp - 0x264]
jmp 0x45a0dd
mov edi, dword [ebp - 0x25c]
jmp 0x45a0c2
mov ecx, dword [ebp - 0x268]
mov dword [ecx], eax
or eax, 0xffffffff
cmp eax, 0xffffffff
je 0x45a0e9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0xffffffff
je 0x45a0fd
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x45a0fd
mov edi, dword [ebp - 0x25c]
test edi, edi
je 0x45a108
mov ecx, edi
call fcn.00459362
cmp dword [ebp - 0x260], 0
je 0x45a11c
mov ecx, dword [ebp - 0x260]
call fcn.00459362
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d650
leave
ret 8
Function at 0x45a135
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x48ec38]
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 0x45a19d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x45a18d
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x45a23c
mov esi, 0x80004005
jmp 0x45a23c
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 0x45a1da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x45a1cd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x45a259
mov esi, 0x80004005
jmp 0x45a259
cmp dword [ebp - 0x2c], 0x24
je 0x45a1e7
mov esi, 0x8007001e
jmp 0x45a259
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
cmp ecx, eax
je 0x45a20a
test ecx, ecx
jne 0x45a254
cmp eax, 0xb0c50000
je 0x45a20a
cmp eax, 0xb0c50001
je 0x45a20a
cmp eax, 0xb0c50002
jne 0x45a254
mov edx, dword [ebp + 8]
test edx, edx
je 0x45a227
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 0x45a254
inc ecx
cmp ecx, 4
jne 0x45a213
test ebx, ebx
je 0x45a237
mov eax, dword [ebx]
cmp eax, 0xffffffff
jne 0x45a24f
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.0047d650
leave
ret 0xc
cmp eax, dword [ebp - 0x14]
je 0x45a237
mov esi, 0x8007000d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x45a23c
Function at 0x45a268
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x48ec38]
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.0047be6c
mov ebx, eax
test ebx, ebx
js 0x45a388
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 0x45a2e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x45a2d2
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
js 0x45a388
mov ebx, 0x80004005
jmp 0x45a388
cmp dword [ebp - 0x2c], esi
je 0x45a2f1
mov ebx, 0x8007001e
jmp 0x45a388
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 0x45a313
mov ebx, 0x8007000e
jmp 0x45a388
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 0x45a362
add esi, dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 0
mov edx, dword [ebp - 0x30]
jne 0x45a327
cmp esi, dword [ebp - 0x10]
je 0x45a35b
mov ebx, 0x8007001e
jmp 0x45a380
mov ecx, edx
mov dword [edi + 0x14], ecx
jmp 0x45a388
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x45a379
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
js 0x45a380
mov ebx, 0x80004005
mov ecx, dword [ebp - 0x30]
call fcn.00459362
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d650
leave
ret
Function at 0x45a548
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 0x45a584
mov esi, 0x8007000e
jmp 0x45a715
mov ecx, dword [ebp + 8]
lea edx, [ebp - 4]
call fcn.0047bd41
mov esi, eax
test esi, esi
js 0x45a6f5
mov ecx, dword [ebp - 4]
call fcn.00458d63
mov esi, eax
test esi, esi
js 0x45a6f5
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 0x45a5f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x45a5e4
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x45a6f5
mov esi, 0x80004005
jmp 0x45a6f5
push ecx
push dword [edi + 0x24]
mov ecx, ebx
push dword [edi + 0x20]
call fcn.0047be6c
mov esi, eax
test esi, esi
js 0x45a6ee
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x45a6d0
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x45a6d0
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.0047be6c
mov esi, eax
test esi, esi
js 0x45a6ee
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 0x45a679
ja 0x45a672
cmp ecx, 0xa00000
jbe 0x45a679
mov eax, 0xa00000
jmp 0x45a67f
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 0x45a6d0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
mov edx, esi
mov ecx, ebx
call fcn.0047beaf
mov esi, eax
test esi, esi
js 0x45a6ee
mov eax, dword [ebp - 8]
xor edx, edx
add eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
cmp edx, dword [edi + 0x24]
ja 0x45a6ee
jb 0x45a65a
cmp eax, dword [edi + 0x20]
jae 0x45a6ee
jmp 0x45a65a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x45a6e7
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x45a6ee
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 0x45a715
mov ecx, dword [ebp - 4]
call fcn.00459362
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x45bb26
Capabilities:
Get disk information

Disassembly:
push 0x224
mov eax, 0x48ac61
call fcn.0047dc8f
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x230], edi
mov eax, dword [0x4125ec]
xor ebx, ebx
mov dword [ebp - 0x18], eax
mov ax, word [0x4125f0]
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 0x45bbe9
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 0x41264c
push 0x3000000
call fcn.0045ab3f
add esp, 0x10
xor ecx, ecx
push ecx
push ecx
push edi
push esi
push 0x4125f8
push 0x412498
push 0x144
push ecx
push 0x41216c
push ecx
push eax
call dword [sym.imp.WDSCORE.dll_WdsSetupLogMessageW]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x45bcbd
xor eax, eax
lea edx, [edi + 4]
lea ecx, [ebp - 0x220]
mov word [ebp - 0x1a], ax
call fcn.0043b0c8
mov dword [ebp - 0x224], eax
mov dword [ebp - fcn.0045b5f0], 0x402a04
lea eax, [ebp - 0x22c]
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x22c], ebx
call fcn.0045b5a0
test al, al
je 0x45bc96
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 0x412674
push 0x3000000
call fcn.0045ab3f
add esp, 0x14
xor ecx, ecx
push ecx
push ecx
push edi
push esi
push 0x4125f8
push 0x412498
push 0x14f
push ecx
push 0x41216c
push ecx
push eax
call dword [sym.imp.WDSCORE.dll_WdsSetupLogMessageW]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x45bca6
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.0045b5f0], 0x402a04
call fcn.0045b4e0
mov al, bl
call fcn.0047dc41
ret
Function at 0x45f5e3
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 0x45f606
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 0x45f621
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 0x45f63c
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 0x45f657
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 0x45f672
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 0x45f675
pop esi
pop ebx
ret
Function at 0x4602c8
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push esi
mov esi, ecx
cmp dword [esi + 8], 0xffffffff
mov dword [esi], fcn.0041a040
mov dword [esi + 4], 0x402b78
je 0x4602ed
push dword [esi + 8]
call dword [sym.imp.ntdll.dll_NtClose]
or dword [esi + 8], 0xffffffff
cmp dword [esi + 0xc], 0
je 0x46030b
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 0x46031d
Capabilities:
Access peb ldr_data
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x48ec38]
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 0x46034a
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 0x4603d0
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 0x4603d0
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 0x4603d0
mov esi, 0xc0000017
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d650
leave
ret 8

Function at 0x460661
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x46068c
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 0x463990
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 0x463a2c
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x463a2c
test edx, edx
je 0x463a2c
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x463a2c
push dword [ebp + 0xc]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
push ecx
push ecx
mov ecx, eax
call fcn.0046394e
mov esi, eax
cmp esi, 1
jne 0x4639eb
push 0x14
pop eax
mov byte [ebx], 0
inc ebx
sub eax, 1
jne 0x4639e0
jmp 0x463a28
test esi, esi
js 0x463a28
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.004600a0
cmp dword [esp + 0xc], 0
mov esi, eax
je 0x463a28
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 0x463a31
mov eax, 0x80070057
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x467df2
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x467e2d
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x467e14
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x467e25
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x467e2f
inc edi
add eax, 0x28
cmp edi, esi
jb 0x467e0a
xor eax, eax
pop edi
pop esi
ret
Function at 0x468148
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stc
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.00467dc2
push eax
push esi
push dword [ebp + 8]
call fcn.00467d77
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00467dc2
push eax
push esi
push dword [ebp + 8]
call fcn.00467d77
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00467dc2
push eax
push esi
push dword [ebp + 8]
call fcn.00467d77
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00467db2
mov edx, 0x9d88e348
jl 0x468237
invalid
invalid

Function at 0x474ad1
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 0x474af7
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 0x474ae3
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 0x474b2a
mov ecx, edi
call fcn.00474ad1
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 0x4791dc
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 0x479218
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 0x4791f5
mov eax, ebx
xor ecx, ecx
and eax, 3
sub eax, 1
je 0x47923e
sub eax, 1
je 0x479235
sub eax, 1
jne 0x479254
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 0x47beaf
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 0x47bf13
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 0x47bef5
add edi, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
cmp edi, dword [ebp + 8]
jb 0x47bec8
jmp 0x47bf13
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x47bf0c
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x47bf13
mov esi, 0x80004005
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x47bf1c
mov dword [eax], edi
pop edi
mov eax, esi
pop esi
leave
ret 8

Function at 0x47c25e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x48ec38]
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 0x47c2ac
push 3
lea eax, [ebp - 0x44]
push 0x418f30
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.0047d650
leave
ret
Function at 0x47dd80
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x48d040
call fcn.0047e06c
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x47dde0
cmp eax, 0xffffffff
je 0x47dde0
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x47ddd9
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x47ddd9
cmp edx, 0x10000000
jae 0x47ddd9
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 0x47ddd6
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 0x47de50
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 0x47de8e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x47de86
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x47de90
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x47de76
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x47df70
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 0x47df9f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47df9f
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x48193a
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 0x481998
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 0x481998
cmp dword [ebp - 8], esi
jb 0x481998
mov esi, dword [ebp - 8]
cmp dword [ebp - 4], edi
je 0x4819a6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret