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

Disassembly:
mov eax, dword [0x40c2d0]
push edi
cmp eax, 0x64
jl 0x4022a4
mov ecx, 0x22
mov eax, 0x20202020
mov edi, 0x40f0e0
push 0x40f0e0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [0x40c2d0], 0
call fcn.00401000
add esp, 4
test eax, eax
je 0x4022a4
push 0x10
push str.ERRORE_GESTORE_PROTEZIONE
push str.Chiave_hardware_non_presente
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.00402b08
mov eax, dword [0x40c2d0]
mov edi, dword [esp + 8]
push esi
inc eax
mov ecx, 0x22
mov esi, 0x40f0e0
mov dword [0x40c2d0], eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop esi
pop edi
ret

Function at 0x4056c1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40ca20
cmp edx, dword [eax]
je 0x4056e3
add eax, 8
inc ecx
cmp eax, 0x40cab0
jl 0x4056d4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40ca20]
jne 0x405811
mov eax, dword [0x40f1e8]
cmp eax, 1
je 0x4057eb
test eax, eax
jne 0x405714
cmp dword [0x40c554], 1
je 0x4057eb
cmp edx, 0xfc
je 0x405811
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40574b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404b30
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004042a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40578e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004042a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b51c
push edi
call fcn.004089a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404b30
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404b40
lea eax, [ebp - 0xa0]
push 0x40b4fc
push eax
call fcn.00404b40
push dword [esi + 0x40ca24]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404b40
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00408908
add esp, 0x2c
pop edi
jmp 0x405811
lea eax, [ebp + 8]
lea esi, [esi + 0x40ca24]
push 0
push eax
push dword [esi]
call fcn.004042a0
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 0x49fd28
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x49fd67
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x49fd67
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x49fd67
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x49fd67
cmp dword [ecx + 0x74], 0xe
jbe 0x49fd67
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4a6f41
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6c2288
push 0x6c2280
push str.FlsAlloc
push 0x1e
call fcn.004a6e02
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4a6f75
push dword [ebp + 8]
mov ecx, esi
call dword [0x4b1138]
call esi
jmp 0x4a6f7b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4a6fbf
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6c2298
push 0x6c2290
push str.FlsGetValue
push 0x20
call fcn.004a6e02
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4a6ff6
push dword [ebp + 8]
mov ecx, esi
call dword [0x4b1138]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4a904b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4a90e8
push ebx
push esi
call fcn.004a9014
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004a8f5d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4a9095
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4a90e7
push edi
push eax
call fcn.004a6c05
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4a90b5
call fcn.004a4eab
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4a90e6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004a8f5d
add esp, 0x20
test eax, eax
jne 0x4a90d4
push edi
call fcn.004a4eab
jmp 0x4a90dc
push ebx
call fcn.004a4eab
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4abe02
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x6c8158]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4abe42
cmp byte [ebx], 0xa
jne 0x4abe42
or byte [eax + edi + 0x28], 4
jmp 0x4abe47
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4abf45
mov al, byte [edx]
cmp al, 0x1a
je 0x4abf27
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4abe76
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4abe9b
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4abea5
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4abe58
jmp 0x4abf45
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4abf22
cmp dword [ebp - 0xc], 0
je 0x4abf22
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x6c8158]
test byte [eax + edi + 0x28], 0x48
je 0x4abefc
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4abee7
mov byte [esi], dl
jmp 0x4abef8
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x6c8158]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4abf45
cmp byte [ebp - 1], 0xa
jne 0x4abf0b
cmp esi, ebx
jne 0x4abf0b
mov byte [esi], 0xa
jmp 0x4abf44
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004abbfb
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4abf45
mov byte [esi], 0xd
jmp 0x4abf44
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x6c8158]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4abf41
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4abf45
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4abf4e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x6c8158]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4abf91
cmp word [esi], dx
jne 0x4abf91
or byte [edi + eax + 0x28], 4
jmp 0x4abf96
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4ac0e9
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4ac0c9
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4abfd8
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4ac00e
cmp eax, edx
jae 0x4ac01a
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4abfb0
jmp 0x4ac0e9
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ac0c5
cmp dword [ebp - 0x14], 0
je 0x4ac0c5
mov eax, dword [ebx*4 + 0x6c8158]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4ac09d
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4ac066
mov word [esi], cx
jmp 0x4ac099
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x6c8158]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x6c8158]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x6c8158]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4ac0e9
pop ebx
cmp word [ebp - 4], bx
jne 0x4ac0ae
cmp esi, dword [ebp + 0xc]
jne 0x4ac0ae
mov word [esi], bx
jmp 0x4ac0e6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004abbfb
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4ac0e9
push 0xd
jmp 0x4ac0e2
mov ecx, dword [ebx*4 + 0x6c8158]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4ac0e0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4ac0e9
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4ada25
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004ad9a1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4adb9d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4adb9d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4adb4c
jg 0x4ada7e
test eax, eax
je 0x4adb42
push 1
push 0x1000
call fcn.004a7de7
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4adaa4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4adb39
push 0x8000
push ebx
call fcn.004a3eec
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4adad0
jg 0x4adacb
cmp ecx, 0x1000
jb 0x4adad0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004a6688
add esp, 0x10
cmp eax, 0xffffffff
je 0x4adb15
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4adacb
jl 0x4adafc
test ecx, ecx
jne 0x4adabd
push dword [ebp - 0xc]
push ebx
call fcn.004a3eec
push esi
call fcn.004a4eab
add esp, 0xc
xor edi, edi
jmp 0x4adbae
cmp byte [edi + 0x24], 0
je 0x4adb2c
cmp dword [edi + 0x20], 5
jne 0x4adb2c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4adb37
mov edi, dword [edi + 0x18]
jmp 0x4adb39
xor edi, edi
push esi
call fcn.004a4eab
pop ecx
jmp 0x4adbae
test ecx, ecx
jg 0x4adb0e
jl 0x4adb4c
test eax, eax
jae 0x4adb0e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004abbfb
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4adb6f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4adb0e
jmp 0x4adba6
push ebx
call fcn.004a990e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4adb0e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4adbae
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4adbab
mov edi, dword [edi + 0x18]
jmp 0x4adbae
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004abbfb
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4afe80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4afead
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4afead
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402770
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40b02c], 0x8088405
inc edx
mov dword [0x40b02c], edx
mul edx
mov eax, edx
ret

Function at 0x405128
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405161
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040324c
jmp 0x40516a
mov eax, ebx
mov edx, esi
call fcn.00403200
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405174
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405195
mov al, byte [esp]
jmp 0x405197
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40678c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4067d4
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00406728
mov eax, dword [ebp - 4]
call fcn.004033e8
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4067db
lea eax, [ebp - 4]
call fcn.0040316c
ret

Function at 0x406a84
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00404cfc
add esp, 0x104
pop ebx
ret
Function at 0x406bcc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x406ced
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push edi
push esi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x406cd7
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
je 0x406c25
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x406cd7
cmp dword [ebp - 0xc], 0
jne 0x406c3a
mov eax, dword [ebp - 4]
call fcn.0040316c
mov bl, 1
jmp 0x406cd7
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
xor edx, edx
call fcn.0040324c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
call fcn.004033f4
push eax
lea eax, [ebp - 8]
push eax
push 0
push edi
push esi
call sub.advapi32.dll_RegQueryValueExA
cmp eax, 0xea
je 0x406bf1
test eax, eax
jne 0x406cd7
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
je 0x406c81
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x406cd7
jmp 0x406c81
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
je 0x406c94
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
cmp byte [eax + edx - 1], 0
je 0x406c7e
cmp dword [ebp - 8], 7
jne 0x406ca3
cmp dword [ebp - 0xc], 0
je 0x406ca3
inc dword [ebp - 0xc]
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.004034c4
cmp dword [ebp - 8], 7
jne 0x406cca
cmp dword [ebp - 0xc], 0
je 0x406cca
lea eax, [ebp - 0x10]
call fcn.004033f4
mov edx, dword [ebp - 0xc]
mov byte [eax + edx - 1], 0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
call fcn.004031bc
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406cf4
lea eax, [ebp - 0x10]
call fcn.0040316c
ret

Function at 0x407598
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40b55c
mov eax, esi
mov edx, 8
test al, 1
je 0x4075b4
shr eax, 1
xor eax, 0xedb88320
jmp 0x4075b6
shr eax, 1
dec edx
jne 0x4075a7
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4075a0
pop esi
ret

Function at 0x4075cc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40b558], 0
jne 0x4075ef
call fcn.00407598
push 1
push 0x40b558
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x40761a
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40b55c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x4075f5
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x408bb8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00408b6c
test al, al
jne 0x408bd9
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x408c25
xor eax, eax
push ebp
push 0x408c15
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004033e8
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408c1c
lea eax, [ebp - 0xc]
call fcn.00408ba8
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408f2c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x40901b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00406ab0
mov edx, dword [ebp - 8]
mov ecx, 0x409034
xor eax, eax
call fcn.00408e20
push 0
mov eax, dword [ebp - 4]
call fcn.004033e8
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x408fe9
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
je 0x408f4c
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov al, 0x2f
call fcn.004089d8
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00404bb0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.00407028
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x14]
mov ecx, 2
mov al, 0x60
call fcn.004089a8
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, 0x40457c
call fcn.004057ac
call fcn.00402e88
jmp 0x408f4c
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00403200
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409022
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.0040318c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040318c
ret

Function at 0x409064
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
cmp dword [0x40a07c], 2
jne 0x4090d1
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x409089
call fcn.00409044
jmp 0x4090e3
lea eax, [esp + 8]
push eax
push 0x4090e8
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x4090d1
call fcn.00409044
jmp 0x4090e3
push 0
push 2
call sub.user32.dll_ExitWindowsEx
test eax, eax
jne 0x4090e3
call fcn.00409044
add esp, 0x14
ret
Function at 0x4090fc
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x409156
inc esi
xor edi, edi
cmp edi, 1
jne 0x409122
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x409130
cmp edi, 1
jle 0x409130
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00408bb8
test eax, eax
jne 0x409156
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x409156
call sub.kernel32.dll_GetLastError_1
cmp eax, 3
je 0x409156
inc edi
dec esi
jne 0x409112
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x4093a4
Capabilities:
Identify system language via api

Disassembly:
push ebx
push esi
push edi
mov edi, 0x40bdcc
cmp dword [0x40bca4], 0
je 0x4093ed
mov esi, dword [0x40bdd0]
dec esi
test esi, esi
jl 0x4093ed
inc esi
xor ebx, ebx
mov eax, ebx
shl eax, 4
add eax, ebx
mov edx, dword [edi]
mov edx, dword [edx + eax*4]
mov eax, dword [0x40bca4]
call fcn.00404b5c
test eax, eax
jne 0x4093e9
mov eax, ebx
call fcn.00409358
jmp 0x409481
inc ebx
dec esi
jne 0x4093c3
mov al, byte [0x40bdc0]
sub al, 1
jb 0x4093fa
je 0x409401
jmp 0x409408
call fcn.00406dc8
jmp 0x40940a
call sub.kernel32.dll_GetUserDefaultLangID
jmp 0x40940a
xor eax, eax
test ax, ax
je 0x40947a
mov esi, dword [0x40bdd0]
dec esi
test esi, esi
jl 0x40943e
inc esi
xor ebx, ebx
mov edx, ebx
shl edx, 4
add edx, ebx
mov ecx, dword [edi]
mov edx, dword [ecx + edx*4 + 0x2c]
movzx ecx, ax
cmp edx, ecx
jne 0x40943a
mov eax, ebx
call fcn.00409358
jmp 0x409481
inc ebx
dec esi
jne 0x40941d
mov esi, dword [0x40bdd0]
dec esi
test esi, esi
jl 0x40947a
inc esi
xor ebx, ebx
mov edx, ebx
shl edx, 4
add edx, ebx
mov ecx, dword [edi]
mov edx, dword [ecx + edx*4 + 0x2c]
and edx, 0x3ff
mov ecx, eax
and cx, 0x3ff
movzx ecx, cx
cmp edx, ecx
jne 0x409476
mov eax, ebx
call fcn.00409358
jmp 0x409481
inc ebx
dec esi
jne 0x40944c
xor eax, eax
call fcn.00409358
pop edi
pop esi
pop ebx
ret