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

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call edi
cmp word [eax], 0x22
jne 0x4042c8
add eax, 2
push 0x22
push eax
call dword [0x40601c]
pop ecx
pop ecx
test eax, eax
je 0x4042a7
cmp word [eax + 2], 0
je 0x4042a7
add eax, 4
jmp 0x4042e1
push 0x4010e8
or eax, 0xffffffff
mov esi, 0x406030
call fcn.0040508d
call edi
push eax
or eax, 0xffffffff
call fcn.0040508d
xor eax, eax
jmp 0x4042e1
push 0x20
push eax
call dword [0x40601c]
pop ecx
pop ecx
test eax, eax
jne 0x4042de
push 0x4010fc
jmp 0x4042ac
add eax, 2
pop edi
pop esi
ret

Function at 0x404385
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
xor edx, edx
add eax, ecx
mov dword [ebp - 8], edx
cmp dword [eax + 0x7c], edx
je 0x4043fd
push ebx
push esi
mov esi, dword [eax + 0x78]
add esi, ecx
mov ebx, dword [esi + 0x1c]
push edi
mov edi, dword [esi + 0x20]
add ebx, ecx
add edi, ecx
mov dword [ebp - 4], edx
cmp dword [esi + 0x14], edx
jbe 0x4043fa
jmp 0x4043bb
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov eax, dword [edi + eax*4]
add eax, ecx
push 0x401470
push eax
call dword [0x406018]
pop ecx
pop ecx
test eax, eax
je 0x4043e2
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x14]
jb 0x4043b8
jmp 0x4043fa
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp - 4]
lea ecx, [eax + ecx*2]
mov eax, dword [ebp + 8]
movzx ecx, word [ecx + eax]
mov ebx, dword [ebx + ecx*4]
add ebx, eax
mov dword [ebp - 8], ebx
pop edi
pop esi
pop ebx
call fcn.00404358
sub eax, dword [0x40602c]
mov ecx, 0x7fff
cmp ecx, eax
sbb eax, eax
not eax
and eax, dword [ebp - 8]
leave
ret
Function at 0x401fd5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x428040]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, dword [0x48a6b8]
xor ecx, ecx
push edi
mov dword [esp + 0xc], ecx
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x40204a
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.0040299f
lea ecx, [esp + 0x14]
call fcn.00401e05
cmp eax, 0x8aafdc01
je 0x402061
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402a2c
mov eax, dword [esp + 0xc]
inc eax
mov dword [esp + 0xc], eax
cmp eax, dword [esp + 0x10]
jb 0x402011
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406c76
mov esp, ebp
pop ebp
ret
mov edx, str.QwruxAA
call fcn.00402d6b
push eax
call fcn.00402fed
mov eax, dword [ebx + 0x24]
pop ecx
mov ecx, dword [esp + 0xc]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402a2c
jmp 0x40204c
Function at 0x413596
Capabilities:
Read file on windows

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

Function at 0x4135a1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004133c7

Function at 0x41399b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407a30
mov eax, dword [0x428040]
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.0041242d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4139dd
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x413b39
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041d0c0
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 + 0x48a380]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00414b6b
mov ecx, dword [esi*4 + 0x48a380]
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 0x413b32
cmp eax, dword [edi + ecx + 0x24]
jne 0x413b32
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 0x413b32
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00414b6b
add esp, 0x14
test edx, edx
jl 0x413b32
jg 0x413aa8
test eax, eax
jb 0x413b32
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x413b32
jl 0x413ac2
cmp dword [ebp - 0x1008], eax
ja 0x413b32
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x413ae0
test ebx, ebx
je 0x413b19
cmp ecx, edi
jae 0x413b19
mov al, byte [ecx]
cmp al, 0xd
jne 0x413afa
lea eax, [edi - 1]
cmp ecx, eax
jae 0x413b06
cmp byte [ecx + 1], 0xa
jne 0x413b06
inc ecx
jmp 0x413b06
movzx eax, al
movsx eax, byte [eax + 0x4282f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x413ae0
cmp edx, ebx
jne 0x413ae0
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x413b37
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406c76
leave
ret
Function at 0x414009
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 + 0x48a380]
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 0x414049
cmp byte [ebx], 0xa
jne 0x414049
or byte [eax + edi + 0x28], 4
jmp 0x41404e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41414c
mov al, byte [edx]
cmp al, 0x1a
je 0x41412e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41407d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4140a2
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4140ac
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 0x41405f
jmp 0x41414c
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 0x414129
cmp dword [ebp - 0xc], 0
je 0x414129
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x48a380]
test byte [eax + edi + 0x28], 0x48
je 0x414103
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4140ee
mov byte [esi], dl
jmp 0x4140ff
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x48a380]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41414c
cmp byte [ebp - 1], 0xa
jne 0x414112
cmp esi, ebx
jne 0x414112
mov byte [esi], 0xa
jmp 0x41414b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00414b89
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41414c
mov byte [esi], 0xd
jmp 0x41414b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x48a380]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x414148
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41414c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x414155
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 + 0x48a380]
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 0x414198
cmp word [esi], dx
jne 0x414198
or byte [edi + eax + 0x28], 4
jmp 0x41419d
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 0x4142f0
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 0x4142d0
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4141df
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x414215
cmp eax, edx
jae 0x414221
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 0x4141b7
jmp 0x4142f0
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 0x4142cc
cmp dword [ebp - 0x14], 0
je 0x4142cc
mov eax, dword [ebx*4 + 0x48a380]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4142a4
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41426d
mov word [esi], cx
jmp 0x4142a0
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x48a380]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x48a380]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x48a380]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4142f0
pop ebx
cmp word [ebp - 4], bx
jne 0x4142b5
cmp esi, dword [ebp + 0xc]
jne 0x4142b5
mov word [esi], bx
jmp 0x4142ed
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00414b89
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4142f0
push 0xd
jmp 0x4142e9
mov ecx, dword [ebx*4 + 0x48a380]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4142e7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4142f0
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 0x433002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x40de38
nop
mov ecx, 0x26407121
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x4122f74
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401497
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x42a5d0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40152c
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x4014e9
cmp dword [ebp + 0x10], ebx
jne 0x401520
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call fcn.00401497
test eax, eax
jne 0x4014fb
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014d0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405bbc
cmp eax, ebx
je 0x401533
push ebx
push dword [0x42a5d0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x40152c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42a5d0], ebx
jne 0x401529
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x401529
jmp 0x40152c
Function at 0x402f13
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402f33
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402f42
mov ebx, 0x410908
mov eax, dword [ebp + 8]
test eax, eax
js 0x402f57
mov ecx, dword [0x42a538]
add ecx, eax
push ecx
call fcn.00402ef9
push 4
lea eax, [ebp + 0x14]
push eax
call fcn.00402ec7
test eax, eax
jne 0x402f6e
push 0xfffffffffffffffd
pop eax
jmp 0x4030cd
test dword [ebp + 0x14], 0x80000000
je 0x4030ac
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x420910
mov dword [ebp - 0xc], eax
call fcn.00406bd2
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x4030ca
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402fae
mov esi, dword [ebp + 0x14]
push esi
mov edi, 0x40c908
push edi
call fcn.00402ec7
test eax, eax
je 0x402f66
sub dword [ebp + 0x14], esi
mov dword [0x420928], edi
mov dword [0x42092c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x420910
mov dword [0x420930], ebx
mov dword [0x420934], eax
call fcn.00406bf2
mov dword [ebp - 0x10], eax
test eax, eax
js 0x40309e
mov esi, dword [0x420930]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x42a5d4], 1
mov edi, eax
je 0x403052
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x403019
cmp dword [ebp + 0x14], 0
jne 0x403052
push dword [ebp + 8]
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x94]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
push 0
call fcn.00404a74
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x403093
cmp dword [ebp + 0x10], eax
jne 0x40307b
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4030a5
cmp dword [ebp - 0x14], esi
jne 0x4030a5
add dword [ebp - 4], esi
jmp 0x403087
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x420930]
cmp dword [ebp - 0x10], 1
jne 0x402fcd
jmp 0x4030ca
cmp dword [ebp + 0x14], eax
jg 0x402fa1
jmp 0x4030ca
push 0xfffffffffffffffc
jmp 0x402f68
push 0xfffffffffffffffe
jmp 0x402f68
test edi, edi
je 0x403113
cmp dword [ebp + 0x14], esi
jge 0x4030b8
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00402ec7
test eax, eax
je 0x402f66
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x4030df
mov esi, dword [ebp + 0x14]
push esi
mov edi, 0x40c908
push edi
call fcn.00402ec7
test eax, eax
je 0x402f66
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4030a5
cmp esi, dword [ebp + 0x10]
jne 0x4030a5
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x4030d4
jmp 0x4030ca
Function at 0x4056ed
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x4251e8
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x4251e8], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405728
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4058de
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4058fb
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 4

Function at 0x4058fe
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [eax + 1]
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x40592d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x4088cc]
mov dword [ebp - 8], eax
mov eax, dword [0x4088d0]
dec edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x40597d
test edi, edi
jne 0x40593a
mov word [esi], ax
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405977

Function at 0x405981
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
mov word [esi], ax
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4059fa
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x800
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4059e3
cmp dword [ebp + 0x14], 1
je 0x4059e8
cmp dword [ebp + 0x14], 2
je 0x4059e8
xor eax, eax
mov word [esi], ax
push dword [ebp + 0x18]
xor eax, eax
mov word [esi + 0x7fe], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret 0x14
Function at 0x4060cf
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425230
push esi
call fcn.00405ab7
push esi
call fcn.00405807
mov edi, eax
test edi, edi
jne 0x4060f0
xor eax, eax
jmp 0x40614d
push edi
call fcn.00405ae6
test byte [0x42a548], 0x80
je 0x40610c
movzx eax, word [edi]
test ax, ax
je 0x4060ec
cmp eax, 0x5c
je 0x4060ec
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x40612e
push esi
call fcn.00405b95
test eax, eax
je 0x406128
test byte [eax], 0x10
je 0x406152
push esi
call fcn.004060a2
push esi
call ebx
cmp eax, edi
jg 0x406119
push esi
call fcn.00406073
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x40614c
Function at 0x4063e7
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x4089b4
mov ebx, 0x425a30
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
mov esi, 0x400
cmp edi, ebp
je 0x406435
push 1
push ebp
push edi
call fcn.004058fe
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x4065b0
cmp eax, esi
jg 0x4065b0
push esi
mov edi, 0x427880
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x4065b0
cmp eax, esi
jg 0x4065b0
push ebp
push ebp
push esi
push 0x426230
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
call ebx
test eax, eax
je 0x4065b0
push ebp
push ebp
push esi
mov esi, 0x426880
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call ebx
test eax, eax
je 0x4065b0
push esi
push 0x426230
push str._s_s_r_n
push 0x426c80
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x42a4ec]
push dword [eax + 0x128]
push edi
call fcn.00406156
push 4
push 0xc0000000
push edi
call fcn.004058fe
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x4065b0
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebp
je 0x4065a6
push ebp
lea eax, [esp + 0x14]
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4065a6
cmp edi, dword [esp + 0x10]
jne 0x4065a6
push str._Rename__r_n
push esi
call fcn.00405864
cmp eax, ebp
jne 0x406539
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40656e
push 0x4089a8
add eax, 0xa
push eax
call fcn.00405864
mov ebp, eax
test ebp, ebp
je 0x40656c
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
cmp ecx, ebp
jbe 0x406563
sub eax, ecx
mov dl, byte [ecx]
mov byte [eax + ecx], dl
dec ecx
cmp ecx, ebp
ja 0x406559
sub ebp, esi
lea eax, [ebp + 1]
xor ebp, ebp
jmp 0x406570
xor ebp, ebp
mov eax, edi
push ebx
push 0x426c80
add eax, esi
push eax
call fcn.004058ba
push ebp
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
lea eax, [esp + 0x14]
push eax
add edi, ebx
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret