joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1009e638
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
add esi, 0xffffff20
cmp dword [ebx + 4], 0x100
push edi
jne 0x1009e75e
cmp dword [ebx + 8], 9
jne 0x1009e75e
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call edi
test ax, ax
jl 0x1009e75e
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.100c3d27
push eax
mov ecx, esi
call fcn.1009b0ae
test eax, eax
je 0x1009e6fb
push 0x10
call edi
xor ecx, ecx
test ax, ax
setl cl
inc ecx
inc ecx
push ecx
push esi
call fcn.1009e5ac
test eax, eax
je 0x1009e75e
mov ecx, esi
call fcn.1009e1aa
mov ecx, eax
shr ecx, 0x10
cmp cx, 0x534b
jne 0x1009e6e0
movzx eax, ax
push eax
mov ecx, esi
call fcn.100c5cd0
mov edi, eax
test edi, edi
je 0x1009e6e0
mov ecx, edi
call fcn.100c5e93
test eax, eax
je 0x1009e6e0
push edi
mov ecx, esi
call fcn.1009e193
lea eax, [esi + 0xa8]
cmp dword [eax], 0
je 0x1009e75e
mov eax, dword [eax]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x18]
neg eax
sbb eax, eax
inc eax
jmp 0x1009e75a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetTopWindow]
push eax
call fcn.100c3d27
test eax, eax
mov dword [ebp + 8], eax
je 0x1009e75e
push 0x10
call edi
test ax, ax
jl 0x1009e720
xor eax, eax
push 2
jmp 0x1009e725
xor eax, eax
inc eax
push 3
mov ecx, dword [ebp + 8]
pop ebx
push eax
jmp 0x1009e742
mov ecx, edi
call fcn.100c5d70
and eax, 0x8010000
cmp eax, 0x10000
je 0x1009e74f
push ebx
mov ecx, edi
call fcn.1001f11a
mov edi, eax
test edi, edi
jne 0x1009e72c
jmp 0x1009e75e
push edi
mov ecx, esi
call fcn.1009e193
xor eax, eax
inc eax
test eax, eax
jne 0x1009e772
push dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x100]
test eax, eax
jne 0x1009e772
inc eax
jmp 0x1009e774
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x100ab49e
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.100ab6e0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100ab539
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 [0x10130d30]
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 0x100ab539
cmp eax, 1
je 0x100ab55a
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 0x100ab539
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x100ab506
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x100ab535
xor eax, eax
inc eax
jmp 0x100ab579
cmp edi, eax
jae 0x100ab53d
xor eax, eax
jmp 0x100ab579
cmp eax, esi
jae 0x100ab544
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 [0x10130d30]
jmp 0x100ab55d
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 0x100ad0b7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100ad0d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call main
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x100ad0fa
test byte [esp + 8], 2
je 0x100ad0fa
call fcn.100af8d0
mov dword [eax], 0xd
call fcn.100af8d9
mov dword [eax], 5
jmp 0x100ad0d3
xor eax, eax
ret

Function at 0x100ad5a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x100ad5bd
call fcn.100af8d0
mov dword [eax], 0x16
xor eax, eax
jmp 0x100ad627
push esi
push 0x8c
push 1
call fcn.100af44f
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x100ad612
push esi
call fcn.100b2ed7
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x100ad5f0
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x100ad50b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x100ad626
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.100ab42d
test ebx, ebx
pop ecx
je 0x100ad624
push ebx
call main
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100ad6ef
Capabilities:
Terminate process

Disassembly:
push 8
push 0x100fc1c8
call fcn.100ab584
push 8
call fcn.100b1785
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x10130d70], esi
jne 0x100ad723
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x10130d6c], esi
mov al, byte [ebp + 0x10]
mov byte [0x10130d68], al
cmp dword [ebp + 0xc], edi
jne 0x100ad76d
cmp dword [0x1013266c], edi
je 0x100ad75d
mov eax, dword [0x10132668]
sub eax, 4
mov dword [0x10132668], eax
cmp eax, dword [0x1013266c]
jb 0x100ad75d
mov eax, dword [eax]
cmp eax, edi
je 0x100ad73e
call eax
jmp 0x100ad73e
push 0x1011a1a4
mov eax, 0x1011a19c
call fcn.100ad66d
pop ecx
push 0x1011a1b0
mov eax, 0x1011a1a8
call fcn.100ad66d
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x100ad79e
cmp dword [ebp + 0x10], edi
jne 0x100ad7ac
mov dword [0x10130d70], esi
push dword [ebp + 8]
call fcn.100ad62b
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x100ad7ab
push 8
call fcn.100b16d0
pop ecx
ret
call fcn.100ab5bf
ret

