joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432003
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x403740
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4381c9
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x448664]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
mov ebx, ecx
push eax
push ebx
mov edi, 1
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], 0x2e
call fcn.004019b0
xor edi, edi
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
push edi
mov word [esi], cx
push ebx
mov ecx, esi
call fcn.004017f0
mov dword [ebp - 4], edi
push 4
mov eax, str..exe
mov ecx, esi
mov dword [ebp - 0x28], 1
call fcn.00405c70
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0041d78e
add esp, 4
mov bl, 1
test bl, bl
jne 0x40381a
call fcn.0041d7a0
and eax, 0x8000ffff
jns 0x4037ea
dec eax
or eax, 0xffff0000
inc eax
push eax
lea edx, [ebp - 0x20]
push str._04x
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [esi + 0x10]
add esp, 0xc
push 4
lea eax, [ebp - 0x20]
push eax
mov eax, esi
call fcn.00401700
lea ecx, [eax + edi*2 - 0x10]
push ecx
call fcn.0041d663
add esp, 0xc
mov eax, esi
call fcn.00401700
push eax
mov eax, dword [ebp - 0x24]
call fcn.00401700
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4037d3
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041cfa8
mov esp, ebp
pop ebp
ret
Function at 0x406f20
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436d13
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x448664]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0041c77e
mov dword [ebp - 4], 0
push 4
call fcn.0041d501
mov edi, eax
add esp, 4
test edi, edi
je 0x406fa4
call fcn.0041c656
mov dword [edi], eax
call fcn.0041c415
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0041c73f
mov byte [ebp - 4], 1
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406f96
inc eax
mov dword [ebx + 4], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0041c767
jmp 0x406fa6
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4093b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43946a
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x448664]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push esi
mov eax, dword [0x448664]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], eax
mov word [esp + 0x1c], ax
mov dword [esp + 0x48], 2
lea edx, [esp + 0xc]
call fcn.00413c90
mov ecx, dword [esp + 0x10]
sub ecx, dword [esp + 0xc]
mov eax, 0xea0ea0eb
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x40944d
mov dword [esp + 0x48], 0xffffffff
lea edx, [esp + 0xc]
push edx
call fcn.00413580
xor al, al
jmp 0x40947f
call fcn.00409920
lea ecx, [esp + 0xc]
push ecx
lea esi, [eax + 0x14]
call fcn.004097a0
call fcn.00409920
mov ebx, eax
call fcn.00403690
mov dword [esp + 0x48], 0xffffffff
lea edx, [esp + 0xc]
push edx
call fcn.00413580
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0041cfa8
mov esp, ebp
pop ebp
ret
Function at 0x40ebc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436ab3
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x448664]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x28
call fcn.0041d501
add esp, 4
mov dword [ebp - 0x10], eax
xor ecx, ecx
mov dword [ebp - 4], ecx
cmp eax, ecx
je 0x40ec39
mov edx, dword [esi]
mov dword [eax], edx
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov edx, dword [esi + 8]
mov dword [eax + 8], edx
mov edx, dword [esi + 0xc]
mov dword [eax + 0xc], edx
mov edx, dword [esi + 0x10]
mov dword [eax + 0x10], edx
mov edx, dword [esi + 0x14]
mov dword [eax + 0x14], edx
mov edx, dword [esi + 0x18]
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], ecx
mov edx, dword [esi + 0x20]
mov dword [eax + 0x20], edx
mov edx, dword [esi + 0x24]
mov dword [eax + 0x24], edx
jmp 0x40ec3b
xor eax, eax
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0x14]
push edx
push ecx
push eax
push 0x40ef20
push ecx
push ecx
lea edi, [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [ebp + 8]
lea ebx, [esi + 0xb4]
push ebx
mov dword [edi], eax
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 1
add esi, 0x94
mov ecx, edi
call fcn.0040ecb0
mov dword [ebp - 4], 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x411740
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436a53
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x448664]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0041c77e
mov dword [ebp - 4], 0
push 4
call fcn.0041d501
mov edi, eax
add esp, 4
test edi, edi
je 0x4117c8
call fcn.0041c656
mov dword [edi], eax
call fcn.0041c415
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0041c73f
mov byte [ebp - 4], 1
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4117ba
inc eax
mov dword [ebx + 4], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0041c767
jmp 0x4117ca
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416aa0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438982
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x448664]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea eax, [ebx + 0x60]
mov dword [ebx], 0x43dd08
mov dword [ebp - 0x14], eax
mov dword [eax], vtable.std::ios_base.0
mov dword [ebp - 4], ecx
mov dword [eax], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov eax, 1
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov edx, dword [ebx]
mov edi, dword [edx + 4]
add edi, ebx
mov ecx, edi
call fcn.00402d40
lea esi, [ebx + 4]
push 0x20
mov ecx, edi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], 0
call fcn.00412530
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x416b42
mov eax, dword [edi + 0xc]
or eax, 4
or eax, 4
push 0
push eax
mov ecx, edi
call fcn.00402bd0
mov dword [ebp - 4], 4
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.00411740
mov byte [ebp - 4], 5
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], 0
mov byte [esi + 0x49], 0
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
xor ecx, ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x34]
mov dword [edx], ecx
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], ecx
mov dword [esi + 0x54], ecx
mov edx, dword [0x44b320]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4178a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4374f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x448664]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x4179cd
cmp byte [edi + 0x49], bl
je 0x4179cd
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x41795f
mov ecx, 0xf
mov dword [ebp - 0x18], ecx
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x417914
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x41792c
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x417963
dec eax
je 0x417967
sub eax, 2
je 0x4179be
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004041a0
xor al, al
jmp 0x4179cf
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x417977
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x4179a0
cmp ebx, 0x10
jae 0x417986
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0041e59a
add esp, 0x10
cmp esi, eax
jne 0x417950
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x4179be
test esi, esi
jne 0x417920
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.004059a0
jmp 0x41791a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004041a0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041cfa8
mov esp, ebp
pop ebp
ret
Function at 0x4197b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x2c]
mov dword [ebp - 0xc], edi
jmp 0x4197c3
mov edi, dword [ebp - 0xc]
mov ebx, dword [esi + 0x3c]
sub ebx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub ebx, eax
lea edx, [edi + ecx - 0x106]
mov dword [ebp - 4], ebx
cmp eax, edx
jb 0x41983d
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.0041f7f0
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
add esp, 0xc
sub dword [esi + 0x5c], edi
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x419811
sub eax, edi
jmp 0x419813
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x419802
mov ecx, dword [esi + 0x40]
mov edx, edi
lea ecx, [ecx + edi*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x419830
sub eax, edi
jmp 0x419832
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x419821
add ebx, edi
mov dword [ebp - 4], ebx
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x4198f2
mov edx, dword [esi + 0x74]
add edx, dword [esi + 0x6c]
mov eax, dword [edi + 4]
add edx, dword [esi + 0x38]
mov ecx, dword [ebp - 4]
mov ebx, eax
mov dword [ebp - 8], edx
cmp ebx, ecx
jbe 0x419863
mov ebx, ecx
test ebx, ebx
je 0x4198b6
sub eax, ebx
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x419885
mov edx, dword [edi]
mov ecx, dword [edi + 0x30]
mov eax, ebx
call fcn.0041baf0
jmp 0x41989e
cmp eax, 2
jne 0x4198a4
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
test ecx, ecx
jne 0x419897
xor eax, eax
jmp 0x4198a1
mov edx, ebx
call fcn.0041bd60
mov edx, dword [ebp - 8]
mov dword [edi + 0x30], eax
mov ecx, dword [edi]
push ebx
push ecx
push edx
call fcn.0041f7f0
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x4198de
mov edx, dword [esi + 0x6c]
add edx, dword [esi + 0x38]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x4198f2
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x4197c0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41cfa8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x448664]
jne 0x41cfb2
repz ret
jmp fcn.00422310

Function at 0x430beb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x448664]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004230d6
and dword [ebp - 0x14], 0
cmp dword [0x44b28c], 0
mov dword [ebp - 0x18], eax
jne 0x430c9e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x430d46
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x430d46
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x44b28c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x44b290], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x44b294], eax
call edi
push eax
call esi
mov dword [0x44b29c], eax
test eax, eax
je 0x430c9e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x44b298], eax
mov eax, dword [0x44b298]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x430cf7
cmp dword [0x44b29c], ecx
je 0x430cf7
push eax
call esi
push dword [0x44b29c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x430cf7
test ebx, ebx
je 0x430cf7
call edi
test eax, eax
je 0x430cee
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x430cee
test byte [ebp - 8], 1
jne 0x430cf7
or dword [ebp + 0x10], 0x200000
jmp 0x430d2a
mov eax, dword [0x44b290]
cmp eax, dword [ebp - 0x18]
je 0x430d2a
push eax
call esi
test eax, eax
je 0x430d2a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x430d2a
mov eax, dword [0x44b294]
cmp eax, dword [ebp - 0x18]
je 0x430d2a
push eax
call esi
test eax, eax
je 0x430d2a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44b28c]
call esi
test eax, eax
je 0x430d46
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x430d48
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041cfa8
leave
ret
Function at 0x101aa1e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x101aa2e
push ebx
push esi
sub eax, ecx
sar eax, 1
push edi
lea esi, [eax + 1]
push esi
jmp 0x101aa71
push esi
push dword [ebp - 4]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test ebx, ebx
je 0x101aa8a
cmp ebx, esi
jbe 0x101aac5
cmp dword [ebp - 4], 0
je 0x101aa6e
push dword [ebp - 4]
call fcn.0101db34
and dword [ebp - 4], 0
mov esi, ebx
push ebx
lea eax, [ebp - 4]
push eax
call fcn.0101dbdf
mov edi, eax
test edi, edi
jge 0x101aa45
push dword [ebp + 0xc]
push 0x1001b24
jmp 0x101aab3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x101aaa4
and edi, 0xffff
or edi, 0x80070000
test edi, edi
jl 0x101aaab
mov edi, 0x80004005
push dword [ebp + 0xc]
push 0x1001b08
push 1
push edi
push 0x4000000
call fcn.0101e5b9
add esp, 0x14
jmp 0x101aad1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
and dword [ebp - 4], 0
mov dword [ecx], eax
cmp dword [ebp - 4], 0
je 0x101aadf
push dword [ebp - 4]
call fcn.0101db34
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x101b180
Capabilities:
Query environment variable
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x102e070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
xor ebx, ebx
push 0x3fe
mov word [ebp - 0x404], ax
lea eax, [ebp - 0x402]
push ebx
push eax
mov dword [ebp - 0x408], ebx
call sub.msvcrt.dll_memset
mov eax, dword [edi + 0x68]
add esp, 0xc
mov ecx, edi
mov dword [ebp - 0x410], eax
call fcn.0101b168
mov esi, eax
neg esi
sbb esi, esi
xor eax, eax
neg esi
cmp dword [edi + 0x6c], eax
mov edi, 0x4000000
setne al
mov dword [ebp - 0x40c], eax
cmp eax, 2
jae 0x101b2d2
imul eax, eax, 0x28
add eax, 0x102e010
mov dword [ebp - 0x414], eax
push dword [ebp - 0x410]
lea eax, [ebp - 0x408]
push eax
call fcn.0101e123
mov ebx, eax
test ebx, ebx
jl 0x101b30c
test esi, esi
je 0x101b23e
push 0x1001e98
lea eax, [ebp - 0x408]
push eax
call fcn.0101de63
mov ebx, eax
test ebx, ebx
jl 0x101b325
mov eax, dword [ebp - 0x414]
mov ecx, dword [eax]
test ecx, ecx
je 0x101b267
push ecx
lea eax, [ebp - 0x408]
push eax
call fcn.0101de63
mov ebx, eax
test ebx, ebx
jl 0x101b331
mov eax, dword [ebp - 0x414]
lea ecx, [eax - 8]
push ecx
push dword [eax + 0x14]
lea ecx, [eax + 4]
push ecx
push dword [eax - 0x10]
push dword [ebp - 0x408]
call fcn.0101aecf
mov ebx, eax
test ebx, ebx
jge 0x101b29d
push dword [ebp - 0x408]
push 0x1001e74
push 1
push ebx
push edi
call fcn.0101e5b9
add esp, 0x14
cmp dword [ebp - 0x408], 0
je 0x101b2b8
push dword [ebp - 0x408]
call fcn.0101db34
and dword [ebp - 0x408], 0
inc dword [ebp - 0x40c]
add dword [ebp - 0x414], 0x28
cmp dword [ebp - 0x40c], 2
jb 0x101b203
test esi, esi
je 0x101b389
push dword [ebp - 0x410]
lea eax, [ebp - 0x404]
push 0x1001e64
push 0x200
push eax
call fcn.0101ae70
mov ebx, eax
add esp, 0x10
test ebx, ebx
jge 0x101b347
push dword [ebp - 0x410]
push 0x1001e28
jmp 0x101b317
push dword [ebp - 0x410]
push 0x1001e04
push 1
push ebx
push edi
call fcn.0101e5b9
add esp, 0x14
jmp 0x101b389
push 0x1001e98
push 0x1001dd0
jmp 0x101b317
mov eax, dword [ebp - 0x40c]
imul eax, eax, 0x28
push dword [eax + 0x102e010]
push 0x1001da4
jmp 0x101b317
lea eax, [ebp - 0x404]
push eax
call fcn.0102cc67
mov ebx, eax
test ebx, ebx
jge 0x101b367
lea eax, [ebp - 0x404]
push eax
push 0x1001d70
jmp 0x101b317
push 0
push 0
mov esi, 0x1001d40
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x101b389
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
cmp dword [ebp - 0x408], 0
je 0x101b39d
push dword [ebp - 0x408]
call fcn.0101db34
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0101ce8b
leave
ret 4
Function at 0x101b734
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebx
push esi
push 1
mov esi, 0x1002024
push esi
call fcn.0101b60a
mov ebx, eax
xor eax, eax
cmp ebx, eax
jge 0x101b764
push 0x1002000
push 1
push ebx
push 0x4000000
call fcn.0101e5b9
add esp, 0x10
jmp 0x101b7c4
push edi
push 0x80020003
push 1
push eax
push eax
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
mov edi, 0x4000000
test eax, eax
jne 0x101b7a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x101b793
and eax, 0xffff
or eax, 0x80070000
push 0x1001fe8
mov ebx, eax
push 1
push ebx
push edi
call fcn.0101e5b9
add esp, 0x10
push 0
push esi
call fcn.0101b60a
test eax, eax
jge 0x101b7c3
push 0x1001fc4
push 1
push eax
push edi
call fcn.0101e5b9
add esp, 0x10
pop edi
pop esi
mov eax, ebx
pop ebx
ret