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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov edi, 0x40d700
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0xc]
mov ecx, dword [edx]
xor ecx, dword [0x40d800]
mov dword [esp], ecx
mov edx, dword [esp + 0xc]
mov ecx, dword [edx + 4]
xor ecx, dword [0x40d804]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0xc]
mov ebx, dword [edx + 8]
mov edx, dword [esp + 0xc]
xor ebx, dword [0x40d808]
mov esi, dword [edx + 0xc]
lea edx, [esp + 0x10]
xor esi, dword [0x40d80c]
mov ecx, edx
mov edx, 0x10
xchg ecx, eax
xchg ecx, edx
call fcn.00403178
mov edx, 0x1f
mov eax, esi
mov ecx, esi
shr ecx, 0x15
shl eax, 0xb
or eax, ecx
mov ecx, edx
and ecx, 3
add eax, ebx
xor eax, dword [ecx*4 + 0x40d800]
mov ebp, eax
mov ecx, eax
shr ebp, 8
and ecx, 0xff
and ebp, 0xff
movzx ecx, byte [edi + ecx]
movzx ebp, byte [edi + ebp]
shl ebp, 8
or ecx, ebp
mov ebp, eax
shr ebp, 0x10
shr eax, 0x18
and ebp, 0xff
and eax, 0xff
movzx ebp, byte [edi + ebp]
movzx eax, byte [edi + eax]
shl ebp, 0x10
shl eax, 0x18
or ecx, ebp
or ecx, eax
mov eax, ebx
xor ecx, dword [esp]
mov dword [esp + 8], ecx
mov ecx, ebx
shr ecx, 0xf
shl eax, 0x11
or eax, ecx
mov ecx, edx
and ecx, 3
xor eax, esi
dec edx
add eax, dword [ecx*4 + 0x40d800]
mov ebp, eax
mov ecx, eax
shr ebp, 8
and ecx, 0xff
and ebp, 0xff
movzx ecx, byte [edi + ecx]
movzx ebp, byte [edi + ebp]
shl ebp, 8
or ecx, ebp
mov ebp, eax
shr ebp, 0x10
shr eax, 0x18
and ebp, 0xff
and eax, 0xff
movzx ebp, byte [edi + ebp]
movzx eax, byte [edi + eax]
shl ebp, 0x10
shl eax, 0x18
or ecx, ebp
or ecx, eax
xor ecx, dword [esp + 4]
mov dword [esp], ebx
mov dword [esp + 4], esi
mov eax, ecx
mov esi, eax
mov ebx, dword [esp + 8]
test edx, edx
jge 0x40659e
mov eax, dword [esp + 0xc]
xor ebx, dword [0x40d800]
mov dword [eax], ebx
xor esi, dword [0x40d804]
mov edx, dword [esp + 0xc]
mov dword [edx + 4], esi
mov ecx, dword [esp]
mov eax, dword [esp + 0xc]
xor ecx, dword [0x40d808]
mov dword [eax + 8], ecx
lea eax, [esp + 0x10]
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0xc]
xor edx, dword [0x40d80c]
mov dword [ecx + 0xc], edx
call fcn.004066cc
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4066cc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ecx, 0x40d800
mov ebx, 0x4089a4
xor edx, edx
movzx esi, byte [eax + edx]
mov esi, dword [ebx + esi*4]
xor dword [ecx], esi
movzx esi, byte [eax + edx + 1]
mov esi, dword [ebx + esi*4]
xor dword [ecx + 4], esi
movzx esi, byte [eax + edx + 2]
mov esi, dword [ebx + esi*4]
xor dword [ecx + 8], esi
movzx esi, byte [eax + edx + 3]
mov esi, dword [ebx + esi*4]
xor dword [ecx + 0xc], esi
add edx, 4
cmp edx, 0x10
jl 0x4066da
pop esi
pop ebx
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x119d008], 0x8088405
inc edx
mov dword [ebx + 0x119d008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cf00
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf31
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf19
add dl, dl
jne 0x41cf3c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf8d
xor eax, eax
add dl, dl
jne 0x41cf49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d02a
add dl, dl
jne 0x41cf58
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf63
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf79
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf83
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf28
mov eax, 1
add dl, dl
jne 0x41cf9b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf92
sub eax, ebx
mov ebx, 1
jne 0x41cfd9
mov ecx, 1
add dl, dl
jne 0x41cfbf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cfca
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfb6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cff0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cffb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfe7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d04b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cf28
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f04c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x118153a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f09b
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f0ba
mov ecx, edx
add ecx, ebx
jmp 0x41f0ba
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f0ba
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f12c
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f115
test esi, esi
jbe 0x41f12c
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f107
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f12c
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f0e4
jmp 0x41f12c
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f12c
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1181541
ret
Function at 0x420284
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x118289f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4202bf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202d8
lea eax, [ebp - 0x10]
mov edx, dword [0x119f348]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202eb
lea eax, [ebp - 0x10]
mov edx, dword [0x119f348]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4202f7
adc edx, 0
mov edx, dword [edx*4 + 0x119e178]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420471
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420464
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420464
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420464
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420464
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420402
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420402
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420402
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420402
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420464
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420464
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420464
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420464
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420464
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420489
inc ebx
cmp ebx, 0x19
jne 0x4202b1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x11828a6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x5ee4d9
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5ee4f4
add esi, 0x1000
lea eax, [ebp - 0x2bc]
push edx
push 0x1c
push eax
push esi
call dword [edx + 0x124b3719]
pop edx
test eax, eax
je 0x5ee5c6
cmp dword [ebp - 0x2ac], 0x1000
jne 0x5ee5b5
test dword [ebp - 0x2a8], 1
jne 0x5ee5b5
and dword [ebp - 0x2a8], 0x100
jne 0x5ee5b5
push esi
push edx
push 4
push esi
call dword [edx + 0x122d3b25]
pop edx
pop esi
test eax, eax
je 0x5ee558
jmp 0x5ee5b5
cmp word [esi], 0x5a4d
jne 0x5ee5b5
mov eax, esi
push ebx
mov ebx, dword [esi + 0x3c]
add eax, ebx
pop ebx
cmp dword [eax], 0x4550
jne 0x5ee5b5
lea eax, [ebp - 0x28c]
push edx
push 0x28a
push eax
push esi
call dword [edx + 0x122d38c1]
pop edx
test eax, eax
je 0x5ee5b5
lea eax, [ebp - 0x28c]
push eax
call fcn.005ee435
test eax, eax
jne 0x5ee5ae
jmp 0x5ee5b5
mov eax, esi
jmp 0x5ee5c6
mov esi, dword [ebp - 0x2b0]
add esi, dword [ebp - 0x2bc]
jmp 0x5ee4f4
pop esi
leave
ret 4
Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401403
Capabilities:
Delete directory
Delete file

Disassembly:
push 0x54
mov eax, 0x43ca56
call fcn.0043c0ef
mov esi, ecx
push ecx
push str._cleanup_
call fcn.004045f5
mov edi, eax
cmp edi, 0xffffffff
jne 0x40142a
xor al, al
jmp 0x401568
push 8
pop ebx
add edi, 0xa
mov ecx, esi
cmp dword [esi + 0x14], ebx
jb 0x401439
mov ecx, dword [esi]
push dword [ebp - 0x60]
mov edx, dword [esi + 0x10]
push 2
push ecx
push edi
call fcn.00404d2d
add esp, 0x10
cmp eax, 0xffffffff
je 0x401566
mov ecx, esi
cmp dword [esi + 0x14], ebx
jb 0x40145d
mov ecx, dword [esi]
cmp word [ecx + eax*2], 0x3d
je 0x401566
sub eax, edi
mov ecx, esi
push eax
push edi
lea eax, [ebp - 0x2c]
push eax
call fcn.004045a6
and dword [ebp - 4], 0
lea edi, [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jb 0x401486
mov edi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
push 0x3b
pop eax
mov word [ebp - 0x60], ax
test edx, edx
je 0x4014ac
lea eax, [ebp - 0x60]
mov ecx, edi
push eax
call fcn.0040507c
mov esi, eax
pop ecx
test esi, esi
je 0x4014ac
sub esi, edi
sar esi, 1
jmp 0x4014af
or esi, 0xffffffff
push esi
push 0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004045a6
push 0xffffffffffffffff
lea eax, [esi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004045a6
cmp dword [eax + 0x14], ebx
jb 0x4014db
mov eax, dword [eax]
push eax
call fcn.00426288
pop ecx
lea ecx, [ebp - 0x5c]
mov esi, eax
call fcn.0040794e
cmp dword [ebp - 0x34], 0
je 0x401556
test esi, esi
je 0x401556
push esi
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40151d
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x44b650
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x5c]
call fcn.00404a12
pop ecx
cmp dword [eax + 0x14], ebx
jb 0x401535
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x5c]
call fcn.0040794e
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], ebx
jb 0x40154f
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x44]
call fcn.0040794e
lea ecx, [ebp - 0x2c]
call fcn.0040794e
mov al, 1
call fcn.0043c09e
ret
Function at 0x402063
Capabilities:
Get common file path

