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

Disassembly:
sub dword [0x426eb0], 1
jae 0x415c7e
mov byte [0x422d04], 2
mov dword [0x426900], 0x421928
mov dword [0x426904], 0x421940
mov byte [0x42693e], 2
mov dword [0x4268ec], 0x414d14
call fcn.004134b8
test al, al
je 0x415c3b
call fcn.004134e8
call fcn.004135ac
mov word [0x426944], 0xd7b0
mov word [0x426b10], 0xd7b0
mov word [0x426cdc], 0xd7b0
call fcn.00414c08
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x426930], eax
call fcn.00411524
mov dword [0x42692c], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x426924], eax
ret

Function at 0x41bb10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x41bb72
call fcn.0041bac0
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004168a4
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004168a4
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x41bbf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x424ad8], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x41bcca
cmp dword [0x424ad4], 0
jne 0x41bcca
cmp dword [0x424cb8], 0
je 0x41bc84
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.0041b9c0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x41bc6a
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0041b9c0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x41bc6a
lea ebx, [ebp - 0x84]
jmp 0x41bc6b
inc ebx
call fcn.0041bbac
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x41bd05
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x424adc
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004168a4
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x424adf
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x41bd05
cmp dword [0x424ad4], 0
je 0x41bce4
cmp dword [0x424ad4], 0xffffffff
je 0x41bd05
push esi
call dword [0x424ad4]
pop ecx
mov eax, dword [0x424ad8]
test eax, eax
je 0x41bd05
cmp dword [0x424ad8], 0xffffffff
je 0x41bd05
cmp byte [eax], 0
je 0x41bd05
push esi
push eax
call fcn.0041bb10
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41c500
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x427850], 0
jne 0x41c581
cmp dword [0x427870], 0
jne 0x41c530
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x427870], eax
test eax, eax
jne 0x41c530
push str.GetEnvironmentStrings_failed
call fcn.0041bd1c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x427870]
jmp 0x41c544
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c53c
lea edi, [ebp + 1]
push edi
call fcn.004161a8
pop ecx
mov ebx, eax
mov dword [0x427854], ebx
test ebx, ebx
jne 0x41c56e
xor eax, eax
jmp 0x41c644
push edi
mov edx, dword [0x427870]
push edx
push ebx
call fcn.00416754
add esp, 0xc
jmp 0x41c5a1
xor esi, esi
mov ebx, dword [0x427850]
jmp 0x41c59b
push eax
call fcn.004168a4
pop ecx
test eax, eax
jne 0x41c597
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c58b
lea ebx, [esi + 4]
push 4
mov dword [0x427858], ebx
inc ebx
push ebx
call fcn.00415c80
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x41c5c4
xor eax, eax
jmp 0x41c644
cmp dword [0x427850], 0
jne 0x41c5f5
xor esi, esi
mov ebx, dword [0x427854]
mov eax, dword [esp]
mov ebp, eax
jmp 0x41c5e6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c5dc
jmp 0x41c626
xor esi, esi
mov ebx, dword [0x427850]
mov eax, dword [esp]
mov edi, eax
jmp 0x41c620
push eax
call fcn.004168a4
pop ecx
test eax, eax
je 0x41c615
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x41c619
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c604
mov eax, dword [0x427850]
test eax, eax
je 0x41c636
push eax
call fcn.004161b8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x427850], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x402c44
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x426014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402cdc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402cbc
xor eax, eax
push ebp
push 0x402cb5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402cf8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402cbc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x426014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x426014], ax
mov esp, ebp
pop ebp
ret

Function at 0x403510
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x429034], 0
je 0x403571
cmp word [0x429208], 0xd7b2
jne 0x403539
cmp dword [0x429210], 0
jbe 0x403539
mov eax, 0x429204
call dword [0x429220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x42605c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403598
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x426020], 0
jne 0x40358d
push 0
push 0x426054
push 0x42605c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40443c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4044a2
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004038dc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ab4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40448c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4044a9
lea eax, [ebp - 0x10]
call fcn.00403694
ret

Function at 0x405990
Capabilities:
Accept command line arguments

Disassembly:
push edi
mov edi, edx
test eax, eax
jne 0x4059be
sub esp, 0x104
mov ecx, esp
push 0x104
push ecx
push 0
call sub.kernel32.dll_GetModuleFileNameA
xchg ecx, eax
mov edx, esp
mov eax, edi
call fcn.00403784
add esp, 0x104
pop edi
ret
push eax
call sub.kernel32.dll_GetCommandLineA_1
pop ecx
inc ecx
call fcn.0040d850
mov edx, eax
call fcn.0040d860
loop 0x4059c6
mov ecx, eax
sub ecx, edx
cmp ecx, 2
jl 0x4059ea
cmp byte [edx], 0x22
jne 0x4059ea
cmp byte [eax - 1], 0x22
jne 0x4059ea
inc edx
dec eax
sub eax, edx
xchg ecx, eax
xchg edi, eax
call fcn.00403784
pop edi
ret
Function at 0x405a08
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe8c
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x174], ecx
mov dword [ebp - 0x170], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x405b5c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00403694
lea eax, [ebp - 4]
mov edx, esi
call fcn.0040372c
jmp 0x405af7
lea ecx, [ebp - 8]
lea eax, [ebp - 4]
mov edx, 0x405b74
call fcn.0040d780
cmp dword [ebx], 0
je 0x405a76
mov eax, ebx
mov edx, 0x405b74
call fcn.004038fc
cmp dword [ebx], 0
jne 0x405a9d
mov eax, dword [ebp - 8]
call fcn.004038f4
cmp eax, 2
jne 0x405a9d
mov eax, dword [ebp - 8]
cmp byte [eax + 1], 0x3a
jne 0x405a9d
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004036e8
jmp 0x405af7
push 0x200
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
mov edx, dword [ebx]
lea eax, [ebp - 0x16c]
mov ecx, dword [ebp - 8]
call fcn.00403940
mov eax, dword [ebp - 0x16c]
call fcn.00403af4
push eax
call sub.shell32.dll_SHGetFileInfoA
cmp byte [ebp - 0x15c], 0
je 0x405aed
lea eax, [ebp - 8]
lea edx, [ebp - 0x15c]
mov ecx, 0x104
call fcn.004038dc
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004038fc
cmp dword [ebp - 4], 0
jne 0x405a55
lea edx, [ebp - 0x170]
mov eax, dword [ebx]
call fcn.0040d97c
cmp dword [ebp - 0x170], 0
jne 0x405b31
lea edx, [ebp - 0x174]
mov eax, esi
call fcn.0040d97c
mov edx, dword [ebp - 0x174]
mov eax, ebx
call fcn.004038fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405b63
lea eax, [ebp - 0x174]
mov edx, 3
call fcn.004036b8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004036b8
ret

Function at 0x405e08
Capabilities:
Get disk size

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffff44
mov edi, edx
mov esi, eax
xor ebx, ebx
mov dword [esp + 0x20], 0x94
lea eax, [esp + 0x20]
push eax
call sub.kernel32.dll_GetVersionExA
xor eax, eax
mov edx, dword [esp + 0x30]
cmp edx, 2
jne 0x405e3e
cmp dword [esp + 0x24], 4
setae al
jmp 0x405e6c
cmp edx, 1
jne 0x405e6c
mov edx, dword [esp + 0x24]
cmp edx, 4
seta al
test al, al
jne 0x405e6c
cmp edx, 4
jne 0x405e6c
cmp dword [esp + 0x28], 0
seta al
test al, al
jne 0x405e6c
cmp word [esp + 0x2c], 0x1111
setae al
test al, al
je 0x405e89
push 0x405ef8
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x405f04
push ebx
call sub.kernel32.dll_GetProcAddress
mov ebx, eax
test ebx, ebx
je 0x405ea4
push edi
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
mov eax, esi
call fcn.00403af4
push eax
call ebx
jmp 0x405eec
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
mov eax, esi
call fcn.00403af4
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
lea ecx, [esp + 0xb4]
mov eax, dword [esp]
imul dword [esp + 4]
xor edx, edx
call fcn.004054bc
lea eax, [esp + 0xb4]
mov ecx, edi
mov edx, dword [esp + 8]
call fcn.0040a970
add esp, 0xbc
pop edi
pop esi
pop ebx
ret
Function at 0x406344
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
add esp, 0xfffffff4
mov esi, edx
mov ebx, eax
mov dword [esp + 8], 4
xor eax, eax
mov dword [esp], eax
test ebx, ebx
je 0x406388
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0
mov eax, esi
call fcn.00403af4
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x406388
cmp dword [esp + 4], 4
je 0x40638d
xor eax, eax
mov dword [esp], eax
mov eax, dword [esp]
add esp, 0xc
pop esi
pop ebx
ret

Function at 0x406398
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
push eax
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.00403af4
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete al
pop ebp
ret

Function at 0x4063d4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
mov eax, ebx
call fcn.00403694
cmp dword [ebp - 0xc], 0
je 0x40647a
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x14], eax
push ebp
call fcn.00406398
pop ecx
test al, al
je 0x40647a
cmp dword [ebp - 4], 1
je 0x406417
cmp dword [ebp - 4], 2
jne 0x40647a
mov eax, dword [ebp - 8]
call fcn.00402830
mov dword [ebp - 0x14], eax
push ebp
call fcn.00406398
pop ecx
test al, al
je 0x406472
cmp dword [ebp - 4], 2
jne 0x406468
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov edi, eax
mov eax, edi
call fcn.00402830
mov esi, eax
push edi
push esi
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov eax, ebx
mov edx, esi
call fcn.00403870
mov eax, esi
call fcn.00402860
jmp 0x406472
mov eax, ebx
mov edx, dword [ebp - 0x14]
call fcn.00403870
mov eax, dword [ebp - 0x14]
call fcn.00402860
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4064fc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, 1
cmp byte [ebp + 8], 0
je 0x40651a
mov ebx, 2
test esi, esi
je 0x406545
mov eax, edi
call fcn.004038f4
inc eax
push eax
mov eax, edi
call fcn.00403af4
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
call fcn.00403af4
push eax
push esi
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x406549
xor eax, eax
jmp 0x40654b
mov al, 1
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x406560
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, edx
mov ebx, eax
test ebx, ebx
je 0x40658d
lea eax, [esp + 4]
push eax
push 0
lea eax, [esp + 8]
push eax
push 0
mov eax, esi
call fcn.00403af4
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x406591
xor eax, eax
jmp 0x406593
mov al, 1
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4065d0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x40668f
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.0040c47c
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push edi
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
jne 0x406679
cmp dword [ebp - 8], 0
jbe 0x406677
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
call fcn.00402830
mov ebx, eax
xor esi, esi
jmp 0x406655
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00403870
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0040c46c
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], eax
inc esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push edi
call sub.advapi32.dll_RegEnumKeyExA
cmp eax, 0x103
jne 0x406638
mov eax, ebx
call fcn.00402860
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406696
lea eax, [ebp - 0x10]
call fcn.00403694
ret

Function at 0x406f68
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffffc
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 8]
cmp byte [ebx + 0x18], 0
jne 0x406fe4
mov byte [ebp - 0x1004], 0
mov eax, dword [ebx + 0x19]
call fcn.00403af4
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
mov eax, esi
call fcn.00403af4
push eax
mov eax, dword [ebp - 4]
call fcn.00403af4
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00403af4
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
test eax, eax
je 0x406fdb
mov eax, edi
lea edx, [ebp - 0x1004]
mov ecx, 0x1000
call fcn.004038dc
jmp 0x407015
mov eax, edi
call fcn.00403694
jmp 0x407015
mov eax, edi
mov edx, esi
call fcn.004036e8
mov eax, dword [ebx + 0x19]
call fcn.00403af4
push eax
mov eax, esi
call fcn.00403af4
push eax
mov eax, dword [ebp - 4]
call fcn.00403af4
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00403af4
push eax
call sub.kernel32.dll_WritePrivateProfileStringA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40aa70
Capabilities:
Get file attributes

Disassembly:
push ebx
push eax
push 0x8001
call sub.kernel32.dll_SetErrorMode
xchg ebx, eax
call sub.kernel32.dll_GetFileAttributesA
inc eax
je 0x40aa8b
dec eax
and al, 0x10
setne al
xchg ebx, eax
push eax
call sub.kernel32.dll_SetErrorMode
xchg ebx, eax
pop ebx
ret
Function at 0x40b8b4
Capabilities:
Hide graphical window

Disassembly:
and byte [eax + 0x27], 0xef
test dl, dl
je 0x40b8c0
or byte [eax + 0x27], 0x10
mov ecx, dword [eax + 0x1c]
jecxz 0x40b8d9
push eax
je 0x40b8da
call dword [0x426148]
pop eax
push 5
push dword [eax + 0x1c]
call sub.user32.dll_ShowWindow
ret
and byte [eax + 0x37], 0xfe
push 0
push ecx
call sub.user32.dll_ShowWindow
pop eax
call dword [0x426148]
ret

Function at 0x40cbc4
Capabilities:
Capture screenshot

Disassembly:
push ebx
mov ebx, eax
call fcn.0040cb60
je 0x40cbf6
mov eax, ebx
push edx
call fcn.004094c8
pop edx
cmp eax, edx
je 0x40cbf6
test edx, edx
mov eax, ebx
jne 0x40cbe8
pop ebx
inc edx
jmp fcn.004094b8
mov byte [ebx + 0x49], dl
xor edx, edx
call fcn.004094b8
xchg ebx, eax
cmp eax, 0
pop ebx
jne fcn.0040cc14
ret
Function at 0x40d908
Capabilities:
Get file attributes

Disassembly:
call fcn.0040502c
push eax
call sub.kernel32.dll_GetFileAttributesA
inc eax
je 0x40d91c
dec eax
and al, 0x10
sete al
ret

Function at 0x40d998
Capabilities:
Get common file path

Disassembly:
push ebx
xchg ebx, eax
sub esp, 0x104
mov eax, esp
push 0x104
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov eax, ebx
mov edx, esp
call fcn.00403870
mov edx, ebx
mov eax, dword [edx]
call fcn.00405c64
add esp, 0x104
pop ebx
ret

Function at 0x40d9c8
Capabilities:
Get common file path

Disassembly:
push ebx
xchg ebx, eax
sub esp, 0x104
mov eax, esp
push 0x104
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, ebx
mov edx, esp
call fcn.00403870
mov edx, ebx
mov eax, dword [edx]
call fcn.00405c64
add esp, 0x104
pop ebx
ret

Function at 0x40d9f8
Capabilities:
Get common file path

Disassembly:
push eax
sub esp, 0x108
push esp
push 0x105
call sub.kernel32.dll_GetTempPathA
mov edx, esp
mov eax, dword [esp + 0x108]
call fcn.00403870
add esp, 0x108
pop edx
mov eax, dword [edx]
call fcn.00405c64
ret

Function at 0x40e488
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov word [ebp - 2], cx
mov edi, edx
mov esi, eax
push 0
push 0x8000080
push 3
push 0
push 1
push 0xc0000000
push esi
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40e4bc
xor eax, eax
jmp 0x40e50d
lea eax, [ebp - 0xc]
push eax
mov ax, word [ebp - 2]
push eax
push edi
call sub.kernel32.dll_DosDateTimeToFileTime
test eax, eax
je 0x40e4f0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFileTimeToFileTime
test eax, eax
je 0x40e4f0
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
call sub.kernel32.dll_SetFileTime
push ebx
call sub.kernel32.dll_CloseHandle
mov ax, word [ebp + 8]
and ax, 0x27
movzx eax, ax
push eax
push esi
call sub.kernel32.dll_SetFileAttributesA
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40ffc4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x24]
mov edi, dword [ebx + 0x34]
sub edi, dword [ebx + 0x6c]
sub edi, dword [ebx + 0x64]
test edi, edi
jne 0x40ffee
cmp dword [ebx + 0x64], 0
jne 0x40ffee
cmp dword [ebx + 0x6c], 0
jne 0x40ffee
mov edi, esi
jmp 0x410075
cmp edi, 0xffffffff
jne 0x40fff6
dec edi
jmp 0x410075
mov eax, dword [ebx + 0x24]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x64]
ja 0x410075
push esi
mov eax, dword [ebx + 0x30]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.0040f3a4
add esp, 0xc
sub dword [ebx + 0x68], esi
sub dword [ebx + 0x64], esi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x3c]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x410043
mov cx, word [esp]
sub cx, si
jmp 0x410045
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x41002c
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x38]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x41006b
mov cx, word [esp]
sub cx, si
jmp 0x41006d
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x410054
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x4100d2
mov edx, dword [ebx + 0x30]
mov ecx, edi
add edx, dword [ebx + 0x64]
mov eax, ebp
add edx, dword [ebx + 0x6c]
call fcn.0040fd60
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x4100bd
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x64]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x64]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x4100d2
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x40ffce
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x415858
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x4299d0
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x41587a
shr eax, 1
xor eax, 0xedb88320
jmp 0x41587c
shr eax, 1
dec edx
jne 0x415868
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x415861
mov byte [0x429dd0], 1
pop esi
pop ebx
ret

Function at 0x415898
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x429dd0], 0
jne 0x4158af
call fcn.00415858
mov eax, edi
dec eax
test eax, eax
jl 0x4158d8
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4299d0]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x4158b9
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x41aa38
Capabilities:
Identify system language via api

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov dword [esp], eax
mov edx, dword [0x428854]
mov edx, dword [edx]
mov eax, dword [esp]
mov eax, dword [eax + 0x18]
call fcn.0040b86c
mov ebp, 0xff
mov eax, 0x1a
call fcn.00422b38
mov esi, eax
dec esi
test esi, esi
jl 0x41aaaa
inc esi
xor ebx, ebx
mov edi, ebx
shl edi, 2
mov eax, dword [0x4287e4]
mov eax, dword [eax]
mov edx, dword [eax + edi*4]
mov eax, dword [esp]
mov eax, dword [eax + 0x24]
call fcn.0040df3c
mov eax, dword [0x4287e4]
mov eax, dword [eax]
mov eax, dword [eax + edi*4 + 4]
call fcn.0040d700
push eax
call sub.kernel32.dll_GetUserDefaultLangID
movzx eax, ax
pop edx
cmp edx, eax
jne 0x41aaa6
mov ebp, ebx
inc ebx
dec esi
jne 0x41aa6c
cmp ebp, 0xff
jne 0x41aaea
mov eax, 0x1a
call fcn.00422b38
mov esi, eax
dec esi
test esi, esi
jl 0x41aaea
inc esi
xor ebx, ebx
mov eax, ebx
shl eax, 2
mov edx, dword [0x4287e4]
mov edx, dword [edx]
mov eax, dword [edx + eax*4]
mov edx, 0x41ab10
call fcn.00403a40
jne 0x41aae6
mov ebp, ebx
jmp 0x41aaea
inc ebx
dec esi
jne 0x41aac6
cmp ebp, 0xff
jne 0x41aaf4
xor ebp, ebp
mov eax, dword [esp]
mov eax, dword [eax + 0x24]
mov edx, ebp
call fcn.0040c344
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41ce54
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, edx
mov dword [esp], pe_nt_image_headers32
test al, al
je 0x41ce75
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameA
jmp 0x41ce80
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
mov eax, ebx
lea edx, [esp + 4]
mov ecx, pe_nt_image_headers32
call fcn.004038dc
add esp, 0x104
pop ebx
ret

Function at 0x41ce98
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffc10
mov ebx, edx
push esp
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov eax, dword [esp]
push eax
call sub.ole32.dll_CoTaskMemFree
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x3e9
call fcn.004038dc
add esp, 0x3f0
pop ebx
ret