joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428b10
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov dword [ebp - 0x18], ecx
mov byte [ebp - 5], 0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x428c71
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x4743a0
push 1
push 0
push 0x4743c0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x428c6b
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [eax + 0x50]
call edx
mov dword [ebp - 0xc], eax
push 0x200
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.00450820
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x218]
push edx
call fcn.0042f190
add esp, 8
push 0x5c
lea eax, [ebp - 0x218]
push eax
call fcn.00427c20
add esp, 8
mov dword [ebp - 0x14], eax
mov ecx, 2
shl ecx, 0
xor edx, edx
mov eax, dword [ebp - 0x14]
mov word [eax + ecx], dx
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [eax + 0x24]
call edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [edx + 0x2c]
call ecx
mov dword [ebp - 0xc], eax
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ecx + 0x44]
call eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
push 0x4743b0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [eax]
call edx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x428c5d
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [edx + 0x18]
call ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x428c4f
mov byte [ebp - 5], 1
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ecx + 8]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42bd30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471750
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x148
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x18]
push eax
push 1
push 0
push str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42bdaf
mov ecx, dword [ebp - 0x14]
push ecx
push str.Failed_to_open_registry_key._Error_code:__d
push 4
push 0x4981a8
call fcn.0040ee50
add esp, 0x10
push 0x4832bf
mov ecx, dword [ebp + 8]
call fcn.00404ab0
mov edx, dword [ebp - 0x10]
or edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
jmp 0x42bf18
mov dword [ebp - 0x1c], 0x104
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x154]
push ecx
push 0
push 0
push str.PROCESSOR_ARCHITECTURE
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42be1d
mov eax, dword [ebp - 0x14]
push eax
push str.Failed_to_read_registry_value._Error_code:__d
push 4
push 0x4981a8
call fcn.0040ee50
add esp, 0x10
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x4832c6
mov ecx, dword [ebp + 8]
call fcn.00404ab0
mov edx, dword [ebp - 0x10]
or edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
jmp 0x42bf18
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x34]
call fcn.00404ab0
mov dword [ebp - 4], 0
push 0x4832c7
lea ecx, [ebp - 0x50]
call fcn.00404ab0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.004047a0
push eax
push str.PROCESSOR_ARCHITECTURE_value:__s
push 2
push 0x4981a8
call fcn.0040ee50
add esp, 0x10
push str.AMD64
lea ecx, [ebp - 0x34]
push ecx
call fcn.004172a0
add esp, 8
movzx edx, al
test edx, edx
jne 0x42bea9
push 0x4878a4
lea eax, [ebp - 0x34]
push eax
call fcn.004172a0
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x42bea9
push str.IA64
lea edx, [ebp - 0x34]
push edx
call fcn.004172a0
add esp, 8
movzx eax, al
test eax, eax
je 0x42beb6
push str.intel
lea ecx, [ebp - 0x50]
call fcn.0040fba0
push str.ARM64
lea ecx, [ebp - 0x34]
push ecx
call fcn.004172a0
add esp, 8
movzx edx, al
test edx, edx
je 0x42bedb
push 0x4878c0
lea ecx, [ebp - 0x50]
call fcn.0040fba0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x50]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004049e0
mov edx, dword [ebp - 0x10]
or edx, 1
mov dword [ebp - 0x10], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00404920
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00404920
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x42bf30
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x470f38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], 0
push 0x104
push 0
lea eax, [ebp - 0x134]
push eax
call fcn.00450820
add esp, 0xc
push 0
push 0x26
lea ecx, [ebp - 0x134]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x134]
push edx
lea ecx, [ebp - 0x30]
call fcn.00404ab0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0
je 0x42bfaf
lea ecx, [ebp - 0x30]
call fcn.00404320
movzx eax, al
test eax, eax
je 0x42bfd9
push 0x4832cd
mov ecx, dword [ebp + 8]
call fcn.00404ab0
mov ecx, dword [ebp - 0x10]
or ecx, 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00404920
mov eax, dword [ebp + 8]
jmp 0x42c03f
push 0xffffffffffffffff
push str._x86_
lea ecx, [ebp - 0x30]
call fcn.00418c10
cmp eax, 0xffffffff
je 0x42c017
push 0x4878cc
mov ecx, dword [ebp + 8]
call fcn.00404ab0
mov edx, dword [ebp - 0x10]
or edx, 1
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00404920
mov eax, dword [ebp + 8]
jmp 0x42c03f
push 0x4878d0
mov ecx, dword [ebp + 8]
call fcn.00404ab0
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00404920
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x42e350
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471d94
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc8
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
add eax, 4
push eax
push 0x488f8c
lea ecx, [ebp - 0xbc]
push ecx
call fcn.0042f270
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], 0
push 0x488f6c
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0xa4]
push ecx
call fcn.0040b2c0
add esp, 0xc
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 1
push 0x488f68
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x5c]
push ecx
call fcn.0040b2c0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa4]
call fcn.00404510
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xbc]
call fcn.00404510
push 0x488f90
lea ecx, [ebp - 0x44]
call fcn.00404640
mov byte [ebp - 4], 5
push 0x488f98
lea ecx, [ebp - 0x8c]
call fcn.00404640
mov byte [ebp - 4], 6
push 0x488f9c
lea ecx, [ebp - 0x74]
call fcn.00404640
mov byte [ebp - 4], 7
mov dword [ebp - 0x14], 0
jmp 0x42e441
lea ecx, [ebp - 0x74]
call fcn.00404350
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x42e485
mov edx, dword [ebp - 0x14]
push edx
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x5c]
call fcn.004042b0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x42e481
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x8c]
call fcn.00404350
push eax
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x5c]
call fcn.004043e0
jmp 0x42e483
jmp 0x42e485
jmp 0x42e433
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x44]
call fcn.0040cf30
lea ecx, [ebp - 0x44]
call fcn.00404370
push eax
push 0x488fa0
push 5
push 0x4981a8
call fcn.0040f270
add esp, 0x10
push 0x488fec
mov ecx, dword [ebp - 0x18]
add ecx, 4
push ecx
lea edx, [ebp - 0xd4]
push edx
call fcn.0040b210
add esp, 0xc
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x44]
call fcn.00404370
push eax
push 0x488ff0
push 5
push 0x4981a8
call fcn.0040f270
add esp, 0x10
push 1
push 0
lea ecx, [ebp - 0x44]
call fcn.00404370
push eax
push str.explorer.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x2c]
push eax
push str.start_TrustAgent.exe_ret__ret___d__GetLastError__:__d
push 5
push 0x4981a8
call fcn.0040ee50
add esp, 0x14
mov byte [ebp - 0xd], 1
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xd4]
call fcn.00404510
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x74]
call fcn.00404510
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x8c]
call fcn.00404510
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x44]
call fcn.00404510
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00404510
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x42e920
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471de8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0xd], 0
push 0
push 0x80
push 3
push 0
push 7
push 0x80000000
mov ecx, dword [ebp + 8]
call fcn.00404370
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x42e974
mov al, byte [ebp - 0xd]
jmp 0x42ea87
push 0x40
push 0
lea eax, [ebp - 0x74]
push eax
call fcn.00450820
add esp, 0xc
mov dword [ebp - 0x18], 0
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0x40
lea edx, [ebp - 0x74]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 0x40
jne 0x42e9c1
movzx edx, word [ebp - 0x74]
cmp edx, 0x5a4d
jne 0x42e9c1
mov byte [ebp - 0xd], 1
movzx eax, byte [ebp - 0xd]
test eax, eax
jne 0x42ea84
mov ecx, dword [ebp + 8]
call fcn.00404350
push eax
push 0xffffffffffffffff
push 0x2e
mov ecx, dword [ebp + 8]
call fcn.00404250
add eax, 1
push eax
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00404200
mov dword [ebp - 4], 0
push 0x489148
lea edx, [ebp - 0x34]
push edx
call fcn.00413a30
add esp, 8
movzx eax, al
test eax, eax
jne 0x42ea71
push 0x489150
lea ecx, [ebp - 0x34]
push ecx
call fcn.00413a30
add esp, 8
movzx edx, al
test edx, edx
jne 0x42ea71
push 0x489158
lea eax, [ebp - 0x34]
push eax
call fcn.00413a30
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x42ea71
push 0x489160
lea edx, [ebp - 0x34]
push edx
call fcn.00413a30
add esp, 8
movzx eax, al
test eax, eax
jne 0x42ea71
push 0x489168
lea ecx, [ebp - 0x34]
push ecx
call fcn.00413a30
add esp, 8
movzx edx, al
test edx, edx
je 0x42ea75
mov byte [ebp - 0xd], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00404510
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x434080
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], edx
mov ebx, ecx
xorps xmm0, xmm0
push eax
push ebx
movlpd qword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x43422a
cmp dword [ebp - 0x1c], 0
jl 0x434228
jg 0x4340bf
cmp dword [ebp - 0x20], 0x40
jb 0x434228
push 0x108
call fcn.0045a914
mov edi, eax
add esp, 4
test edi, edi
je 0x434228
push 0
push 0
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movlpd qword [ebp - 0x10], xmm0
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov esi, eax
test esi, esi
je 0x434216
push 0
lea eax, [ebp - 4]
push eax
push 0x40
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
je 0x434216
xor eax, eax
cmp dword [ebp - 4], 0x40
cmovne esi, eax
test esi, esi
je 0x434216
mov eax, 0x5a4d
xor esi, esi
cmp ax, word [edi]
jne 0x434216
mov eax, dword [edi + 0x3c]
test eax, eax
jle 0x434216
cdq
mov ecx, edx
mov dword [ebp - 8], eax
mov edx, eax
mov dword [ebp - 0xc], ecx
add edx, 0x108
adc ecx, esi
cmp dword [ebp - 0x1c], ecx
jl 0x434216
jg 0x43416d
cmp dword [ebp - 0x20], edx
jb 0x434216
push 0
push 0
push dword [ebp - 0xc]
mov dword [ebp - 4], esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov esi, eax
test esi, esi
je 0x434216
push 0
lea eax, [ebp - 4]
push eax
push 0x108
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
je 0x434216
xor eax, eax
cmp dword [ebp - 4], 0x108
cmovne esi, eax
test esi, esi
je 0x434216
xor esi, esi
cmp dword [edi], 0x4550
jne 0x434216
movzx eax, word [edi + 0x18]
mov ecx, 0x10b
cmp ax, cx
jne 0x4341e1
mov eax, dword [ebp - 8]
mov ecx, dword [edi + 0x9c]
mov edx, dword [edi + 0x98]
lea esi, [eax + 0x98]
jmp 0x434200
mov ecx, 0x20b
cmp ax, cx
jne 0x434216
mov eax, dword [ebp - 8]
mov ecx, dword [edi + 0xac]
mov edx, dword [edi + 0xa8]
lea esi, [eax + 0xa8]
lea ebx, [eax + 0x58]
mov eax, dword [ebp - 0x14]
mov dword [eax], ebx
mov dword [eax + 4], esi
mov esi, 1
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
push edi
call fcn.004575c1
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43b7ba
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x460a96
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00460915

Function at 0x4672cc
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00466f8c
Function at 0x697d30
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005cbcb
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100746ac]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], 0x1006274c
call fcn.006d328f
push 4
mov dword [ebp - 4], 0
call fcn.006d45a5
mov edi, eax
add esp, 4
test edi, edi
je 0x697db0
call fcn.006d3736
mov dword [edi], eax
call fcn.006d34f5
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.006d342a
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x697da6
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.006d3452
jmp 0x697db2
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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 0x69a710
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, ecx
mov esi, eax
test edi, edi
je 0x69a8fb
test esi, esi
je 0x69a8fb
cmp dword [ebp + 0xc], 0
je 0x69a8fb
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
push eax
mov eax, ebx
call fcn.0069a670
mov ecx, dword [ebp + 0xc]
add esp, 4
cmp dword [ecx], eax
jl 0x69a8fb
mov eax, 0x55555556
imul ebx
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea edx, [ecx*4]
mov eax, 0x6bca1af3
imul edx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov eax, 0x13
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
js 0x69a86b
mov edx, dword [ebp + 0x10]
and edx, 2
mov dword [ebp - 0x10], edx
cmp dword [ebp - 8], ebx
jne 0x69a7c0
mov edx, ebx
imul edx, edx, 0x4c
lea eax, [ecx*4]
sub eax, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0xc], eax
test eax, eax
jle 0x69a82e
mov edx, eax
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
shl ecx, 8
mov eax, ecx
shr eax, 0x1a
movzx eax, byte [eax + 0x10065bd8]
mov byte [esi], al
shl ecx, 6
mov eax, ecx
shr eax, 0x1a
movzx eax, byte [eax + 0x10065bd8]
shl ecx, 6
mov byte [esi + 1], al
mov eax, ecx
shr eax, 0x1a
movzx eax, byte [eax + 0x10065bd8]
shr ecx, 0x14
and ecx, 0x3f
mov byte [esi + 2], al
mov cl, byte [ecx + 0x10065bd8]
mov byte [esi + 3], cl
add edi, 3
add esi, 4
dec edx
jne 0x69a7c6
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x10], 0
mov edx, dword [ebp - 4]
lea edx, [edx + eax*4]
mov dword [ebp - 4], edx
jne 0x69a849
mov word [esi], 0xa0d
add esi, 2
add dword [ebp - 4], 2
mov edx, dword [ebp - 8]
inc edx
mov dword [ebp - 8], edx
cmp edx, ebx
jle 0x69a7a1
cmp dword [ebp - 4], 0
je 0x69a86b
cmp dword [ebp - 0x10], 0
jne 0x69a86b
sub esi, 2
sub dword [ebp - 4], 2
lea eax, [ecx + ecx*2]
mov ecx, dword [ebp + 8]
sub ecx, eax
je 0x69a8e7
lea edx, [ecx + 1]
test edx, edx
je 0x69a8e7
xor eax, eax
test ecx, ecx
jle 0x69a886
movzx eax, byte [edi]
inc edi
shl eax, 8
cmp ecx, 1
jle 0x69a894
movzx ebx, byte [edi]
or eax, ebx
inc edi
shl eax, 8
cmp ecx, 2
jle 0x69a8a1
movzx ecx, byte [edi]
or eax, ecx
shl eax, 8
test edx, edx
jle 0x69a8c4
mov ecx, edx
lea ebx, [ebx]
mov edi, eax
shr edi, 0x1a
mov bl, byte [edi + 0x10065bd8]
mov byte [esi], bl
inc esi
shl eax, 6
dec ecx
jne 0x69a8b0
add dword [ebp - 4], edx
test byte [ebp + 0x10], 1
jne 0x69a8e7
mov edi, 4
sub edi, edx
test edi, edi
jle 0x69a8e4
push edi
push 0x3d
push esi
call fcn.006d7f50
add esp, 0xc
add dword [ebp - 4], edi
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, 1
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 0x6a0970
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005e127
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100746ac]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebx], 0x10066898
mov dword [ebx + 0x68], 0x10062700
mov dword [ebp - 4], eax
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
mov dword [ebx + edx], 0x100669b8
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx]
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
mov dword [ebp - 0x10], 1
call fcn.00699bb0
lea esi, [ebx + 0x10]
push 0x20
mov ecx, edi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], 0
call fcn.00698a60
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x6a0a09
mov eax, dword [edi + 0xc]
or eax, 4
or eax, 4
push 0
push eax
mov ecx, edi
call fcn.0069a4b0
mov dword [ebp - 4], 2
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
mov ecx, esi
mov dword [ebx + edx], 0x10066894
call fcn.00697d30
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
mov dword [esi], 0x1006278c
mov byte [esi + 0x50], 0
mov byte [esi + 0x49], 0
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
xor ecx, ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x34]
mov dword [edx], ecx
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], ecx
mov dword [esi + 0x54], ecx
mov edx, dword [0x10078d40]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ecx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x6a1370
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005e367
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100746ac]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebx], 0x100668a8
mov dword [ebx + 0x60], 0x10062700
mov dword [ebp - 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], 0x100626f8
mov edx, dword [ebx]
mov edi, dword [edx + 4]
add edi, ebx
mov ecx, edi
mov dword [ebp - 0x10], 1
call fcn.00699bb0
lea esi, [ebx + 4]
push 0x20
mov ecx, edi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], 0
call fcn.00698a60
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x6a1403
mov eax, dword [edi + 0xc]
or eax, 4
or eax, 4
push 0
push eax
mov ecx, edi
call fcn.0069a4b0
mov dword [ebp - 4], 2
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], 0x100668a4
mov ecx, esi
call fcn.00697d30
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
mov dword [esi], 0x1006278c
mov byte [esi + 0x50], 0
mov byte [esi + 0x49], 0
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
xor ecx, ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x34]
mov dword [edx], ecx
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], ecx
mov dword [esi + 0x54], ecx
mov edx, dword [0x10078d40]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ecx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4