joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cb440
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x542ad0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4cb480
cmp byte [ebx], 0xa
jne 0x4cb480
or byte [eax + edi + 0x28], 4
jmp 0x4cb485
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4cb583
mov al, byte [edx]
cmp al, 0x1a
je 0x4cb565
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4cb4b4
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4cb4d9
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4cb4e3
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4cb496
jmp 0x4cb583
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4cb560
cmp dword [ebp - 0xc], 0
je 0x4cb560
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x542ad0]
test byte [eax + edi + 0x28], 0x48
je 0x4cb53a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4cb525
mov byte [esi], dl
jmp 0x4cb536
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x542ad0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4cb583
cmp byte [ebp - 1], 0xa
jne 0x4cb549
cmp esi, ebx
jne 0x4cb549
mov byte [esi], 0xa
jmp 0x4cb582
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004c6d48
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4cb583
mov byte [esi], 0xd
jmp 0x4cb582
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x542ad0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4cb57f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4cb583
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4cb58c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x542ad0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4cb5cf
cmp word [esi], dx
jne 0x4cb5cf
or byte [edi + eax + 0x28], 4
jmp 0x4cb5d4
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4cb727
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4cb707
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4cb616
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4cb64c
cmp eax, edx
jae 0x4cb658
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4cb5ee
jmp 0x4cb727
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4cb703
cmp dword [ebp - 0x14], 0
je 0x4cb703
mov eax, dword [ebx*4 + 0x542ad0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4cb6db
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4cb6a4
mov word [esi], cx
jmp 0x4cb6d7
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x542ad0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x542ad0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x542ad0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4cb727
pop ebx
cmp word [ebp - 4], bx
jne 0x4cb6ec
cmp esi, dword [ebp + 0xc]
jne 0x4cb6ec
mov word [esi], bx
jmp 0x4cb724
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004c6d48
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4cb727
push 0xd
jmp 0x4cb720
mov ecx, dword [ebx*4 + 0x542ad0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4cb71e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4cb727
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4ce944
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x51ec04
push 0x51ebfc
push str.FlsAlloc
push 0x1e
call fcn.004ce771
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4ce978
push dword [ebp + 8]
mov ecx, esi
call dword [0x4e1524]
call esi
jmp 0x4ce97e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4ce9c2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x51ec14
push 0x51ec0c
push str.FlsGetValue
push 0x20
call fcn.004ce771
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4ce9f9
push dword [ebp + 8]
mov ecx, esi
call dword [0x4e1524]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4d0d54
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d0bc5
Function at 0x4d6c0d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4d6caa
push ebx
push esi
call fcn.004d6bd6
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004d5b8f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4d6c57
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4d6ca9
push edi
push eax
call fcn.004cefe0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4d6c77
call fcn.004ce496
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4d6ca8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004d5b8f
add esp, 0x20
test eax, eax
jne 0x4d6c96
push edi
call fcn.004ce496
jmp 0x4d6c9e
push ebx
call fcn.004ce496
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4d6cad
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4d6cbe
pop esi
ret
push ebx
push edi
push esi
call fcn.004d6bd6
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004cefe0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4d6ce6
push ebx
push esi
push edi
call fcn.004b63a0
add esp, 0xc
push 0
call fcn.004ce496
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4d7432
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d6f59
Function at 0x4d9c7f
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004d9bfb
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4d9df7
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4d9df7
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4d9da6
jg 0x4d9cd8
test eax, eax
je 0x4d9d9c
push 1
push 0x1000
call fcn.004ce439
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4d9cfe
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4d9d93
push 0x8000
push ebx
call fcn.004c9280
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4d9d2a
jg 0x4d9d25
cmp ecx, 0x1000
jb 0x4d9d2a
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004cc6a6
add esp, 0x10
cmp eax, 0xffffffff
je 0x4d9d6f
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4d9d25
jl 0x4d9d56
test ecx, ecx
jne 0x4d9d17
push dword [ebp - 0xc]
push ebx
call fcn.004c9280
push esi
call fcn.004ce496
add esp, 0xc
xor edi, edi
jmp 0x4d9e08
cmp byte [edi + 0x24], 0
je 0x4d9d86
cmp dword [edi + 0x20], 5
jne 0x4d9d86
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4d9d91
mov edi, dword [edi + 0x18]
jmp 0x4d9d93
xor edi, edi
push esi
call fcn.004ce496
pop ecx
jmp 0x4d9e08
test ecx, ecx
jg 0x4d9d68
jl 0x4d9da6
test eax, eax
jae 0x4d9d68
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004c6d48
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4d9dc9
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4d9d68
jmp 0x4d9e00
push ebx
call fcn.004d1c43
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4d9d68
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4d9e08
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4d9e05
mov edi, dword [edi + 0x18]
jmp 0x4d9e08
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004c6d48
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4de330
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4de35d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4de35d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x5178c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x111000]
push edi
or ebp, 0xffffffff
jmp 0x5178e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5178e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5178d8
mov eax, 1
add ebx, ebx
jne 0x5178fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5178f0
jne 0x51790c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5178f0
xor ecx, ecx
sub eax, 3
jb 0x517920
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x517992
mov ebp, eax
add ebx, ebx
jne 0x51792b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x517938
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x51795c
inc ecx
add ebx, ebx
jne 0x517948
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x51793d
jne 0x517959
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x51793d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x51797c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x51796d
jmp 0x5178de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x51797c
add edi, ecx
jmp 0x5178de
pop esi
mov edi, esi
mov ecx, 0x298
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x51799a
cmp byte [edi], 1
jne 0x51799a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x51799f
lea edi, [esi + 0x115000]
mov eax, dword [edi]
or eax, eax
je 0x517a17
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x11d1d4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11d288]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5179cc
mov ecx, edi
jns 0x5179fb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x11d28c]
or eax, eax
je 0x517a11
mov dword [ebx], eax
add ebx, 4
jmp 0x5179e9
call dword [esi + 0x11d29c]
mov ebp, dword [esi + 0x11d290]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x517a4b
sub esp, 0xffffff80
jmp 0x4037bf
Function at 0x542f30
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00542faf
jae 0x542f3c
xor ecx, ecx
call fcn.00542faf
jae 0x542f66
xor eax, eax
call fcn.00542faf
jae 0x542f77
mov al, 0x10
call fcn.00542faf
adc al, al
jae 0x542f58
jne 0x542fa4
stosb byte es:[edi], al
jmp 0x542f3d
call fcn.00542fbb
dec ecx
loop 0x542f83
mov eax, ebp
call fcn.00542fb9
jmp 0x542fa5
lodsb al, byte [esi]
shr eax, 1
je 0x542fcb
adc ecx, 2
mov ebp, eax
jmp 0x542fa5
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00542fb9
cmp eax, 0x7d00
jae 0x542fa3
cmp eax, 0x500
jae 0x542fa4
cmp eax, 0x7f
ja 0x542fa5
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x542f3d
pop ebp
ret 8

Function at 0x5e1f30
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.005e1faf
jae 0x5e1f3c
xor ecx, ecx
call fcn.005e1faf
jae 0x5e1f66
xor eax, eax
call fcn.005e1faf
jae 0x5e1f77
mov al, 0x10
call fcn.005e1faf
adc al, al
jae 0x5e1f58
jne 0x5e1fa4
stosb byte es:[edi], al
jmp 0x5e1f3d
call fcn.005e1fbb
dec ecx
loop 0x5e1f83
mov eax, ebp
call fcn.005e1fb9
jmp 0x5e1fa5
lodsb al, byte [esi]
shr eax, 1
je 0x5e1fcb
adc ecx, 2
mov ebp, eax
jmp 0x5e1fa5
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.005e1fb9
cmp eax, 0x7d00
jae 0x5e1fa3
cmp eax, 0x500
jae 0x5e1fa4
cmp eax, 0x7f
ja 0x5e1fa5
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5e1f3d
pop ebp
ret 8

Function at 0x40a340
Capabilities:
Encode data using xor

Disassembly:
pop esi
rol dl, cl
add al, 0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov eax, dword [ecx + 4]
test eax, eax
jne 0x40a35f
dec edx
out 0x63, al
push ecx
cmp eax, 1
jne 0x40a370
cmp eax, 2
jne 0x40a32e
Function at 0x1021516
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10de03c]
mov ecx, dword [ebp + 0xc]
push 0x10dfde8
push 0x14
lea edx, [ebp - 0x2c]
push edx
push 0x100205c
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jle 0x1021590
lea eax, [ebp - 0x2c]
push esi
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
pop ecx
mov esi, eax
jmp 0x102155a
inc esi
inc esi
cmp word [esi], 0x20
je 0x1021558
push 0x10041fc
push esi
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
test eax, eax
pop ecx
lea eax, [ebp + 0x10]
push eax
je 0x1021580
push 0x10041f4
add esi, 4
jmp 0x1021585
push 0x10041ec
push esi
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0xc
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
call fcn.01075aef
leave
ret 0xc
Function at 0x1022a77
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi], ebx
jne 0x1022b32
push 0x1004a34
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 4], eax
je 0x1022b2c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1004a14
push eax
call edi
push 0x10049f4
push dword [esi + 4]
mov dword [esi + 8], eax
call edi
push 0x10049d4
push dword [esi + 4]
mov dword [esi + 0xc], eax
call edi
push 0x10049b4
push dword [esi + 4]
mov dword [esi + 0x10], eax
call edi
push 0x1004990
push dword [esi + 4]
mov dword [esi + 0x14], eax
call edi
push 0x1004968
push dword [esi + 4]
mov dword [esi + 0x18], eax
call edi
push 0x1004944
push dword [esi + 4]
mov dword [esi + 0x1c], eax
call edi
cmp dword [esi + 8], ebx
mov dword [esi + 0x20], eax
pop edi
je 0x1022b20
cmp dword [esi + 0xc], ebx
je 0x1022b20
cmp dword [esi + 0x10], ebx
je 0x1022b20
cmp dword [esi + 0x14], ebx
je 0x1022b20
cmp dword [esi + 0x18], ebx
je 0x1022b20
cmp eax, ebx
je 0x1022b20
cmp dword [esi + 0x1c], ebx
jne 0x1022b2c
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 4], ebx
mov dword [esi], 1
pop esi
pop ebx
ret

Function at 0x10230b2
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x204
cmp dword [ebp + 0xc], 0
mov eax, dword [0x10de03c]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
mov edi, ecx
je 0x1023118
push 0x100
lea eax, [ebp - 0x204]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x10230f9
lea eax, [ebp - 0x204]
push esi
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
lea eax, [ebp - 0x204]
push eax
mov ecx, edi
call fcn.01022ffe
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01075aef
leave
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1023140
test ah, 4
je 0x1023140
push 0x100
lea eax, [ebp - 0x204]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x10230f9
xor eax, eax
jmp 0x102310a
Function at 0x1023385
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x838
mov eax, dword [0x10de03c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [ebp - 0x834], eax
lea eax, [ebp - 0x828]
push eax
push dword [0x10dc6f0]
push 0x80000002
call ebx
test eax, eax
je 0x10233c7
xor eax, eax
jmp 0x1023454
push esi
push edi
xor esi, esi
mov eax, dword [esi + 0x10046c0]
mov edi, dword [esi + 0x10046c4]
lea ecx, [ebp - 0x82c]
push ecx
push eax
push dword [ebp - 0x828]
mov dword [ebp - 0x830], 0x820
call ebx
test eax, eax
jne 0x102343b
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x838]
push eax
push 0
push edi
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102342f
mov ecx, dword [ebp - 0x834]
lea eax, [ebp - 0x824]
push eax
call fcn.0102328e
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 8
cmp esi, 0x50
jb 0x10233cb
push dword [ebp - 0x828]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01075aef
leave
ret 4

Function at 0x1023466
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x10cc3b6
call fcn.01077798
sub esp, 0x22c
mov eax, dword [0x10de03c]
push ebx
push esi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x220]
push eax
push dword [0x10dc6cc]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10234eb
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x238]
push eax
push 0
push 0x1004a58
push dword [ebp - 0x220]
mov dword [ebp - 0x22c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1023506
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.01075aef
pop edi
pop esi
pop ebx
leave
ret 4
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
mov dword [ebp - 0x230], eax
lea eax, [eax + eax + 0x1e]
push eax
mov dword [ebp - 0x224], eax
call sub.MFC42u.DLL_operatornew
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
mov dword [ebp - 0x228], ebx
je 0x10234eb
push 7
pop ecx
mov esi, str._GlobalRoot
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x230]
lea esi, [ebp - 0x21c]
lea edi, [ebx + 0x1c]
rep movsw word es:[edi], word [esi]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x234]
and word [eax + ebx - 2], 0
and dword [ebp - 4], 0
push ebx
call fcn.0102328e
or dword [ebp - 4], 0xffffffff
push ebx
call sub.MFC42u.DLL_operatordelete
xor eax, eax
pop ecx
inc eax
jmp 0x10234ed
Function at 0x10235a7
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10cc3db
call fcn.01077798
sub esp, 0x884
mov eax, dword [0x10de03c]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], eax
push 0x410
lea eax, [ebp - 0x834]
push eax
push 0x1004ad4
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x10235f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1004a78
call dword [sym.imp.msvcrt.dll_wprintf]
pop ecx
pop ecx
jmp 0x102364d
lea ecx, [ebp - 0x860]
call fcn.01022ee5
xor edi, edi
lea eax, [ebp - 0x860]
mov dword [ebp - 4], edi
push eax
mov dword [ebp - 0x838], edi
mov dword [ebp - 0x83c], edi
mov byte [ebp - 4], 1
call fcn.01023466
cmp eax, edi
jne 0x102362e
lea ecx, [ebp - 0x860]
jmp 0x1023644
lea eax, [ebp - 0x860]
push eax
call fcn.01023385
cmp eax, edi
lea ecx, [ebp - 0x860]
jne 0x1023654
or dword [ebp - 4], 0xffffffff
call fcn.01022f06
xor eax, eax
jmp 0x1023756
lea eax, [ebp - 0x834]
push eax
call fcn.0102328e
lea ecx, [ebp - 0x890]
call fcn.01022a50
lea ecx, [ebp - 0x890]
mov byte [ebp - 4], 2
call fcn.01022a77
lea ecx, [ebp - 0x890]
call fcn.01023232
lea eax, [ebp - 0x838]
push eax
push 1
lea ecx, [ebp - 0x890]
call fcn.01022b5a
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x83c], ebx
jne 0x10236c1
lea ecx, [ebp - 0x890]
call fcn.01022dc6
lea ecx, [ebp - 0x890]
mov byte [ebp - 4], 1
call fcn.0102320d
jmp 0x1023735
push ebx
lea ecx, [ebp - 0x860]
call fcn.0102328e
mov esi, dword [ebp - 0x838]
cmp word [esi], di
je 0x10236f1
push esi
lea ecx, [ebp - 0x860]
call fcn.0102328e
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea esi, [esi + eax*2]
jmp 0x10236d3
push ebx
call sub.MFC42u.DLL_operatordelete
pop ecx
push dword [ebp - 0x838]
call sub.MFC42u.DLL_operatordelete
pop ecx
mov dword [ebp - 0x83c], edi
mov dword [ebp - 0x838], edi
jmp 0x1023685
lea ecx, [ebp - 0x860]
mov dword [ebp - 4], edi
call fcn.01023149
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x860]
mov esi, eax
call fcn.01022f06
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.01075aef
pop edi
pop esi
pop ebx
leave
ret