joyce8/EMBER2024-capa huggingface dataset:
Function at 0x561318
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x368], 1
mov byte [ebp - 9], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x360]
test eax, eax
jbe 0x56139c
xor edx, edx
push ebp
push 0x561392
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 8]
push edx
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov eax, dword [ebp - 8]
push eax
push 0xffffffffffffffff
push 1
call sub.kernel32.dll_OpenProcess
mov ebx, eax
test ebx, ebx
je 0x561388
mov eax, dword [ebp - 8]
push eax
push ebx
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x561382
mov byte [ebp - 9], 1
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x56139c
xor eax, eax
push ebp
push 0x561468
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0040c440
fstp qword [ebp - 0x18]
wait
jmp 0x56141d
cmp byte [ebp - 9], 0
jne 0x5613e3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x360]
push eax
call sub.user32.dll_IsWindow
test eax, eax
je 0x5613e3
push 0
push 0
push 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x360]
push eax
call sub.user32.dll_SendMessageA
mov eax, dword [0x724f40]
mov eax, dword [eax]
call fcn.0046f1bc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x350]
call fcn.00546690
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x350]
call fcn.0040a704
test al, al
je 0x56141d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x350]
call fcn.0055c350
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x350]
call fcn.0040a704
test al, al
je 0x56145e
call fcn.0040c440
add esp, 0xfffffff8
fstp qword [esp]
wait
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.00535014
cmp edx, 0
jne 0x561458
cmp eax, 0x4b0
jb 0x5613b5
jmp 0x56145e
jl 0x5613b5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x561472
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x56c0f8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x56c1ff
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, esi
call fcn.0040557c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
jne 0x56c14b
call sub.kernel32.dll_GetLastError_1
call fcn.004085d4
mov dword [ebp - 4], eax
jmp 0x56c1e9
mov eax, ebx
call fcn.00402b9c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x56c1e2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
mov edx, 0x56c214
call fcn.00405404
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
mov eax, esi
call fcn.0040557c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x56c1ae
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
call fcn.0040557c
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x56c1ae
cmp dword [ebp - 0x10], 0
jne 0x56c1bd
call sub.kernel32.dll_GetLastError_1
call fcn.004085d4
mov dword [ebp - 4], eax
jmp 0x56c1cc
mov eax, edi
mov edx, dword [ebp - 0x10]
call fcn.004054fc
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56c1e9
mov eax, dword [ebp - 0xc]
call fcn.00402bcc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56c206
lea eax, [ebp - 0x18]
call fcn.004053a4
ret
Function at 0x56c924
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
test dl, dl
je 0x56c937
add esp, 0xfffffff0
call fcn.004041f8
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x56cb19
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, esi
call fcn.004261b4
xor eax, eax
mov dword [esi + 0x30], eax
xor eax, eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
xor eax, eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
xor eax, eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
xor eax, eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
xor eax, eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov byte [esi + 0x78], 0
xor eax, eax
mov dword [esi + 0x60], eax
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
lea eax, [esi + 0x70]
call fcn.004053a4
lea eax, [esi + 0x74]
call fcn.004053a4
mov byte [esi + 0x79], 1
mov byte [esi + 0x7a], 1
mov byte [esi + 0x7b], 1
mov byte [esi + 0x7c], 1
xor eax, eax
mov dword [esi + 0x84], eax
mov byte [esi + 0x88], 0
lea eax, [esi + 0x8c]
call fcn.004053a4
mov byte [esi + 0x90], 0
xor eax, eax
mov dword [esi + 0xd8], eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [esi + 0x94]
call fcn.004053a4
lea eax, [esi + 0x98]
call fcn.004053a4
lea eax, [ebp - 4]
call fcn.005700a4
mov edx, dword [ebp - 4]
lea eax, [esi + 0x9c]
call fcn.004053e0
mov byte [esi + 0xa0], 0
mov byte [esi + 0xa1], 0
mov byte [esi + 0xa2], 1
lea eax, [esi + 0xa4]
call fcn.004053a4
lea eax, [esi + 0xa8]
call fcn.004053a4
lea eax, [esi + 0xac]
call fcn.004053a4
lea eax, [esi + 0xb0]
call fcn.004053a4
lea eax, [esi + 0xb4]
call fcn.004053a4
lea eax, [esi + 0xb8]
call fcn.004053a4
lea eax, [esi + 0xbc]
call fcn.004053a4
mov byte [esi + 0xc0], 1
mov byte [esi + 0xc1], 0
mov byte [esi + 0xc2], 0
mov byte [esi + 0xc3], 0
mov byte [esi + 0xc4], 1
mov byte [esi + 0xc5], 0
mov byte [esi + 0xc6], 0
lea eax, [esi + 0xc8]
call fcn.004053a4
mov byte [esi + 0xcc], 0
mov byte [esi + 0xd4], 0
mov byte [esi + 0xd5], 0
mov byte [esi + 0xd6], 0
mov byte [esi + 0xdc], 0
mov byte [esi + 0xdd], 0
lea eax, [esi + 0xe0]
call fcn.004053a4
mov byte [esi + 0xe4], 1
xor eax, eax
mov dword [esi + 0xd0], eax
xor eax, eax
mov dword [esi + 0x64], eax
mov al, byte [0x56cb3c]
call fcn.00431f44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56cb20
lea eax, [ebp - 4]
call fcn.004053a4
ret
Function at 0x56cc90
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov esi, edx
xor eax, eax
push ebp
push 0x56ce08
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x56cde6
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x56cd9d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
mov eax, esi
call fcn.0040557c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
jbe 0x56cd6e
mov eax, ebx
call fcn.00402b9c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 0x14]
push eax
mov eax, esi
call fcn.0040557c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x56cd93
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x56ce1c
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x56cd93
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
xor edx, edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov edx, dword [ebp - 8]
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
xor edx, edx
or eax, dword [ebp - 8]
or edx, dword [ebp - 4]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
jmp 0x56cd93
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x20]
call fcn.0040daa4
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x56ce28
call fcn.00404fa4
mov eax, dword [ebp - 0x1c]
call fcn.00570bc8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x56cdca
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56cded
cmp dword [ebp - 0xc], 0
je 0x56cde5
mov eax, dword [ebp - 0xc]
call fcn.00402bcc
ret
Function at 0x56d3d4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec0
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov byte [ebp - 1], 0
xor eax, eax
mov dword [esi], eax
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x56d4e2
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x56d499
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0040a6f4
test al, al
je 0x56d48f
push 0x20
mov ecx, ebx
mov dl, 1
mov eax, dword [0x41b998]
call fcn.0042067c
mov dword [ebp - 8], eax
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x14]
lea edx, [ebp - 0x48]
mov ecx, 0x40
mov eax, dword [ebp - 8]
call fcn.00420390
cmp word [ebp - 0x48], 0x5a4d
jne 0x56d48f
cmp dword [ebp - 0xc], 0
je 0x56d48f
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 8]
call fcn.00420184
lea edx, [ebp - 0x140]
mov ecx, 0xf8
mov eax, dword [ebp - 8]
call fcn.00420390
cmp dword [ebp - 0x140], 0x4550
jne 0x56d48f
movzx eax, word [ebp - 0x13c]
mov dword [esi], eax
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x56d4c6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56d4e9
cmp dword [ebp - 8], 0
je 0x56d4e1
lea eax, [ebp - 8]
call fcn.0040fee4
ret
Function at 0x57d0f8
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405148
mov eax, dword [ebp - 8]
call fcn.00405148
xor eax, eax
push ebp
push 0x57d187
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x57d162
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a6f4
test al, al
je 0x57d158
push 0
mov eax, dword [ebp - 8]
call fcn.00405158
push eax
mov eax, dword [ebp - 4]
call fcn.00405158
push eax
call sub.kernel32.dll_CopyFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x57d16c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57d18e
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404cac
ret
Function at 0x5845ac
Capabilities:
Encode data using base64
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp + 4], ecx
mov dword [esp], edx
mov edi, 0x6f1f30
lea ecx, [esp + 8]
mov dword [ecx], eax
mov eax, dword [esp]
mov dword [esp + 0xc], eax
xor ebx, ebx
xor esi, esi
mov eax, dword [esp + 4]
mov ebp, 3
cdq
idiv ebp
test eax, eax
jle 0x584670
mov edx, dword [ecx]
movzx edx, byte [edx + ebx]
shr edx, 2
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx]
and dl, 3
and edx, 0xff
shl edx, 4
mov ebp, dword [ecx]
movzx ebp, byte [ebp + ebx + 1]
shr ebp, 4
add edx, ebp
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 1], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx + 1]
and dl, 0xf
and edx, 0xff
shl edx, 2
mov ebp, dword [ecx]
movzx ebp, byte [ebp + ebx + 2]
shr ebp, 6
add edx, ebp
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 2], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx + 2]
and dl, 0x3f
and edx, 0xff
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 3], dl
add esi, 4
add ebx, 3
dec eax
jne 0x5845e4
mov eax, dword [esp + 4]
mov ebp, 3
cdq
idiv ebp
dec edx
je 0x584687
dec edx
je 0x5846c8
jmp 0x584725
mov eax, dword [ecx]
movzx eax, byte [eax + ebx]
shr eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi], al
mov eax, dword [ecx]
mov al, byte [eax + ebx]
and al, 3
and eax, 0xff
shl eax, 4
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 1], al
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 2], 0x3d
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 3], 0x3d
jmp 0x584725
mov eax, dword [ecx]
movzx eax, byte [eax + ebx]
shr eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi], al
mov eax, dword [ecx]
mov al, byte [eax + ebx]
and al, 3
and eax, 0xff
shl eax, 4
mov edx, dword [ecx]
movzx edx, byte [edx + ebx + 1]
shr edx, 4
add eax, edx
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 1], al
mov eax, dword [ecx]
mov al, byte [eax + ebx + 1]
and al, 0xf
and eax, 0xff
shl eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 2], al
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 3], 0x3d
mov eax, dword [esp + 4]
add eax, 2
mov ecx, 3
cdq
idiv ecx
shl eax, 2
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x58553c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
jbe 0x58555c
mov ecx, 1
mov ebx, edx
add ebx, ecx
dec ebx
mov bl, byte [ebx]
mov edi, eax
add edi, ecx
dec edi
xor byte [edi], bl
inc ecx
dec esi
jne 0x58554a
pop edi
pop esi
pop ebx
ret
Function at 0x5ce648
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x5ce6ac
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404f08
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040a280
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ce6b3
lea eax, [ebp - 0xc]
call fcn.00404c88
ret

Function at 0x5d6558
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x5d6673
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
xor edx, edx
call fcn.004056a8
je 0x5d665d
mov eax, ebx
call fcn.005cebf8
mov eax, ebx
call fcn.0040558c
mov esi, eax
call fcn.0043e3fc
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x5d6656
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [esi + 2]
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5d663e
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x5d6637
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x5d6620
mov al, byte [edi + 0x2ed]
mov edx, dword [ebp - 8]
mov byte [edx], al
inc dword [ebp - 8]
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.00404f20
mov eax, dword [ebp - 0xc]
call fcn.00405158
lea ecx, [esi + 1]
mov edx, dword [ebp - 8]
call fcn.00402e6c
mov eax, dword [ebp - 4]
push eax
mov eax, dword [0x7474d4]
push eax
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d663e
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d665d
call fcn.0043e3fc
mov edx, dword [eax]
call dword [edx + 0x14]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d667a
lea eax, [ebp - 0xc]
call fcn.00404c88
ret

Function at 0x6c8d0c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
or ecx, 0xffffffff
dec edx
test edx, edx
jl 0x6c8d37
inc edx
xor ebx, ebx
mov bl, byte [eax]
mov esi, ecx
and esi, 0xff
xor ebx, esi
mov ebx, dword [ebx*4 + 0x724370]
shr ecx, 8
xor ebx, ecx
mov ecx, ebx
inc eax
dec edx
jne 0x6c8d17
not ecx
mov eax, ecx
pop esi
pop ebx
ret
Function at 0x6e4a18
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x6e4a9c
push dword fs:[eax]
mov dword fs:[eax], esp
push 5
lea edx, [ebp - 8]
mov eax, dword [0x724f40]
mov eax, dword [eax]
call fcn.0046fa38
push dword [ebp - 8]
push 0x6e4ab4
mov eax, dword [ebx + 0x19f0]
push dword [ebx + eax*4 + 0x162c]
push 0x6e4acc
push dword [esi + 0x58]
push 0x6e4ad8
lea eax, [ebp - 4]
mov edx, 6
call fcn.00405018
mov eax, dword [ebp - 4]
call fcn.00405158
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6e4aa3
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404cac
ret
Function at 0x6e98fc
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405148
xor eax, eax
push ebp
push 0x6e9a6e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x6e9a39
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
mov eax, 0x6e9a84
call fcn.00410088
cmp dword [ebp - 0x10], 0
je 0x6e9957
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x6e9a43
call fcn.00547e50
mov byte [ebp - 0x11], al
mov eax, dword [ebp - 4]
call fcn.0040a6f4
test al, al
je 0x6e99fa
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4420f0]
call fcn.00443054
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x6e99f3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x6e9a9c
mov edx, 0x6e9ab0
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0xc]
call fcn.00409a14
mov edx, dword [ebp - 0xc]
mov eax, 0x6e9ac0
call fcn.0040efac
test eax, eax
jle 0x6e99c8
mov byte [ebp - 0x11], 1
jmp 0x6e99dd
mov edx, dword [ebp - 0xc]
mov eax, 0x6e9ad4
call fcn.0040efac
test eax, eax
jle 0x6e99dd
mov byte [ebp - 0x11], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6e99fa
mov eax, dword [ebp - 8]
call fcn.00403e80
ret
cmp byte [ebp - 0x11], 0
je 0x6e9a0f
lea eax, [ebp - 0x10]
mov edx, 0x6e9aec
call fcn.00404d20
jmp 0x6e9a1c
lea eax, [ebp - 0x10]
mov edx, 0x6e9afc
call fcn.00404d20
mov eax, dword [ebp - 0x10]
call fcn.00405158
push eax
push 0x6e9b04
call sub.kernel32.dll_SetEnvironmentVariableA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x6e9a43
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6e9a75
lea eax, [ebp - 0x18]
call fcn.00404c88
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404cac
lea eax, [ebp - 4]
call fcn.00404c88
ret
Function at 0x40b470
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4273d4]
jne 0x40b47a
repz ret
jmp fcn.0041167c

Function at 0x41732c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4273d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040e42f
and dword [ebp - 0x14], 0
cmp dword [0x44a4ac], 0
mov dword [ebp - 0x18], eax
jne 0x4173df
push 0x4037ec
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x417487
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4037e0
push ebx
call edi
test eax, eax
je 0x417487
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4037d0
push ebx
mov dword [0x44a4ac], eax
call edi
push eax
call esi
push 0x4037bc
push ebx
mov dword [0x44a4b0], eax
call edi
push eax
call esi
push 0x4037a0
push ebx
mov dword [0x44a4b4], eax
call edi
push eax
call esi
mov dword [0x44a4bc], eax
test eax, eax
je 0x4173df
push 0x403788
push ebx
call edi
push eax
call esi
mov dword [0x44a4b8], eax
mov eax, dword [0x44a4b8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x417438
cmp dword [0x44a4bc], ecx
je 0x417438
push eax
call esi
push dword [0x44a4bc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x417438
test ebx, ebx
je 0x417438
call edi
test eax, eax
je 0x41742f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41742f
test byte [ebp - 8], 1
jne 0x417438
or dword [ebp + 0x10], 0x200000
jmp 0x41746b
mov eax, dword [0x44a4b0]
cmp eax, dword [ebp - 0x18]
je 0x41746b
push eax
call esi
test eax, eax
je 0x41746b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41746b
mov eax, dword [0x44a4b4]
cmp eax, dword [ebp - 0x18]
je 0x41746b
push eax
call esi
test eax, eax
je 0x41746b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44a4ac]
call esi
test eax, eax
je 0x417487
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x417489
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b470
leave
ret
Function at 0x41f650
Capabilities:
Delete directory
Delete file
Get disk information
Read .ini file

Disassembly:
mov eax, 0x1400
call fcn.0041e800
cmp dword [0x7eb230], 0x37
jne 0x41f6e1
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push 0x40441c
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea eax, [esp + 0x804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x404428
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetTapePosition]
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
lea edx, [esp + 0xc04]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
mov eax, dword [0x7eb234]
mov edx, dword [0x7e76a0]
mov cl, byte [eax + esi + 0x38d6]
mov byte [edx + esi], cl
add esp, 0x1400
ret