joyce8/EMBER2024-capa huggingface dataset:
Function at 0x8d0250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x8e4808
push 0x8d4288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x8d0329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x8d0329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.008d31d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x8d0329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x8d0329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x8d032c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.008d0351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x8d0d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x8d0d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x8d0d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x8d0d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x8d0d94
push eax
push esi
call fcn.008d320b
add esp, 8
pop esi
ret 0x10

Function at 0x8d0da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x8d0e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x8d0e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x8e9320
push ecx
mov dword [esp + 0x1c], 4
call fcn.008d2dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x8d0dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x8d0e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x8d0ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x8d0eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x8e9320
push ecx
mov dword [esp + 0x1c], 4
call fcn.008d2dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x8d0eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x8d0e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x8d1000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x8d1131
push esi
call fcn.008d4145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.008c3080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x8d1131
push 0
push ebp
call fcn.008c33a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.008c3260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x8d108b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.008c32f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x8d1121
push 0x8e9918
push edi
call fcn.008d23f0
push eax
push ebx
push esi
call fcn.008d0f60
push 0x8e98f8
push edi
call fcn.008d23f0
push eax
push ebx
push esi
call fcn.008d0f60
push 0x8e98d8
push edi
call fcn.008d23f0
push eax
push ebx
push esi
call fcn.008d0f60
push 0x8e98c0
push edi
call fcn.008d23f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.008d0f60
push 0x8e98a0
push edi
call fcn.008d23f0
push eax
push ebx
push esi
call fcn.008d0f60
push 0x8e9888
push edi
call fcn.008d23f0
push eax
push ebx
push esi
call fcn.008d0f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x8d21b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.008d2140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.008d2140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.008d2140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.008d2140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x8d2bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x8d2c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x8e487c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x8d2c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x8d2c52
xor eax, eax
pop esi
leave
ret 4

Function at 0x429703
Capabilities:
Resolve function by parsing pe exports

Disassembly:
not edx
not edx
mov eax, 0
cld
clc
nop
cld
not ebp
not ebp
cld
dec esp
inc esp
cld
push eax
nop
sahf
wait
mov ch, ch
not dh
not dh
imul eax, eax, 0x10
stc
xchg dword [esp], eax
jmp 0x4295b6
add al, dl
lea edx, [edx + ebx]
sub cl, 0x31
push dword [edx + 0x20]
pop esi
lea esi, [ebx + esi]
jmp 0x42972c
cmp dh, 0x94
add esi, ebx
clc
ret 4
sahf
cmc
sub dword [esp], eax
cld
movzx eax, byte [edi]
sub edi, 0xffffffff
jmp 0x4297b3
mov edi, dword [edx + 0x1c]
cmp eax, 0xffffffa2
not eax
adc eax, 0xe68ae329
mov eax, 0x334a8761
cmp ah, 2
mov esi, dword [edx + 0x24]
dec dh
cld
add esi, ebx
xchg edx, edx
movzx eax, word [esi + ecx*2]
jmp 0x429671
mov dl, dh
add edi, ebx
mov esi, dword [edi + eax*4]
jmp 0x4295ad
lea ecx, [ecx]
not esi
not esi
not bl
not bl
jne 0x4250d3
xchg edx, edx
xchg edx, edx
lea ecx, [ecx]
xor eax, 0x69521502
jmp 0x4298e8
ret
push dword [ebx + 0x3c]
mov edx, ecx
cmp cl, 0xb8
xchg ecx, edi
xchg ecx, esi
nop
lahf
cld
sbb al, bl
pop eax
mov edi, ecx
mov edx, dword [eax + ebx + 0x78]
jmp 0x4294cc
add ecx, 1
cmp edi, 0xffffffa9
lodsd eax, dword [esi]
jmp 0x42979e
push 0xffffffffffffffff
xchg ah, al
cmp ah, dl
xchg edi, edi
not al
mov edi, esi
and al, dh
pop ecx
jmp 0x429720
lea edi, [eax + ebx]
xchg edx, ebp
xchg edx, ebp
cmp ecx, dword [edx + 0x18]
je 0x429700
jmp 0x4250be
sub dword [esp], eax
pop eax
test byte [edi], 0xff
jmp 0x429697
nop
sub eax, dword [esp + 4]
jne 0x429720
jmp 0x429617
Function at 0x403050
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00403e10
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00403e10
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x4030b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x408b9c]
test esi, esi
jle 0x4031b0
mov eax, dword [0x408ba0]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x4030e0
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x40315f
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4030d0
mov dword [esp], ebx
call fcn.00403a10
mov edi, eax
test eax, eax
je 0x4031d7
mov eax, dword [0x408ba0]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00403b50
mov edx, dword [0x408ba0]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4031b7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x403158
sub eax, 4
and eax, 0xfffffffb
jne 0x403166
add dword [0x408b9c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x408ba0]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x403158
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00403050
xor esi, esi
jmp 0x4030ea
mov eax, dword [0x408ba0]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00403050
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00403050
lea esi, [esi]
nop
Function at 0x403690
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x408bb8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x408bb0]
sub esp, 4
test ebx, ebx
je 0x4036e5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4036de
test esi, esi
je 0x4036de
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4036c0
mov dword [esp], 0x408bb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x403a10
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x403a35
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x403a40
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x403a35
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x403a88
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x403a7e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x403a8a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x403a70
xor eax, eax
pop ebx
pop esi
ret
Function at 0x4024e4
Capabilities:
Terminate process

Disassembly:
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push 0
push 8
push esp
call dword [sym.imp.COMCTL32.DLL_InitCommonControlsEx]
add esp, 8
mov eax, 0x5bd0a0
mov dword [0x58ac4c], eax
mov eax, 0x5bd080
mov dword [0x589c5c], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x58ac28], eax
call fcn.005423f8
cmp eax, 0
jl 0x99d9bec2
call fcn.004020c9
cmp eax, 0
jl 0x99d9bed0
call fcn.004021fd
cmp eax, 0
jl 0x99d9bede
call fcn.005240c1
call fcn.00523f76
call fcn.00507667
push 0x58cd05
call fcn.004e55a8
cmp eax, 0
jl 0x99d9bf00
call fcn.004d3b35
cmp eax, 0
jl 0x99d9bf0e
call fcn.00402304
push 0x58caf5
mov eax, 0x56b230
pop dword [eax]
push 0x58c9ee
mov eax, 0x58ac58
pop dword [eax]
push 0x58ac92
mov eax, 0x58abec
pop dword [eax]
push 0x58ac90
mov eax, 0x589c88
pop dword [eax]
push 0x58c984
mov eax, 0x58ac14
pop dword [eax]
call fcn.00561317
call fcn.004024db
call fcn.00524024
call fcn.00523eb3
call fcn.004e6229
call dword [sym.imp.ole32.dll_OleUninitialize]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x46c5fa
Capabilities:
Read file on windows

Disassembly:
cmp byte [esp + 4], 0
push ebx
push ebp
push esi
push edi
mov ebx, edx
mov edi, ecx
jne 0x46c613
test byte [edi + 8], 4
jne 0x46c7a5
mov ecx, dword [esp + 0x18]
movzx ebp, cx
cmp ebp, 0x14
ja case.0x46c62a.1
movzx eax, byte [ebp + 0x46c5e2]
jmp dword [eax*4 + 0x46c5c6]
mov esi, 1
push 2
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push edi
call fcn.0046cc6a
test al, al
je 0x46c6ba
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46c79f
push ebx
push eax
push dword [esp + 0x20]
call dword [sym.imp.OLEAUT32.dll_SafeArrayCreateEx]
test eax, eax
js 0x46c793
lea eax, [ebp - 8]
cmp eax, 5
ja case.0x46c677.10
jmp dword [eax*4 + 0x46c5aa]
mov esi, 2
jmp 0x46c636
mov esi, 4
jmp 0x46c636
mov esi, 8
jmp 0x46c636
mov esi, 0x10
jmp 0x46c636
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x46c636
mov esi, ecx
sar esi, 0x10
add esi, esi
jmp 0x46c6af
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x46c636
mov dword [edi + 0x24], 0x80020005
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0x10
mov ecx, 0x100
jmp 0x46c6dd
mov ecx, 0x200
jmp 0x46c6dd
mov ecx, 0x400
jmp 0x46c6dd
mov ecx, 0x800
mov eax, dword [ebx]
or word [eax + 2], cx
mov eax, dword [ebx]
mov dword [eax + 4], esi
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx]
add ecx, 0x10
mov dword [esp + 0x18], ecx
lea esi, [eax*8]
test esi, esi
je 0x46c787
test byte [edi + 8], 4
je 0x46c73f
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push esi
push ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x1c]
add dword [edi + 4], ecx
cmp ecx, esi
setne al
mov byte [edi + 0x29], al
je 0x46c787
mov edx, dword [esp + 0x18]
sub esi, ecx
lea edx, [ecx + edx]
jmp 0x46c780
mov eax, dword [edi + 0x14]
mov ebp, dword [edi + 0xc]
mov edx, dword [edi + 0x10]
sub ebp, eax
add edx, eax
add eax, esi
mov dword [edi + 0x14], eax
cmp esi, ebp
jg 0x46c762
push esi
push edx
push ecx
call fcn.0055fcbe
add esp, 0xc
jmp 0x46c787
test ebp, ebp
js 0x46c77e
jle 0x46c777
push ebp
push edx
push ecx
call fcn.0055fcbe
mov ecx, dword [esp + 0x24]
add esp, 0xc
lea edx, [ecx + ebp]
sub esi, ebp
jmp 0x46c780
mov edx, ecx
mov ecx, esi
call fcn.0055d86a
push dword [ebx]
call dword [sym.imp.OLEAUT32.dll_SafeArrayDestroyDescriptor]
test eax, eax
jns 0x46c7a5
mov dword [edi + 0x24], eax
xor al, al
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
mov dword [ebx], 0
mov edx, dword [ebx]
xor ecx, ecx
test edx, edx
je 0x46c7ca
movzx eax, word [edx]
test ax, ax
mov esi, eax
setne cl
test esi, esi
je 0x46c7ca
add edx, 0x10
imul ecx, dword [edx]
lea edx, [edx + 8]
sub esi, 1
jne 0x46c7bf
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
mov al, 1
pop ebx
ret 0x10
Function at 0x46c631
Capabilities:
Read file on windows

Disassembly:
cmp byte [esp + 4], 0
push ebx
push ebp
push esi
push edi
mov ebx, edx
mov edi, ecx
jne 0x46c613
test byte [edi + 8], 4
jne 0x46c7a5
mov ecx, dword [esp + 0x18]
movzx ebp, cx
cmp ebp, 0x14
ja case.0x46c62a.1
movzx eax, byte [ebp + 0x46c5e2]
jmp dword [eax*4 + 0x46c5c6]
mov esi, 1
push 2
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push edi
call fcn.0046cc6a
test al, al
je 0x46c6ba
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46c79f
push ebx
push eax
push dword [esp + 0x20]
call dword [sym.imp.OLEAUT32.dll_SafeArrayCreateEx]
test eax, eax
js 0x46c793
lea eax, [ebp - 8]
cmp eax, 5
ja case.0x46c677.10
jmp dword [eax*4 + 0x46c5aa]
mov esi, 2
jmp 0x46c636
mov esi, 4
jmp 0x46c636
mov esi, 8
jmp 0x46c636
mov esi, 0x10
jmp 0x46c636
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x46c636
mov esi, ecx
sar esi, 0x10
add esi, esi
jmp 0x46c6af
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x46c636
mov dword [edi + 0x24], 0x80020005
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0x10
mov ecx, 0x100
jmp 0x46c6dd
mov ecx, 0x200
jmp 0x46c6dd
mov ecx, 0x400
jmp 0x46c6dd
mov ecx, 0x800
mov eax, dword [ebx]
or word [eax + 2], cx
mov eax, dword [ebx]
mov dword [eax + 4], esi
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx]
add ecx, 0x10
mov dword [esp + 0x18], ecx
lea esi, [eax*8]
test esi, esi
je 0x46c787
test byte [edi + 8], 4
je 0x46c73f
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push esi
push ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x1c]
add dword [edi + 4], ecx
cmp ecx, esi
setne al
mov byte [edi + 0x29], al
je 0x46c787
mov edx, dword [esp + 0x18]
sub esi, ecx
lea edx, [ecx + edx]
jmp 0x46c780
mov eax, dword [edi + 0x14]
mov ebp, dword [edi + 0xc]
mov edx, dword [edi + 0x10]
sub ebp, eax
add edx, eax
add eax, esi
mov dword [edi + 0x14], eax
cmp esi, ebp
jg 0x46c762
push esi
push edx
push ecx
call fcn.0055fcbe
add esp, 0xc
jmp 0x46c787
test ebp, ebp
js 0x46c77e
jle 0x46c777
push ebp
push edx
push ecx
call fcn.0055fcbe
mov ecx, dword [esp + 0x24]
add esp, 0xc
lea edx, [ecx + ebp]
sub esi, ebp
jmp 0x46c780
mov edx, ecx
mov ecx, esi
call fcn.0055d86a
push dword [ebx]
call dword [sym.imp.OLEAUT32.dll_SafeArrayDestroyDescriptor]
test eax, eax
jns 0x46c7a5
mov dword [edi + 0x24], eax
xor al, al
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
mov dword [ebx], 0
mov edx, dword [ebx]
xor ecx, ecx
test edx, edx
je 0x46c7ca
movzx eax, word [edx]
test ax, ax
mov esi, eax
setne cl
test esi, esi
je 0x46c7ca
add edx, 0x10
imul ecx, dword [edx]
lea edx, [edx + 8]
sub esi, 1
jne 0x46c7bf
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
mov al, 1
pop ebx
ret 0x10
Function at 0x46c67e
Capabilities:
Read file on windows

Disassembly:
cmp byte [esp + 4], 0
push ebx
push ebp
push esi
push edi
mov ebx, edx
mov edi, ecx
jne 0x46c613
test byte [edi + 8], 4
jne 0x46c7a5
mov ecx, dword [esp + 0x18]
movzx ebp, cx
cmp ebp, 0x14
ja case.0x46c62a.1
movzx eax, byte [ebp + 0x46c5e2]
jmp dword [eax*4 + 0x46c5c6]
mov esi, 1
push 2
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push edi
call fcn.0046cc6a
test al, al
je 0x46c6ba
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46c79f
push ebx
push eax
push dword [esp + 0x20]
call dword [sym.imp.OLEAUT32.dll_SafeArrayCreateEx]
test eax, eax
js 0x46c793
lea eax, [ebp - 8]
cmp eax, 5
ja case.0x46c677.10
jmp dword [eax*4 + 0x46c5aa]
mov esi, 2
jmp 0x46c636
mov esi, 4
jmp 0x46c636
mov esi, 8
jmp 0x46c636
mov esi, 0x10
jmp 0x46c636
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x46c636
mov esi, ecx
sar esi, 0x10
add esi, esi
jmp 0x46c6af
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x46c636
mov dword [edi + 0x24], 0x80020005
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0x10
mov ecx, 0x100
jmp 0x46c6dd
mov ecx, 0x200
jmp 0x46c6dd
mov ecx, 0x400
jmp 0x46c6dd
mov ecx, 0x800
mov eax, dword [ebx]
or word [eax + 2], cx
mov eax, dword [ebx]
mov dword [eax + 4], esi
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx]
add ecx, 0x10
mov dword [esp + 0x18], ecx
lea esi, [eax*8]
test esi, esi
je 0x46c787
test byte [edi + 8], 4
je 0x46c73f
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push esi
push ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x1c]
add dword [edi + 4], ecx
cmp ecx, esi
setne al
mov byte [edi + 0x29], al
je 0x46c787
mov edx, dword [esp + 0x18]
sub esi, ecx
lea edx, [ecx + edx]
jmp 0x46c780
mov eax, dword [edi + 0x14]
mov ebp, dword [edi + 0xc]
mov edx, dword [edi + 0x10]
sub ebp, eax
add edx, eax
add eax, esi
mov dword [edi + 0x14], eax
cmp esi, ebp
jg 0x46c762
push esi
push edx
push ecx
call fcn.0055fcbe
add esp, 0xc
jmp 0x46c787
test ebp, ebp
js 0x46c77e
jle 0x46c777
push ebp
push edx
push ecx
call fcn.0055fcbe
mov ecx, dword [esp + 0x24]
add esp, 0xc
lea edx, [ecx + ebp]
sub esi, ebp
jmp 0x46c780
mov edx, ecx
mov ecx, esi
call fcn.0055d86a
push dword [ebx]
call dword [sym.imp.OLEAUT32.dll_SafeArrayDestroyDescriptor]
test eax, eax
jns 0x46c7a5
mov dword [edi + 0x24], eax
xor al, al
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
mov dword [ebx], 0
mov edx, dword [ebx]
xor ecx, ecx
test edx, edx
je 0x46c7ca
movzx eax, word [edx]
test ax, ax
mov esi, eax
setne cl
test esi, esi
je 0x46c7ca
add edx, 0x10
imul ecx, dword [edx]
lea edx, [edx + 8]
sub esi, 1
jne 0x46c7bf
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
mov al, 1
pop ebx
ret 0x10