joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419780
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4532e3
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x46b664]
xor eax, esp
mov dword [esp + 0x74], eax
push ebx
push edi
mov eax, dword [0x46b664]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov ecx, esi
call fcn.00416f40
test al, al
je 0x4198a9
cmp dword [esi + 0x14], 8
jb 0x4197d2
mov eax, dword [esi]
jmp 0x4197d4
mov eax, esi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call ebx
test eax, eax
jne 0x419879
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 2
je 0x419879
mov eax, str.WinAPI::deleteFile_
lea ecx, [esp + 0x64]
call fcn.0040ec90
xor ebx, ebx
mov dword [esp + 0x90], ebx
lea ecx, [esp + 0x2c]
push esi
push ecx
mov ecx, eax
call fcn.004185e0
mov byte [esp + 0x98], 1
push eax
lea edx, [esp + 0x54]
push edx
mov edx, 0x45d364
call fcn.00418660
add esp, 0x10
mov byte [esp + 0x90], 2
xor ecx, ecx
push ebx
mov word [esp + 0x14], cx
push eax
or eax, 0xffffffff
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
call fcn.00401a90
mov byte [esp + 0x90], 2
push 0x462084
lea edx, [esp + 0x10]
push edx
call fcn.00436362
mov ecx, esi
call fcn.00416f40
test al, al
je 0x4198a9
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
lea ebx, [ebx]
push 5
call edi
mov eax, esi
call fcn.00401500
push eax
call ebx
mov ecx, esi
call fcn.00416f40
test al, al
jne 0x419890
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.00431de5
mov esp, ebp
pop ebp
ret

Function at 0x4198d0
Capabilities:
Check if file exists
Delete directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x453288
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x46b664]
xor eax, esp
mov dword [esp + 0x78], eax
push edi
mov eax, dword [0x46b664]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov ecx, esi
call fcn.00416f40
test al, al
je 0x4199a7
cmp dword [esi + 0x14], 8
jb 0x419924
mov eax, dword [esi]
jmp 0x419926
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4199a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 2
je 0x4199a7
cmp edi, 3
je 0x4199a7
mov eax, str.WinAPI::removeDirectory_
lea ecx, [esp + 0x64]
call fcn.0040ec90
mov dword [esp + 0x90], 0
lea ecx, [esp + 0x2c]
push esi
push ecx
mov ecx, eax
call fcn.004185e0
mov byte [esp + 0x98], 1
push eax
lea edx, [esp + 0x54]
push edx
mov edx, 0x45d364
call fcn.00418660
add esp, 0x10
mov byte [esp + 0x90], 2
push eax
push edi
lea eax, [esp + 0x14]
push eax
call fcn.00418c20
push 0x462084
lea ecx, [esp + 0x10]
push ecx
call fcn.00436362
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00431de5
mov esp, ebp
pop ebp
ret
Function at 0x4199d0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453239
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x46b664]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, 8
cmp dword [edi + 0x14], eax
jb 0x419a0e
mov ecx, dword [edi]
jmp 0x419a10
mov ecx, edi
cmp dword [ebx + 0x14], eax
jb 0x419a19
mov eax, dword [ebx]
jmp 0x419a1b
mov eax, ebx
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x419ae1
mov dword [ebp - 0x40], eax
mov word [ebp - 0x50], ax
push 0x11
mov eax, str.WinAPI::copyFile_
lea esi, [ebp - 0x50]
mov dword [ebp - 0x3c], 7
call fcn.0040eba0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xc0]
push ebx
push ecx
mov ecx, esi
call fcn.004185e0
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x6c]
push edx
mov edx, 0x45d378
call fcn.00418660
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa4]
push edi
push ecx
mov ecx, eax
call fcn.004185e0
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x88]
push edx
mov edx, 0x45d364
call fcn.00418660
add esp, 0x20
mov esi, eax
mov bl, 4
mov byte [ebp - 4], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
xor eax, eax
push eax
mov word [ebp - 0x30], ax
push esi
or eax, 0xffffffff
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
call fcn.00401a90
mov byte [ebp - 4], bl
push 0x462084
lea ecx, [ebp - 0x34]
push ecx
call fcn.00436362
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00431de5
mov esp, ebp
pop ebp
ret
Function at 0x419b00
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4531c9
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x46b664]
xor eax, esp
mov dword [esp + 0xac], eax
push ebx
push esi
mov eax, dword [0x46b664]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, 8
cmp dword [edi + 0x14], eax
jb 0x419b50
mov ecx, dword [edi]
jmp 0x419b52
mov ecx, edi
cmp dword [ebx + 0x14], eax
jb 0x419b5b
mov eax, dword [ebx]
jmp 0x419b5d
mov eax, ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x419c47
mov dword [esp + 0x3c], eax
mov word [esp + 0x2c], ax
push 0x11
mov eax, str.WinAPI::moveFile_
lea esi, [esp + 0x30]
mov dword [esp + 0x44], 7
call fcn.0040eba0
mov dword [esp + 0xc8], 0
lea ecx, [esp + 0x9c]
push ebx
push ecx
mov ecx, esi
call fcn.004185e0
mov byte [esp + 0xd0], 1
push eax
lea edx, [esp + 0x54]
push edx
mov edx, 0x45d378
call fcn.00418660
mov byte [esp + 0xd8], 2
lea ecx, [esp + 0x90]
push edi
push ecx
mov ecx, eax
call fcn.004185e0
mov byte [esp + 0xe0], 3
push eax
lea edx, [esp + 0x80]
push edx
mov edx, 0x45d364
call fcn.00418660
add esp, 0x20
mov esi, eax
mov bl, 4
mov byte [esp + 0xc8], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], eax
xor eax, eax
push eax
mov word [esp + 0x14], ax
push esi
or eax, 0xffffffff
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
call fcn.00401a90
mov byte [esp + 0xc8], bl
push 0x462084
lea ecx, [esp + 0x10]
push ecx
call fcn.00436362
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0xac]
xor ecx, esp
call fcn.00431de5
mov esp, ebp
pop ebp
ret

Function at 0x41a0b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452400
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x46b664]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
lea edx, [ebp - 0x54]
push edx
push esi
push ecx
push eax
mov dword [ebp - 0x54], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
je 0x41a0fc
cmp dword [ebp - 0x54], esi
je 0x41a159
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor eax, eax
mov word [ebp - 0x50], ax
push 0x1b
mov eax, str.WinAPI::writeFile___failed.
lea esi, [ebp - 0x50]
mov dword [ebp - 0x3c], 7
mov dword [ebp - 0x40], ebx
call fcn.0040eba0
mov dword [ebp - 4], ebx
xor ecx, ecx
push ebx
mov edx, esi
mov word [ebp - 0x30], cx
push edx
or eax, 0xffffffff
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
call fcn.00401a90
mov byte [ebp - 4], bl
push 0x462084
lea eax, [ebp - 0x34]
push eax
call fcn.00436362
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00431de5
mov esp, ebp
pop ebp
ret
Function at 0x41a210
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4530f3
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x46b664]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, 8
cmp dword [edi + 0x14], esi
jb 0x41a247
mov eax, dword [edi]
jmp 0x41a249
mov eax, edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41a322
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x88], eax
cmp eax, 0xb7
jne 0x41a293
cmp dword [edi + 0x14], esi
jb 0x41a276
mov eax, dword [edi]
jmp 0x41a278
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41a293
and al, 0x10
cmp al, 0x10
sete al
test al, al
jne 0x41a322
xor eax, eax
mov word [ebp - 0x4c], ax
push 0x18
mov eax, str.WinAPI::createDirectory_
lea esi, [ebp - 0x4c]
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], 0
call fcn.0040eba0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x68]
push edi
push ecx
mov ecx, esi
call fcn.004185e0
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x84]
push edx
mov edx, 0x45d364
call fcn.00418660
add esp, 0x10
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x88]
xor edx, edx
push edx
mov dword [ebp - 0x30], ecx
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
call fcn.00401a90
mov byte [ebp - 4], 2
push 0x462084
lea eax, [ebp - 0x30]
push eax
call fcn.00436362
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00431de5
mov esp, ebp
pop ebp
ret
Function at 0x41a340
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45424d
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x46b664]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
xor ecx, ecx
xor esi, esi
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], cx
mov dword [ebp - 4], ebx
cmp dword [eax + 0x10], ebx
je 0x41a412
push eax
lea edi, [ebp - 0xbc]
call fcn.004192a0
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0xac], ebx
je 0x41a403
push 0x45d1e4
mov edx, edi
push edx
lea eax, [ebp - 0x4c]
push eax
call fcn.004187a0
add esp, 0xc
mov byte [ebp - 4], 2
mov edi, eax
lea esi, [ebp - 0x30]
call fcn.0040b5a0
mov byte [ebp - 4], 1
mov esi, 8
cmp dword [ebp - 0x38], esi
jb 0x41a3e8
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00431dda
add esp, 4
xor edx, edx
cmp dword [ebp - 0x1c], esi
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x4c], dx
jae 0x41a403
lea esi, [ebp - 0x30]
mov byte [ebp - 4], bl
lea eax, [ebp - 0xbc]
push eax
call fcn.00416d50
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 8
jb 0x41a434
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00431dda
add esp, 4
xor edx, edx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], dx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00431de5
mov esp, ebp
pop ebp
ret
Function at 0x41a470
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4530a2
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x46b664]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
xor eax, eax
mov dword [ebp - 0x48], eax
push 0x105
lea esi, [ebp - 0x44]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
call fcn.0041ba10
mov dword [ebp - 4], 1
mov edi, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x44]
mov esi, edi
sub esi, ebx
sar esi, 1
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, esi
jbe 0x41a599
nop
lea ecx, [eax + 0xa]
mov dword [ebp - 0x50], ecx
cmp esi, ecx
jbe 0x41a506
lea esi, [ebx + ecx*2]
cmp esi, edi
je 0x41a583
push 0
push edi
push esi
call fcn.00432040
add esp, 0xc
mov dword [ebp - 0x40], esi
jmp 0x41a580
jae 0x41a583
mov eax, ecx
sub eax, esi
mov edx, 0x7fffffff
sub edx, eax
cmp edx, esi
jb 0x41a5d9
add esi, eax
mov eax, dword [ebp - 0x3c]
sub eax, ebx
sar eax, 1
cmp esi, eax
jbe 0x41a554
mov ecx, eax
shr ecx, 1
mov edx, 0x7fffffff
sub edx, ecx
cmp edx, eax
jae 0x41a53b
xor eax, eax
jmp 0x41a53d
add eax, ecx
cmp eax, esi
cmovb eax, esi
push eax
lea ecx, [ebp - 0x44]
call fcn.0041bb00
mov ebx, dword [ebp - 0x44]
mov edi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x50]
mov eax, edi
sub eax, ebx
sar eax, 1
mov edx, ecx
sub edx, eax
je 0x41a57a
xor eax, eax
movzx esi, ax
mov eax, esi
shl esi, 0x10
or eax, esi
mov ecx, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x40]
lea ecx, [edi + edx*2]
mov dword [ebp - 0x40], ecx
mov edi, dword [ebp - 0x40]
mov esi, edi
sub esi, ebx
sar esi, 1
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, esi
ja 0x41a4e0
xor edi, edi
cmp eax, edi
jne 0x41a5e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
xor edx, edx
push 0x25
mov eax, str.WinAPI::getWindowsDirectory___failed.
lea esi, [ebp - 0x30]
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], edi
mov word [ebp - 0x30], dx
call fcn.0040eba0
mov byte [ebp - 4], 1
push 0x462084
lea eax, [ebp - 0x34]
push eax
call fcn.00436362
push str.vector_T__too_long
call fcn.0042fac0
mov eax, ebx
cmp ebx, edi
jne 0x41a5ee
mov eax, 0x45c490
mov esi, dword [ebp - 0x4c]
xor ecx, ecx
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 7
mov word [esi], cx
mov ecx, eax
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41a605
sub ecx, edi
sar ecx, 1
push ecx
call fcn.0040eba0
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.00416bf0
mov byte [ebp - 4], 1
mov dword [ebp - 0x48], 1
mov byte [ebp - 4], 0
xor edi, edi
cmp ebx, edi
je 0x41a643
push ebx
call fcn.00431dda
add esp, 4
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00431de5
mov esp, ebp
pop ebp
ret
Function at 0x41a670
Capabilities:
Get common file path
Get program files directory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45304a
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x46b664]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
pxor xmm0, xmm0
xor ebx, ebx
mov dword [ebp - 0x44], ebx
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x6c], ebx
movq qword [ebp - 0x68], xmm0
movq qword [ebp - 0x60], xmm0
movq qword [ebp - 0x58], xmm0
movq qword [ebp - 0x50], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x105
lea esi, [ebp - 0x40]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
call fcn.0041ba10
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x40]
push 1
push 0x26
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, ebx
je 0x41a73c
cmp word [esi], bx
je 0x41a73c
push esi
push edi
call fcn.004156f0
mov dword [ebp - 0x44], 1
mov byte [ebp - 4], bl
push esi
call fcn.00431dda
add esp, 4
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00431de5
mov esp, ebp
pop ebp
ret
xor ecx, ecx
push 0x28
mov eax, str.WinAPI::shGetSpecialFolderPath___failed.
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x30], 2
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
call fcn.0040eba0
mov byte [ebp - 4], 1
push 0x462084
lea edx, [ebp - 0x30]
push edx
call fcn.00436362
int3
Function at 0x41b240
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452f10
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x46b664]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xa0], eax
push 0x80
lea esi, [ebp - 0x98]
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], eax
call fcn.0041ba10
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x94]
mov ebx, dword [ebp - 0x98]
sub esi, ebx
sar esi, 1
cmp dword [edi + 0x14], 8
jb 0x41b2c1
mov eax, dword [edi]
jmp 0x41b2c3
mov eax, edi
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, dword [ebp - 0x88]
xor edx, edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], dx
mov dword [ebp - 0xa0], 1
cmp eax, esi
jbe 0x41b324
push eax
lea esi, [ebp - 0x98]
call fcn.0041ba10
mov eax, dword [ebp - 0x94]
mov ebx, dword [ebp - 0x98]
sub eax, ebx
sar eax, 1
cmp dword [edi + 0x14], 8
jb 0x41b319
mov ecx, dword [edi]
jmp 0x41b31b
mov ecx, edi
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor esi, esi
cmp eax, esi
jne 0x41b3ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x9c], eax
cmp eax, 0xcb
je 0x41b3f0
xor eax, eax
mov dword [ebp - 0x3c], esi
mov word [ebp - 0x4c], ax
mov ebx, 7
push 0x1f
mov eax, str.WinAPI::getEnvironmentVariable_
lea esi, [ebp - 0x4c]
mov dword [ebp - 0x38], ebx
call fcn.0040eba0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x68]
push edi
push ecx
mov ecx, esi
call fcn.004185e0
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x84]
push edx
mov edx, 0x45d364
call fcn.00418660
add esp, 0x10
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x9c]
xor edx, edx
push edx
mov dword [ebp - 0x30], ecx
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
call fcn.00401a90
mov byte [ebp - 4], 4
push 0x462084
lea eax, [ebp - 0x30]
push eax
call fcn.00436362
jbe 0x41b3f0
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x41b3d1
mov esi, dword [ebp - 0x88]
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
call fcn.0040eba0
xor esi, esi
mov byte [ebp - 4], 0
cmp ebx, esi
je 0x41b401
push ebx
call fcn.00431dda
add esp, 4
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x94], esi
mov dword [ebp - 0x90], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00431de5
mov esp, ebp
pop ebp
ret
Function at 0x41c0f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4543f8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x46b664]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x46b664]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi]
lea eax, [esp + 0xc]
push eax
call fcn.0041b6c0
add esp, 4
mov dword [esp + 0x38], 0
push eax
push ecx
push str._Error_message:
push ecx
add esi, 4
push esi
push edi
call fcn.0040e870
add esp, 0xc
push eax
call fcn.0040de50
add esp, 0xc
push eax
call fcn.0040e870
add esp, 8
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x41c181
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00431dda
add esp, 4
xor edx, edx
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], dx
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00431de5
mov esp, ebp
pop ebp
ret
Function at 0x41c1c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4522e1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x46b664]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x18], eax
push 0x80
lea esi, [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
call fcn.0041ba10
mov dword [ebp - 4], 1
mov edi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebp + 0x18]
mov esi, edi
sub esi, ebx
sar esi, 1
call fcn.00401500
push eax
mov eax, dword [ebp + 0x14]
push esi
push ebx
call fcn.00401500
push eax
mov eax, dword [ebp + 0x10]
call fcn.00401500
push eax
mov eax, dword [ebp + 0xc]
call fcn.00401500
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esi - 1]
cmp eax, ecx
jb 0x41c330
lea ecx, [ecx]
lea ecx, [esi + esi]
mov dword [ebp - 0x14], ecx
cmp esi, ecx
jbe 0x41c276
lea esi, [ebx + ecx*2]
cmp esi, edi
je 0x41c2f3
push 0
push edi
push esi
call fcn.00432040
add esp, 0xc
mov dword [ebp - 0x24], esi
jmp 0x41c2f0
jae 0x41c2f3
mov eax, ecx
sub eax, esi
mov edx, 0x7fffffff
sub edx, eax
cmp edx, esi
jb 0x41c39c
add esi, eax
mov eax, dword [ebp - 0x20]
sub eax, ebx
sar eax, 1
cmp esi, eax
jbe 0x41c2c4
mov ecx, eax
shr ecx, 1
mov edx, 0x7fffffff
sub edx, ecx
cmp edx, eax
jae 0x41c2ab
xor eax, eax
jmp 0x41c2ad
add eax, ecx
cmp eax, esi
cmovb eax, esi
push eax
lea ecx, [ebp - 0x28]
call fcn.0041bb00
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
mov eax, edi
sub eax, ebx
sar eax, 1
mov edx, ecx
sub edx, eax
je 0x41c2ea
xor eax, eax
movzx esi, ax
mov eax, esi
shl esi, 0x10
or eax, esi
mov ecx, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x24]
lea ecx, [edi + edx*2]
mov dword [ebp - 0x24], ecx
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp + 0x18]
mov esi, edi
sub esi, ebx
sar esi, 1
call fcn.00401500
push eax
mov eax, dword [ebp + 0x14]
push esi
push ebx
call fcn.00401500
push eax
mov eax, dword [ebp + 0x10]
call fcn.00401500
push eax
mov eax, dword [ebp + 0xc]
call fcn.00401500
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esi - 1]
cmp eax, edx
jae 0x41c250
mov esi, dword [ebp + 8]
xor edi, edi
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x41c350
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
call fcn.0040eba0
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 0
cmp ebx, edi
je 0x41c37f
push ebx
call fcn.00431dda
add esp, 4
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.vector_T__too_long
call fcn.0042fac0
int3
Function at 0x41c9e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x452180
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x46b664]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push esi
mov eax, dword [0x46b664]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, dword [ecx + 0x1c]
mov edx, dword [ecx + 0x20]
mov ebx, dword [ebp + 8]
mov ecx, dword [ecx + 0x2c]
sub edx, esi
mov eax, edx
neg eax
sbb eax, eax
and eax, esi
cmp dword [edi + 0x14], 8
jb 0x41ca36
mov esi, dword [edi]
jmp 0x41ca38
mov esi, edi
push edx
push eax
push ecx
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test ebx, ebx
je 0x41cac1
xor eax, eax
mov word [esp + 0x2c], ax
push 0x23
mov eax, str.WinAPI::regSetValueEx___failed_for
lea esi, [esp + 0x30]
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
call fcn.0040eba0
mov dword [esp + 0x58], 0
push 0xffffffffffffffff
push 0
push edi
call fcn.004104f0
xor ecx, ecx
push ecx
mov word [esp + 0x14], cx
push eax
or eax, 0xffffffff
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
call fcn.00401a90
mov byte [esp + 0x58], 0
push 0x462084
lea edx, [esp + 0x10]
push edx
call fcn.00436362
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00431de5
mov esp, ebp
pop ebp
ret