joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4122ca
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x118]
push ebx
push esi
push edi
mov esi, eax
mov edi, edx
mov dword [ebp - 0x118], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x114], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x110], al
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.00412250
push ebp
push 0x410f00
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0x114]
push dword [ebp - 0x118]
push edi
call sub.kernel32.dll_FindResourceA
mov dword [esi + 0x10], eax
test eax, eax
jne 0x412370
mov al, byte [ebp - 0x110]
test al, al
je 0x412339
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00403560
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.004078b0
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.004085c0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x43bb0c
call fcn.00426870
mov edx, 0x4122ca
mov ecx, ebp
call fcn.00410dc0
jmp 0x412370
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x43bb0c
call fcn.00426870
mov edx, 0x412339
mov ecx, ebp
call fcn.00410dc0
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_LoadResource
mov dword [esi + 0x14], eax
test eax, eax
jne 0x412434
mov al, byte [ebp - 0x110]
test al, al
je 0x4123fd
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00403560
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.004078b0
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.004085c0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x43bb0c
call fcn.00426870
mov edx, 0x41238e
mov ecx, ebp
call fcn.00410dc0
jmp 0x412434
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x43bb0c
call fcn.00426870
mov edx, 0x4123fd
mov ecx, ebp
call fcn.00410dc0
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_SizeofResource
mov ebx, eax
push dword [esi + 0x14]
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, esi
mov ecx, ebx
call fcn.00411f90
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00412250
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x412339
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x118]
push ebx
push esi
push edi
mov esi, eax
mov edi, edx
mov dword [ebp - 0x118], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x114], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x110], al
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.00412250
push ebp
push 0x410f00
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0x114]
push dword [ebp - 0x118]
push edi
call sub.kernel32.dll_FindResourceA
mov dword [esi + 0x10], eax
test eax, eax
jne 0x412370
mov al, byte [ebp - 0x110]
test al, al
je 0x412339
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00403560
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.004078b0
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.004085c0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x43bb0c
call fcn.00426870
mov edx, 0x4122ca
mov ecx, ebp
call fcn.00410dc0
jmp 0x412370
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x43bb0c
call fcn.00426870
mov edx, 0x412339
mov ecx, ebp
call fcn.00410dc0
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_LoadResource
mov dword [esi + 0x14], eax
test eax, eax
jne 0x412434
mov al, byte [ebp - 0x110]
test al, al
je 0x4123fd
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00403560
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.004078b0
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.004085c0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x43bb0c
call fcn.00426870
mov edx, 0x41238e
mov ecx, ebp
call fcn.00410dc0
jmp 0x412434
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x43bb0c
call fcn.00426870
mov edx, 0x4123fd
mov ecx, ebp
call fcn.00410dc0
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_SizeofResource
mov ebx, eax
push dword [esi + 0x14]
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, esi
mov ecx, ebx
call fcn.00411f90
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00412250
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x427750
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
push edi
mov edi, eax
mov esi, edx
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
xor eax, eax
push fcn.00427740
push ebp
push 0x410f00
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
test ebx, ebx
jle 0x4277c0
lea edx, [ebx - 1]
lea eax, [ebp - 4]
call fcn.00409550
cmp ebx, 1
jle 0x4277b0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
xor dx, dx
call fcn.004090c0
jmp 0x4277cb
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00407030
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00427740
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x427bd0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.00427bc0
push ebp
push 0x410f00
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea esi, [esi]
add ebx, 1
lea eax, [ebx*4 + 0x44797c]
xor edx, edx
call fcn.00407030
mov dword [ebx*4 + 0x44799c], 0xffffffff
cmp ebx, 7
jl 0x427bf8
call sub.kernel32.dll_GetThreadLocale
mov esi, eax
push 0xb
lea eax, [ebp - 0xc]
push eax
push 0x100b
push esi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x427c84
lea esi, [esi]
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
xor cx, cx
mov edx, 0xa
call fcn.00407a20
mov eax, dword [ebp - 0x10]
mov edx, 1
call fcn.0041f4d0
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x427c84
push 4
push ebx
push esi
mov eax, 0x427aa0
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x427b30
push eax
call sub.kernel32.dll_EnumCalendarInfoA
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00427bc0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4282d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x1c]
push ebx
push esi
push edi
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
xor edx, edx
push fcn.004282a0
push ebp
push 0x410f00
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0xc]
call fcn.0041f170
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.00407030
lea eax, [ebp - 4]
mov cl, 1
mov dx, 1
call fcn.004085c0
mov eax, dword [ebp - 0x18]
xor edx, edx
call fcn.00407030
call sub.kernel32.dll_GetEnvironmentStringsA
mov dword [ebp - 0x1c], eax
mov ebx, eax
jmp 0x4283dc
lea ecx, [ebp - 8]
mov eax, ebx
xor dx, dx
call fcn.00407980
mov eax, dword [ebp - 8]
test eax, eax
je 0x428367
mov eax, dword [eax - 4]
mov edi, eax
lea eax, [ebp - 8]
xor cl, cl
mov dx, 1
call fcn.004085c0
mov edx, dword [ebp - 8]
mov ecx, 1
mov al, 0x3d
call fcn.00407f60
mov esi, eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi - 1]
mov eax, dword [ebp - 8]
mov edx, 1
call fcn.00407e00
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.0041f170
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00407ba0
test eax, eax
jne 0x4283d4
push dword [ebp - 0x18]
mov eax, dword [ebp - 8]
test eax, eax
je 0x4283c3
mov eax, dword [eax - 4]
sub eax, esi
mov ecx, eax
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.00407e00
jmp 0x4283e5
lea eax, [ebx + edi]
add eax, 1
mov ebx, eax
cmp byte [ebx], 0
jne 0x428350
push dword [ebp - 0x1c]
call sub.kernel32.dll_FreeEnvironmentStringsA
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.004282a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x428420
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x94]
mov dword [0x4479e0], 0
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x84]
mov dword [0x447840], eax
mov eax, dword [ebp - 0x90]
mov dword [0x447850], eax
mov eax, dword [ebp - 0x8c]
mov dword [0x447860], eax
mov eax, dword [ebp - 0x88]
mov dword [0x447870], eax
mov edx, 0x447881
lea eax, [ebp - 0x80]
mov ecx, pe_nt_image_headers32
call fcn.00402210
lea eax, [ebp - 0x80]
call fcn.00403040
mov byte [0x447880], al
mov eax, str.kernel32
push eax
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x4479f0], eax
test eax, eax
je 0x4284c0
mov eax, str.GetDiskFreeSpaceExA
push eax
push dword [0x4479f0]
call sub.kernel32.dll_GetProcAddress
mov dword [0x4479e0], eax
nop
cmp dword [0x447850], 6
jae 0x4284d4
mov dword [0x439030], 0
nop
cmp dword [0x447850], 6
jb 0x4284f0
cmp dword [0x447860], 1
jb 0x4284f0
mov dword [0x439040], 2
mov esp, ebp
pop ebp
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4088fb
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x4085d8
or eax, eax
add ecx, 0xe399d7fd
call fcn.0040891f
sub eax, eax
xor dword [edx], esi
inc edx
dec eax
add ecx, 0x7a94aa3c
cmp edx, edi
jne fcn.004088fb
ret
Function at 0x1000225b
Capabilities:
Get file version info

Disassembly:
mov eax, 0x100138c7
call fcn.10012fe0
sub esp, 0x28
push ebx
push esi
xor esi, esi
push edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x34], esi
call sub.MFC42.DLL_CString::CString_3
push 1
lea ecx, [ebp - 0x14]
pop ebx
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 2
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x28], esi
call sub.MFC42.DLL_AfxGetModuleState
push dword [eax + 0x10]
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_2
push str..dll
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_1
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
call sub.VERSION.dll_GetFileVersionInfoSizeA
push eax
mov dword [ebp - 0x2c], eax
call sub.MFC42.DLL_operatornew
pop ecx
mov edi, eax
push edi
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call sub.VERSION.dll_GetFileVersionInfoA
cmp eax, ebx
jne 0x1000235d
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
cmp eax, ebx
jne 0x1000235d
push 0xff
call sub.MFC42.DLL_operatornew
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x20]
pop ecx
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push str.StringFileInfo_04x_04xFileVersion
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x10]
push edi
call sub.VERSION.dll_VerQueryValueA
cmp eax, ebx
jne 0x1000235d
cmp dword [ebp - 0x24], esi
jbe 0x1000235d
push dword [ebp - 0x28]
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::operator_2
push 0x1001b110
push 0x1001b10c
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Replace
cmp edi, esi
je 0x10002368
push edi
call sub.MFC42.DLL_operatordelete
pop ecx
cmp dword [ebp - 0x10], esi
je 0x10002376
push dword [ebp - 0x10]
call sub.MFC42.DLL_operatordelete
pop ecx
push 0xffffffffffffffff
push dword [ebp - 0x18]
call fcn.100077c6
mov esi, dword [ebp + 8]
pop ecx
pop ecx
mov dword [ebp - 0x34], ebx
mov dword [esi], eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x1000b7f0
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.1000b740
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1000b853
push 0x8000
push eax
mov dword [esi + 4], 0
call dword [sym.imp.MSVCRT.dll__open]
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
je 0x1000b862
push ebx
push edi
call dword [sym.imp.MSVCRT.dll__filelength]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1000b871
push ebx
mov ecx, esi
call fcn.1000b6d0
test eax, eax
mov dword [esi + 4], eax
jne 0x1000b878
mov eax, dword [esi + 0xc]
push ebx
push eax
push edi
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0xc
test eax, eax
jl 0x1000b871
jmp 0x1000b878
mov dword [esi + 4], 0x1f45
mov eax, dword [esi + 4]
pop edi
pop esi
ret 4
mov dword [esi + 4], 0x1f49
mov eax, dword [esi + 4]
pop edi
pop esi
ret 4
mov dword [esi + 4], 0x1f49
test edi, edi
pop ebx
jle 0x1000b887
push edi
call dword [sym.imp.MSVCRT.dll__close]
add esp, 4
mov eax, dword [esi + 4]
pop edi
pop esi
ret 4

Function at 0x1000dc20
Capabilities:
Create process on windows
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x10014c68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, ecx
lea ecx, [esp + 4]
call fcn.1000b680
mov eax, dword [ebx + 0x474]
mov dword [esp + 0x1c], 0
test eax, eax
je 0x1000dce3
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
push ecx
push edx
lea ecx, [esp + 0xc]
call fcn.1000b790
test eax, eax
jne 0x1000dce3
push ebx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jle 0x1000dce3
push esi
push edi
mov edi, str.temp.cer
or ecx, 0xffffffff
xor eax, eax
push 0x180
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll__chmod]
add esp, 8
lea ecx, [esp + 0xc]
push ebx
call fcn.1000b890
pop edi
pop esi
test eax, eax
jne 0x1000dce3
push 0xa
push 0x1001c728
push eax
mov eax, dword [esp + 0x30]
push ebx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 4]
mov dword [esp + 0x1c], 0xffffffff
call fcn.1000b6c0
mov ecx, dword [esp + 0x14]
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x10012420
Capabilities:
Hash data using sha1

Disassembly:
xor eax, eax
mov dword [ecx + 8], 0x67452301
mov dword [ecx + 0xc], 0xefcdab89
mov dword [ecx + 0x10], 0x98badcfe
mov dword [ecx + 0x14], 0x10325476
mov dword [ecx + 0x18], 0xc3d2e1f0
mov dword [ecx + 0x1c], eax
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x64], eax
ret
Function at 0x40ddb0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
push ebx
push esi
or esi, 0xffffffff
xor ebx, ebx
mov dword [esp + 8], 0x80000
test eax, eax
je 0x40dfbe
push edi
push ebx
push pe_nt_image_headers32
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [0x4127c8]
mov edi, eax
mov dword [esp + 0x1c], edi
cmp edi, 0xffffffff
je 0x40dfbd
mov eax, dword [0x4134ac]
push ebp
push 0x80000
push ebx
push eax
call dword [0x41276c]
mov ebp, eax
test ebp, ebp
je 0x40dfb5
cmp dword [esp + 0x30], ebx
jl 0x40de31
mov eax, dword [esp + 0x2c]
jg 0x40de22
test eax, eax
je 0x40de31
push 0
lea ecx, [esp + 0x34]
push ecx
push eax
push edi
call dword [0x4127d4]
mov edx, dword [esp + 0x34]
add edx, 0x80000
mov dword [esp + 0x28], edx
jmp 0x40de45
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
sub dword [esp + 0x28], 0x80000
add ebx, 0x80000
and eax, ecx
mov dword [esp + 0x14], ebx
cmp eax, 0xffffffff
je 0x40de7d
mov eax, ebx
cdq
cmp edx, ecx
jl 0x40de7d
jg 0x40de75
cmp eax, dword [esp + 0x34]
jbe 0x40de7d
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
push 0
lea edx, [esp + 0x1c]
push edx
push eax
push ebp
push edi
call dword [0x4127cc]
mov ebx, dword [esp + 0x18]
mov eax, ebp
mov edx, ebx
cmp ebx, 8
jb 0x40df7c
mov edi, ebx
shr edi, 3
jmp 0x40deb0
movzx ecx, byte [eax]
xor ecx, esi
and ecx, 0xff
mov dword [esp + 0x1c], ecx
mov ecx, esi
mov esi, dword [esp + 0x1c]
shr ecx, 8
xor ecx, dword [esi*4 + 0x411558]
movzx esi, byte [eax + 1]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x411558]
movzx esi, byte [eax + 2]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x411558]
movzx esi, byte [eax + 3]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x411558]
movzx esi, byte [eax + 4]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x411558]
movzx esi, byte [eax + 5]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x411558]
movzx esi, byte [eax + 6]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x411558]
movzx esi, byte [eax + 7]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x411558]
add eax, 8
sub edx, 8
dec edi
mov esi, ecx
jne 0x40deb0
mov edi, dword [esp + 0x20]
test edx, edx
je 0x40df99
movzx ecx, byte [eax]
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x411558]
inc eax
dec edx
jne 0x40df80
cmp ebx, 0x80000
je 0x40de41
mov edx, dword [0x4134ac]
push ebp
push 0
push edx
call dword [0x412770]
push edi
call dword [0x41278c]
pop ebp
pop edi
mov eax, esi
pop esi
not eax
pop ebx
add esp, 0x14
ret 0x14

Function at 0x40dff0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x41b6d5
Capabilities:
Create directory
Get common file path
Get hostname

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x136c
call fcn.0040e160
cmp dword [0x4456ac], 0x37
jne 0x41b7c8
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CommConfigDialogA]
lea eax, [ebp - 0x924]
push eax
lea eax, [ebp - 0x1248]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push str.teliyemukososixu
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x1368]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
push 0
push str.sexebigulihijowawekowazini
push 0
push str.Rid_wizowufelerowudasosupud_duposuhaxixamofoc
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea eax, [ebp - 0x920]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0
push 0
push 0
lea eax, [ebp - 0xa48]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
push 0
push str.funanatitoxemopatu_wecelatiseta
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.Nosaruvalekilit_hohefeco_pevovefajabejib_mefenipa_woliyijanexuc
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push 0
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0
push str.fezekopupikayocicizojisowa_zihebagaponaxo
push 0
push str.tumuxi_yonilihoredaxi_xeminutarikehigawowahuyahoxyfu_nuzuluzo
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringW]
and dword [ebp - 4], 0
mov eax, dword [0x445da8]
add dword [ebp - 4], eax
mov eax, 0x8c456
add dword [ebp - 4], eax
mov eax, dword [0x44371c]
add eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
add ecx, dword [ebp + 8]
mov cl, byte [ecx]
mov byte [eax], cl
leave
ret 4
Function at 0x41bd56
Capabilities:
Allocate thread local storage
Delete file
Get disk information
Manipulate console buffer
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc68
push edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [0x4456ac], 0x516
jne 0x41bdfc
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll__hread]
push 0
push 0
call dword [sym.imp.KERNEL32.dll__lopen]
push 0
call dword [sym.imp.KERNEL32.dll_ExitThread]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
shr eax, 3
mov dword [ebp - 0xc], eax
and dword [ebp - 8], 0
jmp 0x41be18
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jae 0x41be9f
cmp dword [0x4456ac], 0x29
jne 0x41be34
push str.Wilemegeyinabey
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
shl eax, 1
mov dword [ebp - 0x10], eax
cmp dword [0x4456ac], 0x1c
jne 0x41be88
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push 0
lea eax, [ebp - 0xc68]
push eax
push str.vikoserujofafuhazivovejijuwaxu_zinige
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
and dword [ebp - 0x464], 0
xor eax, eax
lea edi, [ebp - 0x460]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp + 0x10]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax*4]
push eax
call fcn.0041ba52
jmp 0x41be11
pop edi
leave
ret 0xc
Function at 0x405d6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a0c], 0
push esi
jne 0x405da2
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d7c
mov dword [ecx*4 + 0x422a08], eax
inc ecx
cmp ecx, 0x100
jl 0x405d77
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dd3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a08]
xor eax, esi
inc ecx
dec edx
jne 0x405db5
pop edi
not eax
pop esi
ret 0xc

Function at 0x408946
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
mov edx, dword [esp]
add esp, 4
push 0xcb2fb86
pop edi
call fcn.0040897a
and edi, ecx
inc ecx
xor dword [esi], edx
add ecx, 0x3060c6b8
sub edi, 0xe37d33ac
inc esi
cmp esi, eax
jne fcn.00408946
ret