Function at 0x100b0384
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x100b0474
mov eax, 0x94
call fcn.100ab6e0
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x100b04e9
mov ecx, dword [esi + 0x10]
mov dword [0x10130d30], ecx
mov eax, dword [esi + 4]
mov dword [0x10130d3c], eax
mov edx, dword [esi + 8]
mov dword [0x10130d40], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x10130d34], esi
je 0x100b03ef
or esi, 0x8000
mov dword [0x10130d34], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x10130d38], eax
call fcn.100b17d0
test eax, eax
pop ecx
je 0x100b04e9
call fcn.100b30d1
test eax, eax
jne 0x100b041c
call fcn.100b1821
jmp 0x100b04e9
call fcn.100b54a1
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10132660], eax
call fcn.100b8009
mov dword [0x10130da0], eax
call fcn.100b5e72
test eax, eax
jl 0x100b046d
call fcn.100b7f67
test eax, eax
jl 0x100b0468
call fcn.100b7d34
test eax, eax
jl 0x100b0468
push 0
call fcn.100ad685
test eax, eax
pop ecx
jne 0x100b0468
inc dword [0x10130d9c]
jmp 0x100b04fa
call fcn.100b6070
call fcn.100b2eba
jmp 0x100b0412
test eax, eax
jne 0x100b04a4
cmp dword [0x10130d9c], eax
jle 0x100b04e9
dec dword [0x10130d9c]
cmp dword [0x10130d6c], eax
jne 0x100b0493
call fcn.100ad7d4
call fcn.100b6070
call fcn.100b2eba
call fcn.100b1821
jmp 0x100b04fa
cmp eax, 2
jne 0x100b04ed
push 0x8c
push 1
call fcn.100af44f
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x100b04e9
push esi
push dword [0x1011cbb8]
call dword [0x10130f64]
test eax, eax
push esi
je 0x100b04e3
call fcn.100b2ed7
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x100b04fa
call fcn.100ab42d
pop ecx
xor eax, eax
jmp 0x100b04fd
cmp eax, 3
jne 0x100b04fa
push 0
call fcn.100b30a2
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x100b4530
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x1011c710]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x100b456c
xor eax, eax
jmp 0x100b46d6
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x101312e0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x100b45aa
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.100b8f8f
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x100b4644
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x100b46a7
jmp 0x100b45ce
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x100b4609
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x100b45fa
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x100b45da
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100b4668
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x100b4671
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x100b45cc
jmp 0x100b4671
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100b4668
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x100b4671
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x100b46d1
cmp dword [ebp - 0x68], eax
je 0x100b46a4
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x100b4699
call fcn.100af8d0
mov dword [eax], 9
call fcn.100af8d9
mov dword [eax], esi
jmp 0x100b46cc
push dword [ebp - 0x68]
call main
pop ecx
jmp 0x100b46cc
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x100b46b9
cmp byte [edi], 0x1a
jne 0x100b46b9
xor eax, eax
jmp 0x100b46d4
call fcn.100af8d0
mov dword [eax], 0x1c
call fcn.100af8d9
and dword [eax], 0
or eax, 0xffffffff
jmp 0x100b46d4
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.100ac33f
add ebp, 0x3a4
leave
ret
Function at 0x100b7252
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x100b7428
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x101312e0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x100b7428
test cl, 0x48
je 0x100b72bd
cmp byte [eax + 5], 0xa
je 0x100b72bd
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100b730f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x100b72f7
call fcn.100af8d0
mov dword [eax], 9
call fcn.100af8d9
mov dword [eax], esi
jmp 0x100b7307
cmp eax, 0x6d
je 0x100b7428
push eax
call main
pop ecx
or eax, 0xffffffff
jmp 0x100b742a
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x100b7423
test eax, eax
je 0x100b7336
cmp byte [ebx], 0xa
jne 0x100b7336
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x100b733f
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x100b741d
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x100b740d
cmp al, 0xd
je 0x100b7371
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x100b73ff
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x100b738b
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x100b7386
add dword [ebp + 0x10], 2
jmp 0x100b73df
mov dword [ebp + 0x10], eax
jmp 0x100b73fb
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100b73b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100b73fb
cmp dword [ebp - 0xc], 0
je 0x100b73fb
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x100b73d4
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x100b73df
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x100b73fe
cmp ebx, dword [ebp + 0xc]
jne 0x100b73e4
cmp byte [ebp - 1], 0xa
jne 0x100b73e4
mov byte [ebx], 0xa
jmp 0x100b73fe
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100b8f8f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100b73ff
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x100b7355
jmp 0x100b741d
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x100b741d
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x100b742a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100b812b
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x1011c710]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1011d1f0]
je 0x100b8162
inc eax
cmp eax, 0x13
jb 0x100b8153
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1011d1f0]
jne 0x100b8285
mov eax, dword [0x10130da8]
cmp eax, 1
je 0x100b8260
cmp eax, edx
jne 0x100b8192
cmp dword [0x10130dac], 1
je 0x100b8260
cmp ecx, 0xfc
je 0x100b8285
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100b81c8
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.100ac900
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.100ab7d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x100b81fc
mov eax, edi
push eax
call fcn.100ab7d0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x100fc62c
push edi
call fcn.100ae2d0
add esp, 0x10
push edi
call fcn.100ab7d0
push dword [esi + 0x1011d1f4]
mov ebx, eax
call fcn.100ab7d0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.100ab6e0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.100ac900
push edi
push ebx
call fcn.100ac910
push 0x100fc628
push ebx
call fcn.100ac910
push dword [esi + 0x1011d1f4]
push ebx
call fcn.100ac910
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.100b8d06
add esp, 0x2c
jmp 0x100b8285
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x1011d1f4]
push dword [esi]
call fcn.100ab7d0
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]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.100ac33f
add ebp, 0x90
leave
ret

Function at 0x100b82dc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x100b830a
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 0x100b830f
cmp eax, 1
je 0x100b830f
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100b8313
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x1011c710]
push ebx
mov ebx, dword [ebp + 0x98]
xor eax, ebp
test ebx, ebx
push edi
mov edi, dword [ebp + 0x9c]
mov dword [ebp + 0x8c], eax
je 0x100b83a5
push ebx
call fcn.100b82dc
test eax, eax
pop ecx
jne 0x100b837a
call fcn.100af8d9
mov dword [eax], 0xf
call fcn.100af8d0
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp + 0x8c]
pop edi
xor ecx, ebp
pop ebx
call fcn.100ac33f
add ebp, 0x90
leave
ret
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x104
lea eax, [ebp - 0x7c]
add bl, 0x40
push eax
mov byte [ebp - 0x7c], bl
mov byte [ebp - 0x7b], 0x3a
mov byte [ebp - 0x7a], 0x2e
mov byte [ebp - 0x79], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x100b83b4
lea eax, [ebp - 0x78]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x100b8361
inc eax
cmp eax, 0x104
ja 0x100b8361
test edi, edi
mov ecx, edi
jne 0x100b83f1
cmp eax, dword [ebp + 0xa0]
jg 0x100b83d4
mov eax, dword [ebp + 0xa0]
push eax
call fcn.100ab41b
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x100b8409
call fcn.100af8d0
mov dword [eax], 0xc
jmp 0x100b8361
cmp eax, dword [ebp + 0xa0]
jle 0x100b8409
call fcn.100af8d0
mov dword [eax], 0x22
jmp 0x100b8361
lea eax, [ebp - 0x78]
push eax
push ecx
call fcn.100ac900
pop ecx
pop ecx
jmp 0x100b8363

Function at 0x100b8d06
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x101311a8], ebx
push esi
push edi
jne 0x100b8d86
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100b8dc1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100fd56c
push edi
call esi
test eax, eax
mov dword [0x101311a8], eax
je 0x100b8dc1
push 0x100fd55c
push edi
call esi
push 0x100fd548
push edi
mov dword [0x101311ac], eax
call esi
cmp dword [0x10130d30], 2
mov dword [0x101311b0], eax
jne 0x100b8d86
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x101311b8], eax
je 0x100b8d86
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x101311b4], eax
mov eax, dword [0x101311b4]
test eax, eax
je 0x100b8dcb
call eax
test eax, eax
je 0x100b8db2
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x101311b8]
test eax, eax
je 0x100b8db2
test byte [ebp - 8], 1
jne 0x100b8dcb
cmp dword [0x10130d3c], 4
jb 0x100b8dc5
or byte [ebp + 0x12], 0x20
jmp 0x100b8dea
xor eax, eax
jmp 0x100b8dfa
or byte [ebp + 0x12], 4
jmp 0x100b8dea
mov eax, dword [0x101311ac]
test eax, eax
je 0x100b8dea
call eax
mov ebx, eax
test ebx, ebx
je 0x100b8dea
mov eax, dword [0x101311b0]
test eax, eax
je 0x100b8dea
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x101311a8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100baf27
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.100ab6e0
mov eax, dword [0x1011c710]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.100b60bc
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x100bb05c
push 2
push esi
push dword [ebp + 8]
call fcn.100b60bc
add esp, 0xc
cmp eax, ebx
je 0x100bb05c
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x100baffc
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.100ab720
push 0x8000
push dword [ebp + 8]
call fcn.100bb40e
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x100bafb2
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.100b4530
add esp, 0xc
cmp eax, 0xffffffff
je 0x100bafd2
sub edi, eax
test edi, edi
jg 0x100bafaa
jmp 0x100bafea
call fcn.100af8d9
cmp dword [eax], 5
jne 0x100bafe7
call fcn.100af8d0
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.100bb40e
pop ecx
pop ecx
jmp 0x100bb044
jge 0x100bb044
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100b60bc
push dword [ebp + 8]
call fcn.100b0958
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 0x100bb044
call fcn.100af8d0
mov dword [eax], 0xd
call fcn.100af8d9
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.100b60bc
add esp, 0xc
mov eax, esi
pop edi
jmp 0x100bb05e
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.100ac33f
leave
ret
Function at 0x100bb8ce
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 0x100bb8e7
or eax, 0xffffffff
jmp 0x100bb948
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x100bb944
push 0x3d
push esi
call fcn.100add45
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x100bb944
cmp esi, eax
je 0x100bb944
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x10130d50]
sete cl
cmp eax, dword [0x10130d54]
mov dword [ebp - 4], ecx
jne 0x100bb92a
mov edi, eax
call fcn.100bb86d
mov dword [0x10130d50], eax
cmp eax, ebx
jne 0x100bb983
cmp dword [ebp + 0xc], ebx
je 0x100bb94c
cmp dword [0x10130d58], ebx
je 0x100bb94c
call fcn.100bb0ba
test eax, eax
je 0x100bb983
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x100bb955
xor eax, eax
jmp 0x100bb947
push 4
call fcn.100ab41b
cmp eax, ebx
pop ecx
mov dword [0x10130d50], eax
je 0x100bb944
mov dword [eax], ebx
cmp dword [0x10130d58], ebx
jne 0x100bb983
push 4
call fcn.100ab41b
cmp eax, ebx
pop ecx
mov dword [0x10130d58], eax
je 0x100bb944
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x10130d50]
sub edi, esi
push esi
call fcn.100bb820
mov edi, eax
test edi, edi
pop ecx
jl 0x100bb9ea
cmp dword [ebx], 0
je 0x100bb9ea
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.100ab42d
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x100bb9ca
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x100bba2b
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x100bb9c1
mov eax, edi
shl eax, 2
push eax
push dword [0x10130d50]
call fcn.100af29d
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x100bba2b
jmp 0x100bba26
cmp dword [ebp - 4], 0
jne 0x100bba92
test edi, edi
jge 0x100bb9fa
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x10130d50]
call fcn.100af29d
test eax, eax
pop ecx
pop ecx
je 0x100bb944
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x10130d50], eax
cmp dword [ebp + 0xc], 0
je 0x100bba7d
push esi
call fcn.100ab7d0
inc eax
inc eax
push eax
call fcn.100ab41b
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x100bba7d
push esi
push edi
call fcn.100ac900
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x100bba76
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.100ab42d
pop ecx
cmp dword [ebp - 4], 0
je 0x100bba8a
push esi
call fcn.100ab42d
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x100bb947
push esi
call fcn.100ab42d
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x100bb951