joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10106a70
Capabilities:
Terminate process

Disassembly:
test ecx, ecx
je 0x10106a8a
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x10106a8a
mov ecx, dword [ecx + 0x44]
test ecx, ecx
je 0x10106a8a
push 1
push ecx
call eax
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x101133a0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x101fe070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x24], edx
push edi
push 0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x1011349a
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10113493
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x20], 0x10
jb 0x10113479
call ebx
cmp dword [ebp - 0x14], eax
jne 0x10113479
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10113479
mov edx, dword [esi]
test edx, edx
jne 0x10113442
push 0x200
push edx
push dword [0x102049e8]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10113493
jmp 0x1011346d
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x1011346d
shl eax, 3
push eax
push edx
push 0
push dword [0x102049e8]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10113493
mov eax, dword [esi + 4]
add eax, eax
mov dword [esi], edx
mov dword [esi + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10113401
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x101134df
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x101134df
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x101134d9
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.10113230
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x101134a6
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1015c023
mov esp, ebp
pop ebp
ret
Function at 0x101134f0
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, ecx
mov eax, dword [ebx]
test eax, eax
je 0x1011353e
push esi
xor esi, esi
cmp dword [ebx + 8], esi
jbe 0x1011352e
push edi
mov eax, dword [ebx]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10113525
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebx + 8]
jb 0x10113502
mov eax, dword [ebx]
pop edi
push eax
push 0
push dword [0x102049e8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebx
ret

Function at 0x10113540
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
imul esi, ecx, 0x2c
push edi
add esi, dword [0x102058b0]
mov al, byte [esi + 0x14]
mov edi, dword [esi]
and al, 1
je 0x1011355c
sub edi, 5
movzx eax, al
lea ebx, [eax*2 + 5]
lea eax, [ebp - 4]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10113584
pop edi
pop esi
mov eax, 0xa
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x1011359f
mov eax, dword [esi]
mov word [eax], 0xf9eb
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [esi + 0x14], 6
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x101135d0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [0x102058b8]
push ebx
push esi
xor ebx, ebx
xor esi, esi
mov dword [ebp - 4], ebx
test ecx, ecx
je 0x101136ad
mov eax, dword [0x102058b0]
add eax, 0x14
test byte [eax], 2
je 0x1011360a
inc esi
add eax, 0x2c
cmp esi, ecx
jb 0x101135f5
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x101136ad
push edi
push 1
or edx, 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.101133a0
mov ecx, dword [0x102058b8]
add esp, 4
cmp esi, ecx
jae 0x1011365b
imul edi, esi, 0x2c
mov eax, dword [0x102058b0]
test byte [edi + eax + 0x14], 2
jne 0x10113650
mov ecx, esi
call fcn.10113540
mov ebx, eax
test ebx, ebx
jne 0x10113658
mov ecx, dword [0x102058b8]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x10113631
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x101136ac
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x1011369d
mov ebx, eax
jmp 0x10113670
push dword [ebx + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10113691
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x10113670
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x102049e8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10118b70
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x101f1690
push 0x1015d650
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x101fe070]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x434], esi
mov dword [ebp - 4], 0
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10118bca
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov edx, esi
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.10118cb0
mov bl, al
mov byte [ebp - 0x42d], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x10118c0d
test bl, bl
jne 0x10118c8e
cmp edi, 0x1a
jne 0x10118c8e
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10118c27
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
push 0x410
push ecx
lea eax, [ebp - 0x42c]
push eax
call fcn.1015e8b0
add esp, 0xc
push 0x207
lea eax, [ebp - 0x42c]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x42c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10118c61
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x42c]
push eax
mov ecx, esi
call fcn.100090a0
movzx ebx, bl
mov eax, 1
cmp dword [esi + 0x10], 0
cmovne ebx, eax
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1015c023
mov esp, ebp
pop ebp
ret
Function at 0x10119170
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x120]
sub esp, 0x120
push 0xffffffffffffffff
push 0x101a0312
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x101fe070]
xor eax, ebp
mov dword [ebp + 0x11c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
je 0x101191b4
call fcn.10119350
cmp byte [0x10204f94], 0
jne 0x101191c7
mov eax, reloc.gdiplus.dll_Ordinal_1
jmp 0x10119326
mov eax, dword [esi]
test eax, eax
jne 0x10119232
push 8
call fcn.1015c042
mov edi, eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], 0
push 1
call fcn.1015c042
mov dword [edi + 4], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [ebp + 4]
push eax
call fcn.1015e8b0
add esp, 0x14
mov dword [ebp], 0x11c
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10119221
cmp dword [ebp + 4], 6
mov eax, dword [edi + 4]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0xffffffff
mov dword [esi], edi
mov dword [edi], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x10119315
call fcn.1000cbf0
test al, al
jne 0x10119274
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi]
push eax
add ecx, 4
call fcn.1000d2f0
test al, al
je 0x10119315
mov ecx, dword [esi]
add ecx, 4
call fcn.1000c630
call fcn.1000cbf0
test al, al
je 0x10119315
push str.Advapi32.dll
lea ecx, [ebp - 0x24]
call fcn.10008e50
mov dword [ebp - 4], 2
lea eax, [ebp - 0x24]
push eax
call fcn.10018430
mov ecx, eax
call fcn.100184f0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
cmp edx, 8
jb 0x101192d7
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x101192cd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1011934a
push edx
push ecx
call fcn.1015c4d3
add esp, 8
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
test edi, edi
je 0x10119315
push str.RegOpenCurrentUser
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10119315
push dword [esi]
push dword [ebp + 0x128]
call eax
test eax, eax
je 0x10119315
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x10119324
mov dword [eax], reloc.gdiplus.dll_Ordinal_1
mov eax, dword [esi]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x11c]
xor ecx, ebp
call fcn.1015c023
lea esp, [ebp + 0x120]
pop ebp
ret 4
call fcn.101616ac
int3
Function at 0x1011b9f0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a072f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x101fe070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.10009040
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.10009040
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.10009040
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.10009040
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.10009040
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.10009040
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x1011ba80
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a072f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x101fe070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.10009040
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.10009040
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.10009040
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.10009040
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.10009040
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.10009040
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1011ee90
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a0bff
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x101fe070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.10008eb0
mov dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.10008eb0
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.10008eb0
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.10008eb0
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
mov al, byte [esi + 0x60]
mov byte [edi + 0x60], al
lea eax, [esi + 0x64]
push eax
call fcn.10008eb0
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.10008eb0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x101214f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x101fe070]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], eax
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
cmp dword [ebp + 0x10], 0xffffffff
mov edi, dword [esp + 0x20]
je 0x10121572
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x10121572
test ecx, ecx
je 0x1012156e
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x10121530
xor eax, eax
jmp 0x10121577
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x10121581
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1015c023
add esp, 0xc
ret 0xc
Function at 0x101236b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x18
push esi
push edi
mov edi, ecx
mov esi, dword [edi]
movzx eax, byte [esi]
cmp byte [eax + 0x101cca50], 0
je 0x101236de
nop word [eax + eax]
movzx eax, byte [esi + 1]
inc esi
cmp byte [eax + 0x101cca50], 0
jne 0x101236d0
mov dword [edi], esi
mov ecx, esi
mov dl, byte [esi]
movzx eax, dl
mov dword [esp + 8], ecx
cmp byte [eax + 0x101cc650], 0
je 0x10123878
nop dword [eax + eax]
cmp dl, 0x26
jne case.0x10123720.36
movsx eax, byte [esi + 1]
add eax, 0xffffffdd
cmp eax, 0x4e
ja case.0x10123720.36
movzx eax, byte [eax + 0x101238b8]
jmp dword [eax*4 + 0x101238a0]
mov al, byte [esi + 2]
cmp al, 0x6d
jne 0x1012374e
cmp byte [esi + 3], 0x70
jne case.0x10123720.36
cmp byte [esi + 4], 0x3b
jne case.0x10123720.36
mov byte [ecx], 0x26
inc ecx
add esi, 5
jmp 0x10123862
cmp al, 0x70
jne case.0x10123720.36
cmp byte [esi + 3], 0x6f
jne case.0x10123720.36
cmp byte [esi + 4], 0x73
jne case.0x10123720.36
cmp byte [esi + 5], 0x3b
jne case.0x10123720.36
mov byte [ecx], 0x27
inc ecx
add esi, 6
jmp 0x10123862
cmp byte [esi + 2], 0x75
jne case.0x10123720.36
cmp byte [esi + 3], 0x6f
jne case.0x10123720.36
cmp byte [esi + 4], 0x74
jne case.0x10123720.36
cmp byte [esi + 5], 0x3b
jne case.0x10123720.36
mov byte [ecx], 0x22
inc ecx
add esi, 6
jmp 0x10123862
cmp byte [esi + 2], 0x74
jne case.0x10123720.36
cmp byte [esi + 3], 0x3b
jne case.0x10123720.36
mov byte [ecx], 0x3e
inc ecx
add esi, 4
jmp 0x10123862
cmp byte [esi + 2], 0x74
jne case.0x10123720.36
cmp byte [esi + 3], 0x3b
jne case.0x10123720.36
mov byte [ecx], 0x3c
inc ecx
add esi, 4
jmp 0x10123862
mov cl, byte [esi + 2]
xor edx, edx
cmp cl, 0x78
jne 0x10123820
movzx eax, byte [esi + 3]
add esi, 3
mov al, byte [eax + 0x101cc750]
cmp al, 0xff
je 0x10123847
inc esi
movzx eax, al
shl edx, 4
add edx, eax
movzx eax, byte [esi]
mov al, byte [eax + 0x101cc750]
cmp al, 0xff
jne 0x10123808
jmp 0x10123847
movzx eax, cl
add esi, 2
mov al, byte [eax + 0x101cc750]
cmp al, 0xff
je 0x10123847
movzx eax, al
lea ecx, [edx + edx*4]
inc esi
lea edx, [eax + ecx*2]
movzx eax, byte [esi]
mov al, byte [eax + 0x101cc750]
cmp al, 0xff
jne 0x10123830
lea ecx, [esp + 8]
call fcn.10123b70
cmp byte [esi], 0x3b
jne 0x10123882
mov ecx, dword [esp + 8]
inc esi
jmp 0x10123866
mov al, byte [esi]
mov byte [ecx], al
inc ecx
inc esi
mov dword [esp + 8], ecx
mov dl, byte [esi]
movzx eax, dl
cmp byte [eax + 0x101cc650], 0
jne 0x10123700
mov dword [edi], esi
mov eax, ecx
pop edi
pop esi
add esp, 0x18
ret
push esi
push str.expected__
lea ecx, [esp + 0x14]
call fcn.10122520
push 0x101fa540
lea eax, [esp + 0x10]
push eax
call fcn.1015ea0a
in eax, dx
aaa
adc dl, byte [eax]
daa
aaa
adc dl, byte [eax]
mov ah, 0x37
adc dl, byte [eax]
aam 0x37
adc dl, byte [eax]
xor byte [edi], 0x12
adc byte [eax + edi + 18], bl
adc byte [eax], al
add eax, 0x5050505
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215041
add eax, 84214277
add eax, 84214533
add eax, -859044859
int3
Function at 0x10132cd0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x101fe070]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x10132d35
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10132d10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10132d35
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.1015c023
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.1015c023
add esp, 8
ret 4
Function at 0x10134700
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a3441
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x101fe070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.DL::RCSimpleDownloadHandler.0
mov dword [edi + 4], vtable.DL::RCSimpleDownloadHandler.1.0
mov dword [ebp - 4], 7
mov dword [edi + 0x98], 0
mov byte [ebp - 4], 6
or ebx, 0xffffffff
mov esi, dword [edi + 0xf8]
test esi, esi
je 0x1013477b
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1013477b
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1013477b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 5
mov ecx, dword [edi + 0xec]
test ecx, ecx
je 0x10134796
lock xadd dword [ecx + 8], ebx
dec ebx
jne 0x10134796
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, dword [edi + 0xe4]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
test eax, eax
je 0x101347c7
push eax
call ebx
push 0x18
push dword [edi + 0xe4]
call fcn.1015c4d3
add esp, 8
mov dword [edi + 0xe4], 0
mov byte [ebp - 4], 3
lea esi, [edi + 0xc0]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 8
mov eax, dword [esi]
test eax, eax
je 0x101347eb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov byte [ebp - 4], 3
lea ecx, [esi + 8]
call fcn.10009040
mov byte [ebp - 4], 2
mov eax, dword [edi + 0xac]
test eax, eax
je 0x10134822
push eax
call ebx
push 0x18
push dword [edi + 0xac]
call fcn.1015c4d3
add esp, 8
mov dword [edi + 0xac], 0
mov byte [ebp - 4], 1
mov ecx, dword [edi + 0xa0]
test ecx, ecx
je 0x1013489d
mov edx, dword [edi + 0xa4]
push ecx
call fcn.1008d9f0
mov eax, dword [edi + 0xa8]
add esp, 4
mov ecx, dword [edi + 0xa0]
sub eax, ecx
sar eax, 3
lea edx, [eax*8]
cmp edx, 0x1000
jb 0x10134875
mov esi, dword [ecx - 4]
add edx, 0x23
sub ecx, esi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x1013491c
mov ecx, esi
push edx
push ecx
call fcn.1015c4d3
add esp, 8
mov dword [edi + 0xa0], 0
mov dword [edi + 0xa4], 0
mov dword [edi + 0xa8], 0
mov byte [ebp - 4], 0
lea esi, [edi + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0xc
lea ecx, [esi + 0x70]
call fcn.10009040
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x48]
call fcn.10009040
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x30]
call fcn.10009040
mov byte [ebp - 4], 9
lea ecx, [esi + 0x18]
call fcn.10009040
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.10009040
mov dword [ebp - 4], 0xe
mov dword [edi + 4], vtable.RC::RCRefCounted.0
mov dword [ebp - 4], 0xffffffff
mov dword [edi], vtable.DL::ISimpleDownloadHandler.0
mov dword [ebp - 4], 0xffffffff
mov dword [edi], vtable.RC::IRefCount.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.101616ac
int3
Function at 0x101370e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a3958
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x101fe070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push eax
push 2
push 0xffffffffffffffff
push 0xffff8000
movlpd qword [ebp - 0x3c], xmm0
call fcn.100196d0
test al, al
jne 0x10137140
mov eax, 1
jmp 0x101372bd
push 0x10000
call fcn.1015ca47
mov ebx, eax
mov dword [ebp - 0x18], 0
add esp, 4
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
push 0x10000
push 0
push ebx
call fcn.1015e8b0
mov eax, dword [esi]
add esp, 0xc
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x10137296
test ebx, ebx
je 0x10137296
cmp dword [eax], 0xffffffff
je 0x10137296
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0x8000
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10137296
mov esi, dword [ebp - 0x20]
mov ecx, 0x8000
xor ebx, ebx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], ecx
add esi, ecx
nop word [eax + eax]
cmp byte [edi + 0x9c], 0
jne 0x1013728c
lea edx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push edx
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push edx
push ecx
mov ecx, dword [ebp - 0x34]
lea eax, [esi + ebx]
push eax
call fcn.10144850
test al, al
je 0x1013727f
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x10137232
mov eax, dword [edi + 0xc0]
test eax, eax
je 0x10137221
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [edi + 0x9c], 0
jne 0x1013728c
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
jmp 0x1013723c
add ebx, eax
cmp ebx, 0x8000
je 0x1013724c
cmp dword [ebp - 0x28], 0xf
ja 0x10137275
mov ecx, dword [ebp - 0x2c]
sub ecx, eax
mov dword [ebp - 0x2c], ecx
jne 0x101371d0
mov ebx, dword [ebp - 0x20]
mov edx, 0x7ffc
mov ecx, ebx
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x1013726e
add ecx, 4
add esi, 4
sub edx, 4
jae 0x10137256
mov esi, 4
jmp 0x101372a7
mov esi, 5
jmp 0x101372a7
mov ebx, dword [ebp - 0x20]
mov esi, 3
jmp 0x101372a7
mov eax, dword [ebp - 0x30]
mov esi, 3
mov ebx, dword [ebp - 0x20]
jmp 0x101372a1
mov ebx, dword [ebp - 0x20]
mov esi, 2
jmp 0x101372a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 1
mov dword [edi + 0xb0], eax
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x101372bb
push ebx
call fcn.1015c847
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1015c023
mov esp, ebp
pop ebp
ret 0xc