joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cf94c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x7912a8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4cf98c
cmp byte [ebx], 0xa
jne 0x4cf98c
or byte [edi + eax + 0x28], 4
jmp 0x4cf991
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4cfa90
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4cfa73
inc eax
cmp dl, 0xd
je 0x4cf9bd
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4cf9e3
cmp eax, ecx
jae 0x4cf9f1
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4cf9a5
jmp 0x4cfa90
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4cfa6e
cmp dword [ebp - 0x10], 0
je 0x4cfa6e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x7912a8]
test byte [eax + edi + 0x28], 0x48
je 0x4cfa48
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4cfa33
mov byte [esi], dl
jmp 0x4cfa44
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x7912a8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4cfa90
cmp byte [ebp - 1], 0xa
jne 0x4cfa57
cmp esi, ebx
jne 0x4cfa57
mov byte [esi], 0xa
jmp 0x4cfa8f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004cd23d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4cfa90
mov byte [esi], 0xd
jmp 0x4cfa8f
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x7912a8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4cfa8d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4cfa90
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4cfa99
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x7912a8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4cfadf
cmp word [ebx], dx
jne 0x4cfadf
or byte [eax + edi + 0x28], 4
jmp 0x4cfae4
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4cfc47
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4cfc27
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4cfb25
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4cfb5b
cmp eax, edx
jae 0x4cfb69
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4cfb00
jmp 0x4cfc47
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4cfc22
cmp dword [ebp - 0x18], 0
je 0x4cfc22
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x7912a8]
test byte [eax + edi + 0x28], 0x48
je 0x4cfbf8
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4cfbbc
mov word [esi], cx
jmp 0x4cfbf3
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x7912a8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x7912a8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x7912a8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4cfc47
pop eax
cmp word [ebp - 4], ax
jne 0x4cfc08
cmp esi, ebx
jne 0x4cfc08
mov word [esi], ax
jmp 0x4cfc44
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004cd23d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4cfc47
push 0xd
pop eax
jmp 0x4cfc03
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x7912a8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4cfc41
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4cfc47
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4d2705
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x572c00
push 0x572bf8
push str.FlsAlloc
push 0x1f
call fcn.004d2584
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4d2739
push dword [ebp + 8]
mov ecx, esi
call dword [0x4fe404]
call esi
jmp 0x4d273f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4d2783
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x572c10
push 0x572c08
push str.FlsGetValue
push 0x21
call fcn.004d2584
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4d27ba
push dword [ebp + 8]
mov ecx, esi
call dword [0x4fe404]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4d27c2
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x572c18
push 0x572c10
push str.FlsSetValue
push 0x22
call fcn.004d2584
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4d27fc
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4fe404]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x4d6bf0
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d670b

Function at 0x4d7232
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x78e580]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x4d7275
call fcn.004bb8b9
mov dword [eax], 0xf
call fcn.004bb8cc
mov dword [eax], 0xd
call fcn.004cadad
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b5ec4
leave
ret
test eax, eax
jne 0x4d727c
inc eax
jmp 0x4d7269
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x4d7267
xor eax, eax
cmp ecx, 1
setne al
jmp 0x4d7269
Function at 0x4d856e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4d860b
push ebx
push esi
call fcn.004d8537
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004d3b8e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4d85b8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4d860a
push edi
push eax
call fcn.004d10bf
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4d85d8
call fcn.004d1981
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4d8609
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004d3b8e
add esp, 0x20
test eax, eax
jne 0x4d85f7
push edi
call fcn.004d1981
jmp 0x4d85ff
push ebx
call fcn.004d1981
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4d860e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4d861f
pop esi
ret
push ebx
push edi
push esi
call fcn.004d8537
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004d10bf
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4d8647
push ebx
push esi
push edi
call fcn.004b8970
add esp, 0xc
push 0
call fcn.004d1981
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push dword [ebp + 8]
call fcn.004f0a27
mov esi, eax
pop ecx
test esi, esi
je 0x4f0af3
mov eax, dword [esi + 0x3c]
push edi
mov edi, dword [eax + esi + 0x78]
mov edx, dword [eax + esi + 0x7c]
add edi, esi
dec edx
add edx, edi
mov dword [ebp - 8], edx
mov eax, dword [edi + 0x20]
test eax, eax
je 0x4f0af2
mov ecx, dword [edi + 0x1c]
add eax, esi
mov dword [ebp - 4], eax
add ecx, esi
mov eax, dword [edi + 0x24]
push ebx
add eax, esi
mov dword [ebp - 0x10], ecx
xor ebx, ebx
mov dword [ebp - 0xc], eax
cmp dword [edi + 0x18], ebx
jbe 0x4f0af1
movzx eax, word [eax + ebx*2]
mov ecx, dword [ecx + eax*4]
add ecx, esi
cmp ecx, edi
jb 0x4f0ab9
cmp ecx, edx
jbe 0x4f0ae5
mov eax, dword [ebp - 4]
push dword [ebp + 0x10]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 1
mov eax, dword [eax + ebx*4]
add eax, esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
call dword [ebp + 0xc]
pop ecx
pop ecx
test eax, eax
je 0x4f0af1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
inc ebx
mov ecx, dword [ebp - 0x10]
cmp ebx, dword [edi + 0x18]
jb 0x4f0aa8
pop ebx
pop edi
pop esi
leave
ret
Function at 0x4f25cc
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push eax
push 0x4f25ee
push eax
push eax
call fcn.0044ad85
add esp, 0x10
mov dword [0x791d6c], eax
call sub.KERNEL32.dll_TlsAlloc
mov dword [0x791d88], eax
ret

Function at 0x4f3890
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4f38bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4f38bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402070
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408048
call sym._EnterCriticalSection_4
mov ebx, dword [0x408040]
sub esp, 4
test ebx, ebx
je 0x4020bb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x4020b4
test esi, esi
je 0x4020b4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402090
mov dword [esp], 0x408048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x4022a0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4022f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4023c8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40232e
cmp eax, 4
jne 0x402350
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40233e
cmp edx, 4
je 0x40233e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.004022a0
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x6ae31337
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
mov ecx, 0x56e263dd
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x1001e740
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007d0cb
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x1008a8e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
xor eax, eax
mov dword [edi + 4], 0
mov dword [edi + 8], 0
lea ecx, [edi + 0x34]
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 1
mov word [edi + 0x18], ax
mov dword [edi + 0x20], eax
mov dword [edi], 0x1000100c
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], eax
call fcn.1001e6a0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [edi + 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x30], eax
cmp dword [ecx + 4], 0
je 0x1001e868
test byte [0x1008afc8], 2
je 0x1001e868
cmp dword [0x1008d288], 0
je 0x1001e868
mov edx, dword [0x1008a8f8]
mov eax, dword [0x1008afc8]
cmp edx, 0xffffffff
jne 0x1001e7fc
test al, 2
je 0x1001e821
cmp dword [ecx + 4], 0
jne 0x1001e821
mov eax, dword [ecx]
mov esi, dword [eax]
mov ecx, esi
call dword [0x1008c268]
mov ecx, dword [ebp + 8]
call esi
mov eax, dword [0x1008afc8]
mov edx, dword [0x1008a8f8]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x14], ecx
cmp edx, 0xffffffff
jne 0x1001e830
test al, 2
je 0x1001e84b
cmp dword [edi + 0x38], 0
jne 0x1001e84b
mov eax, dword [edi + 0x34]
mov esi, dword [eax]
mov ecx, esi
call dword [0x1008c268]
lea ecx, [edi + 0x34]
call esi
mov ecx, dword [ebp - 0x14]
mov eax, dword [0x1008d288]
push ecx
push dword [edi + 0x38]
push eax
mov eax, dword [0x1008d1dc]
push 0x2f400
push eax
call fcn.100312d0
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007c0c0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1001e890
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x1008a8e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x210]
mov ebx, ecx
push eax
push 0x106
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x1001e8db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1001e954
movzx esi, si
or esi, 0x80070000
jmp 0x1001e952
lea eax, [ebp - 0x41c]
push eax
push 0
push 0x10005fb4
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1001e8c0
lea ecx, [ebp - 0x628]
mov edx, 0x105
lea esi, [ebp - 0x41c]
mov eax, ecx
sub esi, eax
nop
lea eax, [edx + 0x7ffffef9]
test eax, eax
je 0x1001e930
movzx eax, word [esi + ecx]
test ax, ax
je 0x1001e930
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x1001e910
jmp 0x1001e934
test edx, edx
jne 0x1001e937
sub ecx, 2
xor eax, eax
mov esi, edx
neg esi
mov word [ecx], ax
sbb esi, esi
and esi, 0x7ff8ff86
add esi, 0x8007007a
test edx, edx
jne 0x1001e95a
test esi, esi
js 0x1001ea11
lea eax, [ebp - 0x62c]
push eax
lea edx, [ebx + 8]
lea ecx, [ebp - 0x628]
call fcn.10030590
mov esi, eax
test esi, esi
js 0x1001ea31
mov edx, dword [ebx]
test edx, edx
jle 0x1001e9a0
mov ecx, dword [ebp - 0x62c]
call fcn.10030730
mov esi, eax
test esi, esi
jns 0x1001e9a0
push esi
push 0x100048a0
push 0x1c809
jmp 0x1001ea3c
push 0x20c
push 0
call dword [sym.imp.MSDART.DLL_MpGetHeapHandle]
push eax
call dword [sym.imp.MSDART.DLL_MpHeapAlloc]
add esp, 0xc
mov dword [ebx + 0xc], eax
test eax, eax
jne 0x1001e9e2
mov eax, dword [0x1008d0f0]
push 0x8007000e
push 0x100048a0
push 0x1dc09
push eax
call fcn.100312d0
add esp, 0x10
mov ecx, 0x8007000e
jmp 0x1001ea4d
mov edi, eax
lea esi, [ebp - 0x628]
mov ecx, 0x82
mov eax, dword [ebp - 0x62c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
xor ecx, ebp
movsw word es:[edi], word [esi]
or dword [ebx + 0x2c], 0x10
pop edi
pop esi
mov dword [ebx + 0x28], eax
pop ebx
call fcn.100313b2
mov esp, ebp
pop ebp
ret
mov eax, dword [0x1008d0f0]
push esi
push 0x100048a0
push 0x1a809
push eax
call fcn.100312d0
add esp, 0x10
mov ecx, esi
call fcn.10019740
push esi
push 0x100048a0
push 0x1b809
mov ecx, dword [0x1008d0f0]
push ecx
call fcn.100312d0
add esp, 0x10
mov ecx, esi
call fcn.10019740
int3
Function at 0x1001ebb0
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1008a8e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
xor ecx, ecx
cmp dword [ebx + 0x24], ecx
jle 0x1001ebe3
nop
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + ecx*4]
inc ecx
add eax, dword [ebx + 0x14]
or byte [eax + 0x13], 2
cmp ecx, dword [ebx + 0x24]
jl 0x1001ebd0
mov ecx, ebx
call fcn.10019db0
test byte [ebx + 0x2c], 0x10
je 0x1001ec30
push esi
mov esi, dword [ebx + 0xc]
mov ecx, 0x82
push edi
push dword [ebx + 0x28]
lea edi, [ebp - 0x210]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
test eax, eax
jne 0x1001ec19
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1001ec30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebx + 0xc]
call dword [sym.imp.MSDART.DLL_MpGetHeapHandle]
push eax
call dword [sym.imp.MSDART.DLL_MpHeapFree]
add esp, 8
mov dword [ebx + 0xc], 0
push dword [ebx + 0x10]
call dword [sym.imp.MSDART.DLL_MpGetHeapHandle]
push eax
call dword [sym.imp.MSDART.DLL_MpHeapFree]
add esp, 8
mov dword [ebx + 0x10], 0
push dword [ebx + 0x14]
call dword [sym.imp.MSDART.DLL_MpGetHeapHandle]
push eax
call dword [sym.imp.MSDART.DLL_MpHeapFree]
add esp, 8
mov dword [ebx + 0x14], 0
push ebx
call dword [sym.imp.MSDART.DLL_MpGetHeapHandle]
push eax
call dword [sym.imp.MSDART.DLL_MpHeapFree]
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop ebx
call fcn.1007c0c0
mov esp, ebp
pop ebp
ret

Function at 0x1001eca0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
test byte [esi + 0x2c], 0x10
jne 0x1001ecb4
call fcn.1001e890
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001ece6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1001ece4
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x1001ecf0
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x1008d0f0]
push esi
push 0x100049a0
push 0x3b009
push eax
call fcn.100312d0
add esp, 0x10
mov ecx, esi
call fcn.10019740
int3
Function at 0x1001ed20
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x2c]
test al, 6
je 0x1001ed39
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 8
test al, 0x10
jne 0x1001ed42
call fcn.1001e890
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1001ed8a
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1001ed73
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x1001ed89
cmp esi, 0x80070070
jne 0x1001ed94
mov eax, dword [edi + 0x2c]
and eax, 0xfffffffb
or eax, 2
mov dword [edi + 0x2c], eax
pop esi
mov eax, dword [ebp - 4]
pop edi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x1008d0f0]
push esi
push 0x10004a10
push 0x42409
push eax
call fcn.100312d0
add esp, 0x10
mov ecx, esi
call fcn.10019740
int3