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

Disassembly:
mov cl, byte [esi]
push ebp
mov ebp, dword [esp + 8]
push edi
test cl, cl
jne 0x44ddb9
mov ecx, dword [ebx + 0x38]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x44dd35
push 1
push esi
push ebx
call eax
add esp, 0xc
jmp 0x44dd46
mov eax, dword [ecx + 0x38]
push eax
push 1
push 1
push esi
call fcn.00475584
add esp, 0x10
cmp eax, 1
je 0x44dd5a
pop edi
mov dword [0x4fe0c4], 0x66
xor eax, eax
pop ebp
ret
mov al, byte [esi]
test al, al
jne 0x44dd6f
pop edi
mov dword [0x4fe0c4], 0x70
xor eax, eax
pop ebp
ret
mov ecx, dword [ebx + 0x38]
mov edx, dword [ecx + 0x3c]
lea edi, [esi + 1]
test edx, edx
je 0x44dd89
movzx ecx, al
push ecx
push edi
push ebx
call edx
add esp, 0xc
jmp 0x44dd9c
mov edx, dword [ecx + 0x38]
push edx
movzx eax, al
push eax
push 1
push edi
call fcn.00475584
add esp, 0x10
mov cl, byte [esi]
movzx edx, cl
cmp eax, edx
jne 0x44dd4b
mov al, byte [edi]
mov byte [edi], 2
mov byte [ebp], al
dec cl
pop edi
mov byte [esi], cl
mov eax, 1
pop ebp
ret
mov al, byte [esi + 1]
movzx edx, al
mov dl, byte [edx + esi]
inc al
dec cl
pop edi
mov byte [ebp], dl
mov byte [esi + 1], al
mov byte [esi], cl
mov eax, 1
pop ebp
ret

Function at 0x4500a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b24c3
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x4f4930]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2c]
lea eax, [esi + 0x10]
push eax
call fcn.0040b830
xor ebx, ebx
push ebx
push ebx
mov dword [esp + 0x2c], ebx
or eax, 0xffffffff
push ebx
push ebx
mov byte [esi + 4], bl
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi], eax
mov dword [esi + 0x28], 1
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], ebx
cmp byte [0x4f7d90], bl
jne 0x45013b
mov byte [esp + 0x14], bl
mov dword [esp + 0x10], ebx
push 0x4d9d60
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x4f7b60
mov byte [esp + 0x2c], 1
call fcn.0042e050
lea ecx, [esp + 0x10]
call fcn.0041a420
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x1c
ret 4

Function at 0x450f30
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push 1
push 0
lea eax, [edi + 0x28]
push eax
call esi
cmp eax, 1
jne 0x450faa
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 1
push 0
lea ecx, [edi + 0x30]
push ecx
mov dword [edi + 0x34], eax
call esi
lea ebp, [edi + 8]
mov esi, ebp
mov ebx, 2
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x450f79
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0xffffffff
add esi, 4
sub ebx, 1
jne 0x450f65
push ebx
push ebx
push edi
push 0x450550
push ebx
push ebx
call fcn.00470bba
push ebx
push ebx
push edi
push 0x450ea0
push ebx
push ebx
mov dword [ebp], eax
call fcn.00470bba
add esp, 0x30
pop ebp
mov dword [edi + 0xc], eax
pop ebx
pop esi
ret
Function at 0x4511d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b2493
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f4930]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov edi, dword [esp + 0x34]
xor ebx, ebx
mov dword [edi], ebx
mov dword [edi + 8], 0xffffffff
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
call fcn.00419890
mov esi, eax
call fcn.00419890
mov ebp, eax
mov eax, esi
call fcn.004188e0
mov dword [esp + 0x14], eax
mov eax, ebp
call fcn.00418890
push eax
mov eax, dword [esp + 0x18]
lea esi, [edi + 0x20]
mov ecx, eax
call fcn.004527b0
lea eax, [edi + 0x30]
mov dword [esp + 0x2c], ebx
call fcn.0043e0d0
cmp byte [0x4f7fc8], bl
jne 0x451282
mov byte [esp + 0x1c], bl
mov dword [esp + 0x18], ebx
push str.LocalSogou_ToolStubAsyncSafeLock
lea eax, [esp + 0x1c]
push eax
mov ecx, 0x4f7d98
mov byte [esp + 0x34], 1
call fcn.0042e050
lea ecx, [esp + 0x18]
call fcn.0041a420
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4

Function at 0x451990
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b3bc0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push edi
mov eax, dword [0x4f4930]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0xc], 0x4d606c
xor ebx, ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], 0
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x14]
push eax
push 0x4f7d98
mov byte [esp + 0x30], 1
call fcn.004238a0
test al, al
je 0x4519fc
mov dword [esp + 0x10], 0x4f7d98
mov edi, dword [esp + 0x10]
mov eax, dword [esi]
cmp eax, ebx
mov dword [esi + 0xc], ebx
jle 0x451a2c
lea edi, [esi + 4]
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x451a1c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0xffffffff
inc ebx
add edi, 4
cmp ebx, dword [esi]
jl 0x451a08
mov edi, dword [esp + 0x10]
xor ebx, ebx
mov dword [esi], ebx
lea ecx, [esi + 0x20]
push ecx
call fcn.004528a0
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0xffffffff
cmp edi, ebx
je 0x451a56
push edi
call fcn.004239c0
mov dword [esp + 0x10], ebx
mov edi, ebx
lea ecx, [esp + 0x14]
call fcn.0041a420
mov dword [esp + 0x28], 0xffffffff
cmp edi, ebx
je 0x451a71
push edi
call fcn.004239c0
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x452d20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4b1b5b
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x4f4930]
xor eax, esp
mov dword [esp + 0x128], eax
mov eax, dword [0x4f4930]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
lea ecx, [esp + 8]
call fcn.0041ead0
mov eax, esi
lea edx, [esp + 8]
call fcn.0041ed00
cmp byte [esp + 0x124], 0
lea eax, [esp + 0x14]
jne 0x452d7d
mov eax, dword [esp + 0x10]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x452dc0
shr eax, 4
not al
and al, 1
je 0x452dc0
cmp byte [esp + 0x124], 0
mov dword [esp + 8], 0x4d4d70
jne 0x452dbc
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
cmp eax, ecx
je 0x452dbc
push eax
call fcn.00470027
add esp, 4
mov al, 1
jmp 0x452de9
cmp byte [esp + 0x124], 0
mov dword [esp + 8], 0x4d4d70
jne 0x452de7
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
cmp eax, edx
je 0x452de7
push eax
call fcn.00470027
add esp, 4
xor al, al
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.0046fdae
add esp, 0x138
ret

Function at 0x453ae0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x64
mov eax, dword [0x4f4930]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x68]
push ebx
push esi
push edi
mov edi, edx
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
cmp eax, edx
je 0x453b30
push ecx
push edi
lea esi, [esp + 0x18]
call fcn.00453920
lea ecx, [esp + 0x10]
mov ebx, edi
call fcn.004539d0
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046fdae
add esp, 0x64
ret 4

Function at 0x453c60
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [eax]
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, dword [eax + 4]
push edi
xor edi, edi
cmp dword [esp + 0x14], edi
jle 0x453ca2
push ebx
inc ecx
and ecx, 0xf
mov edx, dword [eax + ecx*4 + 8]
add esi, edx
and esi, 0xf
mov ebx, dword [eax + esi*4 + 8]
mov dword [eax + ecx*4 + 8], ebx
add ebx, edx
and ebx, 0xf
mov dword [eax + esi*4 + 8], edx
mov dl, byte [eax + ebx*4 + 8]
xor byte [edi + ebp], dl
inc edi
cmp edi, dword [esp + 0x18]
jl 0x453c75
pop ebx
pop edi
mov dword [eax + 4], esi
pop esi
mov dword [eax], ecx
pop ebp
ret
Function at 0x453cb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b2ef3
mov eax, dword fs:[0]
push eax
push ebp
push esi
push edi
mov eax, dword [0x4f4930]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, dword [esp + 0x20]
mov dword [edi + 4], 1
mov dword [edi + 8], 1
mov dword [edi + 0xc], 0xffffffff
xor ebp, ebp
mov dword [esp + 0x18], ebp
lea esi, [edi + 0x30]
mov dword [edi], 0x4db83c
mov dword [edi + 0x10], ebp
mov dword [edi + 0x14], ebp
mov dword [edi + 0x18], ebp
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebp
mov word [esi + 4], ax
push ebp
mov eax, 0x4cb7d4
call fcn.004065f0
lea esi, [edi + 0x4c]
mov byte [esp + 0x18], 1
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebp
push ebp
mov eax, 0x4cb7d4
mov word [esi + 4], cx
call fcn.004065f0
xor eax, eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 4
Function at 0x454ba0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
mov eax, dword [0x504f8c]
test eax, eax
jne 0x454bc7
push 0x20a
call fcn.004706a8
add esp, 4
test eax, eax
je 0x454bc0
mov byte [eax], 0
jmp 0x454bc2
xor eax, eax
mov dword [0x504f8c], eax
cmp byte [eax], 0
push esi
mov esi, eax
jne 0x454c02
test edi, edi
jne 0x454bd8
xor al, al
pop esi
pop ecx
ret
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x454bd3
shr eax, 4
not al
and al, 1
je 0x454bd3
push edi
lea eax, [esi + 2]
push 0x104
push eax
call fcn.0047149d
add esp, 0xc
mov byte [esi], 1
mov al, 1
pop esi
pop ecx
ret
Function at 0x45adb0
Capabilities:
Create thread

Disassembly:
push ecx
mov eax, dword [esi + 0xafc]
push 0x4cc164
push str.system
push eax
mov ecx, esi
call fcn.0045bae0
cmp eax, 2
jne 0x45adf8
mov byte [esi + 0x46], 0
cmp dword [esi + 0x48], eax
jne 0x45adf1
push 0
push 0
push esi
push 0x45e720
push 0
push 0
call fcn.00470bba
add esp, 0x18
mov al, 1
pop ecx
ret
mov ecx, esi
call fcn.0045e770
mov al, 1
pop ecx
ret
Function at 0x45c050
Capabilities:
Get file attributes
Set file attributes
Write file on windows

Disassembly:
sub esp, 8
push esi
push edi
mov esi, eax
call fcn.00452d20
cmp byte [esp + 0x20], 0
mov byte [esp + 0xb], al
jne 0x45c0a1
test al, al
je 0x45c0a1
mov ecx, dword [esp + 0x14]
call fcn.0041a480
mov edi, eax
push 0x4ddd50
push 0x4d4204
mov edx, edi
call fcn.0041f080
push esi
push 0x4d4204
mov edx, edi
call fcn.0041f080
add esp, 0x10
pop edi
xor al, al
pop esi
add esp, 8
ret 0x14
push ebx
mov ebx, esi
call fcn.00452cc0
mov ebx, eax
push 0x4dddac
push ebx
call fcn.00470338
add esp, 8
test eax, eax
je 0x45c0c0
add eax, 4
push 0x5c
push eax
call fcn.004710d5
mov edi, eax
add esp, 8
test edi, edi
je 0x45c0f7
xor eax, eax
push ebx
mov word [edi], ax
call fcn.00477563
mov ecx, 0x5c
mov word [edi], cx
push ecx
add edi, 2
push edi
call fcn.004710d5
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x45c0d1
push ebp
push ebx
call fcn.00470399
mov bl, byte [esp + 0x17]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
add esp, 4
xor edi, edi
test bl, bl
je 0x45c122
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x80
push esi
mov edi, eax
call ebp
push 0x4cb348
lea edx, [esp + 0x18]
push esi
push edx
mov dword [esp + 0x20], 0
call fcn.004707d3
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
jne 0x45c18c
cmp byte [esp + 0x2c], al
je 0x45c154
call fcn.00452d20
test al, al
jne 0x45c1ab
mov ecx, dword [esp + 0x1c]
call fcn.0041a480
mov edi, eax
push str.ComManager::SaveFileToPath
push 0x4d4204
mov edx, edi
call fcn.0041f080
push esi
push 0x4d4204
mov edx, edi
call fcn.0041f080
add esp, 0x10
pop ebp
pop ebx
pop edi
xor al, al
pop esi
add esp, 8
ret 0x14
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x28]
push eax
push 1
push ecx
call fcn.00470f60
mov edx, dword [esp + 0x24]
push edx
call fcn.00471059
add esp, 0x14
test bl, bl
je 0x45c1b3
push edi
push esi
call ebp
pop ebp
pop ebx
pop edi
mov al, 1
pop esi
add esp, 8
ret 0x14

Function at 0x45e380
Capabilities:
Create directory

Disassembly:
cmp word [eax + 0x1620], 0
push esi
lea esi, [eax + 0x1620]
jne 0x45e3d3
mov ecx, dword [eax + 0xaf4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x24]
push 0x104
push esi
call edx
push str.Components
push 0x104
push esi
call fcn.00471f8e
add esp, 0xc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.ComponentConfig.ini
push 0x104
push esi
call fcn.00471f8e
add esp, 0xc
mov eax, esi
pop esi
ret
Function at 0x45fbb0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x4f7b40], 0
je 0x45fc05
mov eax, dword [0x4f7b48]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x45fc05
cmp dword [eax], 0xe
jbe 0x45fc05
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 0x38]
test eax, eax
je 0x45fc05
push 0
push 0x4f99f4
push 0x4f8e44
push 0
push eax
call fcn.004773f4
add esp, 0x14
test eax, eax
je 0x45fc05
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esp + 4]
mov dword [ecx], eax
mov al, 1
ret
xor al, al
ret

Function at 0x45fc10
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x4f7b40], 0
push esi
push edi
mov esi, eax
je 0x45fc59
mov eax, dword [0x4f7b48]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call edi
test eax, eax
je 0x45fc59
cmp dword [eax], 0xe
jbe 0x45fc59
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + 0x38]
test ecx, ecx
jne 0x45fc86
push 8
call fcn.004706a8
add esp, 4
test eax, eax
je 0x45fc5e
mov dword [eax + 4], esi
mov dword [eax], 0x4de32c
mov esi, eax
jmp 0x45fc60
pop edi
xor al, al
pop esi
ret
xor esi, esi
cmp dword [0x4f7b40], 0
je 0x45fc8e
mov edx, dword [0x4f7b48]
push edx
call edi
test eax, eax
je 0x45fc8e
cmp dword [eax], 0xe
jbe 0x45fc8e
mov eax, dword [eax + 8]
mov dword [eax + 0x38], esi
pop edi
mov al, 1
pop esi
ret
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
push esi
call eax
pop edi
mov al, 1
pop esi
ret
Function at 0x4600d0
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x4b57a0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebp
push esi
push edi
mov eax, dword [0x4f4930]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
cmp byte [ebx + 0x46], 0
jne 0x46010a
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebx + 0x1834], eax
jne 0x460110
cmp byte [ebx + 0x47], 0
jne 0x460125
xor al, al
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x34
ret
xor ebp, ebp
cmp dword [0x4f7b40], ebp
je 0x460147
mov eax, dword [0x4f7b48]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, ebp
je 0x460147
cmp dword [eax], ebp
ja 0x4602b1
mov ecx, ebx
mov byte [ebx + 0x47], 0
call fcn.0045e000
lea edi, [ebx + 0xc]
lea esi, [esp + 0x1c]
call fcn.0045f920
lea ecx, [ebx + 0x137c]
push ecx
mov dword [esp + 0x44], ebp
call fcn.004239c0
mov byte [esp + 0x18], 0
mov dword [esp + 0x14], ebp
xor eax, eax
mov byte [esp + 0x40], 1
cmp dword [esp + 0x20], ebp
mov dword [esp + 0x10], eax
jle 0x4601ff
mov edx, dword [esp + 0x1c]
mov edi, dword [edx + eax*4]
test edi, edi
je 0x4601f4
cmp dword [edi + 0x1c], 9
jl 0x4601f4
cmp byte [edi + 0x72], 0
jne 0x4601f4
cmp dword [edi + 0x40], 0
je 0x4601f4
xor ebp, ebp
cmp dword [edi + 0x54], ebp
jle 0x4601f4
lea esp, [esp]
mov eax, dword [edi + 0x50]
mov esi, dword [eax + ebp*4]
test esi, esi
je 0x4601ea
cmp dword [esi + 0x38], 0
jne 0x4601e1
push 1
push edi
lea ecx, [esp + 0x1c]
push ecx
push ebx
call fcn.00459050
test al, al
jne 0x4601db
lea ecx, [esp + 0x14]
call fcn.0041a4d0
cmp dword [esi + 0x38], 0
je 0x4601ea
push esi
call fcn.00460060
add esp, 4
inc ebp
cmp ebp, dword [edi + 0x54]
jl 0x4601b0
mov eax, dword [esp + 0x10]
inc eax
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
jl 0x460188
xor eax, eax
cmp dword [ebx + 0x2c], eax
mov dword [esp + 0x10], eax
jle 0x460285
mov edx, dword [ebx + 0x28]
mov edi, dword [edx + eax*4]
test edi, edi
je 0x46027b
cmp dword [edi + 0x1c], 9
jl 0x46027b
cmp byte [edi + 0x72], 0
jne 0x46027b
cmp dword [edi + 0x40], 0
je 0x46027b
xor ebp, ebp
cmp dword [edi + 0x54], ebp
jle 0x46027b
lea ecx, [ecx]
mov eax, dword [edi + 0x50]
mov esi, dword [eax + ebp*4]
test esi, esi
je 0x460271
cmp dword [edi + 0x40], 0
je 0x460261
cmp dword [esi + 0x38], 0
jne 0x460267
push 1
push edi
lea ecx, [esp + 0x1c]
push ecx
push ebx
call fcn.00459050
test al, al
jne 0x460261
lea ecx, [esp + 0x14]
call fcn.0041a4d0
cmp dword [esi + 0x38], 0
je 0x460271
mov ecx, dword [esi + 0x38]
mov edx, dword [ecx]
mov eax, dword [edx + 0x38]
call eax
inc ebp
cmp ebp, dword [edi + 0x54]
jl 0x460230
mov eax, dword [esp + 0x10]
inc eax
cmp eax, dword [ebx + 0x2c]
mov dword [esp + 0x10], eax
jl 0x46020a
lea ecx, [esp + 0x14]
call fcn.0041a420
mov dword [esp + 0x40], 0xffffffff
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4602b1
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4602ab
mov eax, fcn.00470027
push ecx
call eax
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x34
ret
Function at 0x462730
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b477b
mov eax, dword fs:[0]
push eax
sub esp, 0x378
mov eax, dword [0x4f4930]
xor eax, esp
mov dword [esp + 0x370], eax
push ebx
push esi
push edi
mov eax, dword [0x4f4930]
xor eax, esp
push eax
lea eax, [esp + 0x388]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
lea esi, [esp + 0x1c]
mov dword [esp + 0x18], ecx
call fcn.004243d0
xor esi, esi
mov dword [esp + 0x1c], 0x4d67fc
mov dword [esp + 0x370], 0x4d6804
mov dword [esp + 0x374], esi
mov dword [esp + 0x378], esi
push esi
push ebx
mov eax, edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x398], esi
call fcn.00424520
test al, al
je 0x462815
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4627e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
je 0x4627e5
xor edi, edi
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x37c], edi
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x46285b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
je 0x46285b
xor eax, eax
jmp 0x46285d
mov ecx, ebx
call fcn.0041a480
push 0x4d4648
push 0x4d4204
mov edx, eax
call fcn.0041f080
mov dword [esp + 0x398], 0xffffffff
add esp, 8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0x4d67fc
mov dword [esp + 0x370], 0x4d693c
call fcn.00424450
xor al, al
jmp 0x4628af
mov eax, edi
mov esi, dword [esp + 0x18]
push eax
mov dword [esi + 8], eax
call fcn.00470104
mov ecx, dword [esi + 8]
add esp, 4
push ecx
push eax
push ebx
lea ecx, [esp + 0x37c]
mov dword [esi + 4], eax
call fcn.0042a110
test al, al
je 0x462815
mov dword [esp + 0x390], 0xffffffff
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0x4d67fc
mov dword [esp + 0x370], 0x4d693c
call fcn.00424450
mov al, 1
mov ecx, dword [esp + 0x388]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x370]
xor ecx, esp
call fcn.0046fdae
mov esp, ebp
pop ebp
ret 8
Function at 0x464220
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b2e1e
mov eax, dword fs:[0]
push eax
push ebp
push esi
push edi
mov eax, dword [0x4f4930]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, dword [esp + 0x20]
mov dword [edi + 4], 1
mov dword [edi + 8], 2
mov dword [edi + 0xc], 0xffffffff
xor ebp, ebp
mov dword [esp + 0x18], ebp
lea esi, [edi + 0x30]
mov dword [edi], 0x4de7ac
mov dword [edi + 0x10], ebp
mov dword [edi + 0x14], ebp
mov dword [edi + 0x18], ebp
mov dword [edi + 0x1c], ebp
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebp
mov word [esi + 4], ax
push ebp
mov eax, 0x4cb7d4
call fcn.004065f0
lea esi, [edi + 0x4c]
mov byte [esp + 0x18], 1
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebp
push ebp
mov eax, 0x4cb7d4
mov word [esi + 4], cx
call fcn.004065f0
lea esi, [edi + 0x68]
mov byte [esp + 0x18], 2
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebp
push ebp
mov eax, 0x4cb7d4
mov word [esi + 4], dx
call fcn.004065f0
xor eax, eax
mov dword [edi + 0x84], ebp
mov dword [edi + 0x88], ebp
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 4

Function at 0x4646b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b2de5
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f4930]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
mov dword [edi + 4], 1
mov dword [edi + 8], 0x11
mov dword [edi + 0xc], 0xffffffff
xor ebp, ebp
mov dword [esp + 0x1c], ebp
lea esi, [edi + 0x30]
mov dword [edi], 0x4de7dc
mov dword [edi + 0x10], ebp
mov dword [edi + 0x14], ebp
mov dword [edi + 0x18], ebp
mov dword [edi + 0x1c], ebp
xor eax, eax
mov ebx, 7
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebp
mov word [esi + 4], ax
push ebp
mov eax, 0x4cb7d4
call fcn.004065f0
lea esi, [edi + 0x4c]
mov byte [esp + 0x1c], 1
xor ecx, ecx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebp
push ebp
mov eax, 0x4cb7d4
mov word [esi + 4], cx
call fcn.004065f0
xor edx, edx
mov dword [edi + 0x80], ebx
mov dword [edi + 0x7c], ebp
mov word [edi + 0x6c], dx
lea esi, [edi + 0x84]
mov byte [esp + 0x1c], 3
xor eax, eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebp
mov word [esi + 4], ax
push ebp
mov eax, 0x4cb7d4
call fcn.004065f0
xor ecx, ecx
mov dword [edi + 0xb8], ebx
mov dword [edi + 0xb4], ebp
mov word [edi + 0xa4], cx
lea esi, [edi + 0xbc]
mov byte [esp + 0x1c], 5
xor edx, edx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebp
push ebp
mov eax, 0x4cb7d4
mov word [esi + 4], dx
call fcn.004065f0
mov dword [edi + 0x20], ebp
mov dword [edi + 0x24], ebp
mov dword [edi + 0x28], ebp
mov dword [edi + 0x2c], ebp
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4