joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100f0d91
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [edi + 0x24]
push esi
mov ecx, dword [edi + 0x64]
mov eax, dword [edi + 0x34]
mov edx, dword [edi + 0x6c]
sub eax, ecx
sub eax, edx
mov dword [ebp - 4], eax
jne 0x100f0db8
test ecx, ecx
jne 0x100f0dc2
test edx, edx
jne 0x100f0dc2
mov eax, ebx
jmp 0x100f0e2e
cmp eax, 0xffffffff
jne 0x100f0dc2
push 0xfffffffffffffffe
pop eax
jmp 0x100f0e2e
mov edx, dword [edi + 0x24]
lea edx, [ebx + edx - 0x106]
cmp ecx, edx
jb 0x100f0e2e
mov eax, dword [edi + 0x30]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.100f9f00
mov ecx, dword [edi + 0x44]
mov eax, dword [edi + 0x3c]
sub dword [edi + 0x68], ebx
sub dword [edi + 0x64], ebx
add esp, 0xc
sub dword [edi + 0x54], ebx
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx edx, word [eax]
mov esi, edx
sub esi, ebx
cmp edx, ebx
sbb edx, edx
not edx
and edx, esi
dec ecx
mov word [eax], dx
jne 0x100f0df3
mov eax, dword [edi + 0x38]
mov edx, ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov esi, ecx
sub esi, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, esi
dec edx
mov word [eax], cx
jne 0x100f0e12
mov eax, dword [ebp - 4]
add eax, ebx
mov esi, dword [edi]
cmp dword [esi + 4], 0
je 0x100f0e87
push eax
mov eax, dword [edi + 0x6c]
add eax, dword [edi + 0x64]
add eax, dword [edi + 0x30]
push eax
call fcn.100f0b7f
add dword [edi + 0x6c], eax
mov esi, dword [edi + 0x6c]
cmp esi, 3
pop ecx
pop ecx
jb 0x100f0e73
mov eax, dword [edi + 0x64]
mov ecx, dword [edi + 0x30]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [edi + 0x50]
mov dword [edi + 0x40], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [edi + 0x4c]
mov dword [edi + 0x40], eax
cmp esi, 0x106
jae 0x100f0e87
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x100f0d9a
pop esi
pop ebx
leave
ret
Function at 0x100f92ab
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.100f94a0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100f9346
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 [0x1019ce6c]
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 0x100f9346
cmp eax, 1
je 0x100f9367
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 0x100f9346
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x100f9313
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x100f9342
xor eax, eax
inc eax
jmp 0x100f9386
cmp edi, eax
jae 0x100f934a
xor eax, eax
jmp 0x100f9386
cmp eax, esi
jae 0x100f9351
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 [0x1019ce6c]
jmp 0x100f936a
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 0x100f94dd
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push 0x128
push 0x1015dfc8
call fcn.100faabc
mov eax, dword [0x10198220]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
xor ebx, ebx
mov dword [ebp - 0x130], ebx
or dword [ebp - 0x12c], 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x100f95ea
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x134], esi
cmp esi, 0x104
jle 0x100f959b
mov dword [ebp - 4], ebx
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.100f94a0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x138], edi
jmp 0x100f9588
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x100f95ea
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
cmp esi, ebx
je 0x100f95ea
mov al, byte [edi]
cmp al, 0x5c
je 0x100f95a9
cmp al, 0x2f
jne 0x100f95ae
cmp al, byte [edi + 1]
je 0x100f95e4
mov byte [ebp - 0x128], 0x3d
movzx eax, byte [edi]
push eax
call fcn.101049a1
pop ecx
mov byte [ebp - 0x127], al
mov byte [ebp - 0x126], 0x3a
mov byte [ebp - 0x125], bl
push edi
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x100f95ea
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100fb15d
pop ecx
cmp dword [ebp - 0x130], ebx
je 0x100f9606
push edi
call fcn.100f71b3
pop ecx
mov eax, dword [ebp - 0x12c]
lea esp, [ebp - 0x144]
mov ecx, dword [ebp - 0x1c]
call fcn.100fab39
call fcn.100faaf7
ret

Function at 0x100f9620
Capabilities:
Get disk information

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10198220]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x100f96cf
push ebx
call fcn.100f9620
test eax, eax
pop ecx
jne 0x100f969e
call fcn.100fb154
mov dword [eax], 0xf
call fcn.100fb14b
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.100fab39
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 0x100f96e1
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x100f9691
inc eax
cmp eax, 0x104
ja 0x100f9691
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x100f9719
cmp eax, dword [ebp + 0x10]
jg 0x100f96fc
mov eax, dword [ebp + 0x10]
push eax
call fcn.100f71a1
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x100f972e
call fcn.100fb14b
mov dword [eax], 0xc
jmp 0x100f9691
cmp eax, dword [ebp + 0x10]
jle 0x100f972e
call fcn.100fb14b
mov dword [eax], 0x22
jmp 0x100f9691
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.100fa410
pop ecx
pop ecx
jmp 0x100f9693
Function at 0x100f9b20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x100f9c10
mov eax, 0x94
call fcn.100f94a0
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x100f9c85
mov ecx, dword [esi + 0x10]
mov dword [0x1019ce6c], ecx
mov eax, dword [esi + 4]
mov dword [0x1019ce78], eax
mov edx, dword [esi + 8]
mov dword [0x1019ce7c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x1019ce70], esi
je 0x100f9b8b
or esi, 0x8000
mov dword [0x1019ce70], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x1019ce74], eax
call fcn.10100d56
test eax, eax
pop ecx
je 0x100f9c85
call fcn.100fcd25
test eax, eax
jne 0x100f9bb8
call fcn.10100da7
jmp 0x100f9c85
call fcn.10109f69
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1019e784], eax
call fcn.10109e47
mov dword [0x1019ce2c], eax
call fcn.10109928
test eax, eax
jl 0x100f9c09
call fcn.10109da5
test eax, eax
jl 0x100f9c04
call fcn.10109b72
test eax, eax
jl 0x100f9c04
push 0
call fcn.100fc537
test eax, eax
pop ecx
jne 0x100f9c04
inc dword [0x1019ce28]
jmp 0x100f9c96
call fcn.10109b26
call fcn.100fcb0e
jmp 0x100f9bae
test eax, eax
jne 0x100f9c40
cmp dword [0x1019ce28], eax
jle 0x100f9c85
dec dword [0x1019ce28]
cmp dword [0x1019cea8], eax
jne 0x100f9c2f
call fcn.100fc675
call fcn.10109b26
call fcn.100fcb0e
call fcn.10100da7
jmp 0x100f9c96
cmp eax, 2
jne 0x100f9c89
push 0x8c
push 1
call fcn.100fa9de
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x100f9c85
push esi
push dword [0x101985b0]
call dword [0x1019d00c]
test eax, eax
push esi
je 0x100f9c7f
call fcn.100fcb2b
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x100f9c96
call fcn.100f71b3
pop ecx
xor eax, eax
jmp 0x100f9c99
cmp eax, 3
jne 0x100f9c96
push 0
call fcn.100fccf6
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc

Function at 0x100fbc7c
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 0x100fbc99
call fcn.100fb14b
mov dword [eax], 0x16
xor eax, eax
jmp 0x100fbd03
push esi
push 0x8c
push 1
call fcn.100fa9de
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x100fbcee
push esi
call fcn.100fcb2b
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 0x100fbccc
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x100fbbe7
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x100fbd02
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.100f71b3
test ebx, ebx
pop ecx
je 0x100fbd00
push ebx
call fcn.100fb15d
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100fc5a1
Capabilities:
Terminate process

Disassembly:
push 8
push 0x1015e1b0
call fcn.100faabc
push 8
call fcn.100fc7d7
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x1019ceac], esi
jne 0x100fc5d5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x1019cea8], esi
mov al, byte [ebp + 0x10]
mov byte [0x1019cea4], al
cmp dword [ebp + 0xc], edi
jne 0x100fc61f
cmp dword [0x1019d514], edi
je 0x100fc60f
mov eax, dword [0x1019d510]
sub eax, 4
mov dword [0x1019d510], eax
cmp eax, dword [0x1019d514]
jb 0x100fc60f
mov eax, dword [eax]
cmp eax, edi
je 0x100fc5f0
call eax
jmp 0x100fc5f0
push 0x1018f690
mov eax, 0x1018f688
call fcn.100fc51f
pop ecx
push 0x1018f69c
mov eax, 0x1018f694
call fcn.100fc51f
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x100fc650
cmp dword [ebp + 0x10], edi
jne 0x100fc65e
mov dword [0x1019ceac], esi
push dword [ebp + 8]
call fcn.100fc4dd
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x100fc65d
push 8
call fcn.100fc722
pop ecx
ret
call fcn.100faaf7
ret
Function at 0x101098e2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10109902
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100fb15d
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x10109925
test byte [esp + 8], 2
je 0x10109925
call fcn.100fb14b
mov dword [eax], 0xd
call fcn.100fb154
mov dword [eax], 5
jmp 0x101098fe
xor eax, eax
ret

Function at 0x1010a170
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x10198220]
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 + 0x10198cb0]
je 0x1010a1a5
inc eax
cmp eax, 0x13
jb 0x1010a196
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x10198cb0]
jne 0x1010a2cb
mov eax, dword [0x1019ce34]
cmp eax, 1
je 0x1010a2a3
cmp eax, edx
jne 0x1010a1d5
cmp dword [0x1019ce38], 1
je 0x1010a2a3
cmp ecx, 0xfc
je 0x1010a2cb
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 0x1010a20b
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.100fa410
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.100fa380
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1010a23f
mov eax, edi
push eax
call fcn.100fa380
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x101644dc
push edi
call fcn.100f7f90
add esp, 0x10
push edi
call fcn.100fa380
push dword [esi + 0x10198cb4]
mov ebx, eax
call fcn.100fa380
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.100f94a0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.100fa410
push edi
push ebx
call fcn.100fa420
push 0x10164ba0
push ebx
call fcn.100fa420
push dword [esi + 0x10198cb4]
push ebx
call fcn.100fa420
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.1010e095
add esp, 0x2c
jmp 0x1010a2cb
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x10198cb4]
push dword [esi]
call fcn.100fa380
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.100fab39
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x1010a5a8
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 0x1010a77c
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x1019d3e0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x1010a77c
test cl, 0x48
je 0x1010a613
cmp byte [eax + 5], 0xa
je 0x1010a613
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 0x1010a665
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x1010a64d
call fcn.100fb14b
mov dword [eax], 9
call fcn.100fb154
mov dword [eax], esi
jmp 0x1010a65d
cmp eax, 0x6d
je 0x1010a77c
push eax
call fcn.100fb15d
pop ecx
or eax, 0xffffffff
jmp 0x1010a77e
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x1010a777
test eax, eax
je 0x1010a68c
cmp byte [ebx], 0xa
jne 0x1010a68c
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x1010a695
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 0x1010a771
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x1010a761
cmp al, 0xd
je 0x1010a6c7
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x1010a753
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x1010a6e1
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x1010a6dc
add dword [ebp + 0x10], 2
jmp 0x1010a735
mov dword [ebp + 0x10], eax
jmp 0x1010a74f
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 0x1010a709
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1010a74f
cmp dword [ebp - 0xc], 0
je 0x1010a74f
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x1010a72a
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x1010a735
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x1010a752
cmp ebx, dword [ebp + 0xc]
jne 0x1010a73a
cmp byte [ebp - 1], 0xa
jne 0x1010a73a
mov byte [ebx], 0xa
jmp 0x1010a752
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1010aef9
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x1010a753
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x1010a6ab
jmp 0x1010a771
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x1010a771
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 0x1010a77e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1010a82e
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x10198220]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x1010a85f
xor eax, eax
jmp 0x1010a9e8
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x1019d3e0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x1010a89b
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.1010e18e
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x1010a976
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x1010a9b4
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x1010a8ff
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x1010a8f0
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x1010a8d0
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1010a93f
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x1010a948
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x1010a8c1
jmp 0x1010a94a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x1010a9e3
cmp dword [ebp - 0x6c], edi
je 0x1010a9b4
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x1010a9a9
call fcn.100fb14b
mov dword [eax], 9
call fcn.100fb154
mov dword [eax], esi
jmp 0x1010a9de
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1010a99e
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x1010a94a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x1010a94a
push dword [ebp - 0x6c]
call fcn.100fb15d
pop ecx
jmp 0x1010a9de
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1010a9cc
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x1010a9cc
xor eax, eax
jmp 0x1010a9e6
call fcn.100fb14b
mov dword [eax], 0x1c
call fcn.100fb154
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x1010a9e6
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.100fab39
add ebp, 0x3a0
leave
ret
Function at 0x1010da7c
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 0x1010da95
or eax, 0xffffffff
jmp 0x1010daf6
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x1010daf2
push 0x3d
push esi
call fcn.100f8604
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x1010daf2
cmp esi, eax
je 0x1010daf2
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x1019ce8c]
sete cl
cmp eax, dword [0x1019ce90]
mov dword [ebp - 8], ecx
jne 0x1010dad8
mov edi, eax
call fcn.1010da1b
mov dword [0x1019ce8c], eax
cmp eax, ebx
jne 0x1010db31
cmp dword [ebp + 0xc], ebx
je 0x1010dafa
cmp dword [0x1019ce94], ebx
je 0x1010dafa
call fcn.1010463a
test eax, eax
je 0x1010db31
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x1010db03
xor eax, eax
jmp 0x1010daf5
push 4
call fcn.100f71a1
cmp eax, ebx
pop ecx
mov dword [0x1019ce8c], eax
je 0x1010daf2
mov dword [eax], ebx
cmp dword [0x1019ce94], ebx
jne 0x1010db31
push 4
call fcn.100f71a1
cmp eax, ebx
pop ecx
mov dword [0x1019ce94], eax
je 0x1010daf2
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x1019ce8c]
call fcn.1010d9ce
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x1010db92
cmp dword [esi], ebx
je 0x1010db92
lea esi, [esi + edi*4]
push dword [esi]
call fcn.100f71b3
cmp dword [ebp - 8], ebx
pop ecx
jne 0x1010db75
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x1010dbd3
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x1010db6c
mov eax, edi
shl eax, 2
push eax
push dword [0x1019ce8c]
call fcn.100fab47
cmp eax, ebx
pop ecx
pop ecx
je 0x1010dbd3
jmp 0x1010dbce
cmp dword [ebp - 8], ebx
jne 0x1010dc3e
cmp edi, ebx
jge 0x1010dba1
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x1019ce8c]
call fcn.100fab47
cmp eax, ebx
pop ecx
pop ecx
je 0x1010daf2
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 [0x1019ce8c], eax
cmp dword [ebp + 0xc], ebx
je 0x1010dc28
push dword [ebp - 4]
call fcn.100fa380
inc eax
inc eax
push eax
call fcn.100f71a1
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x1010dc28
push dword [ebp - 4]
push esi
call fcn.100fa410
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 0x1010dc21
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.100f71b3
pop ecx
cmp dword [ebp - 8], ebx
je 0x1010dc36
push dword [ebp - 4]
call fcn.100f71b3
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x1010daf5
push dword [ebp - 4]
call fcn.100f71b3
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x1010daff
Function at 0x1010e095
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1019d348], ebx
push esi
push edi
jne 0x1010e115
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1010e150
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x101667f8
push edi
call esi
test eax, eax
mov dword [0x1019d348], eax
je 0x1010e150
push 0x101667e8
push edi
call esi
push 0x101667d4
push edi
mov dword [0x1019d34c], eax
call esi
cmp dword [0x1019ce6c], 2
mov dword [0x1019d350], eax
jne 0x1010e115
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x1019d358], eax
je 0x1010e115
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x1019d354], eax
mov eax, dword [0x1019d354]
test eax, eax
je 0x1010e15a
call eax
test eax, eax
je 0x1010e141
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1019d358]
test eax, eax
je 0x1010e141
test byte [ebp - 8], 1
jne 0x1010e15a
cmp dword [0x1019ce78], 4
jb 0x1010e154
or byte [ebp + 0x12], 0x20
jmp 0x1010e179
xor eax, eax
jmp 0x1010e189
or byte [ebp + 0x12], 4
jmp 0x1010e179
mov eax, dword [0x1019d34c]
test eax, eax
je 0x1010e179
call eax
mov ebx, eax
test ebx, ebx
je 0x1010e179
mov eax, dword [0x1019d350]
test eax, eax
je 0x1010e179
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1019d348]
pop edi
pop esi
pop ebx
leave
ret