joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e440
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e3f6
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x461580]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x24c], esi
call fcn.004283a0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
push 0x7e
push eax
call fcn.0042862b
lea ecx, [ebp - 0x218]
add esp, 8
mov edx, eax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41e4c5
sub ecx, edi
mov dword [ebp - 0x220], 0
sar ecx, 1
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x230]
movups xmmword [ebp - 0x230], xmm0
push eax
test edx, edx
je 0x41e5be
call fcn.00401e10
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.004231a0
push eax
push esi
mov byte [ebp - 4], 1
call fcn.0041e610
mov ecx, dword [ebp - 0x234]
add esp, 0x10
cmp ecx, 0xf
jbe 0x41e56f
mov edx, dword [ebp - 0x248]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41e565
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e603
push ecx
push edx
call fcn.0042693f
add esp, 8
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
mov ecx, dword [ebp - 0x21c]
cmp ecx, 7
jbe 0x41e5e6
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41e5dc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e603
jmp 0x41e5dc
call fcn.00401e10
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 2
push eax
push esi
call fcn.004231a0
add esp, 8
jmp 0x41e58a
push ecx
push edx
call fcn.0042693f
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00426952
mov esp, ebp
pop ebp
ret
call fcn.0042b6bf
int3
Function at 0x4256b1
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x4256d8
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x4256db
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0042568d
pop esi
leave
ret 8

Function at 0x427425
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x427464
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x427464
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x427464
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x427464
cmp dword [ecx + 0x74], 0xe
jbe 0x427464
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x437517
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004269e0
mov eax, dword [0x461580]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0043e8c5
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x437559
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4376b5
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00426d40
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x463440]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00440975
mov ecx, dword [esi*4 + 0x463440]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4376ae
cmp eax, dword [edi + ecx + 0x24]
jne 0x4376ae
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4376ae
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00440975
add esp, 0x14
test edx, edx
jl 0x4376ae
jg 0x437624
test eax, eax
jb 0x4376ae
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4376ae
jl 0x43763e
cmp dword [ebp - 0x1008], eax
ja 0x4376ae
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x43765c
test ebx, ebx
je 0x437695
cmp ecx, edi
jae 0x437695
mov al, byte [ecx]
cmp al, 0xd
jne 0x437676
lea eax, [edi - 1]
cmp ecx, eax
jae 0x437682
cmp byte [ecx + 1], 0xa
jne 0x437682
inc ecx
jmp 0x437682
movzx eax, al
movsx eax, byte [eax + 0x461848]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x43765c
cmp edx, ebx
jne 0x43765c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4376b3
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00426952
leave
ret

Function at 0x43c30b
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043c28d

Function at 0x43da6d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x456fd8
push 0x456fd0
push str.FlsAlloc
push 0x1e
call fcn.0043d85a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43daa1
push dword [ebp + 8]
mov ecx, esi
call dword [0x450230]
call esi
jmp 0x43daa7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x43daeb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x456fe8
push 0x456fe0
push str.FlsGetValue
push 0x20
call fcn.0043d85a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43db22
push dword [ebp + 8]
mov ecx, esi
call dword [0x450230]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x43f9f1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043f862

Function at 0x43fe2d
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 + 0x463440]
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 0x43fe6d
cmp byte [ebx], 0xa
jne 0x43fe6d
or byte [eax + edi + 0x28], 4
jmp 0x43fe72
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x43ff70
mov al, byte [edx]
cmp al, 0x1a
je 0x43ff52
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x43fea1
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x43fec6
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x43fed0
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 0x43fe83
jmp 0x43ff70
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 0x43ff4d
cmp dword [ebp - 0xc], 0
je 0x43ff4d
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x463440]
test byte [eax + edi + 0x28], 0x48
je 0x43ff27
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x43ff12
mov byte [esi], dl
jmp 0x43ff23
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x463440]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x43ff70
cmp byte [ebp - 1], 0xa
jne 0x43ff36
cmp esi, ebx
jne 0x43ff36
mov byte [esi], 0xa
jmp 0x43ff6f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00440993
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x43ff70
mov byte [esi], 0xd
jmp 0x43ff6f
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x463440]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x43ff6c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43ff70
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43ff79
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 + 0x463440]
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 0x43ffbc
cmp word [esi], dx
jne 0x43ffbc
or byte [edi + eax + 0x28], 4
jmp 0x43ffc1
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 0x4400fa
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 0x4400da
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x440003
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x440039
cmp eax, edx
jae 0x440045
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 0x43ffdb
jmp 0x4400fa
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 0x4400d6
cmp dword [ebp - 0x14], 0
je 0x4400d6
mov eax, dword [ebx*4 + 0x463440]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4400ae
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x4400f4
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x463440]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x463440]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x463440]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x4400f7
pop ebx
cmp word [ebp - 4], bx
jne 0x4400bf
cmp esi, dword [ebp + 0xc]
jne 0x4400bf
mov word [esi], bx
jmp 0x4400f7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00440993
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4400fa
push 0xd
jmp 0x4400f3
mov ecx, dword [ebx*4 + 0x463440]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4400f1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4400fa
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 0x443a1d
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 0x443aba
push ebx
push esi
call fcn.004439e6
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.00441fe7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x443a67
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x443ab9
push edi
push eax
call fcn.00440b72
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x443a87
call fcn.0043c680
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x443ab8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00441fe7
add esp, 0x20
test eax, eax
jne 0x443aa6
push edi
call fcn.0043c680
jmp 0x443aae
push ebx
call fcn.0043c680
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 0x44ab95
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.0044ab11
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x44ad0d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x44ad0d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x44acbc
jg 0x44abee
test eax, eax
je 0x44acb2
push 1
push 0x1000
call fcn.0043d528
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x44ac14
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x44aca9
push 0x8000
push ebx
call fcn.00439055
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 0x44ac40
jg 0x44ac3b
cmp ecx, 0x1000
jb 0x44ac40
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0043f662
add esp, 0x10
cmp eax, 0xffffffff
je 0x44ac85
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 0x44ac3b
jl 0x44ac6c
test ecx, ecx
jne 0x44ac2d
push dword [ebp - 0xc]
push ebx
call fcn.00439055
push esi
call fcn.0043c680
add esp, 0xc
xor edi, edi
jmp 0x44ad1e
cmp byte [edi + 0x24], 0
je 0x44ac9c
cmp dword [edi + 0x20], 5
jne 0x44ac9c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x44aca7
mov edi, dword [edi + 0x18]
jmp 0x44aca9
xor edi, edi
push esi
call fcn.0043c680
pop ecx
jmp 0x44ad1e
test ecx, ecx
jg 0x44ac7e
jl 0x44acbc
test eax, eax
jae 0x44ac7e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00440993
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x44acdf
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x44ac7e
jmp 0x44ad16
push ebx
call fcn.0044420f
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x44ac7e
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 0x44ad1e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x44ad1b
mov edi, dword [edi + 0x18]
jmp 0x44ad1e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00440993
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x44c1c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44c1ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44c1ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1003d35
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor edi, edi
push edi
push 0x10012a8
push 0x80000002
mov dword [ebp - 4], edi
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003d9c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x100127c
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1003d9c
cmp dword [ebp - 0xc], 4
jne 0x1003d9c
cmp dword [ebp - 8], 4
jne 0x1003d9c
cmp dword [ebp - 0x10], edi
je 0x1003d9c
inc ebx
cmp dword [ebp - 4], edi
je 0x1003daa
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop ebx
leave
ret

Function at 0x1003db5
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x10]
push esi
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 8], 0x18
cmp eax, esi
je 0x1003e02
cmp word [eax], si
je 0x1003e02
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x10], eax
cmp eax, esi
jne 0x1003e02
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x1003ec4
push ebx
xor ebx, ebx
cmp dword [ebp - 0x14], esi
push edi
jle 0x1003e92
mov edi, dword [sym.imp.msvcrt.dll__wcsicmp]
jmp 0x1003e19
xor esi, esi
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + ebx*4]
movzx ecx, word [eax]
cmp cx, 0x2d
je 0x1003e38
cmp cx, 0x2f
je 0x1003e38
cmp dword [ebp - 0xc], esi
jne 0x1003e92
mov dword [ebp - 0xc], eax
jmp 0x1003e86
lea esi, [eax + 2]
push 0x10012dc
push esi
call edi
pop ecx
pop ecx
test eax, eax
jne 0x1003e54
inc eax
cmp dword [ebp - 0x18], eax
je 0x1003e92
mov dword [ebp - 0x18], eax
jmp 0x1003e86
push 0x10012cc
push esi
call edi
pop ecx
pop ecx
test eax, eax
jne 0x1003e6e
test byte [ebp - 8], 8
je 0x1003e92
and dword [ebp - 8], 0xfffffff7
jmp 0x1003e86
push 0x10012c4
push esi
call edi
pop ecx
pop ecx
test eax, eax
jne 0x1003e92
test byte [ebp - 8], 1
jne 0x1003e92
or dword [ebp - 8], 1
inc ebx
cmp ebx, dword [ebp - 0x14]
jl 0x1003e17
cmp dword [ebp - 0xc], 0
jne 0x1003e9b
mov dword [ebp - 4], 0x57
jmp 0x1003ec2
cmp dword [ebp - 0x18], 0
jne 0x1003eaa
call fcn.01003d35
test eax, eax
jne 0x1003ec2
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.0100956f
test eax, eax
jne 0x1003ec2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
pop edi
pop ebx
cmp dword [ebp - 0x10], 0
pop esi
je 0x1003ed4
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
leave
ret 0x10
Function at 0x1006ef7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp esi, ebx
jne 0x1006f26
call dword [sym.imp.msvcrt.dll__errno]
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.010042a3
add esp, 0x14
jmp 0x1007004
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x1007004
test al, 0x40
jne 0x1007004
test al, 2
je 0x1006f48
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x1007004
or eax, 1
mov dword [esi + 0xc], eax
test eax, 0x10c
je 0x1006f08
push dword [esi + 0x18]
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.msvcrt.dll__fileno]
push eax
push esi
mov dword [esi], eax
call edi
pop ecx
push eax
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
mov dword [esi + 4], eax
cmp eax, ebx
je 0x1006ff4
cmp eax, 0xffffffff
je 0x1006ff4
test byte [esi + 0xc], 0x82
jne 0x1006fc9
push esi
call edi
pop ecx
cmp eax, 0xffffffff
je 0x1006fb4
push esi
call edi
pop ecx
cmp eax, 0xfffffffe
je 0x1006fb4
push esi
call edi
mov ecx, dword [sym.imp.msvcrt.dll___pioinfo]
sar eax, 5
push esi
lea ebx, [ecx + eax*4]
call edi
and eax, 0x1f
imul eax, eax, 0x24
add eax, dword [ebx]
pop ecx
pop ecx
jmp 0x1006fb9
mov eax, dword [sym.imp.msvcrt.dll___badioinfo]
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x1006fc9
or dword [esi + 0xc], 0x2000
cmp dword [esi + 0x18], 0x200
jne 0x1006fe7
mov eax, dword [esi + 0xc]
test al, 8
je 0x1006fe7
test eax, 0x400
jne 0x1006fe7
mov dword [esi + 0x18], 0x1000
mov ecx, dword [esi]
dec dword [esi + 4]
movzx eax, byte [ecx]
inc ecx
mov dword [esi], ecx
jmp 0x1007007
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [esi + 0xc], eax
mov dword [esi + 4], ebx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1008827
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp esi, ebx
jne 0x1008856
call dword [sym.imp.msvcrt.dll__errno]
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.010042a3
add esp, 0x14
jmp 0x1008940
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x1008940
test al, 0x40
jne 0x1008940
test al, 2
je 0x1008878
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x1008940
or eax, 1
mov dword [esi + 0xc], eax
test eax, 0x10c
je 0x1008838
push dword [esi + 0x18]
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.msvcrt.dll__fileno]
push eax
push esi
mov dword [esi], eax
call edi
pop ecx
push eax
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
mov dword [esi + 4], eax
cmp eax, ebx
je 0x1008930
cmp eax, 1
je 0x1008930
cmp eax, 0xffffffff
je 0x1008930
test byte [esi + 0xc], 0x82
jne 0x1008902
push esi
call edi
pop ecx
cmp eax, 0xffffffff
je 0x10088ed
push esi
call edi
pop ecx
cmp eax, 0xfffffffe
je 0x10088ed
push esi
call edi
mov ecx, dword [sym.imp.msvcrt.dll___pioinfo]
sar eax, 5
push esi
lea ebx, [ecx + eax*4]
call edi
and eax, 0x1f
imul eax, eax, 0x24
add eax, dword [ebx]
pop ecx
pop ecx
jmp 0x10088f2
mov eax, dword [sym.imp.msvcrt.dll___badioinfo]
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x1008902
or dword [esi + 0xc], 0x2000
cmp dword [esi + 0x18], 0x200
jne 0x1008920
mov eax, dword [esi + 0xc]
test al, 8
je 0x1008920
test eax, 0x400
jne 0x1008920
mov dword [esi + 0x18], 0x1000
mov ecx, dword [esi]
add dword [esi + 4], 0xfffffffe
movzx eax, word [ecx]
add ecx, 2
mov dword [esi], ecx
jmp 0x1008945
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [esi + 0xc], eax
mov dword [esi + 4], ebx
mov eax, 0xffff
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10089dd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10089f8
test al, 0x50
jne 0x10089f8
inc esi
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x1008aa8
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x105
lea ecx, [ebp - 0x210]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x1008b10
push edi
push edi
lea eax, [ebp - 0x214]
push eax
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov esi, eax
cmp esi, edi
je 0x1008b10
test byte [ebp - 0x214], 8
jne 0x1008b10
push 0x32
xor esi, esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.010042c5
leave
ret 4
Function at 0x1008b27
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, 0x80
cmp ebx, esi
je 0x1008b66
test ebx, 0xffffff78
je 0x1008b66
push dword [ebp + 8]
and dword [ebp + 0xc], 0
push ebx
push 0x1001620
push 4
call fcn.0100a40e
add esp, 0x10
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1008bf4
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1008bab
and dword [ebp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.0100a1af
cmp esi, 2
je 0x1008b99
push esi
push edi
push 0x10015c0
push 3
jmp 0x1008be4
push edi
push 0x1001560
push 2
call fcn.0100a40e
add esp, 0xc
jmp 0x1008bec
and eax, 0x3120
or eax, ebx
or eax, esi
cmp eax, esi
je 0x1008bbd
and eax, 0xffffff7f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x1008bf3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.0100a1af
push esi
push edi
push 0x1001500
push 4
call fcn.0100a40e
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, dword [ebp + 0xc]
pop esi
pop ebx
pop ebp
ret 8