joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a970
Capabilities:
Create thread

Disassembly:
sub esp, 0x18
fldz
push ebx
fst dword [esp + 0x10]
xor ebx, ebx
fst dword [esp + 0x14]
push ebp
mov dword [esp + 0xc], ebx
fstp dword [esp + 0x10]
push esi
xor eax, eax
xor esi, esi
mov word [esp + 0xc], ax
push edi
mov dword [esp + 0x10], ebx
mov dword [0x42796c], ebx
lea ebp, [ebx + 1]
cmp dword [0x4251a8], ebx
je 0x40aa12
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
nop
add dword [0x425264], ebp
fld qword [0x426058]
mov ecx, dword [0x425264]
fsub qword [0x41fb10]
push ebx
push ebx
mov dword [esp + 0x2c], ecx
fild dword [esp + 0x2c]
push esi
push 0x401860
push ebx
faddp st(1)
push ebx
mov dword [esi*4 + 0x4274a8], ebx
fstp qword [0x423928]
call edi
mov edx, dword [0x425240]
mov eax, 0xc793b2db
sub eax, edx
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
add esi, ebp
fadd dword [esp + 0x18]
fstp dword [esp + 0x18]
cmp esi, dword [0x4251a8]
jne 0x40a9b0
mov ecx, dword [0x423574]
add ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x24], ecx
fild dword [esp + 0x24]
push 0xa
fld qword [0x423cf8]
fld dword [0x423638]
faddp st(2)
fsubrp st(1)
fstp qword [0x423cf8]
fld dword [0x423638]
fsub qword [0x41f368]
fstp dword [0x423638]
add dword [0x423574], ebp
add dword [esp + 0x14], ebp
add dword [esp + 0x18], ebp
mov edx, dword [esp + 0x18]
add edx, dword [esp + 0x18]
mov dword [esp + 0x28], edx
fild dword [esp + 0x28]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x1c]
call edi
mov eax, dword [esp + 0x14]
sub eax, 0x36f0b20b
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fld dword [esp + 0x1c]
dec dword [esp + 0x14]
fcompp
fnstsw ax
test ah, 0x41
jne 0x40aab6
mov ecx, dword [esp + 0x10]
add ecx, 0x1ebfa994
mov dword [esp + 0x24], ecx
fild dword [esp + 0x24]
fstp dword [esp + 0x18]
jmp 0x40aada
mov edx, dword [0x423574]
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
fld dword [esp + 0x20]
fsub qword [0x41fb08]
fsubp st(1)
call fcn.0040b3c0
mov dword [0x423574], eax
mov esi, 0x4251ac
nop
movzx eax, word [esi]
mov ecx, dword [eax*4 + 0x4274a8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
add dword [esp + 0x14], ebp
mov edx, dword [esp + 0x14]
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
fadd qword [0x423180]
fsub dword [esp + 0x1c]
fadd dword [esp + 0x20]
fstp dword [esp + 0x20]
fld dword [esp + 0x1c]
movzx eax, word [esi]
fadd qword [0x41f368]
fstp dword [esp + 0x1c]
cmp dword [eax*4 + 0x4274a8], ebx
je 0x40ab40
lea ecx, [ecx]
push 0xa
call edi
movzx ecx, word [esi]
cmp dword [ecx*4 + 0x4274a8], ebx
jne 0x40ab30
add esi, 2
cmp esi, 0x4251b4
jne 0x40aae0
call dword [0x42796c]
leave
add al, 0x70
mov gs, word [edx + edx*2 + 0x57]
popal
aam 0x1d
cmpsd dword [esi], dword es:[edi]
xchg ecx, eax
clc
push esi
or esp, dword [esp + 0x245e5d73]
popal
idiv byte [eax]
shr eax, 1
mov dword [0x892c6458], eax
ror byte [esi + 0x4e], cl
pushfd
and dword [eax], eax
call dword [esi + 0x13a7b0e8]
cwde
pop esp
or edx, ecx
jle 0x40abfd
pop ebp
mov al, 0x73
cld
test byte [eax + 0x18a33788], 0x7b
iretd
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 0x10
Function at 0x40b9a5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x426160]
jne 0x40b9af
repz ret
jmp fcn.0040fb96

Function at 0x4169b4
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.0040fd16
and dword [ebp - 4], 0
cmp dword [0x4283d4], 0
mov ebx, eax
jne 0x416a65
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x416b16
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x420bb8
push edi
call esi
test eax, eax
je 0x416b16
push eax
call fcn.0040fca4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4283d4], eax
call esi
push eax
call fcn.0040fca4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4283d8], eax
call esi
push eax
call fcn.0040fca4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4283dc], eax
call esi
push eax
call fcn.0040fca4
pop ecx
mov dword [0x4283e4], eax
test eax, eax
je 0x416a65
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040fca4
pop ecx
mov dword [0x4283e0], eax
mov eax, dword [0x4283e0]
cmp eax, ebx
je 0x416abd
cmp dword [0x4283e4], ebx
je 0x416abd
push eax
call fcn.0040fd1f
push dword [0x4283e4]
mov esi, eax
call fcn.0040fd1f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x416abd
test edi, edi
je 0x416abd
call esi
test eax, eax
je 0x416ab4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x416ab4
test byte [ebp - 0xc], 1
jne 0x416abd
or dword [ebp + 0x10], 0x200000
jmp 0x416af6
mov eax, dword [0x4283d8]
cmp eax, ebx
je 0x416af6
push eax
call fcn.0040fd1f
pop ecx
test eax, eax
je 0x416af6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x416af6
mov eax, dword [0x4283dc]
cmp eax, ebx
je 0x416af6
push eax
call fcn.0040fd1f
pop ecx
test eax, eax
je 0x416af6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4283d4]
call fcn.0040fd1f
pop ecx
test eax, eax
je 0x416b16
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x416b18
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401537
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Extract resource via kernel32 functions
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov esi, dword [esp + 0x90]
and esi, 0xffff0000
mov eax, esi
cmp word [eax], 0x5a4d
jne 0x401556
add eax, dword [eax + 0x3c]
sub esi, 0x10000
cmp word [eax], 0x4550
jne 0x40154a
add esi, 0x10000
push esi
mov eax, 0x40400c
pop dword [eax]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004014a5
mov dword [0x40410b], eax
push 0x404023
push 0x3e9
push 0
call sub.kernel32.dll_FindResourceA
or eax, eax
jne 0x40159a
leave
ret 8
push eax
push eax
push 0
call sub.kernel32.dll_SizeofResource
or eax, eax
jne 0x4015ab
leave
ret 8
mov dword [ebp - 8], eax
pop eax
push eax
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
jne 0x4015bf
leave
ret 8
push eax
call sub.kernel32.dll_LockResource
or eax, eax
jne 0x4015cd
leave
ret 8
mov dword [ebp - 0xc], eax
push 4
push 0x3000
push dword [ebp - 8]
push 0
call sub.kernel32.dll_VirtualAlloc
or eax, eax
jne 0x4015e9
leave
ret 8
push eax
mov esi, dword [ebp - 0xc]
mov edi, eax
mov ecx, dword [ebp - 8]
rep movsb byte es:[edi], byte [esi]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 8]
push dword [esp + 0xc]
call fcn.004013ec
mov ebx, dword [esp]
add ebx, dword [ebx + 0x3c]
lea eax, [ebx + 0x18]
mov ebx, dword [eax + 0x38]
pop eax
push ebx
push 0x8000
push 0
push eax
call sub.kernel32.dll_VirtualFree
mov ebx, dword [ebp + 0xc]
add ebx, dword [ebx + 0x3c]
lea eax, [ebx + 0x18]
mov ebx, dword [eax + 0x38]
mov dword [ebp - 4], ebx
mov ebx, dword [esp]
add ebx, dword [ebp + 0xc]
and ebx, 0xffff0000
add ebx, 0x10000
push 0x40
push 0x3000
push dword [ebp - 4]
push ebx
call sub.kernel32.dll_VirtualAlloc
or eax, eax
je 0x40163c
mov edi, eax
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
rep movsb byte es:[edi], byte [esi]
push eax
sub eax, dword [ebp + 0xc]
add dword [ebp + 8], eax
mov ebx, 0x4016b6
add ebx, dword [ebp + 8]
mov dword [ebp - 0x14], ebx
mov ebx, 0x401b5a
add ebx, dword [ebp + 8]
sub ebx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
lea ebx, [ebp - 0x14]
push ebx
push 0x401303
push dword [ebp + 0xc]
call fcn.0040105b
pop eax
pop ebx
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
mov eax, dword [ebp + 8]
add dword [ebp - 0xc], eax
push dword [ebp - 0xc]
mov eax, 0x40189c
nop
nop
add eax, dword [ebp + 8]
nop
call eax
nop
leave
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40a020
Capabilities:
Get common file path
Move file

Disassembly:
sub esp, 0x200
lea eax, [esp]
push 0xff
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40a0cb
push ebx
push esi
lea ecx, [esp + 8]
push edi
push ecx
lea edx, [esp + 0x110]
push 0x40e394
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, 0x40e38c
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x210]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
test eax, eax
pop ebx
je 0x40a0b5
lea eax, [esp + 0x100]
lea ecx, [esp]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 8
add esp, 0x200
ret
lea edx, [esp]
lea eax, [esp + 0x100]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 8
add esp, 0x200
ret

Function at 0xd68804
Capabilities:
Encode data using xor

Disassembly:
jmp 0xd6880e
pushal
call 0xd68814
pop ebp
sub ebp, 0x10
sub ebp, 0x968804
jmp 0xd6882a
mov eax, 0x968804
add eax, ebp
add eax, 0x4c
mov ecx, 0x5b7
mov edx, 0x38a47048
xor byte [eax], dl
inc eax
dec ecx
jne 0xd68841
jmp 0xd68854
ret
Function at 0x486cb7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4af9fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00479886
and dword [ebp - 0x14], 0
cmp dword [0x4b230c], 0
mov dword [ebp - 0x18], eax
jne 0x486d6a
push 0x496bc4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x486e12
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x496bb8
push ebx
call edi
test eax, eax
je 0x486e12
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x496ba8
push ebx
mov dword [0x4b230c], eax
call edi
push eax
call esi
push 0x496b94
push ebx
mov dword [0x4b2310], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4b2314], eax
call edi
push eax
call esi
mov dword [0x4b231c], eax
test eax, eax
je 0x486d6a
push 0x496b60
push ebx
call edi
push eax
call esi
mov dword [0x4b2318], eax
mov eax, dword [0x4b2318]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x486dc3
cmp dword [0x4b231c], ecx
je 0x486dc3
push eax
call esi
push dword [0x4b231c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x486dc3
test ebx, ebx
je 0x486dc3
call edi
test eax, eax
je 0x486dba
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x486dba
test byte [ebp - 8], 1
jne 0x486dc3
or dword [ebp + 0x10], 0x200000
jmp 0x486df6
mov eax, dword [0x4b2310]
cmp eax, dword [ebp - 0x18]
je 0x486df6
push eax
call esi
test eax, eax
je 0x486df6
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x486df6
mov eax, dword [0x4b2314]
cmp eax, dword [ebp - 0x18]
je 0x486df6
push eax
call esi
test eax, eax
je 0x486df6
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4b230c]
call esi
test eax, eax
je 0x486e12
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x486e14
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046d6a1
leave
ret
Function at 0x414e60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf000]
push edi
jmp 0x414e7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x414e81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414e70
mov eax, 1
add ebx, ebx
jne 0x414e93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x414e88
jne 0x414ea4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414e88
xor ecx, ecx
sub eax, 3
jb 0x414eb8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x414f2a
mov ebp, eax
add ebx, ebx
jne 0x414ec3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x414ed0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x414ef4
inc ecx
add ebx, ebx
jne 0x414ee0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x414ed5
jne 0x414ef1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414ed5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x414f14
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x414f05
jmp 0x414e76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x414f14
add edi, ecx
jmp 0x414e76
pop esi
mov edi, esi
mov ecx, 0x5a7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x414f32
cmp byte [edi], 5
jne 0x414f32
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x414f37
lea edi, [esi + 0x12000]
mov eax, dword [edi]
or eax, eax
je 0x414fa6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x15454]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1551c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x414f64
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x15520]
or eax, eax
je 0x414fa0
mov dword [ebx], eax
add ebx, 4
jmp 0x414f81
call dword [esi + 0x15530]
mov ebp, dword [esi + 0x15524]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x414fda
sub esp, 0xffffff80
jmp 0x40a764

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x57e44ad8
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x59106e9b
nop
nop
nop
test eax, eax
nop
je 0x432084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x10001c26
Capabilities:
Query or enumerate registry value

Disassembly:
push str.WcaVerboseLogging
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
xor ecx, ecx
cmp cx, ax
je 0x10001c3c
xor eax, eax
inc eax
ret
push str.WcaNotVerboseLogging
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
xor ecx, ecx
cmp cx, ax
je 0x10001c51
xor eax, eax
ret
jmp fcn.10001c56

Function at 0x10001c56
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1001a00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 8
pop ecx
xor eax, eax
mov dword [ebp - 0x2c], 0x20
lea edi, [ebp - 0x24]
xor esi, esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], esi
push eax
push 1
push esi
push str.SoftwarePoliciesMicrosoftWindowsInstaller
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10001cf7
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push esi
push str.Logging
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10001cee
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x24]
shr ecx, 1
je 0x10001cee
mov edi, esi
push ebx
movzx eax, word [edx]
test ax, ax
je 0x10001ced
push 0x76
pop ebx
cmp bx, ax
je 0x10001cea
push 0x56
pop ebx
cmp bx, ax
je 0x10001cea
add edi, 2
add edx, 2
mov eax, edi
sar eax, 1
cmp ecx, eax
ja 0x10001cc2
jmp 0x10001ced
xor esi, esi
inc esi
pop ebx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.100021b7
leave
ret
Function at 0x10010d64
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor eax, eax
push esi
push edi
mov esi, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x10010dbf
call ebx
mov esi, eax
test esi, esi
jle 0x10010da8
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x10010dbf
push esi
push 0x115
push str.c:_agent_work36_swix_srclibsdutil_fileutil.cpp
call fcn.10001742
jmp 0x10010e63
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x10010ddb
mov esi, 0x8007000e
push esi
push 0x119
jmp 0x10010db0
push edi
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x10010e15
call ebx
mov esi, eax
test esi, esi
jle 0x10010e01
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x10010e15
push esi
push 0x11d
push str.c:_agent_work36_swix_srclibsdutil_fileutil.cpp
call fcn.10001742
jmp 0x10010e5c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x10012210
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x10010e49
call ebx
mov esi, eax
test esi, esi
jle 0x10010e3f
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x10010e49
push esi
push 0x122
jmp 0x10010e09
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [edx + 0xc]
mov dword [ecx], edx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x401180
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x406040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x404208
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
push eax
mov dword [edi], 0xffffffff
mov dword [ebp - 8], 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
add esp, 0xc
test eax, eax
je 0x4011d1
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040315c
mov esp, ebp
pop ebp
ret 0xc
push ebx
push 0x400
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov ebx, eax
mov dword [ebp - 0x10], ebx
push dword [ebp - 8]
test ebx, ebx
jne 0x401209
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor al, al
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040315c
mov esp, ebp
pop ebp
ret 0xc
push 0x400
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
test eax, eax
je 0x40125c
push esi
nop
mov esi, ebx
mov ebx, dword [edi]
lea esi, [esi + 1]
movzx ecx, byte [esi - 1]
movzx edx, bl
xor edx, ecx
shr ebx, 8
mov ecx, dword [ebp - 0xc]
xor ebx, dword [ecx + edx*4]
mov dword [edi], ebx
sub eax, 1
jne 0x401222
push dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
push 0x400
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
test eax, eax
jne 0x401220
pop esi
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, dword [ebp - 4]
add esp, 8
not dword [edi]
xor ecx, ebp
mov al, 1
pop ebx
pop edi
call fcn.0040315c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401290
Capabilities:
Execute command
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov eax, dword [0x406040]
xor eax, esp
mov dword [esp + 4], eax
push esi
push edi
push str.What_do_you_want_to_do_:__n
call fcn.00401f60
add esp, 4
push str.1___Gerar_Config__n
call fcn.00401f60
add esp, 4
push str.2___Encrypt_Files__n
call fcn.00401f60
add esp, 4
push str.3___Encrypt_Lua__n
call fcn.00401f60
add esp, 4
push str.4___Custom_Jewels__n
call fcn.00401f60
add esp, 4
push str.5___Gerar_Tudo__n
call fcn.00401f60
add esp, 4
mov dword [esp + 8], 0
lea eax, [esp + 8]
push eax
push 0x40428c
call fcn.00401ee0
mov eax, dword [esp + 0x10]
add esp, 8
cmp eax, 1
jne 0x401321
call fcn.004014e0
jmp 0x4014ab
cmp eax, 2
jne 0x401387
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str..Configs.txt
push 0x11
push 0x406c74
push 0x40479f
push str.IpAddress
push str.Configs
call esi
push str..Configs.txt
push 0x7d
push 0x406c85
push 0x40479f
push str.PrivateCode
push str.Configs
call esi
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.Files_Encrypted_
push str.Files_Decrypted_
mov ecx, 0x406b68
call fcn.00402720
jmp 0x4014ab
cmp eax, 3
jne 0x4013d9
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str..Configs.txt
push 0x11
push 0x406e14
push 0x40479f
push str.IpAddress
push str.Configs
call esi
push str..Configs.txt
push 0x7d
push 0x406e25
push 0x40479f
push str.PrivateCode
push str.Configs
call esi
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401497
cmp eax, 4
jne 0x4013e8
call fcn.00401e00
jmp 0x4014ab
cmp eax, 5
jne 0x4014ab
call fcn.004014e0
call fcn.00401e00
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str..Configs.txt
push 0x11
push 0x406c74
push 0x40479f
push str.IpAddress
push str.Configs
call edi
push str..Configs.txt
push 0x7d
push 0x406c85
push 0x40479f
push str.PrivateCode
push str.Configs
call edi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x14
call esi
push str.Files_Encrypted_
push str.Files_Decrypted_
mov ecx, 0x406b68
call fcn.00402720
push str..Configs.txt
push 0x11
push 0x406e14
push 0x40479f
push str.IpAddress
push str.Configs
call edi
push str..Configs.txt
push 0x7d
push 0x406e25
push 0x40479f
push str.PrivateCode
push str.Configs
call edi
push 0x14
call esi
push str.LuaScriptsEncrypted_
push str.LuaScriptsDecrypted_
mov ecx, 0x406d08
call fcn.00402ad0
push str.Arquivo_gerado_com_sucesso___n
call fcn.00401f60
add esp, 4
push str.pause
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, dword [esp + 0x10]
add esp, 4
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0040315c
mov esp, ebp
pop ebp
ret
Function at 0x401e00
Capabilities:
Create directory
Delete file
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xad8
mov eax, dword [0x406040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push ecx
mov ecx, 0x406098
call fcn.00401fc0
mov ecx, 0x2b2
lea edi, [ebp - 0xad0]
mov esi, 0x40609c
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov cl, byte [ebp + eax - 0xad0]
mov edx, eax
xor cl, al
shr edx, 8
xor dl, 0xfc
xor cl, 0xca
sub cl, dl
mov byte [ebp + eax - 0xad0], cl
inc eax
cmp eax, 0xac8
jb 0x401e34
push 0
push str.Settings
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str.Settings__CustomJewel.ever
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x20
push 2
push 0
push 1
push 0x40000000
push str.Settings__CustomJewel.ever
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401eb9
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0xac8
lea eax, [ebp - 0xad0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040315c
mov esp, ebp
pop ebp
ret