joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100983fb
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x100984eb
mov eax, 0x94
call fcn.10096da0
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10098560
mov ecx, dword [esi + 0x10]
mov dword [0x100f49d8], ecx
mov eax, dword [esi + 4]
mov dword [0x100f49e4], eax
mov edx, dword [esi + 8]
mov dword [0x100f49e8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x100f49dc], esi
je 0x10098466
or esi, 0x8000
mov dword [0x100f49dc], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x100f49e0], eax
call fcn.1009a8bf
test eax, eax
pop ecx
je 0x10098560
call fcn.1009cda8
test eax, eax
jne 0x10098493
call fcn.1009a910
jmp 0x10098560
call fcn.1009fcfd
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100f6c40], eax
call fcn.1009fbdb
mov dword [0x100f47e4], eax
call fcn.1009f6bc
test eax, eax
jl 0x100984e4
call fcn.1009fb39
test eax, eax
jl 0x100984df
call fcn.1009f906
test eax, eax
jl 0x100984df
push 0
call fcn.1009cfe4
test eax, eax
pop ecx
jne 0x100984df
inc dword [0x100f47e0]
jmp 0x10098571
call fcn.1009f8ba
call fcn.1009cb85
jmp 0x10098489
test eax, eax
jne 0x1009851b
cmp dword [0x100f47e0], eax
jle 0x10098560
dec dword [0x100f47e0]
cmp dword [0x100f4a14], eax
jne 0x1009850a
call fcn.1009d133
call fcn.1009f8ba
call fcn.1009cb85
call fcn.1009a910
jmp 0x10098571
cmp eax, 2
jne 0x10098564
push 0x8c
push 1
call fcn.1009a4ce
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10098560
push esi
push dword [0x100f2b64]
call dword [0x100f49cc]
test eax, eax
push esi
je 0x1009855a
call fcn.1009cba2
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x10098571
call fcn.10095bbd
pop ecx
xor eax, eax
jmp 0x10098574
cmp eax, 3
jne 0x10098571
push 0
call fcn.1009cd6d
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x1009d04e
Capabilities:
Terminate process

Disassembly:
push 8
push 0x100d63e0
call fcn.10095de0
push 8
call fcn.1009ab00
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x100f4a18], esi
jne 0x1009d082
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x100f4a14], esi
mov al, byte [ebp + 0x10]
mov byte [0x100f4a10], al
cmp dword [ebp + 0xc], edi
jne 0x1009d0cc
cmp dword [0x100f6c10], edi
je 0x1009d0bc
mov eax, dword [0x100f6c0c]
sub eax, 4
mov dword [0x100f6c0c], eax
cmp eax, dword [0x100f6c10]
jb 0x1009d0bc
mov eax, dword [eax]
cmp eax, edi
je 0x1009d09d
call eax
jmp 0x1009d09d
push 0x100ef0a8
mov eax, 0x100ef0a0
call fcn.1009cfae
pop ecx
push 0x100ef0b4
mov eax, 0x100ef0ac
call fcn.1009cfae
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x1009d0fd
cmp dword [ebp + 0x10], edi
jne 0x1009d10b
mov dword [0x100f4a18], esi
push dword [ebp + 8]
call fcn.1009cf6c
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x1009d10a
push 8
call fcn.1009aa33
pop ecx
ret
call fcn.10095e1b
ret

Function at 0x1009ff30
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x100f2810]
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 + 0x100f2e20]
je 0x1009ff65
inc eax
cmp eax, 0x13
jb 0x1009ff56
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x100f2e20]
jne 0x100a008b
mov eax, dword [0x100f47ec]
cmp eax, 1
je 0x100a0063
cmp eax, edx
jne 0x1009ff95
cmp dword [0x100f47f0], 1
je 0x100a0063
cmp ecx, 0xfc
je 0x100a008b
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 0x1009ffcb
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.10098140
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.10096e40
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1009ffff
mov eax, edi
push eax
call fcn.10096e40
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x100d612c
push edi
call fcn.100a4fa0
add esp, 0x10
push edi
call fcn.10096e40
push dword [esi + 0x100f2e24]
mov ebx, eax
call fcn.10096e40
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10096da0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.10098140
push edi
push ebx
call fcn.10098150
push 0x100d6128
push ebx
call fcn.10098150
push dword [esi + 0x100f2e24]
push ebx
call fcn.10098150
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.100a4ea0
add esp, 0x2c
jmp 0x100a008b
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x100f2e24]
push dword [esi]
call fcn.10096e40
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.10095c5f
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x100a191c
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 0x100a1af0
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x100f6b00]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x100a1af0
test cl, 0x48
je 0x100a1987
cmp byte [eax + 5], 0xa
je 0x100a1987
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 0x100a19d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x100a19c1
call fcn.100978e5
mov dword [eax], 9
call fcn.100978ee
mov dword [eax], esi
jmp 0x100a19d1
cmp eax, 0x6d
je 0x100a1af0
push eax
call fcn.100978f7
pop ecx
or eax, 0xffffffff
jmp 0x100a1af2
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x100a1aeb
test eax, eax
je 0x100a1a00
cmp byte [ebx], 0xa
jne 0x100a1a00
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x100a1a09
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 0x100a1ae5
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x100a1ad5
cmp al, 0xd
je 0x100a1a3b
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x100a1ac7
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x100a1a55
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x100a1a50
add dword [ebp + 0x10], 2
jmp 0x100a1aa9
mov dword [ebp + 0x10], eax
jmp 0x100a1ac3
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 0x100a1a7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100a1ac3
cmp dword [ebp - 0xc], 0
je 0x100a1ac3
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x100a1a9e
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x100a1aa9
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x100a1ac6
cmp ebx, dword [ebp + 0xc]
jne 0x100a1aae
cmp byte [ebp - 1], 0xa
jne 0x100a1aae
mov byte [ebx], 0xa
jmp 0x100a1ac6
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100a4a4f
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x100a1ac7
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x100a1a1f
jmp 0x100a1ae5
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x100a1ae5
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 0x100a1af2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100a1e52
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x100f2810]
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 0x100a1e83
xor eax, eax
jmp 0x100a200c
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 + 0x100f6b00]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x100a1ebf
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.100a813a
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x100a1f9a
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x100a1fd8
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 0x100a1f23
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x100a1f14
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 0x100a1ef4
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 0x100a1f63
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x100a1f6c
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x100a1ee5
jmp 0x100a1f6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x100a2007
cmp dword [ebp - 0x6c], edi
je 0x100a1fd8
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x100a1fcd
call fcn.100978e5
mov dword [eax], 9
call fcn.100978ee
mov dword [eax], esi
jmp 0x100a2002
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 0x100a1fc2
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x100a1f6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x100a1f6e
push dword [ebp - 0x6c]
call fcn.100978f7
pop ecx
jmp 0x100a2002
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x100a1ff0
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x100a1ff0
xor eax, eax
jmp 0x100a200a
call fcn.100978e5
mov dword [eax], 0x1c
call fcn.100978ee
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x100a200a
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.10095c5f
add ebp, 0x3a0
leave
ret
Function at 0x100aa720
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.10096da0
mov eax, dword [0x100f2810]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.100a4a4f
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x100aa853
push 2
push esi
push dword [ebp + 8]
call fcn.100a4a4f
add esp, 0xc
cmp eax, ebx
je 0x100aa853
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x100aa7f3
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.10095d80
push 0x8000
push dword [ebp + 8]
call fcn.100aaf69
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x100aa7a9
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.100a1e52
add esp, 0xc
cmp eax, 0xffffffff
je 0x100aa7c9
sub edi, eax
test edi, edi
jg 0x100aa7a1
jmp 0x100aa7e1
call fcn.100978ee
cmp dword [eax], 5
jne 0x100aa7de
call fcn.100978e5
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.100aaf69
pop ecx
pop ecx
jmp 0x100aa83b
jge 0x100aa83b
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100a4a4f
push dword [ebp + 8]
call fcn.100a7d59
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 0x100aa83b
call fcn.100978e5
mov dword [eax], 0xd
call fcn.100978ee
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.100a4a4f
add esp, 0xc
mov eax, esi
pop edi
jmp 0x100aa855
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.10095c5f
leave
ret
Function at 0x100aa9d6
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x100d83d8
call fcn.10095de0
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x100f4d24], edi
jne 0x100aaa1a
push edi
push edi
push ebx
push edi
call dword [0x100f393c]
test eax, eax
je 0x100aaa05
mov dword [0x100f4d24], ebx
jmp 0x100aaa1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x100aaa1a
mov dword [0x100f4d24], 2
mov eax, dword [0x100f4d24]
cmp eax, ebx
jne 0x100aaa3a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x100f393c]
jmp 0x100aaafd
cmp eax, 2
je 0x100aaa43
cmp eax, edi
jne 0x100aaa6b
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x100aaa56
mov eax, dword [0x100f4ccc]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x100aaa72
xor eax, eax
jmp 0x100aaafd
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.10096da0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x100aaaa5
cmp esi, edi
jne 0x100aaabb
push dword [ebp - 0x20]
call fcn.10096d83
pop ecx
mov esi, eax
cmp esi, edi
je 0x100aaa6b
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x100aaaee
cmp dword [ebp + 0x14], edi
jne 0x100aaad8
push edi
push edi
jmp 0x100aaade
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [0x100f3970]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x100aaafa
push esi
call fcn.10095bbd
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.10095e1b
ret
Function at 0x100aab06
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x100d83e8
call fcn.10095de0
xor esi, esi
cmp dword [0x100f4d28], esi
jne 0x100aab4a
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [0x100f393c]
test eax, eax
je 0x100aab35
mov dword [0x100f4d28], edi
jmp 0x100aab4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x100aab4a
mov dword [0x100f4d28], 2
mov eax, dword [0x100f4d28]
cmp eax, 2
je 0x100aac2b
cmp eax, esi
je 0x100aac2b
cmp eax, 1
jne 0x100aab8f
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x100aab78
mov eax, dword [0x100f4ccc]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x100f393c]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x100aab96
xor eax, eax
jmp 0x100aac3d
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.10096da0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x100aabcc
cmp edi, esi
jne 0x100aabe7
lea eax, [ebx + ebx]
push eax
call fcn.10096d83
pop ecx
mov edi, eax
cmp edi, esi
je 0x100aab8f
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x100f393c]
test eax, eax
je 0x100aac1a
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x100aac04
push esi
push esi
jmp 0x100aac0a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [0x100f3980]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x100aac26
push edi
call fcn.10095bbd
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x100aac3d
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.10095e1b
ret
Function at 0x100ab4ba
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 0x100ab4d3
or eax, 0xffffffff
jmp 0x100ab534
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x100ab530
push 0x3d
push esi
call fcn.100ab6ba
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x100ab530
cmp esi, eax
je 0x100ab530
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x100f49f8]
sete cl
cmp eax, dword [0x100f49fc]
mov dword [ebp - 8], ecx
jne 0x100ab516
mov edi, eax
call fcn.100ab459
mov dword [0x100f49f8], eax
cmp eax, ebx
jne 0x100ab56f
cmp dword [ebp + 0xc], ebx
je 0x100ab538
cmp dword [0x100f4a00], ebx
je 0x100ab538
call fcn.100aa946
test eax, eax
je 0x100ab56f
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x100ab541
xor eax, eax
jmp 0x100ab533
push 4
call fcn.10096d83
cmp eax, ebx
pop ecx
mov dword [0x100f49f8], eax
je 0x100ab530
mov dword [eax], ebx
cmp dword [0x100f4a00], ebx
jne 0x100ab56f
push 4
call fcn.10096d83
cmp eax, ebx
pop ecx
mov dword [0x100f4a00], eax
je 0x100ab530
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x100f49f8]
call fcn.100ab40c
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x100ab5d0
cmp dword [esi], ebx
je 0x100ab5d0
lea esi, [esi + edi*4]
push dword [esi]
call fcn.10095bbd
cmp dword [ebp - 8], ebx
pop ecx
jne 0x100ab5b3
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x100ab611
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x100ab5aa
mov eax, edi
shl eax, 2
push eax
push dword [0x100f49f8]
call fcn.100969a4
cmp eax, ebx
pop ecx
pop ecx
je 0x100ab611
jmp 0x100ab60c
cmp dword [ebp - 8], ebx
jne 0x100ab67c
cmp edi, ebx
jge 0x100ab5df
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x100f49f8]
call fcn.100969a4
cmp eax, ebx
pop ecx
pop ecx
je 0x100ab530
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 [0x100f49f8], eax
cmp dword [ebp + 0xc], ebx
je 0x100ab666
push dword [ebp - 4]
call fcn.10096e40
inc eax
inc eax
push eax
call fcn.10096d83
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x100ab666
push dword [ebp - 4]
push esi
call fcn.10098140
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 0x100ab65f
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.10095bbd
pop ecx
cmp dword [ebp - 8], ebx
je 0x100ab674
push dword [ebp - 4]
call fcn.10095bbd
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x100ab533
push dword [ebp - 4]
call fcn.10095bbd
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x100ab53d
Function at 0x100af00a
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [esp + 4]
push esi
xor esi, esi
inc esi
mov dword [0x100f4d30], eax
push edi
mov edx, esi
mov eax, 0x100f4d30
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x100f56ec
jl 0x100af01f
pop edi
mov dword [0x100f38c0], esi
mov dword [0x100f56f0], esi
pop esi
ret

Function at 0x100af114
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ecx
cmp dword [0x100f56f0], 0
push ebx
push ebp
push esi
push edi
mov esi, 0x100f4d30
jne 0x100af132
push 0x1571
call fcn.100af00a
pop ecx
mov dword [0x100f38c0], 0x270
mov dword [0x100f56f4], esi
mov edx, 0xe3
mov ecx, SysReAllocString
mov eax, 0x9908b0df
mov ebx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor ebx, ebp
and ebx, ecx
xor ebx, dword [esi]
mov dword [esp + 0x10], ecx
mov ecx, ebp
and cl, 1
shr ebx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor ebx, ecx
xor ebx, dword [esi + 0x634]
dec edx
mov ecx, dword [esp + 0x10]
mov dword [esi], ebx
mov esi, edi
jne 0x100af151
mov edx, 0x18c
mov ebx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor ebx, ebp
and ebx, ecx
xor ebx, dword [esi]
mov dword [esp + 0x10], ecx
mov ecx, ebp
and cl, 1
shr ebx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor ebx, ecx
xor ebx, dword [esi - 0x38c]
dec edx
mov ecx, dword [esp + 0x10]
mov dword [esi], ebx
mov esi, edi
jne 0x100af187
mov edx, dword [0x100f4d30]
mov edi, dword [esi]
xor edi, edx
and edi, ecx
xor edi, dword [esi]
and dl, 1
shr edi, 1
neg dl
sbb edx, edx
and edx, eax
xor edi, edx
xor edi, dword [esi - 0x38c]
mov dword [esi], edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x100af43c
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ecx
dec dword [0x100f38c0]
jne 0x100af275
call fcn.100af114
mov eax, dword [0x100f56f4]
mov eax, dword [eax]
add dword [0x100f56f4], 4
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov ecx, eax
and ecx, 0xff3a58ad
shl ecx, 7
xor eax, ecx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov ecx, eax
shr ecx, 0x12
xor ecx, eax
test ecx, ecx
mov dword [esp], ecx
fild dword [esp]
jge 0x100af2bb
fadd qword [0x100c1530]
fmul qword [0x100d88a0]
pop ecx
ret
call fcn.100af3e7
jmp 0x100af267
Function at 0x100af450
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push 0x128
push 0x100d88c8
call fcn.10095de0
mov eax, dword [0x100f2810]
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 0x100af55d
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 0x100af50e
mov dword [ebp - 4], ebx
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.10096da0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x138], edi
jmp 0x100af4fb
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x100af55d
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
cmp esi, ebx
je 0x100af55d
mov al, byte [edi]
cmp al, 0x5c
je 0x100af51c
cmp al, 0x2f
jne 0x100af521
cmp al, byte [edi + 1]
je 0x100af557
mov byte [ebp - 0x128], 0x3d
movzx eax, byte [edi]
push eax
call fcn.100af76e
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 0x100af55d
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100978f7
pop ecx
cmp dword [ebp - 0x130], ebx
je 0x100af579
push edi
call fcn.10095bbd
pop ecx
mov eax, dword [ebp - 0x12c]
lea esp, [ebp - 0x144]
mov ecx, dword [ebp - 0x1c]
call fcn.10095c5f
call fcn.10095e1b
ret

Function at 0x100af5bf
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x100af5ed
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 0x100af5f2
cmp eax, 1
je 0x100af5f2
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret