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

Disassembly:
sub esp, 0x14
mov ecx, dword [esp + 0x18]
push ebp
push esi
lea eax, [esp + 0x10]
push eax
push 0x40
xor esi, esi
push 0x8000
push ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call fcn.022687b0
mov ebp, eax
add esp, 0x10
cmp ebp, 0xffffffff
jne 0x225e857
pop esi
xor eax, eax
pop ebp
add esp, 0x14
ret
push ebx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x225e876
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x225e876
or eax, edi
jmp 0x225e878
mov eax, edi
cdq
and edx, 0x1ff
add eax, edx
mov edi, eax
sar edi, 9
push 0x200
mov dword [esp + 0x24], edi
call fcn.0226b115
add esp, 4
cmp edi, esi
mov ebx, eax
mov dword [esp + 0x10], esi
jle 0x225e8f4
jmp 0x225e8a5
xor esi, esi
push esi
lea edx, [esp + 0x20]
push edx
push 0x200
push ebx
xor eax, eax
mov ecx, 0x80
mov edi, ebx
push ebp
rep stosd dword es:[edi], eax
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, 8
mov edi, 0x2286e34
mov esi, ebx
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x225e8ec
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x225e8a3
jmp 0x225e8f4
mov dword [esp + 0x14], 1
push ebx
call fcn.0226affd
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x14
ret

Function at 0x22685b0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x22886a4]
sub esp, 0x104
test eax, eax
push esi
push edi
je 0x22685e8
mov esi, dword [esp + 0x110]
mov eax, dword [esp + 0x114]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
neg eax
sbb eax, eax
pop edi
and eax, esi
pop esi
add esp, 0x104
ret
lea ecx, [esp + 8]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, eax
lea eax, [esp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x2268601
mov esi, dword [esp + 0x110]
sub eax, edx
inc eax
push eax
lea edx, [esp + 0xc]
push edx
push esi
call fcn.02236420
add esp, 0xc
mov eax, edi
neg eax
sbb eax, eax
pop edi
and eax, esi
pop esi
add esp, 0x104
ret

Function at 0x2268640
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [0x22886a4]
sub esp, 0x104
test eax, eax
je 0x226865f
mov eax, dword [esp + 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x2268683
mov ecx, dword [esp + 0x108]
push 0x104
push ecx
lea edx, [esp + 8]
push edx
call fcn.02236470
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x2268691
or eax, eax
add esp, 0x104
ret
test al, 1
je 0x22686ab
test byte [esp + 0x10c], 2
je 0x22686ab
mov eax, 0xffffffff
add esp, 0x104
ret
xor eax, eax
add esp, 0x104
ret
Function at 0x22686c0
Capabilities:
Move file

Disassembly:
mov eax, dword [0x22886a4]
sub esp, 0x208
test eax, eax
je 0x22686f3
mov eax, dword [esp + 0x210]
mov ecx, dword [esp + 0x20c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
neg eax
sbb eax, eax
neg eax
dec eax
add esp, 0x208
ret
mov edx, dword [esp + 0x20c]
push 0x104
push edx
lea eax, [esp + 0x10c]
push eax
call fcn.02236470
mov ecx, dword [esp + 0x21c]
push 0x104
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.02236470
add esp, 0x18
lea eax, [esp]
push eax
lea ecx, [esp + 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
neg eax
sbb eax, eax
neg eax
dec eax
add esp, 0x208
ret

Function at 0x2268750
Capabilities:
Delete file

Disassembly:
mov eax, dword [0x22886a4]
sub esp, 0x104
test eax, eax
je 0x226877b
mov eax, dword [esp + 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
dec eax
add esp, 0x104
ret
mov ecx, dword [esp + 0x108]
push 0x104
push ecx
lea edx, [esp + 8]
push edx
call fcn.02236470
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
neg eax
dec eax
add esp, 0x104
ret

Function at 0x22689d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x48
mov eax, dword [0x2286fc4]
mov dword [esp], eax
mov word [0x2286fc4], 0
mov eax, 0x2286fc2
lea esp, [esp]
mov cx, word [esp]
xor word [eax], cx
xor ecx, ecx
mov cx, word [eax]
sub eax, 2
cmp eax, 0x2286fb4
mov dword [esp], ecx
jae 0x22689f0
push 0x2286fb4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dx, word [0x2286fea]
mov dword [0x22886a8], eax
mov word [0x2286fea], 0
mov ecx, 0x2286fe8
jmp 0x2268a34
mov dx, word [esp]
xor word [ecx], dx
xor edx, edx
mov dx, word [ecx]
sub ecx, 2
cmp ecx, 0x2286fc8
mov dword [esp], edx
jae 0x2268a30
push esi
push edi
push 0x41
lea edx, [esp + 0x10]
push 0x2286fc8
push edx
mov esi, eax
call fcn.02236470
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push esi
call edi
mov ecx, dword [0x228700c]
mov dword [0x22886a0], eax
mov dword [esp + 8], ecx
mov word [0x228700c], 0
mov eax, 0x228700a
lea ecx, [ecx]
mov dx, word [esp + 8]
xor word [eax], dx
xor ecx, ecx
mov cx, word [eax]
sub eax, 2
cmp eax, 0x2286fec
mov dword [esp + 8], ecx
jae 0x2268a90
mov esi, dword [0x22886a8]
push 0x41
lea eax, [esp + 0x10]
push 0x2286fec
push eax
call fcn.02236470
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push esi
call edi
mov dword [0x228869c], eax
mov eax, dword [0x22886a0]
test eax, eax
pop edi
pop esi
je 0x2268ae3
call eax
add esp, 0x48
ret
xor eax, eax
add esp, 0x48
ret
Function at 0x2268af0
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x10c
push esi
push edi
mov edi, dword [esp + 0x118]
lea eax, [esp + 0xc]
push eax
push 0x40
push 0x8302
push str.435____9.___
mov esi, edi
mov dword [esp + 0x18], 0x61
call fcn.022687b0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x2268b32
pop edi
xor eax, eax
pop esi
add esp, 0x10c
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.435____9.___
call fcn.02268750
push 0
call fcn.0226cc20
add esp, 8
cmp word [edi], 0
je 0x2268b5c
add esi, 2
cmp word [esi], 0
jne 0x2268b53
sub esi, 2
cmp word [esi], 0x58
je 0x2268b70
sub esi, 2
cmp word [esi], 0x58
jne 0x2268b65
mov edi, edi
xor edx, edx
mov ecx, 0xa
div ecx
sub esi, 2
add edx, 0x30
mov word [esi + 2], dx
cmp word [esi], 0x58
je 0x2268b70
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [0x22886a4]
test eax, eax
je 0x2268ba5
push edi
call ebx
jmp 0x2268bbf
push 0x104
lea edx, [esp + 0x1c]
push edi
push edx
call fcn.02236470
add esp, 0xc
lea eax, [esp + 0x18]
push eax
call ebp
cmp eax, 0xffffffff
je 0x2268be9
mov eax, dword [esp + 0x10]
cmp ax, 0x7b
je 0x2268bdc
movsx cx, al
inc eax
mov word [esi], cx
mov dword [esp + 0x10], eax
jmp 0x2268b97
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x10c
ret
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
add esp, 0x10c
ret
Function at 0x2269240
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebp
push esi
mov esi, dword [esp + 0x1c]
imul esi, dword [esp + 0x20]
test esi, esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], esi
mov ebp, esi
jne 0x226926a
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
push ebx
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebx + 0x24]
push 0xea60
push eax
call fcn.02267590
mov eax, dword [ebx + 0xc]
add esp, 8
test eax, 0x10c
je 0x2269293
mov ecx, dword [ebx + 0x18]
mov dword [esp + 0x10], ecx
jmp 0x22692a0
mov dword [esp + 0x10], 0x1000
mov ecx, dword [esp + 0x10]
nop
test dword [ebx + 0xc], 0x10c
je 0x22692ea
mov eax, dword [ebx + 4]
test eax, eax
je 0x22692ea
cmp ebp, eax
jae 0x22692b6
mov eax, ebp
mov esi, dword [ebx]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebx + 4]
mov edx, dword [ebx]
mov ecx, dword [esp + 0x20]
sub esi, eax
add edx, eax
sub ebp, eax
add ecx, eax
mov dword [ebx + 4], esi
mov esi, dword [esp + 0x18]
mov dword [ebx], edx
mov dword [esp + 0x20], ecx
mov edi, ecx
jmp 0x226934b
cmp ebp, ecx
jb 0x226932e
test ecx, ecx
mov eax, ebp
je 0x22692fc
xor edx, edx
div ecx
mov eax, ebp
sub eax, edx
mov ecx, dword [ebx + 0x10]
push 0
lea edx, [esp + 0x18]
push edx
push eax
push edi
push ecx
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x2269392
mov eax, dword [esp + 0x14]
test eax, eax
je 0x226936b
cmp eax, 0xffffffff
je 0x2269392
sub ebp, eax
add edi, eax
jmp 0x2269347
push ebx
call fcn.022690a0
add esp, 4
cmp eax, 0xffffffff
je 0x226939e
mov byte [edi], al
mov eax, dword [ebx + 0x18]
inc edi
dec ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], edi
test ebp, ebp
jne 0x226929b
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.022675c0
mov eax, dword [esp + 0x2c]
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x24]
or eax, 0x10
push ecx
mov dword [ebx + 0xc], eax
call fcn.022675c0
add esp, 4
pop ebx
mov eax, esi
pop edi
sub eax, ebp
xor edx, edx
div dword [esp + 0x1c]
pop esi
pop ebp
add esp, 0xc
ret
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x24]
or eax, 0x20
push edx
jmp 0x2269375
mov eax, dword [ebx + 0x24]
push eax
jmp 0x2269378
Function at 0x2269910
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x20]
imul edi, dword [esp + 0x24]
test edi, edi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
mov ebp, edi
jne 0x226993a
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
push ebx
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebx + 0x24]
push 0xea60
push eax
call fcn.02267590
mov eax, dword [ebx + 0xc]
add esp, 8
test eax, 0x10c
je 0x2269963
mov ecx, dword [ebx + 0x18]
mov dword [esp + 0x20], ecx
jmp 0x2269970
mov dword [esp + 0x20], 0x1000
mov ecx, dword [esp + 0x20]
nop
mov edx, dword [ebx + 0xc]
and edx, 0x108
je 0x22699bf
mov eax, dword [ebx + 4]
test eax, eax
je 0x22699bf
cmp ebp, eax
jae 0x2269988
mov eax, ebp
mov edi, dword [ebx]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebx + 4]
mov edx, dword [ebx]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
sub esi, eax
add edx, eax
sub ebp, eax
add ecx, eax
mov dword [ebx + 4], esi
mov dword [ebx], edx
mov dword [esp + 0x10], ecx
mov esi, ecx
jmp 0x2269a57
cmp ebp, ecx
jb 0x2269a2c
test edx, edx
je 0x22699dc
push ebx
call fcn.02269160
add esp, 4
test eax, eax
jne 0x2269a77
mov ecx, dword [esp + 0x20]
test ecx, ecx
mov edi, ebp
je 0x22699ea
xor edx, edx
mov eax, ebp
div ecx
sub edi, edx
mov eax, dword [ebx + 0x10]
push 0
lea ecx, [esp + 0x1c]
push ecx
push edi
push esi
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x2269a95
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
je 0x2269a95
add esi, eax
sub ebp, eax
cmp eax, edi
mov dword [esp + 0x10], esi
jb 0x2269ab9
mov edi, dword [esp + 0x14]
jmp 0x2269a57
movsx eax, byte [esi]
push ebx
push eax
call fcn.022697a0
add esp, 8
cmp eax, 0xffffffff
je 0x2269a77
mov eax, dword [ebx + 0x18]
inc esi
dec ebp
test eax, eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], eax
jg 0x2269a57
mov dword [esp + 0x20], 1
test ebp, ebp
jne 0x226996b
mov eax, dword [ebx + 0x24]
push eax
call fcn.022675c0
mov eax, dword [esp + 0x2c]
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
mov edx, dword [ebx + 0x24]
push edx
call fcn.022675c0
add esp, 4
pop ebx
mov eax, edi
pop edi
sub eax, ebp
xor edx, edx
div dword [esp + 0x1c]
pop esi
pop ebp
add esp, 0xc
ret
mov eax, dword [ebx + 0x24]
push eax
or dword [ebx + 0xc], 0x20
call fcn.022675c0
mov eax, dword [esp + 0x18]
add esp, 4
pop ebx
pop edi
sub eax, ebp
xor edx, edx
div dword [esp + 0x1c]
pop esi
pop ebp
add esp, 0xc
ret
mov ecx, dword [ebx + 0x24]
push ecx
jmp 0x2269a99
Function at 0x226d03b
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x226d12b
mov eax, 0x94
call fcn.0226ade0
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x226d1a0
mov ecx, dword [esi + 0x10]
mov dword [0x2288904], ecx
mov eax, dword [esi + 4]
mov dword [0x2288910], eax
mov edx, dword [esi + 8]
mov dword [0x2288914], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x2288908], esi
je 0x226d0a6
or esi, 0x8000
mov dword [0x2288908], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x228890c], eax
call fcn.0226e375
test eax, eax
pop ecx
je 0x226d1a0
call fcn.0226d6fe
test eax, eax
jne 0x226d0d3
call fcn.0226e3c6
jmp 0x226d1a0
call fcn.022729a4
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x2289d98], eax
call fcn.02272882
mov dword [0x2288748], eax
call fcn.02272363
test eax, eax
jl 0x226d124
call fcn.022727e0
test eax, eax
jl 0x226d11f
call fcn.022725ad
test eax, eax
jl 0x226d11f
push 0
call fcn.02270cc3
test eax, eax
pop ecx
jne 0x226d11f
inc dword [0x2288744]
jmp 0x226d1b1
call fcn.02272561
call fcn.0226d4e7
jmp 0x226d0c9
test eax, eax
jne 0x226d15b
cmp dword [0x2288744], eax
jle 0x226d1a0
dec dword [0x2288744]
cmp dword [0x2288940], eax
jne 0x226d14a
call fcn.02270e01
call fcn.02272561
call fcn.0226d4e7
call fcn.0226e3c6
jmp 0x226d1b1
cmp eax, 2
jne 0x226d1a4
push 0x8c
push 1
call fcn.0226b127
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x226d1a0
push esi
push dword [0x228744c]
call dword [0x228876c]
test eax, eax
push esi
je 0x226d19a
call fcn.0226d504
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x226d1b1
call fcn.0226affd
pop ecx
xor eax, eax
jmp 0x226d1b4
cmp eax, 3
jne 0x226d1b1
push 0
call fcn.0226d6cf
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x226d90c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0226ade0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x226d9a7
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x2288904]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x226d9a7
cmp eax, 1
je 0x226d9c8
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x226d9a7
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x226d974
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x226d9a3
xor eax, eax
inc eax
jmp 0x226d9e7
cmp edi, eax
jae 0x226d9ab
xor eax, eax
jmp 0x226d9e7
cmp eax, esi
jae 0x226d9b2
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x2288904]
jmp 0x226d9cb
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x2270d2d
Capabilities:
Terminate process

Disassembly:
push 8
push 0x227fc00
call fcn.0226d9f0
push 8
call fcn.0226e598
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x2288944], esi
jne 0x2270d61
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x2288940], esi
mov al, byte [ebp + 0x10]
mov byte [0x228893c], al
cmp dword [ebp + 0xc], edi
jne 0x2270dab
cmp dword [0x2289d6c], edi
je 0x2270d9b
mov eax, dword [0x2289d68]
sub eax, 4
mov dword [0x2289d68], eax
cmp eax, dword [0x2289d6c]
jb 0x2270d9b
mov eax, dword [eax]
cmp eax, edi
je 0x2270d7c
call eax
jmp 0x2270d7c
push 0x2285028
mov eax, 0x2285020
call fcn.02270cab
pop ecx
push 0x2285030
mov eax, 0x228502c
call fcn.02270cab
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x2270ddc
cmp dword [ebp + 0x10], edi
jne 0x2270dea
mov dword [0x2288944], esi
push dword [ebp + 8]
call fcn.02270c69
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x2270de9
push 8
call fcn.0226e4e3
pop ecx
ret
call fcn.0226da2b
ret

Function at 0x2271eb0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x2271ede
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x2271ee3
cmp eax, 1
je 0x2271ee3
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x2271ee7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x22872b0]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x2271f5f
push ebx
call fcn.02271eb0
test eax, eax
pop ecx
jne 0x2271f2e
call fcn.0226af4f
mov dword [eax], 0xf
call fcn.0226af46
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0226d304
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x2271f71
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x2271f21
inc eax
cmp eax, 0x104
ja 0x2271f21
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x2271fa9
cmp eax, dword [ebp + 0x10]
jg 0x2271f8c
mov eax, dword [ebp + 0x10]
push eax
call fcn.0226b115
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x2271fbe
call fcn.0226af46
mov dword [eax], 0xc
jmp 0x2271f21
cmp eax, dword [ebp + 0x10]
jle 0x2271fbe
call fcn.0226af46
mov dword [eax], 0x22
jmp 0x2271f21
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.0226dfc0
pop ecx
pop ecx
jmp 0x2271f23

Function at 0x2272018
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x22872b0]
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [ebp - 4], eax
je 0x2272097
push esi
call fcn.02271eb0
test eax, eax
pop ecx
jne 0x227205f
call fcn.0226af4f
mov dword [eax], 0xf
call fcn.0226af46
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
call fcn.0226d304
leave
ret
and word [ebp - 6], 0
lea eax, [ebp - 0x218]
push eax
add esi, 0x40
lea eax, [ebp - 0x214]
push eax
mov word [ebp - 0xc], si
mov esi, 0x104
push esi
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xa], 0x3a
mov word [ebp - 8], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
jmp 0x22720aa
lea eax, [ebp - 0x214]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x2272052
inc eax
cmp eax, esi
ja 0x2272052
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x22720e1
cmp eax, dword [ebp + 0x10]
jg 0x22720c2
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
call fcn.0226b115
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x22720f6
call fcn.0226af46
mov dword [eax], 0xc
jmp 0x2272052
cmp eax, dword [ebp + 0x10]
jle 0x22720f6
call fcn.0226af46
mov dword [eax], 0x22
jmp 0x2272052
lea eax, [ebp - 0x214]
push eax
push ecx
call fcn.0226b20c
pop ecx
pop ecx
jmp 0x2272054
Function at 0x2272bab
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x22872b0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x2287a60]
je 0x2272be0
inc eax
cmp eax, 0x13
jb 0x2272bd1
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x2287a60]
jne 0x2272d06
mov eax, dword [0x2288750]
cmp eax, 1
je 0x2272cde
cmp eax, edx
jne 0x2272c10
cmp dword [0x2288754], 1
je 0x2272cde
cmp ecx, 0xfc
je 0x2272d06
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x2272c46
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0226dfc0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0226e200
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x2272c7a
mov eax, edi
push eax
call fcn.0226e200
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x22800a8
push edi
call fcn.0226c720
add esp, 0x10
push edi
call fcn.0226e200
push dword [esi + 0x2287a64]
mov ebx, eax
call fcn.0226e200
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0226ade0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0226dfc0
push edi
push ebx
call fcn.0226dfd0
push 0x2280088
push ebx
call fcn.0226dfd0
push dword [esi + 0x2287a64]
push ebx
call fcn.0226dfd0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0227512f
add esp, 0x2c
jmp 0x2272d06
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x2287a64]
push dword [esi]
call fcn.0226e200
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0226d304
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret