joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002a1c0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x100884e0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x1002a1fe
mov eax, dword [esi]
jmp 0x1002a200
mov eax, esi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call ebx
test eax, eax
je 0x1002a214
mov al, 1
jmp 0x1002a3d1
cmp dword [esi + 0x14], 8
jb 0x1002a21e
mov edx, dword [esi]
jmp 0x1002a220
mov edx, esi
xor eax, eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
cmp word [edx], ax
jne 0x1002a250
xor ecx, ecx
jmp 0x1002a264
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002a255
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x3c]
call fcn.10003000
mov dword [esp + 0x58], 0
lea ecx, [esp + 0x34]
call fcn.10029a60
mov ebp, eax
mov dword [esp + 0x58], 0xffffffff
cmp dword [esp + 0x48], 8
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x1002a2a0
push dword [esp + 0x34]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
cmp ebp, 0xffffffff
jne 0x1002a2c3
xor al, al
jmp 0x1002a3d1
cmp dword [esi + 0x14], 8
jb 0x1002a2cd
mov eax, dword [esi]
jmp 0x1002a2cf
mov eax, esi
push eax
lea ecx, [esp + 0x38]
call fcn.10002f90
mov dword [esp + 0x58], 1
xor edx, edx
lea ecx, [esp + 0x34]
call fcn.10029950
test al, al
sete al
mov byte [esp + 0x1b], al
mov dword [esp + 0x58], 0xffffffff
cmp dword [esp + 0x48], 8
jb 0x1002a311
push dword [esp + 0x34]
call edi
mov al, byte [esp + 0x1f]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], cx
test al, al
jne 0x1002a2bc
cmp dword [esi + 0x14], 8
jb 0x1002a336
mov eax, dword [esi]
jmp 0x1002a338
mov eax, esi
push eax
call ebx
test eax, eax
jne 0x1002a20d
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], eax
mov word [esp + 0x34], ax
mov dword [esp + 0x58], 2
lea edx, [esp + 0x34]
mov ecx, esi
call fcn.1002abc0
test al, al
je 0x1002a38c
cmp dword [esp + 0x48], 8
lea eax, [esp + 0x34]
cmovae eax, dword [esp + 0x34]
push eax
call ebx
test eax, eax
je 0x1002a38c
mov bl, 1
jmp 0x1002a3be
cmp dword [esi + 0x14], 8
jb 0x1002a394
mov esi, dword [esi]
push esi
lea ecx, [esp + 0x20]
call fcn.10002f90
mov byte [esp + 0x58], 3
mov edx, ebp
lea ecx, [esp + 0x1c]
call fcn.10029950
mov byte [esp + 0x58], 2
lea ecx, [esp + 0x1c]
call fcn.10002a80
xor bl, bl
mov dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.10002a80
mov al, bl
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.10081b94
add esp, 0x48
ret
Function at 0x1002a3f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x1008851b
mov eax, dword fs:[0]
push eax
sub esp, 0x628
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x624], eax
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x630]
mov dword fs:[0], eax
mov esi, ecx
push 0x100b033c
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
call fcn.100050b0
mov dword [esp + 0x638], 0
cmp dword [0x100af030], 0
je 0x1002a487
cmp esi, 0x100af020
je 0x1002a46c
push 0xffffffffffffffff
push 0
push 0x100af020
mov ecx, esi
call fcn.10003100
mov dword [esp + 0x638], 0xffffffff
lea ecx, [esp + 8]
call fcn.100050e0
mov al, 1
jmp 0x1002a55b
xor eax, eax
push 0x20a
push eax
mov word [esp + 0x14], ax
lea eax, [esp + 0x16]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x1002a545
xor eax, eax
push 0x410
push eax
mov word [esp + 0x21e], ax
mov word [esp + 0x220], ax
lea eax, [esp + 0x222]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [esp + 0x218]
push 0x208
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x1002a534
test eax, eax
je 0x1002a534
add eax, eax
cmp eax, 0x412
jae 0x1002a52f
xor ecx, ecx
mov word [esp + eax + 0x218], cx
lea eax, [esp + 0x218]
push eax
mov ecx, esi
call fcn.100049d0
jmp 0x1002a46c
call fcn.100821f9
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.100049d0
jmp 0x1002a46c
mov dword [esp + 0x638], 0xffffffff
lea ecx, [esp + 8]
call fcn.100050e0
xor al, al
mov ecx, dword [esp + 0x630]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x624]
xor ecx, esp
call fcn.10081b94
add esp, 0x634
ret

Function at 0x1002a580
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
xor eax, eax
push esi
push edi
push 0x20a
push eax
mov word [esp + 0x14], ax
mov edi, edx
lea eax, [esp + 0x16]
mov esi, ecx
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x1002a5c4
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x1002a5cc
mov esi, dword [esi]
lea eax, [esp + 0xc]
push eax
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1002a656
xor eax, eax
mov word [esp + 0x216], ax
cmp word [esp + 0xc], ax
jne 0x1002a619
xor ecx, ecx
lea eax, [esp + 0xc]
push ecx
push eax
mov ecx, ebx
call fcn.10003000
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.10081b94
add esp, 0x210
ret
lea ecx, [esp + 0xc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002a620
sub ecx, edx
lea eax, [esp + 0xc]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.10003000
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.10081b94
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10081b94
add esp, 0x210
ret
Function at 0x1002af40
Capabilities:
Read file on windows

Disassembly:
mov edx, ecx
mov eax, dword [edx]
test eax, eax
jne 0x1002af4d
xor al, al
ret 0xc
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x1002af48
cmp dword [eax], 0xffffffff
je 0x1002af48
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [edx]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
ret 0xc

Function at 0x1002b000
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push edi
mov edi, dword [esp + 0x10]
test eax, eax
jne 0x1002b02d
xor al, al
pop edi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.10081b94
add esp, 8
ret 4
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1002b019
push esi
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1002b067
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1002b067
pop esi
xor al, al
pop edi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.10081b94
add esp, 8
ret 4
mov ecx, dword [esp + 8]
xor eax, eax
add eax, esi
mov dword [edi], eax
mov al, 1
adc ecx, 0
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0xc]
pop esi
pop edi
xor ecx, esp
call fcn.10081b94
add esp, 8
ret 4

Function at 0x1002b120
Capabilities:
Clear file content

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
jne 0x1002b13a
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push 1
push 0
push 0
movlpd qword [esp + 0x28], xmm0
call fcn.1002b090
test al, al
je 0x1002b12e
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x10]
mov ebp, dword [esp + 0x28]
xorps xmm0, xmm0
push eax
push 0
push edi
push ebp
mov ecx, esi
movlpd qword [esp + 0x20], xmm0
call fcn.1002b090
test al, al
je 0x1002b12e
xor bl, bl
cmp dword [esp + 0x10], ebp
jne 0x1002b1a7
cmp dword [esp + 0x14], edi
jne 0x1002b1a7
mov eax, dword [esi]
test eax, eax
jne 0x1002b194
xor bl, bl
jmp 0x1002b1a7
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1002b190
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne bl
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push 0
push dword [esp + 0x24]
mov ecx, esi
movlpd qword [esp + 0x1c], xmm0
push dword [esp + 0x24]
call fcn.1002b090
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x14
ret 8
Function at 0x1002b910
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100887ec
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
push 0x34
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 0x30], 0
test esi, esi
je 0x1002b97d
push 0x34
push 0
push esi
call sub.MSVCR120.dll_memset
add esp, 0xc
mov ecx, esi
call fcn.1002b5e0
mov esi, eax
jmp 0x1002b97f
xor esi, esi
mov dword [esp + 0x30], 0xffffffff
lea eax, [edi + 0xc]
push ecx
push 3
push 3
push SysReAllocString
push eax
lea ecx, [esi + 0x18]
call fcn.1001b260
test al, al
jne 0x1002b9b1
test esi, esi
je 0x1002b9ad
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
xor eax, eax
jmp 0x1002b9f3
lea eax, [esp + 0xc]
xorps xmm0, xmm0
push eax
lea ecx, [edi + 8]
movlpd qword [esp + 0x10], xmm0
call fcn.1001b3f0
test al, al
je 0x1002b9a1
lea ecx, [esp + 0x14]
xorps xmm0, xmm0
push ecx
push 0
push dword [esp + 0x18]
movlpd qword [esp + 0x20], xmm0
lea ecx, [esi + 8]
mov eax, dword [esi + 8]
push dword [esp + 0x18]
call dword [eax + 0x14]
test eax, eax
jne 0x1002b9a5
lea eax, [esi + 8]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10081b94
mov esp, ebp
pop ebp
ret
Function at 0x1002bc90
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x100888c9
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x10], edi
push 0x18
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [edi + 0x20], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esp + 0x38], 0
lea esi, [edi + 0x24]
mov dword [esi], 0
xor eax, eax
mov byte [esi + 4], 0
mov dword [esi + 0x1c], 7
mov dword [esi + 0x18], 0
mov dword [esp + 0x14], esi
mov word [esi + 8], ax
mov byte [esp + 0x38], 2
lea ecx, [esp + 0x18]
push eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 0x10], 0xffffffff
mov dword [edi + 0x14], 0xffffffff
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
push 0x10093b18
mov byte [edi + 8], al
mov dword [edi + 0x18], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x1c], eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], eax
mov word [esp + 0x20], ax
call fcn.10003000
mov byte [esp + 0x38], 3
sub esp, 8
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.1003c850
mov byte [esp + 0x38], 2
cmp dword [esp + 0x2c], 8
jb 0x1002bd76
push dword [esp + 0x18]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
mov dword [esp + 0x38], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret
Function at 0x1002c1d0
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x10087698
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 4], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x1002c211
xor al, al
jmp 0x1002c29c
add eax, 0x20
mov dword [esp + 0x10], 0
push eax
lea ecx, [esp + 0x14]
call fcn.100050b0
mov dword [esp + 0x20], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x1002c287
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
lea edi, [esi + 4]
push 1
push edi
call ebx
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x1002bdb0
push 0
push 0
call dword [sym.imp.MSVCR120.dll__beginthreadex]
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x1002c2ba
push 0xffffffffffffffff
push edi
call ebx
dec eax
jne 0x1002c27f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.1002bf40
xor bl, bl
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.100050e0
mov al, bl
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.10081b94
add esp, 0x14
ret
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x24]
test eax, eax
je 0x1002c2cf
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x1002c270
mov bl, 1
jmp 0x1002c289
Function at 0x10031030
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10084558
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
call fcn.100302c0
mov dword [esp + 0x30], 0
cmp dword [esp + 0x1c], 0
jne 0x1003107c
xor bl, bl
jmp 0x10031087
lea ecx, [esp + 0xc]
call fcn.1000b970
mov bl, al
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x100310a3
push dword [esp + 0xc]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov word [esp + 0xc], ax
mov al, bl
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.10081b94
add esp, 0x2c
ret
Function at 0x10031ee0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10086aab
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov esi, dword [esp + 0x20]
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push esi
mov word [edi], ax
call fcn.10003100
mov dword [esp + 0x18], 0
lea ecx, [edi + 0x18]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x18]
push eax
call fcn.10003100
mov byte [esp + 0x18], 1
lea ecx, [edi + 0x30]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x30]
push eax
call fcn.10003100
mov byte [esp + 0x18], 2
lea ecx, [edi + 0x48]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x48]
push eax
call fcn.10003100
mov byte [esp + 0x18], 3
lea ecx, [edi + 0x60]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x60]
push eax
call fcn.10003100
mov byte [esp + 0x18], 4
lea ecx, [edi + 0x78]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x78]
push eax
call fcn.10003100
mov byte [esp + 0x18], 5
lea ecx, [edi + 0x90]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x90]
push eax
call fcn.10003100
mov byte [esp + 0x18], 6
lea ecx, [edi + 0xb8]
movzx eax, byte [esi + 0xa8]
mov byte [edi + 0xa8], al
movzx eax, byte [esi + 0xa9]
mov byte [edi + 0xa9], al
mov eax, dword [esi + 0xb0]
mov dword [edi + 0xb0], eax
mov eax, dword [esi + 0xb4]
mov dword [edi + 0xb4], eax
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0xb8]
push eax
call fcn.10003100
mov dword [esp + 0x18], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x100327d0
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x10089845
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x10], ebp
mov dword [ebp], vtable.RC::IRefCount.0
mov dword [esp + 0x38], 0
mov dword [ebp], vtable.DL::ISimpleDownloadHandler.0
mov dword [esp + 0x38], 1
mov dword [ebp + 4], vtable.RC::RCRefCounted.0
mov dword [ebp + 8], 0
mov byte [esp + 0x38], 2
mov dword [ebp], method.RC::RCSafeUpdate.virtual_0
mov dword [ebp + 4], 0x10095948
mov dword [esp + 0x38], 3
lea ecx, [ebp + 0x10]
mov dword [ebp], vtable.DL::RCSimpleDownloadHandler.0
mov dword [ebp + 4], vtable.DL::RCSimpleDownloadHandler.1.0
call fcn.1001d2a0
mov byte [esp + 0x38], 4
mov dword [ebp + 0x98], 0
mov byte [ebp + 0x9c], 0
mov dword [ebp + 0xa0], 0
mov dword [ebp + 0xa4], 0
mov dword [ebp + 0xa8], 0
mov byte [esp + 0x38], 5
push 0x18
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp + 0xac], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [esp + 0x38], 6
lea ebx, [ebp + 0xc0]
mov dword [ebp + 0xb0], 0
xor eax, eax
mov dword [ebp + 0xb4], 0
mov dword [ebp + 0xb8], 0
mov dword [ebp + 0xbc], 0
mov dword [ebx], 0
mov byte [ebx + 4], 0
mov dword [ebx + 0x1c], 7
mov dword [ebx + 0x18], 0
mov dword [esp + 0x14], ebx
mov word [ebx + 8], ax
mov byte [esp + 0x38], 8
push 0x18
mov dword [ebp + 0xe0], eax
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp + 0xe4], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [esp + 0x38], 9
mov dword [ebp + 0xe8], 0
mov dword [ebp + 0xec], 0
mov byte [esp + 0x38], 0xa
mov byte [ebp + 0xf0], 0
mov dword [ebp + 0xf4], 0
mov dword [ebp + 0xf8], 0
mov byte [esp + 0x38], 0xb
xor eax, eax
push eax
mov dword [esp + 0x2c], 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0
push 0x10093b18
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
call fcn.10003000
mov byte [esp + 0x38], 0xc
sub esp, 8
lea eax, [esp + 0x20]
mov ecx, ebx
push eax
call fcn.1003c850
mov byte [esp + 0x38], 0xb
cmp dword [esp + 0x2c], 8
jb 0x100329c2
push dword [esp + 0x18]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
mov dword [esp + 0x38], 0xffffffff
mov eax, ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop ebp
pop ebx
add esp, 0x30
ret
Function at 0x10034f10
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x10089db8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x58]
xorps xmm0, xmm0
mov esi, dword [esp + 0x54]
mov ecx, esi
mov dword [esp + 0x28], eax
lea eax, [esp + 0x2c]
push eax
push 2
push 0xffffffffffffffff
push 0xffff8000
movlpd qword [esp + 0x3c], xmm0
call fcn.1002b090
test al, al
jne 0x10034f7c
mov eax, 1
jmp 0x10035112
push 0x10000
call fcn.10081b1c
mov ebx, eax
add esp, 4
mov dword [esp + 0x18], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x4c], 0
push 0x10000
push 0
push ebx
call sub.MSVCR120.dll_memset
mov eax, dword [esi]
add esp, 0xc
mov dword [esp + 0x34], 0
test eax, eax
je 0x100350e9
test ebx, ebx
je 0x100350e9
cmp dword [eax], 0xffffffff
je 0x100350e9
push 0
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], 0
push ecx
push 0x8000
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100350e9
mov esi, dword [esp + 0x18]
mov ecx, 0x8000
xor ebp, ebp
mov dword [esp + 0x20], ecx
xor ebx, ebx
add esi, ecx
jmp 0x10035010
cmp byte [edi + 0x9c], 0
jne 0x100350de
lea edx, [esp + 0x24]
mov dword [esp + 0x24], 0
push edx
lea edx, [esp + 0x20]
mov dword [esp + 0x20], 0
push edx
push ecx
mov ecx, dword [esp + 0x34]
lea eax, [esi + ebx]
push eax
call fcn.10054ac0
test al, al
je 0x100350cf
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x1003507b
mov eax, dword [edi + 0xc0]
test eax, eax
je 0x1003506b
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [edi + 0x9c], 0
jne 0x100350de
mov eax, dword [esp + 0x1c]
inc ebp
jmp 0x10035085
add ebx, eax
cmp ebx, 0x8000
je 0x1003509a
cmp ebp, 0xf
ja 0x100350c4
mov ecx, dword [esp + 0x20]
sub ecx, eax
mov dword [esp + 0x20], ecx
jne 0x10035010
mov ebx, dword [esp + 0x18]
mov edx, 0x7ffc
mov ecx, ebx
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x100350bd
add ecx, 4
add esi, 4
sub edx, 4
jae 0x100350a5
mov esi, 4
jmp 0x100350fa
mov esi, 5
jmp 0x100350fa
mov ebx, dword [esp + 0x18]
mov esi, 3
jmp 0x100350fa
mov eax, dword [esp + 0x24]
mov esi, 3
mov ebx, dword [esp + 0x18]
jmp 0x100350f4
mov ebx, dword [esp + 0x18]
mov esi, 2
jmp 0x100350fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 1
mov dword [edi + 0xb0], eax
mov dword [esp + 0x4c], 0xffffffff
test ebx, ebx
je 0x10035110
push ebx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.10081b94
add esp, 0x3c
ret 0xc
Function at 0x10039070
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x170
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x16c], eax
mov eax, dword [esp + 0x184]
push ebx
mov ebx, dword [esp + 0x17c]
push ebp
mov ebp, dword [esp + 0x188]
push esi
mov esi, dword [esp + 0x180]
push edi
mov edi, dword [esp + 0x18c]
push 0x118
mov dword [esp + 0x18], eax
lea eax, [esp + 0x60]
push 0
push eax
mov dword [esp + 0x64], 0x11c
call sub.MSVCR120.dll_memset
add esp, 0xc
lea ecx, [esp + 0x58]
call fcn.1000aa70
test al, al
je 0x1003913d
push dword [esp + 0x60]
push dword [esp + 0x60]
push str._u._u
push esi
call fcn.1000a7d0
call fcn.1000a9f0
test al, al
mov edx, 0x40
mov ecx, 0x20
cmovne ecx, edx
push ecx
push 0x10095a08
push edi
call fcn.1000a7d0
add esp, 0x1c
cmp word [esp + 0x6c], 0
jne 0x1003911a
xor ecx, ecx
jmp 0x10039130
lea ecx, [esp + 0x6c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10039121
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x70]
mov ecx, ebx
push eax
call fcn.10003000
push 0x40
lea eax, [esp + 0x1c]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [esp + 0x18], 0x40
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
shrd ecx, eax, 0x14
shr eax, 0x14
push eax
push ecx
push 0x10095a08
push dword [esp + 0x20]
call fcn.1000a7d0
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
push 0x10095a08
push ebp
call fcn.1000a7d0
mov ecx, dword [esp + 0x188]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10081b94
add esp, 0x170
ret 0x14