joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100aa600
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x10102008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
sub esp, 0x18
mov ecx, esp
push 0x10104050
call fcn.100b3780
lea ecx, [ebp - 0x50]
call fcn.10084cd0
add esp, 0x18
lea ecx, [ebp - 0x38]
mov esi, eax
call fcn.10086fe0
push esi
push eax
push dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
call fcn.100b6330
mov edx, dword [ebp - 0x24]
cmp edx, 0x10
jb 0x100aa676
mov ecx, dword [ebp - 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100aa66c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100aa77c
push edx
push ecx
call fcn.100bfa23
add esp, 8
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
cmp edx, 0x10
jb 0x100aa6bc
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100aa6b2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100aa77c
push edx
push ecx
call fcn.100bfa23
add esp, 8
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100aa6fb
test al, 0x10
je 0x100aa6fb
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.100b3780
sub esp, 0x18
lea eax, [ebp - 0x1c]
mov ecx, esp
push eax
call fcn.100b3780
call fcn.100a9640
add esp, 0x30
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x100aa72b
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100aa721
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100aa781
push edx
push ecx
call fcn.100bfa23
add esp, 8
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
cmp edx, 0x10
jb 0x100aa76d
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100aa763
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100aa781
push edx
push ecx
call fcn.100bfa23
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100bf4c9
mov esp, ebp
pop ebp
ret
call fcn.100cc12d
call fcn.100cc12d
int3
Function at 0x100b4f80
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x100b4fb1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x100b4fa0
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x100d6292
Capabilities:
Set environment variable

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

Function at 0x100de53f
Capabilities:
Read file on windows

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

Function at 0x41f1a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
or ebp, 0xffffffff
jmp 0x41f1c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41f1c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41f1b8
mov eax, 1
add ebx, ebx
jne 0x41f1db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41f1d0
jne 0x41f1ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41f1d0
xor ecx, ecx
sub eax, 3
jb 0x41f200
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41f272
mov ebp, eax
add ebx, ebx
jne 0x41f20b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41f218
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41f23c
inc ecx
add ebx, ebx
jne 0x41f228
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41f21d
jne 0x41f239
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41f21d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41f25c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41f24d
jmp 0x41f1be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41f25c
add edi, ecx
jmp 0x41f1be
pop esi
mov edi, esi
mov ecx, 0x202
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41f27a
cmp byte [edi], 6
jne 0x41f27a
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 eax, ebx
loop 0x41f27f
lea edi, [esi + 0x1d000]
mov eax, dword [edi]
or eax, eax
je 0x41f2f7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1ffc4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x20000]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41f2ac
mov ecx, edi
jns 0x41f2db
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 + 0x20004]
or eax, eax
je 0x41f2f1
mov dword [ebx], eax
add ebx, 4
jmp 0x41f2c9
call dword [esi + 0x20008]
popal
jmp 0x40290c
Function at 0x419610
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 8]
test eax, eax
jne 0x41967f
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, eax
push 0x4ce074
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
lea eax, [esp + 0xc]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test esi, esi
mov ebx, eax
mov dword [edi], esi
je 0x419655
push 0x4ce064
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 8], eax
pop esi
test ebx, ebx
pop ebx
je 0x41967f
mov ecx, dword [0x4d1af4]
push 0x4d17e0
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov edx, dword [0x4d1af4]
push edx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
mov dword [0x4d0fc8], eax
pop edi
pop ecx
ret

Function at 0x4c6fe1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4ce3a8
cmp edx, dword [eax]
je 0x4c7003
add eax, 8
inc ecx
cmp eax, 0x4ce438
jl 0x4c6ff4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4ce3a8]
jne 0x4c7131
mov eax, dword [0x4d3dd8]
cmp eax, 1
je 0x4c710b
test eax, eax
jne 0x4c7034
cmp dword [0x4ce2d4], 1
je 0x4c710b
cmp edx, 0xfc
je 0x4c7131
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c706b
lea eax, [ebp - 0x1a4]
push 0x4cc6c8
push eax
call fcn.004c79c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c7e50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c70ae
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c7e50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4cc6c4
push edi
call fcn.004c9d20
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4cc6a8
push eax
call fcn.004c79c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c79d0
lea eax, [ebp - 0xa0]
push 0x4cc6a4
push eax
call fcn.004c79d0
push dword [esi + 0x4ce3ac]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c79d0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4cc67c
push eax
call fcn.004c9c94
add esp, 0x2c
pop edi
jmp 0x4c7131
lea eax, [ebp + 8]
lea esi, [esi + 0x4ce3ac]
push 0
push eax
push dword [esi]
call fcn.004c7e50
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x415970
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4159c9
test eax, edx
je 0x4159cc
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x415987
movzx eax, word [eax]
sub eax, ecx
jmp 0x4159ae
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4159af
add ecx, 4
js 0x41599f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4159ac
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4159ae
xor eax, eax
ret
test eax, eax
je 0x4159d8
test edx, edx
jne 0x415978
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41e580
Capabilities:
Hash data with md5

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x58
call fcn.00404ab8
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
pop ebx
ret
Function at 0x4211a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov dword [esp], edx
mov ebx, eax
xor eax, eax
mov dword [esp + 4], eax
test ebx, ebx
je 0x421244
mov eax, ebx
mov edx, dword [eax + 0x3c]
add edx, eax
mov eax, edx
mov esi, eax
mov edx, dword [esi + 0x78]
mov eax, ebx
call fcn.00420e70
mov esi, eax
mov ebp, dword [esi + 0x18]
dec ebp
test ebp, ebp
jb 0x421244
inc ebp
xor edi, edi
mov edx, dword [esi + 0x20]
mov eax, ebx
call fcn.00420e70
mov eax, dword [eax + edi*4]
mov dword [esp + 8], eax
mov edx, dword [esp + 8]
mov eax, ebx
call fcn.00420e70
mov dword [esp + 0xc], eax
mov eax, dword [esp]
push eax
mov eax, dword [esp + 0x10]
push eax
call fcn.0040ca24
test eax, eax
jne 0x421240
mov edx, dword [esi + 0x24]
mov eax, ebx
call fcn.00420e70
movzx eax, word [eax + edi*2]
mov word [esp + 0x10], ax
mov edx, dword [esi + 0x1c]
mov eax, ebx
call fcn.00420e70
movzx edx, word [esp + 0x10]
mov eax, dword [eax + edx*4]
mov edx, eax
mov eax, ebx
call fcn.00420e70
mov dword [esp + 4], eax
inc edi
dec ebp
jne 0x4211dc
mov eax, dword [esp + 4]
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4014a3
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea eax, [ebp - 0x228]
sub esp, 0x23c
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
and edi, 0x300
mov dword [esp], ebx
mov eax, edi
mov dword [esp + 4], esi
or eax, 8
mov dword [esp + 8], eax
call fcn.00408061
sub esp, 0x10
test eax, eax
jne 0x4015a5
mov eax, dword [ebp - 0x228]
lea edx, [ebp - 0x222]
mov dword [esp + 0xc], 0x105
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov dword [ebp - 0x22c], edx
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
mov edx, dword [ebp - 0x22c]
jne 0x40155b
test byte [ebp + 0x10], 1
mov eax, dword [ebp - 0x228]
je 0x401541
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
push ecx
jmp 0x4015a5
mov ecx, dword [ebp + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], ecx
call fcn.004014a3
sub esp, 0xc
test eax, eax
je 0x4014e8
mov eax, dword [ebp - 0x228]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov dword [esp], 3
call fcn.00408de1
test eax, eax
push edx
je 0x401596
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call eax
sub esp, 0x10
jmp 0x4015a5
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push edx
push edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x403c0b
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x429880]
cmp dword [ebp + 8], 0
je 0x403c36
test eax, eax
je 0x403c2a
mov dword [esp], eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push ecx
mov dword [0x429880], 0
jmp 0x403ca0
test eax, eax
je 0x403c49
mov dword [esp], 0
call fcn.00408e53
push edx
jmp 0x403ca0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x43bac0]
jbe 0x403ca0
mov eax, dword [0x43baec]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x403b50
mov dword [esp + 8], 0
mov dword [esp + 4], 0x6f
mov dword [esp], eax
call dword [sym.imp.USER32.dll_CreateDialogParamW]
sub esp, 0x14
mov dword [0x429880], eax
mov dword [esp + 4], 5
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push eax
push eax
leave
ret
Function at 0x407938
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea eax, [ebp - 0x38]
lea edi, [ebp - 0x2c]
sub esp, 0x3c
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2c], 0x40001
mov dword [ebp - 0x28], 0x40c8d0
mov dword [ebp - 0x24], 0x40c8d0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x40c8c0
mov dword [ebp - 0x38], 0xc
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
push edx
push edx
je 0x407995
xor eax, eax
jmp 0x4079c2
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
jne 0x4079c2
mov dword [esp + 8], edi
mov dword [esp + 4], 0x80000007
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
sub esp, 0xc
test eax, eax
jne 0x407991
call ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4

Function at 0x4079fa
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [0x43a3c0], 0x44
lea eax, [ebp - 0x18]
mov dword [esp + 0x20], 0x43a3c0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x4000000
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
xor edx, edx
sub esp, 0x28
test eax, eax
je 0x407a76
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
push eax
mov eax, edx
leave
ret 4

Function at 0x407a7c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x3c
mov dword [eax + 0x24], 0
pop ebp
jmp dword [sym.imp.SHELL32.dll_ShellExecuteExW]

Function at 0x407d01
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
inc eax
push edx
je 0x407d2f
mov eax, ebx
mov dword [esp], esi
and eax, 0xfffffffe
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
push eax
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 4

Function at 0x407d3a
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call fcn.00407d01
cmp eax, 0xffffffff
push ecx
je 0x407d8f
test byte [ebp + 0xc], 1
mov esi, eax
mov dword [esp], ebx
je 0x407d87
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
push edx
jne 0x407d80
test byte [ebp + 0xc], 4
jne 0x407d8f
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
push eax
jmp 0x407d8f
mov eax, 1
jmp 0x407d91
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x407d64
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 8
Function at 0x407d9a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
push edx
jne 0x407db5
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
sub esp, 0x1c
mov ebx, dword [ebp - 4]
leave
ret 0xc

Function at 0x407df2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov esi, 0x65
sub esp, 0x20
mov ebx, dword [ebp + 8]
dec esi
je 0x407e51
mov edx, dword [0x40c6a4]
mov eax, dword [0x40c6a0]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x1a
xor edx, edx
mov dword [esp + 0xc], ebx
div ecx
lea eax, [ebp - 0x10]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
add word [ebp - 0xc], dx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
sub esp, 0x10
test eax, eax
je 0x407e02
jmp 0x407e58
mov word [ebx], 0
xor ebx, ebx
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 8

Function at 0x407e63
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0xc]
sub esp, 0x34
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor edx, edx
sub esp, 0x14
test eax, eax
je 0x407ea4
xor edx, edx
cmp dword [ebp - 0xc], ebx
sete dl
mov eax, edx
mov ebx, dword [ebp - 4]
leave
ret 0xc

Function at 0x407ead
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0xc]
sub esp, 0x34
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor edx, edx
sub esp, 0x14
test eax, eax
je 0x407eee
xor edx, edx
cmp dword [ebp - 0xc], ebx
sete dl
mov eax, edx
mov ebx, dword [ebp - 4]
leave
ret 0xc
Function at 0x408125
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea edx, [ebp - 0x14]
sub esp, 0x30
cmp dword [ebp + 0x18], 1
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0xc], edx
mov dword [ebp - 0x10], 0x800
sbb eax, eax
not eax
and eax, 0x100
or eax, 0x20019
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00408061
sub esp, 0x10
test eax, eax
je 0x408174
mov word [ebx], 0
jmp 0x4081c9
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], ebx
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 0x14]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
push eax
mov word [ebx + 0x7fe], 0
jne 0x40816d
mov eax, dword [ebp - 0xc]
dec eax
cmp eax, 1
ja 0x40816d
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0x14
Function at 0x408745
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 0xc]
mov dword [0x438bc0], 0x55004e
mov dword [0x438bc4], 0x4c
mov esi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test ebx, ebx
jne 0x40879e
mov eax, dword [ebp + 8]
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x4383c0
mov dword [esp], eax
call esi
sub esp, 0xc
test eax, eax
je 0x408993
cmp eax, 0x400
jle 0x4087ef
jmp 0x408993
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.00407d9a
sub esp, 0xc
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x438bc0
mov dword [esp], ebx
call esi
sub esp, 0xc
test eax, eax
je 0x408993
cmp eax, 0x400
jle 0x40876f
jmp 0x408993
mov dword [esp + 0xc], 0x4383c0
mov dword [esp + 8], 0x438bc0
mov dword [esp + 4], str._ls_ls_r_n
mov dword [esp], 0x437fc0
call dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x43ba60]
mov eax, dword [eax + 0x128]
mov dword [esp], 0x4383c0
mov dword [esp + 4], eax
call fcn.00408411
push esi
push esi
mov dword [esp + 8], 4
mov dword [esp + 4], 0xc0000000
mov dword [esp], 0x4383c0
call fcn.00407d9a
sub esp, 0xc
cmp eax, 0xffffffff
mov edi, eax
je 0x408993
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov eax, dword [ebp - 0x1c]
push ecx
push ecx
add eax, esi
mov dword [esp], 0x40
mov dword [ebp - 0x24], eax
add eax, 0xa
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
push ebx
push ebx
mov ebx, eax
je 0x408989
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00407e63
sub esp, 0xc
test eax, eax
je 0x408989
mov dword [esp + 4], str._Rename__r_n
mov dword [esp], ebx
call fcn.00407c77
test eax, eax
push edx
lea ecx, [ebx + esi]
push edx
jne 0x4088e9
add esi, 0xa
mov dword [esp + 4], str._Rename__r_n
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, esi
push eax
push eax
jmp 0x408929
add eax, 0xa
mov dword [esp + 4], 0x40c6d3
mov dword [ebp - 0x28], ecx
mov dword [esp], eax
call fcn.00407c77
test eax, eax
push ecx
mov dword [ebp - 0x20], eax
push ecx
mov edx, esi
je 0x408929
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
add edx, ebx
cmp dword [ebp - 0x20], ecx
jae 0x408921
dec ecx
mov al, byte [ecx + 1]
dec edx
mov byte [edx + 1], al
jmp 0x408912
mov eax, dword [ebp - 0x20]
sub eax, ebx
lea edx, [eax + 1]
mov eax, dword [ebp - 0x1c]
add edx, ebx
mov dword [esp + 4], 0x437fc0
mov dword [esp], edx
mov dword [esp + 8], eax
call fcn.00407ce2
add esi, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.00407ead
sub esp, 0xc
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x408a18
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov eax, dword [ebp + 8]
mov dword [esp], 0x4393c0
mov dword [esp + 4], eax
call fcn.004082ae
push ebx
push ebx
mov dword [esp], 0x4393c0
call fcn.00407be3
test eax, eax
push edx
jne 0x408a49
xor eax, eax
jmp 0x408ac5
mov dword [esp], eax
mov ebx, eax
call fcn.00408332
test byte [0x43bac4], 0x80
push ecx
je 0x408a6b
mov ax, word [ebx]
test ax, ax
je 0x408a45
cmp ax, 0x5c
je 0x408a45
sub ebx, 0x4393c0
sar ebx, 1
mov dword [esp], 0x4393c0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ecx
cmp ebx, eax
mov dword [esp], 0x4393c0
jge 0x408aaa
call fcn.004089e0
test eax, eax
push edx
je 0x408a9b
test byte [eax], 0x10
je 0x408a45
mov dword [esp], 0x4393c0
call fcn.00407b6a
push eax
jmp 0x408a73
call fcn.004082ea
push eax
mov dword [esp], 0x4393c0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
inc eax
push edx
setne al
movzx eax, al
mov ebx, dword [ebp - 4]
leave
ret 4