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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x10104d5f
mov eax, 0x94
call fcn.10101f10
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10104dd4
mov ecx, dword [esi + 0x10]
mov dword [0x101ca924], ecx
mov eax, dword [esi + 4]
mov dword [0x101ca930], eax
mov edx, dword [esi + 8]
mov dword [0x101ca934], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x101ca928], esi
je 0x10104cda
or esi, 0x8000
mov dword [0x101ca928], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x101ca92c], eax
call fcn.10108589
test eax, eax
pop ecx
je 0x10104dd4
call fcn.10107de2
test eax, eax
jne 0x10104d07
call fcn.101085da
jmp 0x10104dd4
call fcn.1010c987
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x101ce230], eax
call fcn.1010c865
mov dword [0x101ca90c], eax
call fcn.1010c346
test eax, eax
jl 0x10104d58
call fcn.1010c7c3
test eax, eax
jl 0x10104d53
call fcn.1010c590
test eax, eax
jl 0x10104d53
push 0
call fcn.1010578a
test eax, eax
pop ecx
jne 0x10104d53
inc dword [0x101ca908]
jmp 0x10104de5
call fcn.1010c544
call fcn.10107bcb
jmp 0x10104cfd
test eax, eax
jne 0x10104d8f
cmp dword [0x101ca908], eax
jle 0x10104dd4
dec dword [0x101ca908]
cmp dword [0x101ca960], eax
jne 0x10104d7e
call fcn.101058c8
call fcn.1010c544
call fcn.10107bcb
call fcn.101085da
jmp 0x10104de5
cmp eax, 2
jne 0x10104dd8
push 0x8c
push 1
call fcn.101045e3
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10104dd4
push esi
push dword [0x101b990c]
call dword [0x101ca974]
test eax, eax
push esi
je 0x10104dce
call fcn.10107be8
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x10104de5
call fcn.1010168d
pop ecx
xor eax, eax
jmp 0x10104de8
cmp eax, 3
jne 0x10104de5
push 0
call fcn.10107db3
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc

Function at 0x101057f4
Capabilities:
Terminate process

Disassembly:
push 8
push 0x1018daf0
call fcn.10105430
push 8
call fcn.101080df
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x101ca964], esi
jne 0x10105828
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x101ca960], esi
mov al, byte [ebp + 0x10]
mov byte [0x101ca95c], al
cmp dword [ebp + 0xc], edi
jne 0x10105872
cmp dword [0x101ce228], edi
je 0x10105862
mov eax, dword [0x101ce224]
sub eax, 4
mov dword [0x101ce224], eax
cmp eax, dword [0x101ce228]
jb 0x10105862
mov eax, dword [eax]
cmp eax, edi
je 0x10105843
call eax
jmp 0x10105843
push 0x101b13ec
mov eax, 0x101b13e0
call fcn.10105772
pop ecx
push 0x101b13f8
mov eax, 0x101b13f0
call fcn.10105772
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x101058a3
cmp dword [ebp + 0x10], edi
jne 0x101058b1
mov dword [0x101ca964], esi
push dword [ebp + 8]
call fcn.10105730
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x101058b0
push 8
call fcn.1010802a
pop ecx
ret
call fcn.1010546b
ret
Function at 0x1010b9f6
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 0x1010bbca
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x101ccea0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x1010bbca
test cl, 0x48
je 0x1010ba61
cmp byte [eax + 5], 0xa
je 0x1010ba61
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 0x1010bab3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x1010ba9b
call fcn.10105902
mov dword [eax], 9
call fcn.1010590b
mov dword [eax], esi
jmp 0x1010baab
cmp eax, 0x6d
je 0x1010bbca
push eax
call fcn.10105914
pop ecx
or eax, 0xffffffff
jmp 0x1010bbcc
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x1010bbc5
test eax, eax
je 0x1010bada
cmp byte [ebx], 0xa
jne 0x1010bada
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x1010bae3
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 0x1010bbbf
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x1010bbaf
cmp al, 0xd
je 0x1010bb15
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x1010bba1
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x1010bb2f
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x1010bb2a
add dword [ebp + 0x10], 2
jmp 0x1010bb83
mov dword [ebp + 0x10], eax
jmp 0x1010bb9d
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 0x1010bb57
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1010bb9d
cmp dword [ebp - 0xc], 0
je 0x1010bb9d
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x1010bb78
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x1010bb83
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x1010bba0
cmp ebx, dword [ebp + 0xc]
jne 0x1010bb88
cmp byte [ebp - 1], 0xa
jne 0x1010bb88
mov byte [ebx], 0xa
jmp 0x1010bba0
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1010cc9b
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x1010bba1
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x1010baf9
jmp 0x1010bbbf
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x1010bbbf
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 0x1010bbcc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1010bf06
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x101b9578]
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 0x1010bf37
xor eax, eax
jmp 0x1010c0c0
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 + 0x101ccea0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x1010bf73
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.1010e21a
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x1010c04e
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x1010c08c
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 0x1010bfd7
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x1010bfc8
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 0x1010bfa8
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 0x1010c017
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x1010c020
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x1010bf99
jmp 0x1010c022
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x1010c0bb
cmp dword [ebp - 0x6c], edi
je 0x1010c08c
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x1010c081
call fcn.10105902
mov dword [eax], 9
call fcn.1010590b
mov dword [eax], esi
jmp 0x1010c0b6
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 0x1010c076
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x1010c022
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x1010c022
push dword [ebp - 0x6c]
call fcn.10105914
pop ecx
jmp 0x1010c0b6
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1010c0a4
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x1010c0a4
xor eax, eax
jmp 0x1010c0be
call fcn.10105902
mov dword [eax], 0x1c
call fcn.1010590b
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x1010c0be
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.1010122d
add ebp, 0x3a0
leave
ret
Function at 0x1010ca0f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x101b9578]
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 + 0x101ba040]
je 0x1010ca44
inc eax
cmp eax, 0x13
jb 0x1010ca35
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x101ba040]
jne 0x1010cb6a
mov eax, dword [0x101ca914]
cmp eax, 1
je 0x1010cb42
cmp eax, edx
jne 0x1010ca74
cmp dword [0x101ca918], 1
je 0x1010cb42
cmp ecx, 0xfc
je 0x1010cb6a
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 0x1010caaa
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.101091f0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.10105390
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1010cade
mov eax, edi
push eax
call fcn.10105390
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x1018dd34
push edi
call fcn.10101fd0
add esp, 0x10
push edi
call fcn.10105390
push dword [esi + 0x101ba044]
mov ebx, eax
call fcn.10105390
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10101f10
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.101091f0
push edi
push ebx
call fcn.10109200
push 0x1018dd30
push ebx
call fcn.10109200
push dword [esi + 0x101ba044]
push ebx
call fcn.10109200
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.1010d073
add esp, 0x2c
jmp 0x1010cb6a
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x101ba044]
push dword [esi]
call fcn.10105390
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.1010122d
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x1010d073
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x101cacd8], ebx
push esi
push edi
jne 0x1010d0f3
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1010d12e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1018eb54
push edi
call esi
test eax, eax
mov dword [0x101cacd8], eax
je 0x1010d12e
push 0x1018eb44
push edi
call esi
push 0x1018eb30
push edi
mov dword [0x101cacdc], eax
call esi
cmp dword [0x101ca924], 2
mov dword [0x101cace0], eax
jne 0x1010d0f3
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x101cace8], eax
je 0x1010d0f3
push 0x1018eafc
push edi
call esi
mov dword [0x101cace4], eax
mov eax, dword [0x101cace4]
test eax, eax
je 0x1010d138
call eax
test eax, eax
je 0x1010d11f
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x101cace8]
test eax, eax
je 0x1010d11f
test byte [ebp - 8], 1
jne 0x1010d138
cmp dword [0x101ca930], 4
jb 0x1010d132
or byte [ebp + 0x12], 0x20
jmp 0x1010d157
xor eax, eax
jmp 0x1010d167
or byte [ebp + 0x12], 4
jmp 0x1010d157
mov eax, dword [0x101cacdc]
test eax, eax
je 0x1010d157
call eax
mov ebx, eax
test ebx, ebx
je 0x1010d157
mov eax, dword [0x101cace0]
test eax, eax
je 0x1010d157
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x101cacd8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1010efcc
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.10101f10
mov eax, dword [0x101b9578]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.1010cc9b
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x1010f0ff
push 2
push esi
push dword [ebp + 8]
call fcn.1010cc9b
add esp, 0xc
cmp eax, ebx
je 0x1010f0ff
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x1010f09f
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.10104fd0
push 0x8000
push dword [ebp + 8]
call fcn.1010f6b1
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x1010f055
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.1010bf06
add esp, 0xc
cmp eax, 0xffffffff
je 0x1010f075
sub edi, eax
test edi, edi
jg 0x1010f04d
jmp 0x1010f08d
call fcn.1010590b
cmp dword [eax], 5
jne 0x1010f08a
call fcn.10105902
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.1010f6b1
pop ecx
pop ecx
jmp 0x1010f0e7
jge 0x1010f0e7
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1010cc9b
push dword [ebp + 8]
call fcn.10105ced
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 0x1010f0e7
call fcn.10105902
mov dword [eax], 0xd
call fcn.1010590b
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.1010cc9b
add esp, 0xc
mov eax, esi
pop edi
jmp 0x1010f101
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.1010122d
leave
ret
Function at 0x1010f1bb
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 0x1010f1d4
or eax, 0xffffffff
jmp 0x1010f235
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x1010f231
push 0x3d
push esi
call fcn.10101f4d
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x1010f231
cmp esi, eax
je 0x1010f231
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x101ca944]
sete cl
cmp eax, dword [0x101ca948]
mov dword [ebp - 8], ecx
jne 0x1010f217
mov edi, eax
call fcn.1010f15a
mov dword [0x101ca944], eax
cmp eax, ebx
jne 0x1010f270
cmp dword [ebp + 0xc], ebx
je 0x1010f239
cmp dword [0x101ca94c], ebx
je 0x1010f239
call fcn.1010e2eb
test eax, eax
je 0x1010f270
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x1010f242
xor eax, eax
jmp 0x1010f234
push 4
call fcn.10101e75
cmp eax, ebx
pop ecx
mov dword [0x101ca944], eax
je 0x1010f231
mov dword [eax], ebx
cmp dword [0x101ca94c], ebx
jne 0x1010f270
push 4
call fcn.10101e75
cmp eax, ebx
pop ecx
mov dword [0x101ca94c], eax
je 0x1010f231
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x101ca944]
call fcn.1010f10d
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x1010f2d1
cmp dword [esi], ebx
je 0x1010f2d1
lea esi, [esi + edi*4]
push dword [esi]
call fcn.1010168d
cmp dword [ebp - 8], ebx
pop ecx
jne 0x1010f2b4
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x1010f312
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x1010f2ab
mov eax, edi
shl eax, 2
push eax
push dword [0x101ca944]
call fcn.10103483
cmp eax, ebx
pop ecx
pop ecx
je 0x1010f312
jmp 0x1010f30d
cmp dword [ebp - 8], ebx
jne 0x1010f37d
cmp edi, ebx
jge 0x1010f2e0
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x101ca944]
call fcn.10103483
cmp eax, ebx
pop ecx
pop ecx
je 0x1010f231
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 [0x101ca944], eax
cmp dword [ebp + 0xc], ebx
je 0x1010f367
push dword [ebp - 4]
call fcn.10105390
inc eax
inc eax
push eax
call fcn.10101e75
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x1010f367
push dword [ebp - 4]
push esi
call fcn.101091f0
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 0x1010f360
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.1010168d
pop ecx
cmp dword [ebp - 8], ebx
je 0x1010f375
push dword [ebp - 4]
call fcn.1010168d
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x1010f234
push dword [ebp - 4]
call fcn.1010168d
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x1010f23e
Function at 0x1010fbf7
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x101b9578]
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.1010fbc7
mov eax, 0x10000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.10104fd0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x1010fc59
cmp dword [ebp - 0x1c], 5
jb 0x1010fc71
jmp 0x1010fc6d
cmp dword [ebp - 0x10], 1
jne 0x1010fc71
cmp dword [ebp - 0x1c], 4
ja 0x1010fc6d
jne 0x1010fc71
cmp dword [ebp - 0x18], 0
jbe 0x1010fc71
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x710
mov dword [esi + 0x14], 0x1018f484
call fcn.10001a50
test eax, eax
jge 0x1010fc92
mov byte [0x101c3870], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
pop esi
call fcn.1010122d
add ebp, 0x78
leave
ret

Function at 0x10111ee0
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push ebx
call fcn.101038f1
mov edi, eax
add esp, 8
test edi, edi
jne 0x10111f70
push 0x7a
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.10112ab0
push 0x1018f920
push esi
push 0x1018f91c
push ebx
push str.fopen_
push 5
call fcn.101127d0
add esp, 0x2c
call fcn.10105902
cmp dword [eax], 2
jne 0x10111f55
push 0x7d
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.10112ab0
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x7f
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.10112ab0
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x101ba450
call fcn.10111980
mov esi, eax
add esp, 4
test esi, esi
jne 0x10111f92
push edi
call fcn.1010370f
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0
push esi
call fcn.10111590
push edi
push 1
push 0x6a
push esi
call fcn.101118c0
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x10113ca0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104
call fcn.10101f10
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x10113ce5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x10113ce5
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
push 0x101b9d68
call fcn.101508ad
add esp, 0xc
lea esp, [ebp - 0x108]
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push eax
lea ecx, [ebp - 0x104]
push 0xff
push ecx
call fcn.101044aa
add esp, 0x10
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x10113d5e
call fcn.10113be0
test eax, eax
je 0x10113d5e
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [ebp - 0x104]
push esi
mov dword [ebp - 4], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea esp, [ebp - 0x108]
pop esi
mov esp, ebp
pop ebp
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [ebp - 0x104]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea esp, [ebp - 0x108]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10113f30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x14
call fcn.10101f10
mov eax, dword [esp + 0x2c]
push ebx
xor edx, edx
push ebp
push esi
mov esi, dword [eax]
push edi
mov edi, dword [esp + 0x38]
movzx ecx, byte [edi]
lea ebp, [edi + 1]
mov eax, ebp
mov dh, byte [eax]
xor ebx, ebx
mov dword [esp + 0x10], 0
or ecx, edx
movzx edx, byte [eax + 1]
inc eax
shl edx, 0x10
or ecx, edx
movzx edx, byte [eax + 1]
inc eax
shl edx, 0x18
or ecx, edx
movzx edx, byte [eax + 1]
inc eax
mov bh, byte [eax + 1]
inc eax
mov byte [esp + 0x14], cl
or edx, ebx
inc eax
xor ebx, ebx
mov bh, byte [eax + 1]
mov bl, byte [eax]
mov eax, ecx
shr eax, 8
mov byte [esp + 0x15], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x16], al
shl ebx, 0x10
or edx, ebx
mov ebx, ecx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x17], cl
mov ecx, edx
mov byte [esp + 0x1a], al
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], edx
mov byte [esp + 0x18], dl
shr ecx, 8
shr edx, 0x18
test eax, eax
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x19], cl
mov byte [esp + 0x1b], dl
je 0x101140d0
mov dword [esp + 0x38], eax
test esi, esi
jne 0x10114045
mov ecx, dword [esp + 0x34]
push 1
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.101140e0
mov ebx, dword [esp + 0x28]
mov eax, ebx
shr eax, 8
mov byte [esp + 0x21], al
mov eax, dword [esp + 0x2c]
mov ecx, ebx
shr ecx, 0x10
mov edx, ebx
shr edx, 0x18
mov byte [esp + 0x22], cl
mov ecx, eax
mov byte [esp + 0x23], dl
mov edx, eax
mov byte [esp + 0x24], al
shr eax, 0x18
mov byte [esp + 0x27], al
mov eax, dword [esp + 0x1c]
shr ecx, 8
shr edx, 0x10
add esp, 0xc
inc eax
mov byte [esp + 0x14], bl
mov byte [esp + 0x19], cl
mov byte [esp + 0x1a], dl
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x28]
mov al, byte [ecx]
mov dl, byte [esp + esi + 0x14]
xor dl, al
mov eax, dword [esp + 0x2c]
inc eax
mov byte [eax - 1], dl
inc ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
inc esi
and esi, 7
dec eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x38], eax
jne 0x10113fe0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x101140c2
mov byte [edi], bl
mov ecx, ebx
shr ecx, 8
mov eax, ebp
mov byte [eax], cl
mov ecx, dword [esp + 0x20]
inc eax
mov edx, ebx
shr edx, 0x10
mov byte [eax], dl
inc eax
shr ebx, 0x18
mov byte [eax], bl
mov byte [eax + 1], cl
inc eax
inc eax
mov edx, ecx
shr edx, 8
mov byte [eax], dl
inc eax
mov edx, ecx
shr edx, 0x10
mov byte [eax], dl
shr ecx, 0x18
mov byte [eax + 1], cl
mov eax, dword [esp + 0x3c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov ecx, dword [esp + 0x3c]
pop edi
mov dword [ecx], esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov edx, dword [esp + 0x3c]
pop edi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x1011ef40
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
xor esi, esi
test edi, edi
je 0x1011efa3
mov al, byte [edi]
test al, al
je 0x1011efa3
push ebx
push ebp
mov ebx, 0x100
lea esp, [esp]
movsx eax, al
or eax, ebx
mov edx, eax
shr edx, 2
xor edx, eax
and edx, 0xf
mov ecx, 0x20
sub ecx, edx
mov ebp, esi
shr ebp, cl
mov ecx, edx
shl esi, cl
mov ecx, eax
imul ecx, eax
mov al, byte [edi + 1]
or ebp, esi
xor ebp, ecx
add ebx, 0x100
inc edi
test al, al
mov esi, ebp
jne 0x1011ef60
pop ebp
mov eax, esi
pop ebx
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
pop edi
xor eax, eax
pop esi
ret