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

Disassembly:
push 0x18
push 0x1005f560
call fcn.1001635c
xor esi, esi
cmp dword [0x10071d40], esi
jne 0x10021df8
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10021de3
mov dword [0x10071d40], edi
jmp 0x10021df8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x10021df8
mov dword [0x10071d40], 2
mov eax, dword [0x10071d40]
cmp eax, 2
je 0x10021ed9
cmp eax, esi
je 0x10021ed9
cmp eax, 1
jne 0x10021e3d
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x10021e26
mov eax, dword [0x10071bc4]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x10021e44
xor eax, eax
jmp 0x10021eeb
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.100144c0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x10021e7a
cmp edi, esi
jne 0x10021e95
lea eax, [ebx + ebx]
push eax
call fcn.100147ac
pop ecx
mov edi, eax
cmp edi, esi
je 0x10021e3d
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10021ec8
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x10021eb2
push esi
push esi
jmp 0x10021eb8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x10021ed4
push edi
call fcn.100147be
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x10021eeb
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.10016397
ret
Function at 0x100223af
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x100223c8
or eax, 0xffffffff
jmp 0x10022429
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x10022425
push 0x3d
push esi
call fcn.10015e4f
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x10022425
cmp esi, eax
je 0x10022425
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x1007189c]
sete cl
cmp eax, dword [0x100718a0]
mov dword [ebp - 8], ecx
jne 0x1002240b
mov edi, eax
call fcn.1002234e
mov dword [0x1007189c], eax
cmp eax, ebx
jne 0x10022464
cmp dword [ebp + 0xc], ebx
je 0x1002242d
cmp dword [0x100718a4], ebx
je 0x1002242d
call fcn.100217e3
test eax, eax
je 0x10022464
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x10022436
xor eax, eax
jmp 0x10022428
push 4
call fcn.100147ac
cmp eax, ebx
pop ecx
mov dword [0x1007189c], eax
je 0x10022425
mov dword [eax], ebx
cmp dword [0x100718a4], ebx
jne 0x10022464
push 4
call fcn.100147ac
cmp eax, ebx
pop ecx
mov dword [0x100718a4], eax
je 0x10022425
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x1007189c]
call fcn.10022301
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x100224c5
cmp dword [esi], ebx
je 0x100224c5
lea esi, [esi + edi*4]
push dword [esi]
call fcn.100147be
cmp dword [ebp - 8], ebx
pop ecx
jne 0x100224a8
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x10022506
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x1002249f
mov eax, edi
shl eax, 2
push eax
push dword [0x1007189c]
call fcn.10015eca
cmp eax, ebx
pop ecx
pop ecx
je 0x10022506
jmp 0x10022501
cmp dword [ebp - 8], ebx
jne 0x10022571
cmp edi, ebx
jge 0x100224d4
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x1007189c]
call fcn.10015eca
cmp eax, ebx
pop ecx
pop ecx
je 0x10022425
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x1007189c], eax
cmp dword [ebp + 0xc], ebx
je 0x1002255b
push dword [ebp - 4]
call fcn.10014d50
inc eax
inc eax
push eax
call fcn.100147ac
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x1002255b
push dword [ebp - 4]
push esi
call fcn.10015570
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x10022554
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.100147be
pop ecx
cmp dword [ebp - 8], ebx
je 0x10022569
push dword [ebp - 4]
call fcn.100147be
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x10022428
push dword [ebp - 4]
call fcn.100147be
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x10022432
Function at 0x10022bf0
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
cmp eax, 0xffffffff
mov dword [esi], 0x1005ae44
je 0x10022c38
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x10022c1b
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x10022c1b
mov dword [esi + 0x14], 0
push 1
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov esi, dword [esi + 0x10]
cmp esi, 0xffffffff
je 0x10022c38
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
ret

Function at 0x10022c40
Capabilities:
Get system information on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1005839b
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebp
push edi
mov edi, ecx
mov eax, dword [edi + 0x84]
xor ebp, ebp
cmp eax, ebp
jne 0x10022d3d
mov eax, dword [esp + 0x3c]
cmp eax, ebp
je 0x10022c7c
mov dword [edi + 0x84], eax
jmp 0x10022c94
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x1c]
lea edx, [ecx + ecx]
mov dword [edi + 0x84], edx
push ebx
push esi
mov esi, dword [edi + 0x84]
mov eax, esi
imul eax, eax, 0x1c
add eax, 4
push eax
call fcn.1004fa4f
add esp, 4
mov dword [esp + 0x44], eax
cmp eax, ebp
mov dword [esp + 0x3c], ebp
je 0x10022cd3
push fcn.10022bf0
push 0x10022b90
push esi
lea ebx, [eax + 4]
push 0x1c
push ebx
mov dword [eax], esi
call fcn.10015818
jmp 0x10022cd5
xor ebx, ebx
mov ecx, dword [edi + 0x84]
xor eax, eax
cmp ecx, eax
mov dword [edi + 0x80], ebx
jle 0x10022d3b
xor ebx, ebx
jmp 0x10022cf0
xor eax, eax
lea ecx, [ecx]
mov ecx, dword [edi + 0x80]
mov dword [ecx + ebx + 0x18], edi
mov esi, dword [edi + 0x80]
lea edx, [esp + 0x44]
push edx
push eax
add esi, ebx
push esi
push 0x10005d30
push eax
push eax
mov dword [esi + 8], eax
mov dword [esi + 0x14], eax
call fcn.10015422
add esp, 0x18
cmp eax, 0xffffffff
je 0x10022d2d
mov ecx, dword [esp + 0x44]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x84]
inc ebp
add ebx, 0x1c
cmp ebp, eax
jl 0x10022ceb
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x30
ret 4

Function at 0x10022f80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10058518
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 4]
mov eax, dword [esp + 0x18]
cmp dword [eax - 0x14], 0x558800aa
je 0x10022fcc
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x10], 0xffffffff
call dword [edx + 8]
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
push edi
lea edi, [eax - 0x10]
push edi
lea ecx, [esi + 0x28]
call fcn.10022e30
push edi
lea ecx, [esi + 0x30]
call fcn.10022ec0
mov eax, dword [esi]
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call dword [eax + 8]
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x1002e280
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
mov eax, ebx
shr eax, 5
push ebp
push esi
mov esi, dword [esp + 0x14]
inc eax
cmp ebx, eax
push edi
mov edx, ebx
mov ecx, ebx
jb 0x1002e2bb
lea ebx, [ebx]
movzx edi, byte [esi + ecx - 1]
mov ebp, edx
shl ebp, 5
add edi, ebp
mov ebp, edx
shr ebp, 2
add edi, ebp
sub ecx, eax
xor edx, edi
cmp ecx, eax
jae 0x1002e2a0
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
dec ecx
and ecx, edx
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x1002e2eb
cmp dword [eax + 0xc], ebx
jne 0x1002e2e5
mov ecx, ebx
lea edi, [eax + 0x10]
xor ebp, ebp
repe cmpsb byte [esi], byte es:[edi]
je 0x1002e2ff
mov esi, dword [esp + 0x18]
mov eax, dword [eax]
test eax, eax
jne 0x1002e2d1
mov eax, dword [esp + 0x14]
push edx
push esi
push eax
call fcn.1002e1d0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret
mov cl, byte [eax + 5]
mov edx, dword [esp + 0x14]
mov edx, dword [edx + 0x10]
movzx edx, byte [edx + 0x14]
xor ebx, ebx
mov bl, cl
not edx
and ebx, 3
test bl, dl
je 0x1002e2fa
pop edi
pop esi
xor cl, 3
pop ebp
mov byte [eax + 5], cl
pop ebx
ret

Function at 0x100327b0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x70]
test eax, eax
je 0x100327d1
mov ecx, dword [esp + 0xc]
mov dword [eax + 0x44], ecx
mov edx, dword [esi + 0x70]
push 1
add edx, 4
push edx
call fcn.10045990
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x10]
mov byte [esi + 6], al
mov edx, dword [ecx + 0x58]
test edx, edx
je 0x100327f2
push eax
call fcn.10032730
mov edx, dword [esi + 0x10]
push esi
call dword [edx + 0x58]
add esp, 8
push 1
call fcn.10016289
int3
Function at 0x1003ea50
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x1005873a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.1003c1f0
lea edi, [esi + 0xc]
xor ebp, ebp
mov ecx, edi
mov dword [esp + 0x1c], ebp
mov dword [esi], 0x10061bb0
call fcn.1003caa0
mov dword [edi + 4], eax
mov bl, 1
mov byte [eax + 0x49], bl
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebp
lea edi, [esi + 0x18]
mov ecx, edi
mov byte [esp + 0x1c], bl
call fcn.1003caa0
mov dword [edi + 4], eax
mov byte [eax + 0x49], bl
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebp
push 0x1003e980
push 0x1003df70
push 0xd
push 0x10
lea eax, [esi + 0x24]
push eax
mov byte [esp + 0x30], 2
call fcn.10015818
lea edi, [esi + 0xf4]
mov ecx, edi
mov byte [esp + 0x1c], 3
call fcn.1003cae0
mov dword [edi + 4], eax
mov byte [eax + 0x15], bl
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebp
mov dword [esi + 0x104], ebp
mov dword [esi + 0x108], ebp
mov dword [esi + 0x10c], ebp
mov dword [esi + 0x114], ebp
mov dword [esi + 0x118], ebp
mov dword [esi + 0x11c], ebp
lea ecx, [esi + 0x15c]
mov byte [esp + 0x1c], 6
call fcn.10022900
lea ecx, [esi + 0x160]
mov byte [esp + 0x1c], 7
call fcn.10022900
lea ecx, [esi + 0x164]
mov byte [esp + 0x1c], 8
call fcn.10022900
mov ecx, dword [esp + 0x24]
pop edi
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x1003fa20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10058918
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.1003f7a0
mov dword [esi], 0x10061bcc
test edi, edi
mov dword [esp + 0x14], 0
je 0x1003fa5f
add edi, 0x28
jmp 0x1003fa61
xor edi, edi
mov dword [esi + 0x28], method.CSyncObject.virtual_20
mov ecx, dword [edi + 4]
test ecx, ecx
mov dword [esi + 0x2c], ecx
je 0x1003fa77
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [edi + 8]
mov dword [esi + 0x30], ecx
mov edx, dword [edi + 0xc]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x34], edx
mov eax, dword [edi + 0x10]
mov dword [esi + 0x38], eax
mov dword [esi], 0x10061bd8
mov dword [esi + 0x28], 0x10061bd4
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x1003fb00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10058943
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x20]
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.1003fa20
mov dword [esp + 0x18], 0
mov dword [esi + 0x3c], 0x10061bbc
test edi, edi
mov byte [esp + 0x18], 1
mov dword [esi], 0x10061bf0
mov dword [esi + 0x28], 0x10061bec
mov dword [esi + 0x3c], 0x10061be0
je 0x1003fb5a
lea ebx, [edi + 0x28]
jmp 0x1003fb5c
xor ebx, ebx
mov ecx, dword [esi + 0x2c]
test ecx, ecx
mov edi, dword [ebx + 4]
je 0x1003fb6b
mov eax, dword [ecx]
call dword [eax + 0x10]
test edi, edi
mov dword [esi + 0x2c], edi
je 0x1003fb79
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0xc]
mov eax, dword [ebx + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [ebx + 0x10]
mov ecx, dword [esp + 0x10]
pop edi
mov dword [esi + 0x38], edx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x1004311a
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x1006d848]
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.100430ea
mov eax, 0x10000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.100154b0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x1004317c
cmp dword [ebp - 0x1c], 5
jb 0x10043194
jmp 0x10043190
cmp dword [ebp - 0x10], 1
jne 0x10043194
cmp dword [ebp - 0x1c], 4
ja 0x10043190
jne 0x10043194
cmp dword [ebp - 0x18], 0
jbe 0x10043194
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x710
mov dword [esi + 0x14], 0x10061f40
call fcn.10013182
test eax, eax
jge 0x100431b5
mov byte [0x1006ee50], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
pop esi
call fcn.10015e22
add ebp, 0x78
leave
ret
Function at 0x10046317
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10046337
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10016a49
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x1004635a
test byte [esp + 8], 2
je 0x1004635a
call fcn.10016a37
mov dword [eax], 0xd
call fcn.10016a40
mov dword [eax], 5
jmp 0x10046333
xor eax, eax
ret
Function at 0x10049e09
Capabilities:
Create pipe

Disassembly:
push 0x24
push 0x10065fc0
call fcn.1001635c
mov ebx, dword [ebp + 8]
or esi, 0xffffffff
mov dword [ebx + 4], esi
mov dword [ebx], esi
mov dword [ebp - 0x34], 0xc
and dword [ebp - 0x30], 0
mov al, byte [ebp + 0x10]
and al, 0x80
neg al
sbb eax, eax
inc eax
mov dword [ebp - 0x2c], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x10049e65
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10016a49
pop ecx
mov eax, esi
jmp 0x10049ffd
call fcn.10020557
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, esi
je 0x10049fc1
and dword [ebp - 4], 0
mov ecx, edi
sar ecx, 5
and eax, 0x1f
lea eax, [eax + eax*8]
mov ecx, dword [ecx*4 + 0x10072f60]
mov byte [ecx + eax*4 + 4], 0x89
mov dword [ebp - 4], esi
call fcn.10049f83
call fcn.10020557
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, 0xffffffff
je 0x10049fa1
mov dword [ebp - 4], 1
mov ecx, esi
sar ecx, 5
and eax, 0x1f
lea eax, [eax + eax*8]
mov ecx, dword [ecx*4 + 0x10072f60]
mov byte [ecx + eax*4 + 4], 0x89
or dword [ebp - 4], 0xffffffff
call fcn.10049f94
mov eax, 0x8000
test dword [ebp + 0x10], eax
jne 0x10049eec
test byte [ebp + 0x11], 0x40
jne 0x10049f22
cmp dword [0x10071f18], eax
jne 0x10049f22
mov ecx, edi
sar ecx, 5
mov eax, edi
and eax, 0x1f
lea eax, [eax + eax*8]
mov ecx, dword [ecx*4 + 0x10072f60]
lea eax, [ecx + eax*4 + 4]
and byte [eax], 0x7f
mov ecx, esi
sar ecx, 5
mov eax, esi
and eax, 0x1f
lea eax, [eax + eax*8]
mov ecx, dword [ecx*4 + 0x10072f60]
lea eax, [ecx + eax*4 + 4]
and byte [eax], 0x7f
test byte [ebp + 0x10], 0x80
je 0x10049f5e
mov ecx, edi
sar ecx, 5
mov eax, edi
and eax, 0x1f
lea eax, [eax + eax*8]
mov ecx, dword [ecx*4 + 0x10072f60]
lea eax, [ecx + eax*4 + 4]
or byte [eax], 0x10
mov ecx, esi
sar ecx, 5
mov eax, esi
and eax, 0x1f
lea eax, [eax + eax*8]
mov ecx, dword [ecx*4 + 0x10072f60]
lea eax, [ecx + eax*4 + 4]
or byte [eax], 0x10
push dword [ebp - 0x24]
push edi
call fcn.10020359
push dword [ebp - 0x28]
push esi
call fcn.10020359
add esp, 0x10
call fcn.10016a37
and dword [eax], 0
jmp 0x10049fcf
mov ecx, edi
sar ecx, 5
mov eax, edi
and eax, 0x1f
lea eax, [eax + eax*8]
mov ecx, dword [ecx*4 + 0x10072f60]
mov byte [ecx + eax*4 + 4], 0
call fcn.10016a37
jmp 0x10049fc9
call fcn.10016a37
mov esi, dword [ebp - 0x20]
mov dword [eax], 0x18
call fcn.10016a37
cmp dword [eax], 0
je 0x10049ff6
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x28]
call esi
call fcn.10016a40
and dword [eax], 0
or eax, 0xffffffff
jmp 0x10049ffd
mov dword [ebx], edi
mov dword [ebx + 4], esi
xor eax, eax
call fcn.10016397
ret
Function at 0x1004f0f5
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.100144c0
mov eax, dword [0x1006d848]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.1001cb65
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x1004f228
push 2
push esi
push dword [ebp + 8]
call fcn.1001cb65
add esp, 0xc
cmp eax, ebx
je 0x1004f228
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x1004f1c8
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.100154b0
push 0x8000
push dword [ebp + 8]
call fcn.1004f33f
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x1004f17e
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.1001cc84
add esp, 0xc
cmp eax, 0xffffffff
je 0x1004f19e
sub edi, eax
test edi, edi
jg 0x1004f176
jmp 0x1004f1b6
call fcn.10016a40
cmp dword [eax], 5
jne 0x1004f1b3
call fcn.10016a37
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.1004f33f
pop ecx
pop ecx
jmp 0x1004f210
jge 0x1004f210
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1001cb65
push dword [ebp + 8]
call fcn.10020454
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x1004f210
call fcn.10016a37
mov dword [eax], 0xd
call fcn.10016a40
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.1001cb65
add esp, 0xc
mov eax, esi
pop edi
jmp 0x1004f22a
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.10015e22
leave
ret
Function at 0x10050221
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x1c
xor ebx, ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
mov esi, ecx
call fcn.100154b0
add esp, 0xc
call fcn.10056991
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
call edi
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0xc], eax
call edi
cmp dword [ebp - 0xc], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
je 0x100502f1
cmp dword [ebp - 8], ebx
je 0x100502ec
lea ecx, [esi + 0x2c]
push ecx
or eax, 4
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x100500f3
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.10015422
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x28], eax
je 0x100502fb
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xc]
call edi
test byte [ebp + 8], 4
je 0x100502c4
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp dword [ebp - 4], ebx
je 0x100502de
push 0xffffffffffffffff
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x28]
call edi
mov dword [esi + 0x28], ebx
jmp 0x100502f6
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
inc eax
jmp 0x100502fd
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 8], ebx
je 0x100502fb
push dword [ebp - 8]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x10050304
Capabilities:
Resume thread

Disassembly:
mov eax, 0x10058135
call fcn.10015e30
push ecx
push esi
push 0x40
call fcn.1004fa24
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
xor esi, esi
cmp ecx, esi
mov dword [ebp - 4], esi
je 0x10050333
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10055446
mov esi, eax
push dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
push dword [ebp + 0x14]
or dword [ebp - 4], 0xffffffff
or eax, 4
push eax
mov ecx, esi
call fcn.10050221
test eax, eax
jne 0x1005035a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
xor eax, eax
jmp 0x10050377
push dword [ebp + 0x10]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test byte [ebp + 0x18], 4
jne 0x10050375
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 0x18