joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10087ea
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2208
call fcn.0100e330
mov eax, dword [0x101348c]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x18]
push 3
push 0xc0000000
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
push eax
call fcn.0100c756
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1008828
xor eax, eax
jmp 0x10088f3
push edi
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push 0x10015d4
lea eax, [ebp - 0x2204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [ebp + 0x1c]
test edi, edi
jbe 0x100887d
lea eax, [ebp - 0x204]
push eax
push esi
call fcn.0100bdd2
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x2204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
add esi, 0x64
dec edi
jne 0x1008856
lea eax, [ebp - 0x2204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [ebp + 0x10]
mov esi, eax
mov eax, dword [ebp + 0x14]
shl esi, 1
cmp esi, eax
jbe 0x10088a0
mov ecx, esi
push 1
sub ecx, eax
jmp 0x10088a6
mov ecx, eax
push 0
sub ecx, esi
push ecx
add eax, edi
push eax
push ebx
call fcn.0100bea0
push 0
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x2208]
push eax
push esi
lea eax, [ebp - 0x2204]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0100dd00
leave
ret 0x18

Function at 0x1008906
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x74
push edi
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.0100c756
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
mov dword [ebp + 8], edi
je 0x10089a2
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ebx, ebx
push ebx
push ebx
push 0x1c
push edi
call esi
push ebx
lea eax, [ebp - 4]
push eax
push 0x70
lea eax, [ebp - 0x74]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
call edi
xor edx, edx
lea eax, [ebp - 0x70]
mov ecx, dword [eax - 4]
add ecx, dword [eax + 4]
add ecx, dword [eax]
cmp dword [eax + 8], ecx
mov dword [ebp - 4], ecx
jne 0x10089a7
inc edx
add eax, 0x10
cmp edx, 7
jb 0x100895b
push ebx
push ebx
push dword [ebp - 0x70]
push dword [ebp + 8]
call esi
push ebx
lea eax, [ebp - 4]
push eax
mov esi, 0x16a
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], esi
sbb eax, eax
inc eax
pop esi
pop ebx
pop edi
leave
ret 0xc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x10089a0
Function at 0x1009069
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x101348c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0x14]
mov edi, dword [eax + 0x54]
push 0
push edi
push esi
mov dword [ebp - 0x90], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, edi
je 0x10090b1
xor eax, eax
jmp 0x100913c
push 0
lea eax, [ebp - 0x8c]
push eax
push 4
push dword [ebp - 0x88]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
call esi
push 0x20
pop ecx
xor eax, eax
and dword [ebp - 0x88], eax
lea edi, [ebp - 0x84]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
call edi
test eax, eax
jbe 0x1009115
mov ecx, dword [ebp - 0x88]
mov al, byte [ebp - 0x88]
movzx ecx, word [ebx + ecx*2]
inc al
inc dword [ebp - 0x88]
push ebx
mov byte [ebp + ecx - 0x84], al
call edi
cmp dword [ebp - 0x88], eax
jb 0x10090eb
push 0
lea eax, [ebp - 0x8c]
push eax
mov edi, 0x80
push edi
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x90]
call esi
cmp dword [ebp - 0x8c], edi
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100dd00
leave
ret 0x10

Function at 0x1009150
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [eax + 0x54]
push 0
push 0
add esi, 0x84
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, esi
je 0x1009178
xor eax, eax
jmp 0x100919d
mov eax, dword [ebp + 0x10]
lea esi, [eax + 1]
imul esi, eax
push 0
lea eax, [ebp + 0x14]
push eax
shl esi, 2
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp + 0x14], esi
sbb eax, eax
inc eax
pop esi
pop ebp
ret 0x10

Function at 0x10091a7
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
lea esi, [eax + 1]
imul esi, eax
mov eax, dword [ebx + 0x54]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
shl esi, 2
lea eax, [eax + esi + 0x84]
push 0
push eax
push dword [ebp + 8]
mov dword [ebp + 0x10], eax
call edi
cmp eax, dword [ebp + 0x10]
je 0x10091e4
xor eax, eax
jmp 0x1009211
mov eax, dword [ebx + 0x54]
push 0
push 0
lea eax, [eax + esi + 0x84]
push eax
push dword [ebp + 8]
call edi
push 0
lea eax, [ebp + 0x14]
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp + 0x14], esi
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x100a48d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0xc]
and word [esi], 0
lea eax, [ebp - 8]
push eax
push 0x1001620
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x100a4fc
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x100a4fc
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push 0x100160c
push dword [ebp - 4]
mov dword [ebp + 0xc], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 0xc], eax
call esi
push dword [ebp - 8]
call esi
pop esi
leave
ret 8

Function at 0x100a506
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x101348c]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push edi
xor ebx, ebx
push ebx
push ebx
push 0x18b
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edi, 0x40b
push edi
push eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x208], ecx
call esi
cmp eax, ebx
mov dword [ebp - 0x210], eax
jne 0x100a55a
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
jmp 0x100a57d
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x208], eax
jne 0x100a584
xor eax, eax
jmp 0x100a631
push 0x7f02
push ebx
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
cmp dword [ebp - 0x210], ebx
mov dword [ebp - 0x20c], ebx
jle 0x100a60f
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x20c]
push 0x189
push edi
push dword [ebp - 0x214]
call esi
push 0x1001684
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc dword [ebp - 0x20c]
mov eax, dword [ebp - 0x20c]
cmp eax, dword [ebp - 0x210]
jl 0x100a5a5
push 0x7f00
push ebx
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100dd00
leave
ret 8
Function at 0x100bea0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x400c
call fcn.0100e330
mov eax, dword [0x101348c]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x400c], edi
call esi
cmp dword [ebp + 0x14], ebx
jne 0x100bf84
push ebx
lea eax, [ebp - 0x4008]
push eax
push 0x4000
lea eax, [ebp - 0x4004]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x4008]
mov ecx, dword [ebp + 0x10]
push 1
add eax, ecx
push ebx
neg eax
push eax
push edi
call esi
push ebx
lea eax, [ebp - 0x4008]
push eax
push dword [ebp - 0x4008]
lea eax, [ebp - 0x4004]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 1
push ebx
push dword [ebp + 0x10]
push edi
call esi
cmp dword [ebp - 0x4008], 0x4000
je 0x100bedc
mov eax, dword [ebp + 0x10]
push 1
push ebx
neg eax
push eax
push edi
call esi
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
mov edx, 0x102f300
jbe 0x100bf6c
mov esi, ecx
shr ecx, 2
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp - 0x400c]
push ebx
lea eax, [ebp - 0x4008]
push eax
push dword [ebp + 0x10]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x100c032
push 2
push ebx
push ebx
push edi
call esi
cmp eax, dword [ebp + 0xc]
jbe 0x100c032
jmp 0x100bf9c
mov eax, dword [ebp - 0x400c]
mov edx, dword [ebp + 0xc]
lea ecx, [edx + 0x4000]
cmp eax, ecx
jbe 0x100bfb0
mov eax, 0x4000
jmp 0x100bfb2
sub eax, edx
push 1
mov dword [ebp - 0x4008], eax
push ebx
neg eax
push eax
push edi
call esi
push ebx
mov dword [ebp - 0x400c], eax
lea eax, [ebp - 0x4008]
push eax
push dword [ebp - 0x4008]
lea eax, [ebp - 0x4004]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0x4008]
push 1
push ebx
push eax
push edi
call esi
push ebx
lea eax, [ebp - 0x4008]
push eax
push dword [ebp - 0x4008]
lea eax, [ebp - 0x4004]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x4008]
mov ecx, dword [ebp + 0x10]
push 1
add eax, ecx
push ebx
neg eax
push eax
push edi
call esi
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x400c], eax
ja 0x100bf96
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100dd00
leave
ret 0x10
Function at 0x100c1ea
Capabilities:
Clear file content
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x101348c]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push edi
push edi
push 2
push edi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0x40000000
push esi
mov dword [ebp - 0x408], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100c270
push 0x100
lea eax, [ebp - 0x404]
push eax
push 3
push edi
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x404]
push eax
push esi
lea eax, [ebp - 0x204]
push 0x100170c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.0100b7ba
xor eax, eax
jmp 0x100c2c1
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
lea eax, [ebp - 0x40c]
push eax
push 2
push 0x1033938
push ebx
call esi
push edi
lea eax, [ebp - 0x40c]
push eax
movzx eax, word [0x1033938]
imul eax, eax, 0x68
push eax
push dword [ebp - 0x408]
push ebx
call esi
push dword [0x1034738]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100dd00
leave
ret 8

Function at 0x100c2d5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push edi
xor edi, edi
push edi
push edi
push 4
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100c314
push 1
call dword [sym.imp.USER32.dll_GetFocus]
push eax
push 0x3ee
call fcn.0100b820
xor eax, eax
jmp 0x100c39a
push esi
push edi
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp + 8]
push eax
push 2
push 0x1033938
push ebx
mov word [0x1033938], di
call esi
mov ax, word [0x1033938]
cmp ax, 0x3e8
ja 0x100c390
movzx eax, ax
inc eax
imul eax, eax, 0x68
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [0x1034738], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
lea ecx, [ebp + 8]
push ecx
movzx ecx, word [0x1033938]
imul ecx, ecx, 0x68
push ecx
push eax
push ebx
call esi
push dword [0x1034738]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor edi, edi
inc edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x100d497
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2198
call fcn.0100e330
mov eax, dword [0x101348c]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push edi
or edi, 0xffffffff
cmp esi, ebx
mov dword [ebp - 0x2198], eax
mov dword [ebp - 0x2194], ebx
je 0x100d587
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x100d587
push ebx
push ebx
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0xffffffffffffffff
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0x10
lea eax, [ebp - 0x2190]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov edi, eax
cmp edi, 0xffffffff
je 0x100d54b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x166
jne 0x100d54b
push ebx
push 0xe
push edi
call dword [sym.imp.KERNEL32.dll__llseek]
cmp eax, 0xe
jne 0x100d54b
mov esi, 0x158
push esi
lea eax, [ebp - 0x2108]
push eax
push edi
call dword [sym.imp.KERNEL32.dll__lread]
cmp eax, esi
je 0x100d557
mov dword [ebp - 0x2194], 1
jmp 0x100d591
push esi
lea eax, [ebp - 0x2108]
push eax
push 0x804
push 0x10017f0
push 2
push dword [ebp - 0x2198]
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
test eax, eax
jne 0x100d591
mov dword [ebp - 0x2194], 0x100
jmp 0x100d591
mov dword [ebp - 0x2194], 0x10
cmp edi, 0xffffffff
je 0x100d59d
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
movzx eax, word [ebp - 0x2194]
pop edi
pop esi
sub eax, ebx
pop ebx
je 0x100d5f5
dec eax
je 0x100d5dd
sub eax, 0xf
je 0x100d5cf
push 0x10
push 0x1013480
push 0x101346c
push dword [0x10151d0]
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x100d5f8
push 0x40
push 0x1013480
push 0x1013440
jmp 0x100d5e9
push 0x40
push 0x1013480
push 0x10133e8
push dword [0x10151d0]
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
call fcn.0100dd00
leave
ret 0xc

Function at 0x100de23
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1001820
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100de7b
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x100185c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100de6e
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x100de7d
xor eax, eax
pop esi
leave
ret 4
Function at 0x100df6c
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0x1001860
call fcn.0100f614
mov edi, 0x94
mov eax, edi
call fcn.0100e330
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x1033730], ecx
mov eax, dword [esi + 4]
mov dword [0x103373c], eax
mov edx, dword [esi + 8]
mov dword [0x1033740], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x1033734], esi
cmp ecx, 2
je 0x100dfcc
or esi, 0x8000
mov dword [0x1033734], esi
shl eax, 8
add eax, edx
mov dword [0x1033738], eax
cmp word [0x1000000], 0x5a4d
jne 0x100e008
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x100e008
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x100e021
cmp ecx, 0x20b
je 0x100e00e
and dword [ebp - 0x1c], 0
jmp 0x100e035
cmp dword [eax + 0x84], 0xe
jbe 0x100e008
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x100e02f
cmp dword [eax + 0x74], 0xe
jbe 0x100e008
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
push 0
call fcn.0100f5b5
pop ecx
test eax, eax
jne 0x100e062
cmp dword [0x1033720], 1
jne 0x100e04f
call fcn.0100ed91
push 0x1c
call fcn.0100eba4
push 0xff
call fcn.0100ea03
pop ecx
pop ecx
and dword [ebp - 4], 0
call fcn.0100f3e5
test eax, eax
jge 0x100e077
push 0x1b
call fcn.0100df3d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1034bf4], eax
call fcn.0100f2b8
mov dword [0x1033718], eax
call fcn.0100f20f
test eax, eax
jge 0x100e09d
push 8
call fcn.0100df3d
pop ecx
call fcn.0100efb5
test eax, eax
jge 0x100e0ae
push 9
call fcn.0100df3d
pop ecx
call fcn.0100ea5d
mov dword [ebp - 0x28], eax
test eax, eax
je 0x100e0c1
push eax
call fcn.0100df3d
pop ecx
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0100ef47
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x100e0e3
movzx eax, word [ebp - 0x40]
jmp 0x100e0e6
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x1000000
call fcn.01007d81
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x100e107
push esi
call fcn.0100eb3d
call fcn.0100eb75
jmp 0x100e139
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x7c]
call fcn.0100f64f
ret

Function at 0x100e6ba
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100e6df
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100fafc
pop ecx
or eax, 0xffffffff
pop ebp
ret
test al, 1
je 0x100e6ff
test byte [ebp + 0xc], 2
je 0x100e6ff
mov dword [0x1033724], 0xd
mov dword [0x1033728], 5
jmp 0x100e6da
xor eax, eax
pop ebp
ret
Function at 0x100e8d4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100e8f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100fafc
pop ecx
or eax, 0xffffffff
pop ebp
ret
test al, 1
je 0x100e919
test byte [ebp + 0xc], 2
je 0x100e919
mov dword [0x1033724], 0xd
mov dword [0x1033728], 5
jmp 0x100e8f4
xor eax, eax
pop ebp
ret
Function at 0x100eba4
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x101348c]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x10134a0]
je 0x100ebce
inc eax
cmp eax, 0x12
jb 0x100ebbf
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x10134a0]
mov dword [ebp - 0x110], esi
jne 0x100ed79
mov eax, dword [0x1033720]
cmp eax, 1
je 0x100ed47
test eax, eax
jne 0x100ec04
cmp dword [0x1013494], 1
je 0x100ed47
cmp ecx, 0xfc
je 0x100ed79
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100ec3f
push 5
pop ecx
mov esi, 0x1001be4
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebx, [ebp - 0x10c]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100ec4a
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x100ec82
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100ec62
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x1001be0
push ebx
call fcn.010107d0
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100ec87
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 0x10134a4]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100eca1
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.0100e330
mov edx, esp
push 6
pop ecx
mov esi, 0x1001bc4
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100eccd
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100ecd9
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100ecf2
mov eax, dword [ebp - 0x110]
mov esi, 0x1001bc0
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x10134a4]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100ed10
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100ed1c
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1001b98
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.010106c2
add esp, 0xc
jmp 0x100ed79
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x100ed79
mov esi, dword [esi + 0x10134a4]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x100ed5e
push 0
sub ecx, edx
lea edx, [ebp - 0x114]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x120]
mov ecx, dword [ebp - 4]
call fcn.0100dd00
pop edi
pop esi
pop ebx
leave
ret