joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445310
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403d58
mov eax, dword [ebp - 8]
call fcn.00403d58
mov eax, dword [ebp - 0xc]
call fcn.00403d58
xor eax, eax
push ebp
push 0x4453df
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x4453f8
call fcn.00403bac
lea eax, [ebp - 8]
mov edx, 0x4453f8
call fcn.00403bac
lea eax, [ebp - 0xc]
mov edx, 0x4453f8
call fcn.00403bac
mov bl, 1
push 1
lea eax, [ebp - 0xc]
call fcn.00403d74
push eax
lea eax, [ebp - 8]
call fcn.00403d74
push eax
lea eax, [ebp - 4]
call fcn.00403d74
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
jae 0x4453c4
xor ebx, ebx
push 0
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, 0x445404
call fcn.00403bf0
mov eax, dword [ebp - 0x10]
mov cx, word [0x445418]
mov dl, 1
call fcn.00440d20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4453e6
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.0040394c
ret
Function at 0x401037
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp - 0xc], eax
mov eax, dword [0x42a368]
push ebx
mov dword [ebp - 0x2c], eax
mov eax, dword [0x42a36c]
push esi
mov esi, dword [edx + 4]
xor ebx, ebx
mov dword [ebp - 0x24], eax
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
call fcn.00401030
mov eax, dword [0x42a370]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [0x42a374]
add edi, 0x23f
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov eax, dword [ebp - 0xc]
shl eax, 4
cmp dword [0x1a1af24], 0xc
mov dword [ebp - 4], eax
jne 0x4010c2
push ebx
lea eax, [ebp - 0x34]
push eax
push ebx
lea eax, [ebp - 0x438]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
add eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
mov eax, dword [0x1a1af24]
cmp eax, 0xfa9
jne 0x4010de
mov dword [0x1a1af20], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010f9
push ebx
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov edx, dword [ebp + 8]
mov dword [0x1a1ae74], ebx
mov eax, dword [ebp - 0xc]
add eax, edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [0x1a1af1c], 0xf4ea3dee
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x14]
sub esi, eax
mov dword [ebp - 8], eax
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
lea eax, [edi + esi]
mov dword [ebp - 0x18], eax
mov eax, esi
shr eax, cl
add eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
add edi, 0x61c88647
dec dword [ebp - 0x20]
jne 0x40108b
mov eax, dword [ebp - 0xc]
pop edi
mov dword [edx + 4], esi
pop esi
mov dword [edx], eax
pop ebx
leave
ret 4
Function at 0x4057ba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x429788]
jne 0x4057c4
repz ret
jmp fcn.0040938f

Function at 0x408c7a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004058bc
and dword [ebp - 4], 0
cmp dword [0x4333bc], 0
mov ebx, eax
jne 0x408d2b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408ddc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408ddc
push eax
call fcn.0040584a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4333bc], eax
call esi
push eax
call fcn.0040584a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4333c0], eax
call esi
push eax
call fcn.0040584a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4333c4], eax
call esi
push eax
call fcn.0040584a
pop ecx
mov dword [0x4333cc], eax
test eax, eax
je 0x408d2b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040584a
pop ecx
mov dword [0x4333c8], eax
mov eax, dword [0x4333c8]
cmp eax, ebx
je 0x408d83
cmp dword [0x4333cc], ebx
je 0x408d83
push eax
call fcn.004058c5
push dword [0x4333cc]
mov esi, eax
call fcn.004058c5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408d83
test edi, edi
je 0x408d83
call esi
test eax, eax
je 0x408d7a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408d7a
test byte [ebp - 0xc], 1
jne 0x408d83
or dword [ebp + 0x10], 0x200000
jmp 0x408dbc
mov eax, dword [0x4333c0]
cmp eax, ebx
je 0x408dbc
push eax
call fcn.004058c5
pop ecx
test eax, eax
je 0x408dbc
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408dbc
mov eax, dword [0x4333c4]
cmp eax, ebx
je 0x408dbc
push eax
call fcn.004058c5
pop ecx
test eax, eax
je 0x408dbc
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4333bc]
call fcn.004058c5
pop ecx
test eax, eax
je 0x408ddc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408dde
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40548b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x40549a
pop dword [ebp - 0x10]
mov eax, 0xe4bb45be
sub eax, 0xe47af124
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x7ac72f36
sub dword [ebp - 0x20], 0x2c74e9eb
mov dword [ebp - 0x1c], 0x2f047b2b
sub dword [ebp - 0x1c], 0xfcd12ee6
mov dword [ebp - 0x18], 0x2be8c475
add dword [ebp - 0x18], 0x20637fb9
mov dword [ebp - 0x14], 0xea2bd92f
sub dword [ebp - 0x14], 0xea2bd92f
lea eax, [ebp - 0x20]
push eax
mov eax, 0xf44ce697
add eax, 0xbf38a75
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0xaa7acebc
sub dword [ebp - 0x20], 0x36086566
mov dword [ebp - 0x1c], 0x2646d51a
add dword [ebp - 0x1c], 0x1b258c5b
mov dword [ebp - 0x18], 0xd7a4f15b
sub dword [ebp - 0x18], 0x743584ef
mov dword [ebp - 0x14], 0xb3a5cf01
sub dword [ebp - 0x14], 0xb3a5cf01
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x855f457
sub eax, 0x8158343
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x37ccf
push 0
call eax
mov ecx, 0x4b9f
mov esi, eax
mov edx, 0x432600
add edx, dword [ebp - 0x10]
mov edi, 0xa3b7ffcd
sub edi, 0xd8415957
sub dword [ebp - 0xc], 0x1818b3a7
mov ebx, dword [edx]
sub dword [ebp - 0xc], ecx
xor ebx, edi
xor dword [ebp - 0xc], esi
mov dword [esi], ebx
mov dword [ebp - 0xc], 0xfd3d229f
add esi, 0x6b3b9e88
add esi, 0x94c4617c
add edx, 0x9e410838
add edx, 0x61bef7cc
loop 0x4055b0
add eax, 0x1214f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xeba5f522
sub ecx, 0xeb65f522
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x40573a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4218a8
push esi
call fcn.00405b66
push esi
call fcn.004056ed
mov edi, eax
test edi, edi
jne 0x40575b
xor eax, eax
jmp 0x4057ad
push edi
call fcn.00405dc8
test byte [0x423eb8], 0x80
je 0x405774
mov al, byte [edi]
test al, al
je 0x405757
cmp al, 0x5c
je 0x405757
sub edi, esi
jmp 0x40578c
call fcn.00405e61
test eax, eax
je 0x405786
test byte [eax], 0x10
je 0x405757
push esi
call fcn.004056a0
push esi
call sub.kernel32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405778
call fcn.00405659
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x40581e
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40583a
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
ret 4

Function at 0x40583d
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileA]
ret 0xc
Function at 0x40341a
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push VariantClear
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x403462
mov eax, 0x8eb0d9
push eax
push 1
mov ebx, 0x194
call fcn.004718b0
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 8
jge 0x403487
jmp 0x40360f
push dword [ebp + 8]
call fcn.0040321e
mov dword [ebp - 8], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fadd qword [0x8ee6eb]
fstp qword [ebp - 0x28]
mov dword [ebp - 0x2c], esp
fld qword [ebp - 0x28]
call fcn.00402c6b
push eax
push 0x40
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x4034db
push 0x129
push 0x4065a7a
push 6
call fcn.0046f148
add esp, 0xc
mov dword [ebp - 0xc], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fsub qword [0x8ee6eb]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.00402c6b
push eax
lea eax, [ebp - 0x10]
mov ebx, eax
mov ecx, 0
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x4035e0
fild dword [ebp - 8]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild dword [ebp - 0x10]
fstp qword [ebp - 0x28]
fadd qword [ebp - 0x28]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.00402c6b
push eax
call fcn.004033fe
mov word [ebp - 0x14], ax
cmp word [ebp - 0x14], 0
jne 0x40357e
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x403574
push 0x222
push 0x4065a7a
push 6
call fcn.0046f148
add esp, 0xc
jmp 0x4035e0
cmp word [ebp - 0x14], 0x5c
jne 0x4035c7
cmp dword [ebp - 0x18], 0
jle 0x4035c4
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x4035c4
push 0x2c3
push 0x4065a7a
push 6
call fcn.0046f148
add esp, 0xc
inc dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call fcn.00403615
pop ebx
pop ecx
pop edx
add ecx, 2
jmp 0x403504
add esp, 0xc
mov dword [ebp - 0x1c], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x40360f
push 0x374
push 0x4065a7a
push 6
call fcn.0046f148
add esp, 0xc
mov esp, ebp
pop ebp
ret 4
Function at 0x40de8a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
jne 0x40dedc
mov dword [ebp - 0xc], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40ded4
push 0x4f
push 0x405562a
push 6
call fcn.0046f148
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x40df15
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
push 0
push 1
xor eax, eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40df12
push 0x7d
push 0x405562a
push 6
call fcn.0046f148
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40df29
mov eax, 0
jmp 0x40df91
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40df5a
push 0x10b
push 0x405562a
push 6
call fcn.0046f148
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40df89
push 0x12f
push 0x405562a
push 6
call fcn.0046f148
add esp, 0xc
mov eax, dword [ebp - 8]
jmp 0x40df91
mov esp, ebp
pop ebp
ret 8

Function at 0x40e0b4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
nop
cmp dword [ebp - 4], esp
je 0x40e0eb
push 0x12
push 0x405558f
push 6
call fcn.0046f148
add esp, 0xc
jmp 0x40e0f0
mov esp, ebp
pop ebp
ret 4

Function at 0x411cc7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push reloc.OLEAUT32.dll_SysStringLen
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x9dc
call fcn.004743d0
add esp, 0x10
mov dword [ebp - 4], eax
push dword [ebp + 0x14]
call fcn.00409d5e
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
push 0
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x411d3b
push 0x60
push 0x405567b
push 6
call fcn.0046f148
add esp, 0xc
jmp 0x411d40
mov esp, ebp
pop ebp
ret 0x14
Function at 0x412c8d
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push dword [ebp + 0x14]
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
nop
nop
cmp dword [ebp - 8], esp
je 0x412cd4
push 0x19
push 0x4055667
push 6
call fcn.0046f148
add esp, 0xc
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0x1c]
fild qword [ebx]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
mov ebx, dword [ebp + 0xc]
fild qword [ebx]
fstp qword [ebp - 0x14]
fsub qword [ebp - 0x14]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
call fcn.00402c6b
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov ebx, dword [ebp + 0xc]
fild qword [ebx]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fdiv qword [0x8f5931]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
call fcn.00402c6b
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov ebx, dword [ebp + 0x14]
fild qword [ebx]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fdiv qword [0x8f5931]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
call fcn.00402c6b
mov ebx, dword [ebp + 0x14]
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov ebx, dword [ebp + 0x1c]
fild qword [ebx]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fdiv qword [0x8f5931]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
call fcn.00402c6b
mov ebx, dword [ebp + 0x1c]
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov eax, dword [ebp - 4]
jmp 0x412d74
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x41340f
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
nop
nop
cmp dword [ebp - 8], esp
je 0x41344f
push 0
push 0x405569a
push 6
call fcn.0046f148
add esp, 0xc
mov dword [ebp - 8], esp
push dword [ebp - 4]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
nop
nop
cmp dword [ebp - 8], esp
je 0x41347e
push 0x33
push 0x405569a
push 6
call fcn.0046f148
add esp, 0xc
jmp 0x413483
mov esp, ebp
pop ebp
ret 4
Function at 0x413c12
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push VariantClear
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x413c5a
mov eax, 0x8eb0d9
push eax
push 1
mov ebx, 0x194
call fcn.004718b0
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 8
jge 0x413c7f
jmp 0x413e00
push dword [ebp + 8]
call fcn.00405c4f
mov dword [ebp - 8], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fadd qword [0x8ee6eb]
fstp qword [ebp - 0x28]
mov dword [ebp - 0x2c], esp
fld qword [ebp - 0x28]
call fcn.00402c6b
push eax
push 0x40
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x413cd3
push 0x129
push 0x405617a
push 6
call fcn.0046f148
add esp, 0xc
mov dword [ebp - 0xc], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fsub qword [0x8ee6eb]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.00402c6b
push eax
lea eax, [ebp - 0x10]
mov ebx, eax
mov ecx, 0
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x413dd1
push dword [ebp - 0x10]
push dword [ebp - 8]
call fcn.00413e06
mov word [ebp - 0x14], ax
cmp word [ebp - 0x14], 0x2f
jne 0x413d29
mov word [ebp - 0x14], 0x5c
cmp word [ebp - 0x14], 0
jne 0x413d6f
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x413d65
push 0x26e
push 0x405617a
push 6
call fcn.0046f148
add esp, 0xc
jmp 0x413dd1
cmp word [ebp - 0x14], 0x5c
jne 0x413db8
cmp dword [ebp - 0x18], 0
jle 0x413db5
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x413db5
push 0x30f
push 0x405617a
push 6
call fcn.0046f148
add esp, 0xc
inc dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call fcn.00413e29
pop ebx
pop ecx
pop edx
add ecx, 2
jmp 0x413cfc
add esp, 0xc
mov dword [ebp - 0x1c], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x413e00
push 0x3c0
push 0x405617a
push 6
call fcn.0046f148
add esp, 0xc
mov esp, ebp
pop ebp
ret 4
Function at 0x42305d
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x32
push 1
mov ebx, 0x184
call fcn.004747c0
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4230a2
push ebx
call fcn.0046f13c
add esp, 4
pop eax
mov dword [ebp - 4], eax
push VariantClear
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4230b9
mov eax, 0x49e2fe
push eax
push 1
mov ebx, 0x130
call fcn.00471480
add esp, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4230ff
push 0x73
push 0x405562f
push 6
call fcn.0046f148
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42312d
mov eax, dword [ebp - 4]
test eax, eax
je 0x423128
push eax
mov ebx, eax
call fcn.00401085
inc eax
push eax
call fcn.0046f142
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x423137
mov eax, 0x49e2fe
jmp 0x423137
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x423148
push ebx
call fcn.0046f13c
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x425387
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x4253bf
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x4253ad
mov al, 1
jmp 0x42541e
cmp dword [ebx + 0x54], ecx
jne 0x4253b6
mov al, 2
jmp 0x42541e
cmp dword [ebx + 0x7c], ecx
jne 0x42541e
mov al, 3
jmp 0x42541e
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x4253d4
mov al, 4
jmp 0x42541e
cmp ecx, 5
jne 0x4253f4
cmp ebx, 0
jne 0x4253e2
mov al, 5
jmp 0x42541e
cmp ebx, 1
jne 0x4253eb
mov al, 6
jmp 0x42541e
cmp ebx, 2
jne 0x4253f4
mov al, 7
jmp 0x42541e
cmp ecx, 6
jne 0x42541c
cmp ebx, 0
jne 0x425402
mov al, 8
jmp 0x42541e
cmp ebx, 1
jne 0x425409
mov al, 9
cmp ebx, 2
jne 0x425410
mov al, 0xa
cmp ebx, 3
jne 0x425417
mov al, 0xb
cmp ebx, 4
jne 0x42541e
mov al, 0xc
pop ebx
leave
ret
Function at 0x470bb0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x470c42
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x470c34
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x470c2c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x470bf5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x470c50
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret

Function at 0x4745d0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x474639
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.004708a0
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x475460
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x47547e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x475473
pop esi
ret