joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b1d2
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x440100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00421685
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00421685
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x42b249
cmp word [ecx], dx
je 0x42b249
mov eax, dword [0x43835c]
push edi
dec eax
push eax
push 0x438248
call fcn.0042b171
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x42b2bc
cmp word [eax], dx
je 0x42b2bc
mov eax, dword [edi]
test eax, eax
je 0x42b26d
cmp word [eax], dx
je 0x42b26d
lea eax, [ebp - 0x10]
push eax
call fcn.0042ab54
jmp 0x42b276
lea eax, [ebp - 0x10]
push eax
call fcn.0042abef
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x42b2e6
mov eax, dword [0x438244]
push dword [ebp - 0x14]
dec eax
push eax
push 0x437f38
call fcn.0042b171
add esp, 0xc
test al, al
je 0x42b2e6
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x42b2b1
cmp word [eax], di
je 0x42b2b1
lea eax, [ebp - 0x10]
push eax
call fcn.0042ab54
pop ecx
jmp 0x42b2e8
lea eax, [ebp - 0x10]
push eax
call fcn.0042abef
jmp 0x42b2ae
mov eax, dword [edi]
test eax, eax
je 0x42b2d3
cmp word [eax], dx
je 0x42b2d3
lea eax, [ebp - 0x10]
push eax
call fcn.0042ab09
pop ecx
jmp 0x42b2e6
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x42b3b1
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0042aff6
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x42b3b1
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x42b3b1
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x42b3b1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x42b33e
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00423a89
test ebx, ebx
je 0x42b3ac
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00423a89
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42b3b1
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42b3b1
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0042eae0
add esp, 0x10
xor eax, eax
inc eax
jmp 0x42b3b3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413212
leave
ret
Function at 0x42ef95
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0042ef11
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x42f104
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x42f104
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x42f0b9
jg 0x42eff1
test eax, eax
je 0x42f0af
push 1
push 0x1000
call fcn.00423471
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x42f014
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x42f0a6
push 0x8000
push ebx
call fcn.0041f399
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x42f03d
jg 0x42f038
cmp ecx, 0x1000
jb 0x42f03d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00424a40
add esp, 0x10
cmp eax, 0xffffffff
je 0x42f082
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x42f038
jl 0x42f069
test ecx, ecx
jne 0x42f02a
push dword [ebp - 0xc]
push ebx
call fcn.0041f399
push esi
call fcn.00421970
add esp, 0xc
xor ebx, ebx
jmp 0x42f112
cmp byte [edi + 0x24], 0
je 0x42f099
cmp dword [edi + 0x20], 5
jne 0x42f099
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x42f0a4
mov ebx, dword [edi + 0x18]
jmp 0x42f0a6
xor ebx, ebx
push esi
call fcn.00421970
pop ecx
jmp 0x42f112
test ecx, ecx
jg 0x42f07b
jl 0x42f0b9
test eax, eax
jae 0x42f07b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00425e1a
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42f0d9
cmp byte [edi + 0x1c], 0
je 0x42f07b
jmp 0x42f10a
push ebx
call fcn.004290cd
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42f07b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x42f112
cmp byte [edi + 0x1c], 0
je 0x42f10f
mov ebx, dword [edi + 0x18]
jmp 0x42f112
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00425e1a
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430190
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4301bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4301bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1008a190
Capabilities:
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [section..data]
Function at 0x1008a19e
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x38
cmp dword [ecx + 4], 1
je 0x1008a1ce
lea esp, [ebp - 0x10]
mov eax, 1
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov eax, dword [str.KERNEL32.dll]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [esp], eax
call ebx
sub esp, 4
mov dword [ebp - 0x2c], eax
mov dword [esp], 0
call ebx
mov edi, dword [0x100ed1f8]
mov dword [ebp - 0x1c], 0
mov esi, eax
mov eax, dword [eax + 0x3c]
sub esp, 4
mov ecx, dword [esi + eax + 0x28]
mov eax, dword [fcn.10064ce6]
mov ebx, ecx
mov dword [ebp - 0x34], ecx
sub edi, eax
mov eax, dword [str.VirtualProtect]
sub ebx, edi
add ebx, esi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [0x100ed200]
lea ecx, [ebp - 0x1c]
sub esp, 8
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], ebx
call eax
mov ecx, dword [0x100ed200]
sub esp, 0x10
mov eax, dword [fcn.10064ce6]
lea edx, [ecx - 1]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
test ecx, ecx
je 0x1008a1b8
mov edx, dword [ebp - 0x34]
sub edx, edi
lea edx, [esi + edx + 0x10]
cmp eax, edx
setae dl
mov esi, edx
lea edx, [eax + 0x10]
mov ecx, esi
cmp ebx, edx
setae dl
or cl, dl
je 0x1008a3be
cmp dword [ebp - 0x30], 0xe
jbe 0x1008a3be
mov edi, dword [ebp - 0x2c]
mov edx, eax
mov esi, ebx
and edi, 0xfffffff0
add edi, eax
movdqu xmm0, xmmword [edx]
add edx, 0x10
add esi, 0x10
movups xmmword [esi - 0x10], xmm0
cmp edx, edi
jne 0x1008a2a3
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
mov edx, edi
and edx, 0xfffffff0
sub esi, edx
add eax, edx
add ebx, edx
cmp edi, edx
je 0x1008a1b8
movzx edx, byte [eax]
mov byte [ebx], dl
test esi, esi
je 0x1008a1b8
movzx edx, byte [eax + 1]
mov byte [ebx + 1], dl
cmp esi, 1
je 0x1008a1b8
movzx edx, byte [eax + 2]
mov byte [ebx + 2], dl
cmp esi, 2
je 0x1008a1b8
movzx edx, byte [eax + 3]
mov byte [ebx + 3], dl
cmp esi, 3
je 0x1008a1b8
movzx edx, byte [eax + 4]
mov byte [ebx + 4], dl
cmp esi, 4
je 0x1008a1b8
movzx edx, byte [eax + 5]
mov byte [ebx + 5], dl
cmp esi, 5
je 0x1008a1b8
movzx edx, byte [eax + 6]
mov byte [ebx + 6], dl
cmp esi, 6
je 0x1008a1b8
movzx edx, byte [eax + 7]
mov byte [ebx + 7], dl
cmp esi, 7
je 0x1008a1b8
movzx edx, byte [eax + 8]
mov byte [ebx + 8], dl
cmp esi, 8
je 0x1008a1b8
movzx edx, byte [eax + 9]
mov byte [ebx + 9], dl
cmp esi, 9
je 0x1008a1b8
movzx edx, byte [eax + 0xa]
mov byte [ebx + 0xa], dl
cmp esi, 0xa
je 0x1008a1b8
movzx edx, byte [eax + 0xb]
mov byte [ebx + 0xb], dl
cmp esi, 0xb
je 0x1008a1b8
movzx edx, byte [eax + 0xc]
mov byte [ebx + 0xc], dl
cmp esi, 0xc
je 0x1008a1b8
movzx edx, byte [eax + 0xd]
mov byte [ebx + 0xd], dl
cmp esi, 0xd
je 0x1008a1b8
movzx eax, byte [eax + 0xe]
mov byte [ebx + 0xe], al
jmp 0x1008a1b8
mov ecx, dword [ebp - 0x2c]
add ecx, eax
movzx edx, byte [eax]
add eax, 1
add ebx, 1
mov byte [ebx - 1], dl
cmp eax, ecx
jne 0x1008a3c3
jmp 0x1008a1b8
Function at 0x6c3714f9
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x6c3a70b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
xor esi, esi
inc edi
cmp ecx, esi
je 0x6c371a7f
cmp ecx, edi
jne 0x6c371620
mov edi, 0x114
push edi
lea eax, [ebp - 0x118]
push esi
push eax
mov dword [0x6c3a705c], esi
mov dword [ebp - 0x11c], esi
mov dword [0x6c3a704c], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edi, eax
cmp edi, esi
je 0x6c371620
cmp dword [ebp - 0x108], 2
jne 0x6c372364
cmp dword [ebp - 0x114], 4
jb 0x6c37236b
cmp edi, esi
je 0x6c371620
push ebx
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0x6c3a70a0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.6c37177c
push 0x6c3a7080
call fcn.6c37165d
call fcn.6c371688
cmp word [0x6c3a73e8], si
jne 0x6c3715f0
push 0x5c
pop eax
mov word [0x6c3a73e8], ax
mov word [0x6c3a73ea], ax
lea eax, [ebp - 0x11c]
push eax
push 0x6c3a73ec
mov dword [ebp - 0x11c], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateMutexW]
push esi
push esi
push esi
call ebx
push esi
push esi
push esi
mov dword [0x6c3a7050], eax
call ebx
push esi
push esi
push esi
mov dword [0x6c3a7054], eax
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x6c3a7058], eax
cmp eax, esi
je 0x6c372372
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6c371640
leave
ret 0xc
xor ecx, ecx
cmp eax, esi
setne cl
mov dword [0x6c3a705c], ecx
call fcn.6c371bc7
call fcn.6c371b40
push dword [0x6c3a705c]
call fcn.6c371980
mov eax, dword [0x6c3a7050]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, esi
je 0x6c371ab9
push eax
call ebx
mov dword [0x6c3a7050], esi
mov eax, dword [0x6c3a7054]
cmp eax, esi
je 0x6c371acb
push eax
call ebx
mov dword [0x6c3a7054], esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ecx, dword [0x6c3a7058]
cmp ecx, eax
je 0x6c371ae8
push ecx
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
mov dword [0x6c3a7058], esi
mov eax, dword [0x6c3a7438]
cmp eax, esi
jne 0x6c372382
push 0x6c3a7080
call fcn.6c37195a
call fcn.6c3719a0
push 0x6c3a70a0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
call fcn.6c371b1e
jmp 0x6c371620
xor edi, edi
jmp 0x6c371620
xor edi, edi
jmp 0x6c37158e
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x6c3a7058], eax
jmp 0x6c371620
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x6c371af5
Function at 0x6c371688
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 0x10]
push eax
push 0x20019
xor esi, esi
push esi
push dword [0x6c3a7414]
mov dword [0x6c3a7070], 0xb2d05e00
push 0x80000002
mov dword [0x6c3a7074], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x6c371e00
xor eax, eax
inc eax
pop esi
leave
ret
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 4
pop ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push esi
push dword [0x6c3a749c]
mov dword [0x6c3a744c], 1
push dword [ebp - 0x10]
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], ebx
call edi
test eax, eax
jne 0x6c371f08
cmp dword [ebp - 8], ebx
jne 0x6c371f08
mov eax, dword [ebp - 4]
cmp eax, 0x1e
jbe 0x6c371e5a
cmp eax, 0xe10
jbe 0x6c371f0a
mov dword [0x6c3a7440], 0x47868c00
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push esi
push dword [0x6c3a74a0]
mov dword [0x6c3a7444], esi
push dword [ebp - 0x10]
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], ebx
call edi
test eax, eax
jne 0x6c371e9b
cmp dword [ebp - 8], ebx
jne 0x6c371e9b
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x6c371e9e
xor eax, eax
inc eax
mov dword [0x6c3a7448], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push esi
push dword [0x6c3a74a4]
mov dword [ebp - 4], esi
push dword [ebp - 0x10]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], ebx
call edi
test eax, eax
jne 0x6c371edc
cmp dword [ebp - 8], ebx
jne 0x6c371edc
cmp dword [ebp - 4], 0x1e
jb 0x6c371edc
cmp dword [ebp - 4], 0xe10
jbe 0x6c371ee3
mov dword [ebp - 4], 0x12c
mov eax, dword [ebp - 4]
push dword [ebp - 0x10]
mov ecx, 0x989680
mul ecx
mov dword [0x6c3a7070], eax
mov dword [0x6c3a7074], edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
jmp 0x6c3716c6
xor eax, eax
cmp eax, esi
je 0x6c371e5a
imul eax, eax, 0x989680
mov dword [0x6c3a7440], eax
jmp 0x6c371e64
Function at 0x6c37ab4b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x28]
push edi
xor edi, edi
cmp dword [eax], edi
jne 0x6c37ab6c
mov dword [esi + 0x30], 0x800007d0
xor eax, eax
jmp 0x6c37ac9c
mov eax, dword [eax]
cmp dword [eax + 0x28], edi
jne 0x6c37ab65
push ebx
push dword [esi + 0xa8]
push dword [eax + 8]
call fcn.6c3779f9
mov ebx, eax
cmp ebx, edi
je 0x6c37ac92
push dword [esi + 0xbc]
push edi
push ebx
call fcn.6c377cc2
cmp eax, edi
je 0x6c37ac89
mov ecx, dword [esi + 0x28]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [esi + 0x20], edx
xor edx, edx
mov word [esi + 0x22], dx
shl dword [esi + 0x20], 0x10
mov word [esi + 0x20], dx
mov edx, dword [ecx]
mov edx, dword [edx + 8]
movzx edx, word [edx + 0x10]
or dword [esi + 0x20], edx
mov edx, dword [eax + 0x1c]
test edx, 0x100000
je 0x6c37abe6
mov dword [esi + 0xa0], 0x989680
mov dword [esi + 0xa4], edi
jmp 0x6c37ac13
test edx, 0x200000
je 0x6c37abfc
mov edx, dword [ebx + 0x38]
mov dword [esi + 0xa0], edx
mov edx, dword [ebx + 0x3c]
jmp 0x6c37ac0d
mov edx, dword [ecx]
mov edx, dword [edx + 8]
mov ebx, dword [edx + 0x40]
mov dword [esi + 0xa0], ebx
mov edx, dword [edx + 0x44]
mov dword [esi + 0xa4], edx
mov edx, dword [eax + 0x1c]
mov dword [esi + 0xc0], edx
mov edx, dword [eax + 0x20]
mov dword [esi + 0xc4], edx
mov eax, dword [eax + 0x14]
mov dword [esi + 0xc8], eax
mov eax, dword [esi + 0x2c]
push dword [eax + 0x14]
push dword [eax + 4]
push dword [ecx]
call fcn.6c39ea0a
mov ecx, dword [esi + 0x30]
mov dword [esi + 0x80], eax
xor eax, eax
inc eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x50], eax
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x78], eax
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0x90], edi
test ecx, ecx
jne 0x6c37ac9b
mov dword [esi + 0x30], edi
jmp 0x6c37ac9b
mov dword [esi + 0x30], 0xc0000bb9
jmp 0x6c37ac99
mov dword [esi + 0x30], 0xc0000bb8
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret 4
Function at 0x6c37c8cd
Capabilities:
Create thread

Disassembly:
push 0x10
push 0x6c37ca90
call fcn.6c371338
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
push dword [0x6c3a7050]
push 0x4db
mov edi, 0x6c3718f8
push edi
call fcn.6c371c10
test eax, eax
je 0x6c37c902
mov eax, 0x102
jmp 0x6c37ca85
mov esi, dword [ebp + 8]
push esi
call fcn.6c37e6cf
test eax, eax
je 0x6c37ca6a
push dword [esi + 0x48]
push 0x4e2
push edi
call fcn.6c371c10
test eax, eax
je 0x6c37c931
mov dword [ebp - 0x1c], 0x102
jmp 0x6c37ca71
cmp dword [esi + 0x54], ebx
je 0x6c37c9af
push dword [esi + 0x48]
push 0x4e8
push edi
call fcn.6c371b8c
push dword [esi + 0x54]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x2710
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x6c37c982
mov ecx, dword [0x6c3a7048]
and cl, 0xf
cmp cl, 2
jb 0x6c37c982
push ebx
push eax
push ebx
push 0x1a
push 0x4ee
call fcn.6c3774d9
add esp, 0x14
push dword [esi + 0x48]
push 0x4f0
push edi
call fcn.6c371c10
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x6c37c9af
push dword [esi + 0x54]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x54], ebx
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x50], ebx
cmp dword [ebp - 0x1c], ebx
jne 0x6c37ca71
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jbe 0x6c37ca54
mov dword [ebp - 4], ebx
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x4c], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x6c37c9f7
cmp dword [ebp - 0x1c], ebx
jne 0x6c37ca20
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x54], eax
lea eax, [ebp - 0x20]
push eax
push ebx
push esi
push 0x6c380861
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x50], eax
cmp dword [esi + 0x50], ebx
jne 0x6c37ca4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x4c], ebx
push dword [esi + 0x54]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x54], ebx
push dword [esi + 0x48]
push 0x514
jmp 0x6c37ca62
push dword [esi + 0x48]
push 0x517
jmp 0x6c37ca62
mov dword [esi + 0x18], ebx
mov dword [esi + 0x4c], ebx
push dword [esi + 0x48]
push 0x51e
push edi
call fcn.6c371b8c
jmp 0x6c37ca71
mov dword [ebp - 0x1c], 0xc0000bbc
push dword [0x6c3a7050]
push 0x528
push edi
call fcn.6c371b8c
mov eax, dword [ebp - 0x1c]
call fcn.6c37137d
ret 0xc
Function at 0x6c383cf9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x6c3a70b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x104
xor ebx, ebx
lea eax, [ebp - 0x108]
push ebx
push eax
xor edi, edi
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x110]
push eax
push 0xd
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x6c383ded
mov al, byte [ebp - 0xff]
push 0x7f
pop esi
push esi
push dword [0x6c3a74fc]
mov byte [ebp - 0x109], al
lea eax, [ebp - 0x106]
push eax
mov byte [ebp - 0xff], bl
call fcn.6c383b61
test eax, eax
jne 0x6c383d87
push 2
jmp 0x6c383dec
push esi
push dword [0x6c3a7500]
lea eax, [ebp - 0x106]
push eax
call fcn.6c383b61
test eax, eax
jne 0x6c383da3
xor edi, edi
inc edi
jmp 0x6c383ded
push esi
push dword [0x6c3a7504]
lea eax, [ebp - 0x106]
push eax
call fcn.6c383b61
test eax, eax
jne 0x6c383dbe
push 3
jmp 0x6c383dec
mov al, byte [ebp - 0x109]
mov byte [ebp - 0xff], al
xor eax, eax
push esi
push dword [0x6c3a7498]
mov word [ebp - 0xfe], ax
lea eax, [ebp - 0x108]
push eax
call fcn.6c372eed
test eax, eax
jne 0x6c383ded
push 6
pop edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6c371640
leave
ret 4
Function at 0x6c3848f1
Capabilities:
Get file size

Disassembly:
push 0x10
push 0x6c384a40
call fcn.6c371338
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov ebx, dword [ebp + 0xc]
cmp ebx, esi
jne 0x6c384918
mov dword [ebp - 0x1c], 0xc0000bbd
jmp 0x6c384a30
mov dword [ebp - 4], esi
mov dword [ebx], esi
mov dword [ebx + 4], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x6c384943
cmp dword [ebp - 0x1c], esi
jne 0x6c384a30
mov edi, dword [ebp + 8]
push edi
call fcn.6c383c85
test eax, eax
je 0x6c384a29
push dword [edi + 0x10]
push 0x769
push 0x6c371928
call fcn.6c371c10
mov dword [ebp - 0x1c], eax
cmp eax, esi
jne 0x6c384a30
push edi
call fcn.6c383c85
test eax, eax
je 0x6c384a0e
movzx eax, word [edi + 0x58]
cmp ax, 7
jne 0x6c3849a0
mov eax, dword [edi + 0x98]
dec eax
mov dword [ebx], eax
mov dword [ebx + 4], esi
jmp 0x6c384a15
cmp ax, 8
jne 0x6c3849b2
push ebx
push edi
call fcn.6c3938ee
mov dword [ebp - 0x1c], eax
jmp 0x6c384a15
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp + 0xc], eax
mov eax, dword [edi + 0x1c]
cmp eax, 0xffffffff
je 0x6c3849fc
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x6c3849e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x6c3849fc
mov ecx, dword [ebp - 0x20]
xor eax, eax
test ecx, ecx
ja 0x6c3849ef
xor ecx, ecx
xor edx, edx
add esi, eax
adc edx, ecx
mov dword [ebx], esi
mov dword [ebx + 4], edx
jmp 0x6c384a03
mov dword [ebp - 0x1c], 0xc0000bca
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
jmp 0x6c384a15
mov dword [ebp - 0x1c], 0xc0000bbc
push dword [edi + 0x10]
push 0x792
push 0x6c371928
call fcn.6c371b8c
jmp 0x6c384a30
mov dword [ebp - 0x1c], 0xc0000bbc
mov eax, dword [ebp - 0x1c]
call fcn.6c37137d
ret 8