Disassembly:
push 0x24
mov eax, 0x43cb7e
call fcn.0043c0ef
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0x2c], ebx
push 0x7ffffffe
push ecx
mov edi, 0x104
mov dword [ebp - 0x28], eax
push edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov word [ebp - 0x28], ax
call fcn.00406cc7
mov esi, eax
lea ecx, [ebp - 0x28]
add esp, 0xc
lea eax, [esi + 1]
push eax
call fcn.004077dc
mov edx, eax
mov dword [ebp - 0x18], edi
xor eax, eax
mov dword [ebp - 0x14], esi
mov ecx, 0x82
mov edi, edx
rep stosd dword es:[edi], eax
mov word [edx + 0x208], ax
mov dword [ebp - 0x28], edx
xor edi, edi
lea eax, [ebp - 0x28]
push 8
pop esi
mov dword [ebp - 4], edi
cmp dword [ebp - 0x14], esi
jb 0x4020da
mov eax, edx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x402140
push 6
pop ecx
mov edi, ebx
rep stosd dword es:[edi], eax
and dword [ebx], eax
and dword [ebx + 0x10], eax
mov word [ebx], ax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x14], 7
cmp eax, esi
jb 0x4021f7
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
cmp eax, 0x1000
jb 0x4021ee
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00407f7a
mov eax, dword [ebp - 0x30]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
jmp 0x4021ee
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], esi
jb 0x40214b
mov ecx, dword [ebp - 0x28]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x40214e
sub ecx, edx
sar ecx, 1
cmp ecx, dword [ebp - 0x18]
ja 0x402178
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], esi
jb 0x40216d
mov eax, dword [ebp - 0x28]
xor edx, edx
mov dword [ebp - 0x18], ecx
mov word [eax + ecx*2], dx
jmp 0x402185
sub ecx, dword [ebp - 0x18]
push edi
push ecx
lea ecx, [ebp - 0x28]
call fcn.00405f8e
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], esi
jb 0x402190
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x4021b0
dec ecx
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], esi
jb 0x4021a7
mov eax, dword [ebp - 0x28]
xor edx, edx
mov dword [ebp - 0x18], ecx
mov word [eax + ecx*2], dx
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.0040435b
mov eax, dword [ebp - 0x14]
cmp eax, esi
jb 0x4021f7
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x4021ee
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00407f7a
mov eax, dword [ebp - 0x2c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.0041ec23
pop ecx
pop ecx
mov eax, ebx
call fcn.0043c09e
ret
Function at 0x4021ff
Capabilities:
Query environment variable

Disassembly:
push 0x24
mov eax, 0x43cb7e
call fcn.0043c0ef
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0x2c], ebx
push 0x7ffffffe
push ecx
mov edi, 0x104
mov dword [ebp - 0x28], eax
push edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov word [ebp - 0x28], ax
call fcn.00406cc7
mov esi, eax
lea ecx, [ebp - 0x28]
add esp, 0xc
lea eax, [esi + 1]
push eax
call fcn.004077dc
mov edx, eax
mov dword [ebp - 0x18], edi
xor eax, eax
mov dword [ebp - 0x14], esi
mov ecx, 0x82
mov edi, edx
rep stosd dword es:[edi], eax
mov word [edx + 0x208], ax
mov dword [ebp - 0x28], edx
xor edi, edi
lea eax, [ebp - 0x28]
push 8
pop esi
mov dword [ebp - 4], edi
cmp dword [ebp - 0x14], esi
jb 0x402276
mov eax, edx
push 0x104
push eax
push str._ALLUSERSPROFILE_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x4022e1
push 6
pop ecx
mov edi, ebx
rep stosd dword es:[edi], eax
and dword [ebx], eax
and dword [ebx + 0x10], eax
mov word [ebx], ax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x14], 7
cmp eax, esi
jb 0x402398
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
cmp eax, 0x1000
jb 0x40238f
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00407f7a
mov eax, dword [ebp - 0x30]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
jmp 0x40238f
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], esi
jb 0x4022ec
mov ecx, dword [ebp - 0x28]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4022ef
sub ecx, edx
sar ecx, 1
cmp ecx, dword [ebp - 0x18]
ja 0x402319
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], esi
jb 0x40230e
mov eax, dword [ebp - 0x28]
xor edx, edx
mov dword [ebp - 0x18], ecx
mov word [eax + ecx*2], dx
jmp 0x402326
sub ecx, dword [ebp - 0x18]
push edi
push ecx
lea ecx, [ebp - 0x28]
call fcn.00405f8e
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], esi
jb 0x402331
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x402351
dec ecx
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], esi
jb 0x402348
mov eax, dword [ebp - 0x28]
xor edx, edx
mov dword [ebp - 0x18], ecx
mov word [eax + ecx*2], dx
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.0040435b
mov eax, dword [ebp - 0x14]
cmp eax, esi
jb 0x402398
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x40238f
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00407f7a
mov eax, dword [ebp - 0x2c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.0041ec23
pop ecx
pop ecx
mov eax, ebx
call fcn.0043c09e
ret
Function at 0x402896
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x45200c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea ecx, [ebp - 0x1c]
call fcn.00402063
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
jb 0x4028bc
mov eax, dword [ebp - 0x1c]
xor ebx, ebx
push ebx
push 0x2000000
push 3
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4028f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x402917
cmp eax, 2
je 0x402917
cmp eax, 5
je 0x4028ff
mov bl, 1
cmp esi, 0xffffffff
je 0x4028ff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x1c]
call fcn.0040794e
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ebed
leave
ret
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
jb 0x402923
mov eax, dword [ebp - 0x1c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
jmp 0x4028ff

Function at 0x4029de
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, ecx
call fcn.0040186a
test al, al
jne 0x402a26
push ecx
push str._initialNonSecureSetupPath
mov ecx, esi
call fcn.004045f5
cmp eax, 0xffffffff
jne 0x402a26
push ecx
push str._restarted
mov ecx, esi
call fcn.004045f5
cmp eax, 0xffffffff
jne 0x402a26
call fcn.00402896
test al, al
je 0x402a20
call fcn.00402944
test al, al
jne 0x402a26
pop esi
jmp fcn.004027e8
pop esi
ret
Function at 0x4033d9
Capabilities:
Create process on windows

Disassembly:
push 0x164
mov eax, 0x43ce6f
call fcn.0043c0ef
mov ebx, ecx
xor eax, eax
lea edi, [ebp - 0x128]
stosd dword es:[edi], eax
push 0x44
pop esi
push esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x170]
xor edi, edi
push edi
push eax
call fcn.00422e80
add esp, 0xc
mov dword [ebp - 0x170], esi
lea ecx, [ebp - 0x54]
call fcn.0040156e
mov dword [ebp - 4], edi
cmp dword [ebp - 0x44], edi
je 0x4035ab
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
lea ecx, [ebp - 0x12]
mov eax, esi
xor edx, edx
push 0xa
pop esi
div esi
sub ecx, 2
mov esi, eax
lea eax, [edx + 0x30]
mov word [ecx], ax
test esi, esi
jne 0x403431
push ecx
lea eax, [ebp - 0x12]
push eax
push ecx
lea ecx, [ebp - 0xb4]
call fcn.0040589b
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x114]
call fcn.00404ae4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xfc]
mov edx, eax
mov dword [esp], 0x44b4a4
call fcn.00404a68
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xe4]
mov edx, eax
mov dword [esp], str._cleanup_
call fcn.00404a68
pop ecx
push ebx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00405860
push eax
lea ecx, [ebp - 0x9c]
call fcn.0040435b
push 0x44b4dc
lea edx, [ebp - 0x9c]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xcc]
call fcn.00404a68
pop ecx
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 6
push ecx
push eax
push dword [ebp - 0x118]
lea ecx, [ebp - 0x84]
call fcn.00404e8c
push 0x44b4b4
lea edx, [ebp - 0x84]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x6c]
call fcn.00404a68
pop ecx
lea ecx, [ebp - 0x84]
call fcn.0040794e
lea ecx, [ebp - 0xcc]
call fcn.0040794e
lea ecx, [ebp - 0x9c]
call fcn.0040794e
lea ecx, [ebp - 0xe4]
call fcn.0040794e
lea ecx, [ebp - 0xfc]
call fcn.0040794e
lea ecx, [ebp - 0x114]
call fcn.0040794e
lea ecx, [ebp - 0xb4]
call fcn.0040794e
cmp dword [ebp - 0x58], 8
lea ecx, [ebp - 0x6c]
jb 0x40355f
mov ecx, dword [ebp - 0x6c]
cmp dword [ebp - 0x40], 8
lea eax, [ebp - 0x54]
jb 0x40356b
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x128]
push edx
lea edx, [ebp - 0x170]
push edx
push edi
push edi
push edi
push edi
push edi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4035a3
push dword [ebp - 0x124]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x128]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x6c]
call fcn.0040794e
lea ecx, [ebp - 0x54]
call fcn.0040794e
call fcn.0043c09e
ret

Function at 0x4035b9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 7
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x403602
push edi
lea eax, [ebp - 4]
push eax
push 0x400000
push dword [0x456774]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4035fb
cmp dword [ebp - 4], edi
jne 0x4035db
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret
Function at 0x40833f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x408347
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40835a
test al, 0x10
jne 0x40835a
mov al, 1
ret
xor al, al
ret