joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403c41
Capabilities:
Encrypt data using tea

Disassembly:
sub esp, 0x30
and dword [esp + 8], 0
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], edi
mov eax, dword [edi]
mov ebp, dword [edi + 4]
mov dword [esp + 0x20], eax
mov eax, dword [esi]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x38], eax
call fcn.004032cc
mov ebx, dword [esp + 0x18]
mov eax, dword [esi + 0xc]
add ebx, 0x23f
mov edi, dword [esi + 8]
push 0x20
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], eax
pop esi
mov dword [esp + 0x24], 2
add dword [esp + 0x24], 3
mov edx, dword [esp + 0x20]
mov eax, edx
shl eax, 4
add eax, edi
mov dword [esp + 0x28], 0xedeb2e40
cmp dword [0x28dc9a4], 0xfa9
mov dword [esp + 0x10], eax
mov eax, dword [0x28dc9e8]
cmove eax, dword [esp + 0x28]
and dword [esp + 0x28], 0
cmp dword [0x28dc9a4], 0x3eb
mov dword [0x28dc9e8], eax
mov eax, dword [0x28dc9f0]
cmove eax, dword [esp + 0x28]
mov dword [0x28dc9f0], eax
lea eax, [ebx + edx]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
shr eax, 5
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x2c]
xor eax, dword [esp + 0x28]
xor eax, dword [esp + 0x10]
sub ebp, eax
mov dword [esp + 0x14], eax
mov eax, ebp
mov dword [0x28dc9ec], 0xf4ea3dee
shl eax, 4
mov dword [esp + 0x34], ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
add dword [esp + 0x10], eax
and dword [esp + 0x1c], 0
mov eax, dword [esp + 0x18]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
nop
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x24]
mov eax, ebp
shr eax, cl
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
xor eax, dword [esp + 0x28]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x20], eax
mov edx, 0x9e3779b9
lea ecx, [esp + 0x18]
call fcn.00403c35
dec esi
je 0x403d91
mov ebx, dword [esp + 0x18]
jmp 0x403c8f
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x20]
mov dword [edi + 4], ebp
mov dword [edi], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
Function at 0x4124df
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x451178]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407a16
mov dword [ebp - 0x14], eax
cmp dword [0x28dda5c], esi
jne 0x4125d2
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41255f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4126b2
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4126b2
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4126b2
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x28dda5c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x28dda60], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x28dda64], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x28dda6c], eax
test eax, eax
je 0x4125cf
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x28dda68], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4125f7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4125ea
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41260c
push 4
pop eax
jmp 0x4126b4
cmp dword [ebp - 0x14], esi
je 0x41260c
push dword [0x28dda5c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4125f1
mov eax, dword [0x28dda68]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41266a
cmp dword [0x28dda6c], edi
je 0x41266a
push eax
call ebx
push dword [0x28dda6c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41266a
test eax, eax
je 0x41266a
call ecx
test eax, eax
je 0x41265f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41265f
test byte [ebp - 8], 1
jne 0x41266a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41269a
mov eax, dword [0x28dda60]
cmp eax, edi
je 0x412697
push eax
call ebx
test eax, eax
je 0x412697
call eax
mov esi, eax
test esi, esi
je 0x412697
mov eax, dword [0x28dda64]
cmp eax, edi
je 0x412697
push eax
call ebx
test eax, eax
je 0x412697
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x28dda5c]
call ebx
test eax, eax
je 0x4126b2
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4126b4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406c50
mov esp, ebp
pop ebp
ret
Function at 0x426476
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
call dword [0x44b0ec]
mov esi, eax
test esi, esi
jne 0x4264ca
call dword [0x44b0e8]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
push edi
push 0x140
push 0x44edd4
call fcn.0041eb43
push 0x44f1cc
push edi
call 0x45b49f
pop ecx
pop ecx
jmp 0x426617
mov eax, 0x5a4d
cmp ax, word [esi]
je 0x4264f3
mov esi, 0x8007000d
push esi
push 0x14a
push 0x44edd4
mov edi, esi
call fcn.0041eb43
push 0x44ee50
push esi
jmp 0x4264be
mov ecx, dword [esi + 0x3c]
cmp dword [ecx + esi], 0x4550
je 0x42651d
mov esi, 0x8007000d
push esi
push 0x155
push 0x44edd4
mov edi, esi
call fcn.0041eb43
push 0x44eec0
jmp 0x4264f0
movzx eax, word [ecx + esi + 0x14]
push ebx
add eax, ecx
lea ebx, [esi + 0x18]
push 8
add ebx, eax
push 0x44efe4
push ebx
call 0x44ac89
add esp, 0xc
test eax, eax
je 0x426562
mov eax, dword [esi + 0x3c]
movzx ecx, word [eax + esi + 6]
xor eax, eax
inc eax
cmp eax, ecx
jae 0x426589
add ebx, 0x28
inc eax
cmp dword [ebx], 0x7869772e
jne 0x426549
cmp dword [ebx + 4], 0x6e727562
jne 0x426549
cmp dword [ebx + 0x10], 0x34
jae 0x4265a7
mov esi, 0x8007000d
push esi
push 0x17a
push 0x44edd4
mov edi, esi
call fcn.0041eb43
push dword [ebx + 0x10]
push 0x44f010
jmp 0x4265d1
mov esi, 0x8007000d
push esi
push 0x16e
push 0x44edd4
mov edi, esi
call fcn.0041eb43
push 0x44eff0
jmp 0x42660e
mov ebx, dword [ebx + 0xc]
add ebx, esi
cmp dword [ebx + 4], 2
je 0x4265dc
mov esi, 0x8007000d
push esi
push 0x184
push 0x44edd4
mov edi, esi
call fcn.0041eb43
push dword [ebx + 4]
push str.C_8u
push esi
call 0x45b49f
add esp, 0xc
jmp 0x426616
mov edx, dword [ebp + 8]
mov ecx, edi
mov eax, dword [edx + ecx*4]
cmp eax, dword [ebx + ecx*4 + 8]
jne 0x4265f2
inc ecx
cmp ecx, 4
jne 0x4265e1
jmp 0x426616
mov esi, 0x8007000d
push esi
push 0x18a
push 0x44edd4
mov edi, esi
call fcn.0041eb43
push 0x44f1f4
push esi
call 0x45b49f
pop ecx
pop ecx
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x4027b7
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 4]
push esi
lea eax, [ecx - 1]
cmp eax, 0x1ff
ja 0x4028ce
mov eax, dword [0x450170]
mov esi, dword [esp + 0x14]
add eax, 0xffffffac
imul ecx, ecx, 0x54
add eax, ecx
mov dword [esi], eax
cmp dword [eax], 0xffffffff
je 0x4028ce
mov dword [eax + 0x14], 0
mov ecx, dword [esi]
push edi
test byte [ecx + 8], 4
je 0x40282a
mov edx, dword [esp + 0x10]
test edx, edx
je 0x4028c7
mov edi, dword [ecx + 0x37]
dec edi
add edi, edx
cmp dword [ecx + 4], edi
je 0x4028c7
push 0
push 0
push edi
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi]
mov dword [eax + 4], edi
xor eax, eax
pop edi
pop esi
ret 0x10
mov edi, dword [esp + 0x10]
push ebx
test edi, edi
jne 0x40284e
mov ebx, dword [ecx + 4]
sub ebx, dword [ecx + 0x37]
mov edi, dword [ecx + 0xc]
mov eax, ebx
cdq
idiv edi
test edx, edx
je 0x40286d
sub edi, edx
add edi, dword [ecx + 0x37]
add edi, ebx
jmp 0x40285b
dec edi
imul edi, dword [ecx + 0xc]
add edi, dword [ecx + 0x37]
cmp dword [ecx + 4], edi
je 0x40286d
push 0
push 0
push edi
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi]
mov dword [eax + 4], edi
cmp byte [esp + 0x18], 0
pop ebx
je 0x4028c7
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push 0
push ecx
mov dword [esp + 0x1c], 0
push dword [eax + 0xc]
push dword [eax + 0x10]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esi]
mov eax, dword [esp + 0x14]
add dword [ecx + 4], eax
mov ecx, dword [esi]
mov eax, dword [esp + 0x14]
cmp eax, dword [ecx + 0xc]
setne al
mov byte [ecx + 0x29], al
mov ecx, dword [esi]
cmp byte [ecx + 0x29], 0
je 0x4028c7
mov edx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0xc]
add edx, dword [esp + 0x14]
sub ecx, dword [esp + 0x14]
call fcn.004492c6
pop edi
xor eax, eax
pop esi
ret 0x10
mov eax, 0x80004005
pop esi
ret 0x10
Function at 0x402abd
Capabilities:
Read file on windows

Disassembly:
cmp byte [esp + 4], 0
push ebx
push ebp
push esi
push edi
mov ebx, edx
mov edi, ecx
jne 0x402ad6
test byte [edi + 8], 4
jne 0x402c68
mov ecx, dword [esp + 0x18]
movzx ebp, cx
cmp ebp, 0x14
ja case.0x402aed.1
movzx eax, byte [ebp + 0x402aa5]
jmp dword [eax*4 + 0x402a89]
mov esi, 1
push 2
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push edi
call fcn.004030fd
test al, al
je 0x402b7d
mov eax, dword [esp + 0x14]
test eax, eax
je 0x402c62
push ebx
push eax
push dword [esp + 0x20]
call dword [sym.imp.OLEAUT32.dll_SafeArrayCreateEx]
test eax, eax
js 0x402c56
lea eax, [ebp - 8]
cmp eax, 5
ja case.0x402b3a.10
jmp dword [eax*4 + 0x402a6d]
mov esi, 2
jmp 0x402af9
mov esi, 4
jmp 0x402af9
mov esi, 8
jmp 0x402af9
mov esi, 0x10
jmp 0x402af9
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x402af9
mov esi, ecx
sar esi, 0x10
add esi, esi
jmp 0x402b72
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x402af9
mov dword [edi + 0x24], 0x80020005
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0x10
mov ecx, 0x100
jmp 0x402ba0
mov ecx, 0x200
jmp 0x402ba0
mov ecx, 0x400
jmp 0x402ba0
mov ecx, 0x800
mov eax, dword [ebx]
or word [eax + 2], cx
mov eax, dword [ebx]
mov dword [eax + 4], esi
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx]
add ecx, 0x10
mov dword [esp + 0x18], ecx
lea esi, [eax*8]
test esi, esi
je 0x402c4a
test byte [edi + 8], 4
je 0x402c02
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push esi
push ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x1c]
add dword [edi + 4], ecx
cmp ecx, esi
setne al
mov byte [edi + 0x29], al
je 0x402c4a
mov edx, dword [esp + 0x18]
sub esi, ecx
lea edx, [ecx + edx]
jmp 0x402c43
mov eax, dword [edi + 0x14]
mov ebp, dword [edi + 0xc]
mov edx, dword [edi + 0x10]
sub ebp, eax
add edx, eax
add eax, esi
mov dword [edi + 0x14], eax
cmp esi, ebp
jg 0x402c25
push esi
push edx
push ecx
call fcn.0044a8c3
add esp, 0xc
jmp 0x402c4a
test ebp, ebp
js 0x402c41
jle 0x402c3a
push ebp
push edx
push ecx
call fcn.0044a8c3
mov ecx, dword [esp + 0x24]
add esp, 0xc
lea edx, [ecx + ebp]
sub esi, ebp
jmp 0x402c43
mov edx, ecx
mov ecx, esi
call fcn.004492c6
push dword [ebx]
call dword [sym.imp.OLEAUT32.dll_SafeArrayDestroyDescriptor]
test eax, eax
jns 0x402c68
mov dword [edi + 0x24], eax
xor al, al
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
mov dword [ebx], 0
mov edx, dword [ebx]
xor ecx, ecx
test edx, edx
je 0x402c8d
movzx eax, word [edx]
test ax, ax
mov esi, eax
setne cl
test esi, esi
je 0x402c8d
add edx, 0x10
imul ecx, dword [edx]
lea edx, [edx + 8]
sub esi, 1
jne 0x402c82
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
mov al, 1
pop ebx
ret 0x10
Function at 0x4030fd
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4031ba
push ebx
push edi
mov edi, dword [esp + 0x10]
test byte [edi + 8], 4
je 0x403158
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 0
push eax
push esi
push ebx
push dword [edi]
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x18]
add dword [edi + 4], ecx
cmp ecx, esi
setne al
mov byte [edi + 0x29], al
je 0x4031b8
sub esi, ecx
lea edx, [ecx + ebx]
mov ecx, esi
call fcn.004492c6
pop edi
pop ebx
mov al, 1
pop esi
ret 0xc
mov eax, dword [edi + 0x14]
mov ebx, dword [edi + 0xc]
mov ecx, dword [edi + 0x10]
sub ebx, eax
add ecx, eax
add eax, esi
mov dword [edi + 0x14], eax
cmp esi, ebx
jg 0x403184
push esi
push ecx
push dword [esp + 0x1c]
call fcn.0044a8c3
add esp, 0xc
mov al, 1
pop edi
pop ebx
pop esi
ret 0xc
test ebx, ebx
js 0x4031ad
mov edi, dword [esp + 0x14]
jle 0x403199
push ebx
push ecx
push edi
call fcn.0044a8c3
add esp, 0xc
sub esi, ebx
lea edx, [ebx + edi]
mov ecx, esi
call fcn.004492c6
pop edi
pop ebx
mov al, 1
pop esi
ret 0xc
mov edx, dword [esp + 0x14]
mov ecx, esi
call fcn.004492c6
pop edi
pop ebx
mov al, 1
pop esi
ret 0xc

Function at 0x403571
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4035dc
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x4035b1
cmp byte [esi + 0x28], 4
je 0x4035b1
push 0
lea edx, [esp + 8]
mov dword [esp + 8], 0
push edx
push ecx
push dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 4]
add dword [esi + 4], eax
mov dword [esi + 0x14], 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x10]
mov dword [esi], 0xffffffff
test eax, eax
je 0x4035dc
push eax
push 0
push dword [0x4503d0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 0x10], 0
pop esi
pop ecx
ret
Function at 0x423360
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x19000]
push edi
jmp 0x42337a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x423381
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x423370
mov eax, 1
add ebx, ebx
jne 0x423393
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x423388
jne 0x4233a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x423388
xor ecx, ecx
sub eax, 3
jb 0x4233b8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42342a
mov ebp, eax
add ebx, ebx
jne 0x4233c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4233d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4233f4
inc ecx
add ebx, ebx
jne 0x4233e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4233d5
jne 0x4233f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4233d5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x423414
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x423405
jmp 0x423376
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x423414
add edi, ecx
jmp 0x423376
pop esi
mov edi, esi
mov ecx, 0x829
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x423432
cmp byte [edi], 9
jne 0x423432
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 0x423437
lea edi, [esi + 0x1f000]
mov eax, dword [edi]
or eax, eax
je 0x4234af
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x239c0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x23ad8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x423464
mov ecx, edi
jns 0x423493
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x23adc]
or eax, eax
je 0x4234a9
mov dword [ebx], eax
add ebx, 4
jmp 0x423481
call dword [esi + 0x23aec]
mov ebp, dword [esi + 0x23ae0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x4234e3
sub esp, 0xffffff80
jmp 0x4139a4

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 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0
mov eax, dword [ebp + 8]
push eax
push str.Xash_Error
push 0x10
call sub.SDL2.dll_SDL_ShowSimpleMessageBox
add esp, 0x10
mov ecx, dword [ebp + 8]
push ecx
push str.Xash_Error:__s_n
mov edx, dword [sym.imp.MSVCRT.dll__iob]
add edx, 0x40
push edx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
push 1
call dword [sym.imp.MSVCRT.dll_exit]
pop ebp
ret

Function at 0x40116c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x403114
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
mov eax, dword [0x403114]
shl eax, 2
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [0x403118], eax
jmp 0x4011b0
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [0x403114]
jge 0x401213
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*4]
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
add eax, 1
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov edx, dword [0x403118]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [0x403118]
mov eax, dword [edx + ecx*4]
push eax
call dword [sym.imp.MSVCRT.dll_wcstombs]
add esp, 0xc
jmp 0x4011a7
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.0040103e
mov edx, dword [0x403100]
neg edx
sbb edx, edx
and edx, 0x4010e9
push edx
push 0
push str.valve
mov eax, dword [0x403118]
push eax
mov ecx, dword [0x403114]
push ecx
call dword [0x4031a4]
add esp, 0x14
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4236b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x19000]
push edi
jmp 0x4236ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4236d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4236c0
mov eax, 1
add ebx, ebx
jne 0x4236e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4236d8
jne 0x4236f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4236d8
xor ecx, ecx
sub eax, 3
jb 0x423708
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42377a
mov ebp, eax
add ebx, ebx
jne 0x423713
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x423720
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x423744
inc ecx
add ebx, ebx
jne 0x423730
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x423725
jne 0x423741
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x423725
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x423764
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x423755
jmp 0x4236c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x423764
add edi, ecx
jmp 0x4236c6
pop esi
lea edi, [esi + 0x21000]
mov eax, dword [edi]
or eax, eax
je 0x4237c3
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x23000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x23028]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x423781
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x23030]
or eax, eax
je 0x4237bd
mov dword [ebx], eax
add ebx, 4
jmp 0x42379e
call dword [esi + 0x2302c]
mov ebp, dword [esi + 0x23034]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
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 0x4237f7
sub esp, 0xffffff80
jmp 0x4038fc

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 0x59d850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push 0x80000000
call edi
test eax, eax
jne 0x59d8ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x5c8720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x59d8ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.005ae1e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push 0x80000000
call edi
test eax, eax
jne 0x59d8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x5c8720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x59d92a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.005af082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x59d957
mov word [eax], si
add eax, 2
push eax
call fcn.005af030
add esp, 4
jmp 0x59d959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x59d8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x59d8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x59dff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret