joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40eaab
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
mov ebp, ecx
lea eax, [esp + 0x14]
push edi
push 0x20
push dword [esp + 0x40]
mov esi, dword [ebp + 4]
sub esi, 6
mov dword [esp + 0x18], ebp
push eax
mov dword [esp + 0x20], esi
call fcn.0041f720
add esp, 0xc
xor ebx, ebx
xor edi, edi
xor edx, edx
test esi, esi
jle 0x40eb24
cmp ebx, dword [ebp + 4]
jg 0x40ec81
cmp edx, esi
jge 0x40eb18
lea ebp, [esp + 0x18]
lea ebp, [ebp + edx*4]
cmp edi, 4
jge 0x40eb14
mov esi, dword [esp + 0x10]
lea ecx, [edi + ebx*4]
mov eax, dword [ebp]
inc edx
add ebp, 4
inc edi
mov dword [esi + ecx*4 + 0x18], eax
mov esi, dword [esp + 0x14]
cmp edx, esi
jl 0x40eaf4
mov ebp, dword [esp + 0x10]
cmp edi, 4
jne 0x40eb20
inc ebx
xor edi, edi
cmp edx, esi
jl 0x40eadf
cmp ebx, dword [ebp + 4]
jg 0x40ec81
mov edx, 0x4451a0
movzx eax, byte [esp + esi*4 + 0x15]
mov cl, byte [esp + 0x18]
xor cl, byte [eax + 0x444fa0]
mov byte [esp + 0x18], cl
movzx eax, byte [esp + esi*4 + 0x16]
mov al, byte [eax + 0x444fa0]
xor byte [esp + 0x19], al
movzx eax, byte [esp + esi*4 + 0x17]
mov al, byte [eax + 0x444fa0]
xor byte [esp + 0x1a], al
movzx eax, byte [esp + esi*4 + 0x14]
mov al, byte [eax + 0x444fa0]
xor byte [esp + 0x1b], al
mov al, byte [edx]
xor byte [esp + 0x18], al
inc edx
mov dword [esp + 0x14], edx
cmp esi, 8
je 0x40ebb1
cmp esi, 1
jle 0x40ec2f
lea eax, [esi - 1]
lea edx, [esp + 0x1c]
mov dword [esp + 0x10], eax
xor ecx, ecx
mov al, byte [edx + ecx - 4]
xor byte [edx + ecx], al
inc ecx
cmp ecx, 4
jl 0x40eb98
add edx, 4
sub dword [esp + 0x10], 1
jne 0x40eb96
jmp 0x40ec2f
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], 3
push 4
pop edx
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edx, 1
jne 0x40ebc0
sub dword [esp + 0x10], 1
jne 0x40ebbd
movzx eax, byte [esp + 0x24]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x10], 3
mov al, byte [eax + 0x444fa0]
xor byte [esp + 0x28], al
movzx eax, byte [esp + 0x25]
mov al, byte [eax + 0x444fa0]
xor byte [esp + 0x29], al
movzx eax, byte [esp + 0x26]
mov al, byte [eax + 0x444fa0]
xor byte [esp + 0x2a], al
movzx eax, byte [esp + 0x27]
mov al, byte [eax + 0x444fa0]
xor byte [esp + 0x2b], al
push 4
pop edx
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edx, 1
jne 0x40ec1d
sub dword [esp + 0x10], 1
jne 0x40ec1a
xor edx, edx
test esi, esi
jle 0x40ec74
cmp ebx, dword [ebp + 4]
jg 0x40ec77
cmp edx, esi
jge 0x40ec68
lea eax, [esp + 0x18]
lea eax, [eax + edx*4]
mov dword [esp + 0x10], eax
cmp edi, 4
jge 0x40ec6b
mov eax, dword [eax]
lea ecx, [edi + ebx*4]
mov dword [ebp + ecx*4 + 0x18], eax
inc edx
mov eax, dword [esp + 0x10]
add eax, 4
inc edi
mov dword [esp + 0x10], eax
cmp edx, esi
jl 0x40ec49
cmp edi, 4
jne 0x40ec70
inc ebx
xor edi, edi
cmp edx, esi
jl 0x40ec35
cmp ebx, dword [ebp + 4]
mov edx, dword [esp + 0x14]
jle 0x40eb32
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x40fb73
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
sub esp, 0x11c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x130]
xor esi, esi
lea ebx, [edi + 0x28]
push dword [ebx]
call fcn.004262f4
mov dword [esp + esi*4 + 0x30], eax
lea ebx, [ebx + 4]
inc esi
pop ecx
cmp esi, 0x10
jb 0x40fb89
push 0x30
lea ebx, [esp + 0x68]
pop ebp
mov ecx, dword [ebx - 0x34]
mov esi, ecx
mov edx, dword [ebx]
mov eax, ecx
rol esi, 0xe
lea ebx, [ebx + 4]
ror eax, 7
xor esi, eax
shr ecx, 3
xor esi, ecx
mov eax, edx
mov ecx, edx
rol eax, 0xd
rol ecx, 0xf
xor ecx, eax
shr edx, 0xa
xor ecx, edx
add esi, ecx
add esi, dword [ebx - 0x3c]
add esi, dword [ebx - 0x18]
mov dword [ebx + 4], esi
sub ebp, 1
jne 0x40fba5
mov eax, dword [edi + 4]
xor ebx, ebx
mov ecx, dword [edi]
mov ebp, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x18]
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi + 8]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x1c]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], eax
jmp 0x40fc1a
mov edx, dword [esp + 0x28]
mov esi, ebp
mov dword [esp + 0x28], ebp
ror esi, 0xb
mov eax, ebp
rol eax, 7
mov ecx, ebp
xor esi, eax
not ecx
and ecx, dword [esp + 0x18]
mov eax, ebp
ror eax, 6
xor esi, eax
mov eax, edx
and eax, ebp
mov ebp, dword [esp + 0x20]
xor ecx, eax
mov eax, dword [esp + 0x18]
add esi, ecx
mov dword [esp + 0x18], edx
add esi, dword [ebx + 0x433a50]
mov edx, edi
add esi, dword [esp + ebx + 0x2c]
add ebx, 4
add esi, dword [esp + 0x24]
mov dword [esp + 0x24], eax
add ebp, esi
ror edx, 0xd
mov eax, edi
rol eax, 0xa
xor edx, eax
mov eax, edi
ror eax, 2
xor edx, eax
mov eax, dword [esp + 0x14]
mov ecx, eax
and eax, dword [esp + 0x10]
xor ecx, dword [esp + 0x10]
and ecx, edi
xor ecx, eax
mov eax, dword [esp + 0x10]
add edx, ecx
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], eax
lea edi, [edx + esi]
cmp ebx, 0x100
jb 0x40fc16
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x130]
mov ecx, dword [esp + 0x1c]
add dword [edi], ecx
mov ecx, dword [esp + 0x10]
add dword [edi + 4], ecx
mov ecx, eax
add dword [edi + 8], ecx
mov ecx, dword [esp + 0x20]
add dword [edi + 0xc], ecx
mov ecx, dword [esp + 0x28]
add dword [edi + 0x14], ecx
mov ecx, dword [esp + 0x18]
add dword [edi + 0x18], ecx
add dword [edi + 0x10], ebp
mov ecx, dword [esp + 0x24]
add dword [edi + 0x1c], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret 4
Function at 0x410ab1
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi], ebx
jbe 0x410b2c
push ebp
push edi
lea edi, [esi + 4]
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x410bf0
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
jne 0x410b08
push str.CreateThread_failed
push 0x440f50
call fcn.00406e87
pop ecx
pop ecx
mov ecx, 0x440f50
call fcn.00407021
push 2
mov ecx, 0x440f50
call fcn.00406e82
mov dword [edi], ebp
inc dword [esi + 0x104]
mov eax, dword [0x4481d8]
test eax, eax
je 0x410b22
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc ebx
add edi, 4
cmp ebx, dword [esi]
jb 0x410ac1
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x419898
Capabilities:
Hide graphical window

Disassembly:
mov al, byte [esp + 0x14]
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x20]
mov ebx, ecx
push esi
push 0
push ebp
mov dword [ebx + 8], ebp
mov byte [ebx + 0x26], al
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esp + 0x20]
mov ecx, ebx
call fcn.004195a4
cmp dword [ebx + 0x1c], 0
je 0x4198d1
push dword [ebx + 0x1c]
call fcn.0042385e
pop ecx
cmp dword [esp + 0x28], 0
jne 0x4198dc
xor eax, eax
jmp 0x4198e6
push dword [esp + 0x28]
call fcn.00427397
pop ecx
cmp dword [esp + 0x2c], 0
mov dword [ebx + 0x1c], eax
jne 0x4198f4
xor eax, eax
jmp 0x4198fe
push dword [esp + 0x2c]
call fcn.00427397
pop ecx
mov dword [ebx + 0x20], eax
lea eax, [esp + 0xc]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetParent]
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
cmp dword [ebx + 4], 0
je 0x419933
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x14]
push edi
push ebx
push dword [ebx]
sub esi, eax
lea edi, [eax + 1]
push 0
push ebp
sub esi, 2
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
push eax
push esi
push dword [esp + 0x2c]
xor esi, esi
push edi
push 0x40000000
push esi
push 0x434484
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebx + 4], eax
pop edi
cmp dword [ebx + 0x10], esi
jne 0x4199b5
test ebp, ebp
je 0x4199cb
cmp dword [ebx + 0x20], esi
jne 0x4199cb
cmp dword [ebx + 0x1c], esi
je 0x4199cb
push dword [ebx + 0x1c]
mov ecx, ebx
call fcn.0041969c
mov esi, eax
test esi, esi
je 0x4199cb
push 5
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push ebp
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.0042385e
pop ecx
jmp 0x4199cb
test eax, eax
je 0x4199cb
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x14
Function at 0x41a08c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ecx
push esi
push 0x434694
push dword [esp + 0x14]
push dword [0x440ed0]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x41a19f
push edi
push esi
push dword [0x440ed0]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x41a0e0
push esi
push dword [0x440ed0]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41a0e0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x41a0e7
xor eax, eax
jmp 0x41a19e
push ebx
push ebp
push edi
xor ebp, ebp
push 2
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x41a198
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x41a191
push edi
push esi
push eax
call fcn.0041f720
add esp, 0xc
mov dword [esp + 0x10], ebp
lea eax, [esp + 0x10]
push eax
push ebp
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x41a18a
push ebp
push dword [esp + 0x14]
call fcn.00419feb
mov ecx, dword [esp + 0x10]
mov edi, eax
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x433260]
call esi
test edi, edi
je 0x41a18a
mov eax, dword [edi + 8]
mov dword [edi + 8], ebp
test eax, eax
jne 0x41a178
push 0xffffff
lea eax, [esp + 0x18]
push eax
push dword [edi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x41a178
mov dword [edi + 8], eax
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x433260]
mov ecx, edi
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x14]
pop ebp
pop ebx
pop edi
pop esi
pop ecx
pop ecx
ret 4

Function at 0x41a7b4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.0041e600
cmp word [0x44946a], 0
je 0x41a850
push esi
push 6
push dword [0x43e5f8]
mov esi, 0x44946a
push esi
call fcn.0040be79
push eax
call fcn.00411a36
test eax, eax
jne 0x41a84f
push 0x448468
call fcn.0041a592
push 0x800
push esi
lea eax, [ebp - 0x1024]
push eax
call fcn.00410061
lea eax, [ebp - 0x1024]
push eax
call fcn.00423843
xor ecx, ecx
push 0x1e
push ecx
mov word [ebp + eax*2 - 0x1022], cx
lea eax, [ebp - 0x20]
push eax
call fcn.0041f5c0
add esp, 0x10
mov dword [ebp - 0x1c], 3
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x1024]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41a8ac
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x43e610], 0
push ebx
push esi
push edi
mov ebx, 0x400
jne 0x41a8f7
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x12c]
mov word [0x45eca8], ax
xor eax, eax
mov word [0x45ecaa], ax
mov dword [0x43e610], 0x45eca8
push 0x32
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040ff30
mov edi, dword [ebp + 0x10]
xor eax, eax
mov esi, dword [ebp + 0x14]
push esi
push edi
push 0x43e600
mov word [edi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor eax, eax
mov word [edi + esi*2 - 2], ax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x41ab40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0041e600
cmp byte [0x44a470], 0
je 0x41abee
push 0x800
lea eax, [ebp - 0x200c]
push eax
push dword [ebp + 8]
call fcn.0041c020
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41abee
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x1000
push eax
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41abe5
mov eax, dword [ebp - 4]
mov ecx, 0x7ff
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, ecx
jb 0x41abc9
mov eax, ecx
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x100c], cx
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.00410061
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 8
Function at 0x41aca6
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2004
call fcn.0041e600
mov ecx, dword [esp + 0x2014]
push ebx
xor ebx, ebx
push esi
test ecx, ecx
je 0x41acc1
mov byte [ecx], bl
mov edx, dword [esp + 0x2020]
test edx, edx
je 0x41acce
mov byte [edx], bl
mov esi, dword [esp + 0x2010]
test esi, esi
je 0x41ad91
movzx eax, word [esi]
test ax, ax
je 0x41ad91
push ebp
mov ebp, dword [esp + 0x2018]
push edi
mov edi, dword [esp + 0x2020]
mov dword [esp + 0x10], ebx
movzx eax, ax
add esi, 2
cmp eax, 0x3d
jne 0x41ad1b
test edi, edi
je 0x41ad25
test ebx, ebx
jne 0x41ad25
test ecx, ecx
je 0x41ad17
mov byte [ecx], 1
mov ebx, ebp
jmp 0x41ad3c
cmp eax, 0xd
je 0x41ad4f
cmp eax, 0xa
je 0x41ad52
mov word [ebp], ax
add ebp, 2
mov eax, dword [esp + 0x202c]
add eax, 0xfffffffe
cmp dword [esp + 0x10], eax
jge 0x41ad4a
movzx eax, word [esi]
inc dword [esp + 0x10]
test ax, ax
jne 0x41acfd
jmp 0x41ad52
mov byte [edx], 1
jmp 0x41ad52
add esi, 2
xor eax, eax
mov word [ebp], ax
test edi, edi
je 0x41ad8b
mov word [edi], ax
test ebx, ebx
je 0x41ad8b
push 0x1000
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [esp + 0x202c]
lea eax, [esp + 0x18]
push eax
push edi
call fcn.00410061
xor eax, eax
mov word [ebx], ax
pop edi
mov eax, esi
pop ebp
jmp 0x41ad93
xor eax, eax
pop esi
pop ebx
add esp, 0x2004
ret 0x18

Function at 0x41ad9e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov ebx, eax
neg ebx
sbb bl, bl
add bl, 1
je 0x41adf9
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 4]
dec eax
neg eax
sbb al, al
lea ebx, [eax + 1]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x433260]
call esi
pop esi
jmp 0x41ae01
mov eax, dword [ebp + 8]
xor ecx, ecx
mov word [eax], cx
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41d333
Capabilities:
Hide graphical window

Disassembly:
and dword [0x448454], 0
push 1
push dword [esp + 8]
mov byte [0x448451], 1
mov byte [0x448452], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 2
push dword [esp + 0xc]
call fcn.004012c8
cmp dword [0x44843c], 0
jne 0x41d373
cmp byte [0x448463], 0
je 0x41d37c
cmp dword [0x44845c], 0
jne 0x41d38f
push 0
push 1
push 0x111
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
ret 4

Function at 0x41d48f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0041e600
cmp byte [0x44a470], 0
je 0x41d51e
cmp word [0x44a472], 0
je 0x41d51e
push esi
push 0x800
lea eax, [ebp - 0x1008]
push eax
push 0x44a472
call fcn.0041c020
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41d51d
push dword [ebp + 8]
call fcn.00423843
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1008]
push 1
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x41d524
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0041e600
push esi
push dword [ebp + 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push dword [ebp + 8]
call fcn.0040fde3
mov esi, eax
test esi, esi
je 0x41d57c
movzx ecx, word [esi]
push ecx
jmp 0x41d567
add esi, 2
movzx eax, word [esi]
push eax
call fcn.0040fefc
test al, al
jne 0x41d560
push esi
push str.sfxpar
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40610d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x40611c
pop dword [ebp - 0x38]
mov eax, 0x460f21e8
sub eax, 0x45cec0cc
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x9d610047
add dword [ebp - 0x48], 0xb0f14504
mov dword [ebp - 0x44], 0x5446845
sub dword [ebp - 0x44], 0xd3111c00
mov dword [ebp - 0x40], 0x68330523
add dword [ebp - 0x40], 0xe4193f0b
mov dword [ebp - 0x3c], 0xea70713d
sub dword [ebp - 0x3c], 0xea70713d
lea eax, [ebp - 0x48]
push eax
mov eax, 0xabc3dc48
sub eax, 0xab836be8
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x101f6d2a
add dword [ebp - 0x48], 0x6452fc2c
mov dword [ebp - 0x44], 0x2ab55f28
sub dword [ebp - 0x44], 0xe948fdb3
mov dword [ebp - 0x40], 0x4e1d2c1a
add dword [ebp - 0x40], 0x15524052
mov dword [ebp - 0x3c], 0xdfac311c
sub dword [ebp - 0x3c], 0xdfac311c
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x37d37
push 0
call eax
mov ecx, 0xc36ecd7
add ecx, 0xf3c96008
mov edx, eax
mov ebx, 0x410000
add ebx, dword [ebp - 0x38]
mov edi, 0x823551f6
add edi, 0x3f183319
sub dword [ebp - 0x34], 0xd6df64f7
mov esi, dword [ebx]
sub dword [ebp - 0x1c], 0xdbd6307d
xor esi, edi
sub dword [ebp - 0x18], edx
mov dword [edx], esi
sub dword [ebp - 0x20], 0x22bdb388
add edx, 0x5d00fdbb
add edx, 0xa2ff0249
add ebx, 0x68b89899
sub ebx, 0x68b89895
loop 0x406233
add eax, 0x1264f
xor ebx, ebx
add ebx, eax
add eax, 0x1985b3c2
add eax, 0xe67a4c43
mov ecx, 0x400000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x4659a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x457015
lea edi, [esi - 0x56015]
push edi
or ebp, 0xffffffff
jmp 0x4659c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4659c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4659b8
mov eax, 1
add ebx, ebx
jne 0x4659db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4659d0
jne 0x4659ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4659d0
xor ecx, ecx
sub eax, 3
jb 0x465a00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x465a72
mov ebp, eax
add ebx, ebx
jne 0x465a0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x465a18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x465a3c
inc ecx
add ebx, ebx
jne 0x465a28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x465a1d
jne 0x465a39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x465a1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x465a5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x465a4d
jmp 0x4659be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x465a5c
add edi, ecx
jmp 0x4659be
pop esi
mov edi, esi
mov ecx, 0x33e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x465a7a
cmp byte [edi], 0
jne 0x465a7a
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 eax, ebx
loop 0x465a7f
lea edi, [esi + 0x63000]
mov eax, dword [edi]
or eax, eax
je 0x465aee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x651f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x65254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x465aac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x65258]
or eax, eax
je 0x465ae8
mov dword [ebx], eax
add ebx, 4
jmp 0x465ac9
call dword [esi + 0x6525c]
popal
jmp 0x40da18

Function at 0x4088e6
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop edi
inc ebx
call fcn.00408907
inc ebx
add ecx, 0x1505debe
xor dword [eax], edi
inc eax
and ebx, ebx
cmp eax, esi
jne fcn.004088e6
push ecx
pop ebx
inc ebx
ret
Function at 0x10002c20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x10054a6c], 0
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
jne 0x10002cda
xor ebx, ebx
nop dword [eax]
mov edx, ebx
mov eax, ebx
shr eax, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, eax
mov eax, edx
shr edx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, edx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [ebx*4 + 0x10054a68], eax
inc ebx
cmp ebx, 0x100
jb 0x10002c40
mov ebx, dword [ebp + 8]
not ebx
mov eax, ebx
test edi, edi
jle 0x10002d06
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10054a68]
sub edi, 1
jne 0x10002ce5
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x10002d38
nop dword [eax]
cmp cl, 0x23
jne 0x10002d1f
cmp byte [esi], cl
jne 0x10002d1f
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x10054a68]
test cl, cl
jne 0x10002d10
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x10003640
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
test ebx, ebx
je 0x10003652
mov dword [ebx], 0
mov edx, 0x10030408
call fcn.10003500
mov esi, eax
test esi, esi
jne 0x10003666
pop esi
pop ebx
pop ebp
ret
push edi
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1000370b
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x1000370b
push 0
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1000370b
mov ecx, dword [0x10039018]
lea eax, [edi + 1]
push eax
mov eax, dword [ecx + 0xbc]
inc dword [ecx + 0x310]
call eax
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
je 0x1000370b
push esi
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, edi
je 0x100036ed
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, dword [ebp + 8]
add esp, 4
call fcn.100046e0
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
mov eax, dword [ebp + 8]
mov byte [eax + edi], 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test ebx, ebx
je 0x10003703
mov dword [ebx], edi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret