joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4032a0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x45d1d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push esi
mov esi, dword [ebp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x4032f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 8
call fcn.00403800
add esp, 0xc
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040acca
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0x450834
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x403334
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
push 3
call fcn.00403800
add esp, 0xc
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040acca
mov esp, ebp
pop ebp
ret
push edi
push esi
call fcn.004089d0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 4
test eax, eax
jne 0x403371
call edi
cmp eax, 2
je 0x403371
call edi
push eax
push 3
push 3
call fcn.00403800
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040acca
mov esp, ebp
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4033a0
call edi
push eax
push 4
push 3
call fcn.00403800
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040acca
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push ebx
push esi
call fcn.00416f5f
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.0040acca
mov esp, ebp
pop ebp
ret
Function at 0x403450
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x45d1d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push eax
mov dword [ebp - 0x148], eax
mov esi, 1
call fcn.00429e97
add esp, 4
test eax, eax
jne 0x403599
lea eax, [ebp - 0x144]
push eax
push str...
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40358c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [eax + eax]
lea eax, [ebp - 0x118]
push 0x450844
push eax
call fcn.004171a4
add esp, 8
test eax, eax
je 0x403571
lea eax, [ebp - 0x118]
push 0x450848
push eax
call fcn.004171a4
add esp, 8
test eax, eax
je 0x403571
test byte [ebp - 0x144], 0x10
lea eax, [ebp - 0x118]
je 0x403547
push eax
call fcn.00403450
add esp, 4
test eax, eax
jne 0x403571
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
test eax, eax
je 0x40358c
push 0x450840
call fcn.00429e97
add esp, 4
test eax, eax
jne 0x403599
push dword [ebp - 0x148]
call fcn.00408ad0
add esp, 4
test eax, eax
je 0x403599
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040acca
mov esp, ebp
pop ebp
ret
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x403504
lea eax, [ebp - 0x118]
push eax
call fcn.004089d0
add esp, 4
test eax, eax
jne 0x403571
call ebx
cmp eax, 2
jne 0x403504
lea eax, [ebp - 0x144]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4034b0
jmp 0x403506
push 0x450840
call fcn.00429e97
add esp, 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0040acca
mov esp, ebp
pop ebp
ret
Function at 0x404d70
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
mov eax, dword [0x45d1d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x404f12
lea edi, [ebp - 0x108]
dec edi
nop dword [eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x404db0
mov ax, word [0x450868]
lea ecx, [ebp - 0x108]
mov word [edi], ax
dec ecx
nop word [eax + eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x404dd0
mov eax, dword [str.SCSW.ini]
mov dword [ecx], eax
mov eax, dword [0x450984]
mov dword [ecx + 4], eax
mov al, byte [0x450988]
mov byte [ecx + 8], al
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0042a11a
add esp, 8
cmp eax, 0xffffffff
jne 0x404e7f
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x404f12
lea edi, [ebp - 0x108]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x404e28
mov ax, word [0x450868]
lea ecx, [ebp - 0x108]
mov word [edi], ax
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x404e42
mov eax, dword [str.SCSW2.ini]
mov dword [ecx], eax
mov eax, dword [0x450990]
mov dword [ecx + 4], eax
mov ax, word [0x450994]
mov word [ecx + 8], ax
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0042a11a
add esp, 8
cmp eax, 0xffffffff
je 0x404f12
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x108]
push eax
push 0x100
lea eax, [ebp - 0x208]
push eax
push 0x4507be
push str.DefaultPrinter
push str.Main
call edi
lea ecx, [ebp - 0x208]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404eb2
sub ecx, edx
je 0x404f12
lea eax, [ebp - 0x108]
push eax
push 0x100
lea eax, [ebp - 0x308]
push eax
push 0x4507be
push str.Name
lea eax, [ebp - 0x208]
push eax
call edi
lea ecx, [ebp - 0x308]
mov eax, ecx
sub esi, eax
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x404ef0
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040acca
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0040acca
mov esp, ebp
pop ebp
ret
Function at 0x404f30
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x45d1d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20]
push edi
push eax
lea eax, [ebp - 0x18]
push eax
push 0
call dword [0x47801c]
test eax, eax
jne 0x405044
cmp dword [ebp - 0x20], 3
je 0x404fb7
push dword [ebp - 0x18]
call dword [0x478020]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x405044
lea ecx, [ebp - 0x14]
mov eax, ecx
sub esi, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x404f91
mov eax, 1
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040acca
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x405013
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404fc3
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 0x1c], eax
cmp eax, 0x3fffffff
jg 0x405013
add eax, eax
call fcn.0040ace0
mov ebx, esp
test ebx, ebx
je 0x405013
mov ecx, dword [ebp - 0x1c]
push 0
push 0
mov byte [ebx], 0
lea eax, [ecx + ecx]
push eax
push ebx
push 0xffffffffffffffff
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, dword [ebp - 0x18]
neg eax
sbb ecx, ecx
and ecx, ebx
jmp 0x405015
xor ecx, ecx
sub esi, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x405017
push edi
call dword [0x478020]
mov eax, 1
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040acca
mov esp, ebp
pop ebp
ret
xor eax, eax
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040acca
mov esp, ebp
pop ebp
ret
Function at 0x405060
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x518
mov eax, dword [0x45d1d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x514], eax
lea eax, [ebp - 0x40c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x4050aa
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040acca
mov esp, ebp
pop ebp
ret
push esi
push 0x450854
push edi
call fcn.004175ae
mov esi, eax
add esp, 8
test esi, esi
je 0x4050fe
push 0x450854
push edi
call fcn.0040bf00
sub eax, edi
push eax
mov dword [ebp - 0x510], eax
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.00416240
mov eax, dword [ebp - 0x510]
add esp, 0x14
cmp eax, 0x104
jae 0x405198
mov byte [ebp + eax - 0x108], 0
jmp 0x405113
lea ecx, [ebp - 0x108]
sub ecx, edi
mov al, byte [edi]
lea edi, [edi + 1]
mov byte [ecx + edi - 1], al
test al, al
jne 0x405106
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x308]
push eax
lea eax, [ebp - 0x50c]
push eax
lea eax, [ebp - 0x518]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00416f5f
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x308]
push eax
lea eax, [ebp - 0x40c]
push eax
push str._s_s_s
push dword [ebp - 0x514]
call fcn.004087c0
add esp, 0x28
test esi, esi
je 0x40517f
sub ebx, esi
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ebx + esi - 1], al
test al, al
jne 0x405170
jmp 0x405182
mov byte [ebx], 0
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.0040acca
mov esp, ebp
pop ebp
ret
call fcn.0040aad3
int3
Function at 0x4051a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x514
mov eax, dword [0x45d1d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x40c]
push edi
mov edi, dword [ebp + 0xc]
push eax
push 0x104
mov dword [ebp - 0x514], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x4051e7
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040acca
mov esp, ebp
pop ebp
ret
push ebx
push 0x450854
push esi
call fcn.004175ae
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x405287
push 0x450854
push esi
call fcn.0040bf00
mov edi, eax
lea eax, [ebp - 0x108]
sub edi, esi
push edi
push esi
push eax
call fcn.00416240
add esp, 0x14
cmp edi, 0x104
jae 0x4052fe
lea eax, [ebp - 0x208]
mov byte [ebp + edi - 0x108], 0
push eax
lea eax, [ebp - 0x308]
push eax
lea eax, [ebp - 0x50c]
push eax
lea eax, [ebp - 0x510]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00416f5f
push ebx
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x308]
push eax
lea eax, [ebp - 0x40c]
push eax
push str._s_s_s_s
push dword [ebp - 0x514]
call fcn.004087c0
add esp, 0x2c
jmp 0x4052e8
lea ecx, [ebp - 0x108]
sub ecx, esi
nop
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x405290
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x308]
push eax
lea eax, [ebp - 0x50c]
push eax
lea eax, [ebp - 0x510]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00416f5f
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x308]
push eax
lea eax, [ebp - 0x40c]
push eax
push str._s_s_s
push edi
call fcn.004087c0
add esp, 0x28
mov ecx, dword [ebp - 4]
mov eax, 1
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0040acca
mov esp, ebp
pop ebp
ret
call fcn.0040aad3
int3

Function at 0x405490
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x510
mov eax, dword [0x45d1d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push 0x450854
push esi
call fcn.004175ae
add esp, 8
test eax, eax
je 0x4054f5
push edi
push 0x450854
push esi
call fcn.0040bf00
mov edi, eax
lea eax, [ebp - 0x108]
sub edi, esi
push edi
push esi
push eax
call fcn.00416240
add esp, 0x14
cmp edi, 0x104
jae 0x40558f
mov byte [ebp + edi - 0x108], 0
pop edi
jmp 0x40550d
lea ecx, [ebp - 0x108]
sub ecx, esi
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x405500
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x50c]
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x510]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00416f5f
add esp, 0x14
lea eax, [ebp - 0x30c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x40555e
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040acca
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x30c]
push eax
push str._s_s
push ebx
call fcn.004087c0
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
mov eax, 1
pop esi
pop ebx
call fcn.0040acca
mov esp, ebp
pop ebp
ret
call fcn.0040aad3
int3
Function at 0x405da0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x20119
push 0
push str.SOFTWAREFUJIFILMApeosWare_Management_SuiteRunAs
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405e11
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.DebugInfo
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
test eax, eax
jne 0x405e0b
mov eax, dword [0x46fff4]
mov ecx, 1
cmp dword [ebp - 0x10], ecx
cmove eax, ecx
mov dword [0x46fff4], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x405e20
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x45d1d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
mov dword [ebp - 0x114], 0
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x118]
push edi
push edx
mov edi, dword [eax + 4]
or edi, 0x2001f
mov dword [ebp - 0x120], eax
push edi
push 0
push ecx
push dword [eax]
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x118], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x405f7b
mov eax, dword [ebp - 0x114]
xor esi, esi
test eax, eax
je 0x405eac
push eax
call ebx
mov esi, eax
mov eax, dword [ebp - 0x118]
and edi, 0x300
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x110], edi
test esi, esi
jne 0x405f7b
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea ecx, [ebp - 0x128]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x108], 0x100
push ecx
lea ecx, [ebp - 0x104]
push ecx
push esi
push eax
call edi
test eax, eax
jne 0x405f47
nop dword [eax]
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x114]
call fcn.00405e20
mov esi, eax
test esi, esi
jne 0x405f7b
lea eax, [ebp - 0x128]
mov dword [ebp - 0x108], 0x100
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
push esi
push dword [ebp - 0x114]
call edi
test eax, eax
je 0x405f00
mov eax, dword [ebp - 0x114]
test eax, eax
je 0x405f5e
push eax
call ebx
mov dword [ebp - 0x114], 0
push dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0x110], 0
call fcn.004035b0
mov esi, eax
mov eax, dword [ebp - 0x114]
test eax, eax
je 0x405f88
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040acca
mov esp, ebp
pop ebp
ret 4
Function at 0x4089d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor edi, edi
mov ebx, 0x3e8
nop dword [eax]
test edi, edi
jle 0x4089eb
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x408a23
xor esi, esi
mov eax, edi
inc edi
cmp eax, 4
jge 0x408a0c
cmp esi, 5
je 0x4089e0
cmp esi, 0x20
je 0x4089e0
test esi, esi
je 0x408a17
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test esi, esi
pop edi
pop esi
sete al
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp edi, 4
jne 0x4089fa
cmp ebx, 0xfa0
jge 0x4089fa
add ebx, ebx
mov edi, 1
jmp 0x408a02

Function at 0x408ad0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor edi, edi
mov ebx, 0x3e8
mov esi, dword [ebp + 8]
test edi, edi
jle 0x408aeb
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x408b32
push esi
call fcn.00408b50
add esp, 4
xor esi, esi
mov eax, edi
inc edi
cmp eax, 4
jge 0x408b1b
cmp esi, 5
je 0x408add
cmp esi, 0x20
je 0x408add
cmp esi, 0x91
je 0x408add
test esi, esi
je 0x408b26
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test esi, esi
pop edi
pop esi
sete al
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp edi, 4
jne 0x408b01
cmp ebx, 0xfa0
jge 0x408b01
add ebx, ebx
mov edi, 1
jmp 0x408b09
Function at 0x408ca0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ed70
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x45d1d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
mov dword [ebp - 0x484], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x408cfe
xor eax, eax
jmp 0x408dc8
lea ecx, [ebp - 0x47c]
call fcn.00408df0
lea eax, [ebp - 0x478]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x47c]
call fcn.00408f80
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x408d36
mov eax, edi
sub eax, esi
cmp eax, 0x400
jb 0x408d3b
mov eax, 0x400
push 0
lea ecx, [ebp - 0x480]
push ecx
push eax
lea eax, [ebp - 0x420]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408db2
mov eax, dword [ebp - 0x480]
lea ecx, [ebp - 0x47c]
add esi, eax
test eax, eax
je 0x408d7f
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x478]
push eax
call fcn.00409690
jmp 0x408d27
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00408ee0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x484]
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x47c]
call fcn.00409790
mov esi, 1
jmp 0x408dbb
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
lea ecx, [ebp - 0x47c]
call fcn.00408e00
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 - 0x10]
xor ecx, ebp
call fcn.0040acca
mov esp, ebp
pop ebp
ret

Function at 0x408f80
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret 4
Function at 0x43d848
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043d206

Function at 0x43e2a3
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043e177

Function at 0x4427a0
Capabilities:
Read file on windows

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

Function at 0x4427ab
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044251d
Function at 0x408380
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
push edi
push esi
push edi
push esi
mov ebx, esp
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
push ecx
mov eax, dword [esp + 0x34]
push eax
push ebx
cmp ecx, 0
je 0x40845b
and ebp, 0xfffffff8
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
je 0x4083f6
mov ecx, dword [esi]
mov edx, dword [esi + 4]
xor eax, ecx
xor ebx, edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
call fcn.00407fc0
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov dword [edi], eax
mov dword [edi + 4], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x4083c4
mov ebp, dword [esp + 0x38]
and ebp, 7
je 0x408514
call fcn.00408408
and ebp, 0xfffffff8
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
je 0x4084b3
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
call fcn.00407fc0
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x40846c
mov ebp, dword [esp + 0x38]
and ebp, 7
je 0x408514
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
call fcn.00407fc0
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
ror edx, 0x10
mov byte [edi + 6], dl
shr edx, 0x10
mov byte [edi + 5], dh
mov byte [edi + 4], dl
mov dword [edi], ecx
jmp 0x40850f
jmp 0x408514
mov ecx, dword [esp + 0x40]
add esp, 0x1c
mov dword [ecx], eax
mov dword [ecx + 4], ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x408580
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x2c]
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
push edi
push esi
push edi
push esi
mov ebx, esp
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push eax
push ebx
cmp ecx, 0
je 0x408664
and ebp, 0xfffffff8
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
je 0x4085ff
mov ecx, dword [esi]
mov edx, dword [esi + 4]
xor eax, ecx
xor ebx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
call fcn.00408120
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [edi], eax
mov dword [edi + 4], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x4085cd
mov ebp, dword [esp + 0x3c]
and ebp, 7
je 0x40871d
call fcn.00408611
and ebp, 0xfffffff8
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
je 0x4086bc
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
call fcn.00408250
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x408675
mov ebp, dword [esp + 0x3c]
and ebp, 7
je 0x40871d
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
call fcn.00408250
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
ror edx, 0x10
mov byte [edi + 6], dl
shr edx, 0x10
mov byte [edi + 5], dh
mov byte [edi + 4], dl
mov dword [edi], ecx
jmp 0x408718
jmp 0x40871d
mov ecx, dword [esp + 0x4c]
add esp, 0x20
mov dword [ecx], eax
mov dword [ecx + 4], ebx
pop edi
pop esi
pop ebx
pop ebp
ret