joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4669f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4bafc3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004ae0ff
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004b3795
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004b4cb1
test eax, eax
je 0x466b0c
mov ecx, dword [esp + 0x3c]
call fcn.004b37c2
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x466ad0
push edi
mov ecx, esi
call fcn.004b0e2b
mov ecx, esi
call fcn.00466cb0
cmp dword [esp + 0x38], 1
jne 0x466b05
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004b0f66
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x468d10
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x468d43
push esi
call fcn.004770d0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x468d3c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x468dc9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x468db2
mov eax, dword [esi + 8]
test eax, eax
je 0x468d67
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x468dae
cmp eax, 2
je 0x468db2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x468d5a
cmp eax, 3
je 0x468d8d
cmp eax, 1
jne 0x468d5a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x468d5a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x468d5a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00468df0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x468dd8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00468df0
add esp, 4
pop esi
ret

Function at 0x469670
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x469691
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x469691
mov eax, dword [eax + 0x44]
test eax, eax
je 0x469691
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x487770
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5bd550]
xor edx, edx
cmp eax, edx
jne 0x487796
xor eax, eax
mov byte [eax + 0x5bd450], al
inc eax
cmp eax, 0x100
jl 0x48777e
mov dword [0x5bd550], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5bd450
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x487827
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4877fa
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4877c8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x487830
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x487883
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x48786a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x48e230
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bb4ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0048eb50
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x5760a4
call fcn.004ac865
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x48e2c3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004ac865
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x48e2bc
push 0
mov ecx, eax
call fcn.004853b0
mov dword [esi + 0xc], eax
jmp 0x48e2c5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x48e2c5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x4aeef5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4aef2d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004acf7f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004acf57
jmp 0x4aef39
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4b05e3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4b0625
call fcn.004b609c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b0625
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b061c
xor eax, eax
jmp 0x4b062d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b0633
pop edi
pop esi
pop ebx
ret 4
Function at 0x4b65cc
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b65fa
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b6618
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b6532
jmp 0x4b6618
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b6618
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b6532
test edi, edi
mov eax, edi
jne 0x4b6602
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
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 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 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 0x401016
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4010a6
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x4010a3
push 0x5c
push esi
call dword [sym.imp.MSVCR80.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4010a3
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40107c
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x401075
test ebp, ebp
je 0x401075
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x40107c
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x40109d
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x40109d
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x40102e
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x401bc8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x401bd7
pop dword [ebp - 0x10]
mov eax, 0x7e6ad356
sub eax, 0x7e2ab77f
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0xa22b99a5
add dword [ebp - 0x20], 0xac26aba6
mov dword [ebp - 0x1c], 0x5bde76cf
add dword [ebp - 0x1c], 0xd654d576
mov dword [ebp - 0x18], 0xd8d5083d
sub dword [ebp - 0x18], 0x8c88c40f
mov dword [ebp - 0x14], 0xad05bc31
sub dword [ebp - 0x14], 0xad05bc31
lea eax, [ebp - 0x20]
push eax
mov eax, 0xcf924f1c
add eax, 0x30ae2144
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x9f886486
add dword [ebp - 0x20], 0xd4ea04d0
mov dword [ebp - 0x1c], 0x9a4e7de
add dword [ebp - 0x1c], 0x37c77997
mov dword [ebp - 0x18], 0xae951aac
sub dword [ebp - 0x18], 0x4b25ae40
mov dword [ebp - 0x14], 0xe378ac29
sub dword [ebp - 0x14], 0xe378ac29
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0xc8f6e695
sub eax, 0xc8b67595
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x30bf7
push 0
call eax
mov ecx, 0x30b1
xor edx, edx
add edx, eax
mov ebx, 0xf186dc0
sub ebx, 0xed76dc0
add ebx, dword [ebp - 0x10]
mov edi, 0x8389c9ef
add edi, 0x7d58cfa
xor dword [ebp - 4], 0xc17e1255
mov esi, dword [ebx]
add dword [ebp - 4], esi
add esi, edi
add dword [ebp - 4], esi
mov dword [edx], esi
xor dword [ebp - 8], 0xb23c4adc
add edx, 4
add ebx, 0xfa333f6
sub ebx, 0xfa333f2
loop 0x401cf5
add eax, 0x3b13eb56
sub eax, 0x3b1335bf
xor ebx, ebx
add ebx, eax
add eax, 0xda81bd3e
sub eax, 0xda81bd39
mov ecx, 0x400000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x630d00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x201000]
push edi
or ebp, 0xffffffff
jmp 0x630d22
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x630d29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x630d18
mov eax, 1
add ebx, ebx
jne 0x630d3b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x630d4c
jne 0x630d5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x630d5c
dec eax
add ebx, ebx
jne 0x630d58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x630d30
xor ecx, ecx
sub eax, 3
jb 0x630d74
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x630de6
sar eax, 1
mov ebp, eax
jmp 0x630d7f
add ebx, ebx
jne 0x630d7f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x630d8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x630db0
inc ecx
add ebx, ebx
jne 0x630d9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x630d91
jne 0x630dad
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x630d91
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x630dd0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x630dc1
jmp 0x630d1e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x630dd0
add edi, ecx
jmp 0x630d1e
pop esi
mov edi, esi
mov ecx, 0x3673
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x630dee
cmp byte [edi], 0x16
jne 0x630dee
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 0x630df3
lea edi, [esi + 0x22d000]
mov eax, dword [edi]
or eax, eax
je 0x630e62
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x230f90]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x231044]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x630e20
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x231048]
or eax, eax
je 0x630e5c
mov dword [ebx], eax
add ebx, 4
jmp 0x630e3d
call dword [esi + 0x23104c]
popal
jmp 0x46c7e4
Function at 0x402dd0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x23c
push ebx
push ebp
push esi
push edi
mov edi, str.DIALOG
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14c]
push ecx
push 0x65
push 0
call dword [0x406590]
lea edx, [esp + 0x14c]
mov esi, eax
push edx
push 0x66
push 0
call dword [0x406590]
push esi
push 0
mov edi, eax
call dword [0x406568]
push edi
push 0
mov ebx, eax
call dword [0x406568]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
call ebx
push ebp
mov dword [esp + 0x14], eax
call ebx
push esi
push 0
mov ebp, eax
call dword [0x406594]
push edi
push 0
mov ebx, eax
call dword [0x406594]
mov esi, eax
add esi, ebx
lea eax, [esi + 2]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov cl, byte [0x406020]
mov edi, eax
add esp, 4
xor eax, eax
test esi, esi
jle 0x402eb3
mov edx, dword [esp + 0x10]
dec ebp
dec edx
mov ebx, eax
and ebx, 0x80000001
jns 0x402e9b
dec ebx
or ebx, 0xfffffffe
inc ebx
jne 0x402ea4
inc edx
mov bl, cl
xor bl, byte [edx]
jmp 0x402eaa
mov bl, byte [ebp + 1]
inc ebp
xor bl, cl
mov byte [eax + edi + 2], bl
inc eax
cmp eax, esi
jl 0x402e8c
test edi, edi
mov byte [edi], 0x4d
mov byte [edi + 1], 0x5a
je 0x402f53
lea eax, [esp + 0x10]
lea ecx, [esp + 0x6c]
push eax
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x34]
push edx
push eax
push edi
call fcn.00401fd0
add esp, 0x14
test al, al
je 0x402f53
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x6c]
push ecx
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.00401c30
add esp, 0x10
mov ebx, eax
push 0x40
push 0x1000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x402f53
mov edx, dword [esp + 0x10]
push esi
lea eax, [esp + 0x70]
push edx
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x38]
push ecx
push edx
push edi
call fcn.00401d40
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x84]
push eax
push ebx
push esi
lea edx, [esp + 0x38]
push ecx
lea eax, [esp + 0x54]
push edx
push eax
call fcn.004020c0
add esp, 0x30
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x23c
ret

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 0x401d5f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.004019fe
push eax
push esi
push dword [ebp + 8]
call fcn.004019b3
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.004019fe
push eax
push esi
push dword [ebp + 8]
call fcn.004019b3
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.004019fe
push eax
push esi
push dword [ebp + 8]
call fcn.004019b3
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.004019ee
in al, 0x62
pop edx
xchg ebp, eax
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.004019ee
push eax
sub al, 0xc1
ror dword [ebp - 0x837b], cl
call dword [eax - 0x18]
sbb al, 0xfb
invalid
Function at 0x403be8
Capabilities:
Delete file

Disassembly:
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x403bdb
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x403bdb
call fcn.004019ee
push ss
push cs
and eax, 0x245a8b9d
add ebx, edi
mov cx, word [ebx + ecx*2]
and al, 3
fbld tbyte [esi - 0x75]
or al, 0x4b
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.004019ee
xchg ecx, eax
lcall 0xff08, 0x75ff4717
jne 0x403c24
push dword [ebp]
call fcn.004021ee
and eax, 8
test eax, eax
jne 0x403bff
invalid
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
ret

Function at 0x403c38
Capabilities:
Delete directory

Disassembly:
push esi
push 0x3a
push dword [esp + 0xc]
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x403c4f
pop esi
ret
mov eax, dword [sym.imp.MSVCR71.dll___mb_cur_max]
inc esi
cmp dword [eax], 1
jle 0x403c6a
movsx eax, byte [esi]
push 8
push eax
call dword [sym.imp.MSVCR71.dll__isctype]
pop ecx
pop ecx
jmp 0x403c7b
mov ecx, dword [sym.imp.MSVCR71.dll__pctype]
movsx eax, byte [esi]
mov ecx, dword [ecx]
mov al, byte [ecx + eax*2]
and eax, 8
test eax, eax
jne 0x403c4f
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
ret
Function at 0x4013e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10004
call fcn.00402620
mov eax, dword [0x413100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push 0xfffc
push eax
mov word [ebp - 0x10004], ax
lea eax, [ebp - 0x10002]
push eax
call fcn.00402650
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x7fff
lea eax, [ebp - 0x10004]
push eax
push str.STEAM_COMPAT_PROTON
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
push 0
setne bl
call dword [sym.imp.KERNEL32.dll_SetLastError]
test bl, bl
pop ebx
jne 0x401460
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040260e
mov esp, ebp
pop ebp
ret
push 0xa
lea eax, [ebp - 0x10004]
push 0
push eax
call fcn.004025f6
mov ecx, dword [ebp - 4]
add esp, 0xc
neg eax
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.0040260e
mov esp, ebp
pop ebp
ret

Function at 0x401510
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20004
call fcn.00402620
mov eax, dword [0x413100]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0xfffc
push eax
mov word [ebp - 0x20004], ax
lea eax, [ebp - 0x20002]
push eax
call fcn.00402650
xor eax, eax
push 0xfffc
push eax
mov word [ebp - 0x10004], ax
lea eax, [ebp - 0x10002]
push eax
call fcn.00402650
add esp, 0x18
lea eax, [ebp - 0x20004]
push 0x7fff
push eax
push 0x40e260
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0x4141e0
lea eax, [ebp - 0x10004]
push 0x7fff
push eax
call fcn.0040238a
lea eax, [ebp - 0x20004]
push 0x7fff
push eax
call fcn.004023f6
add esp, 0x14
test eax, eax
je 0x4015d6
push 0x40e25c
lea eax, [ebp - 0x10004]
push 0x7fff
push eax
call fcn.0040238a
lea eax, [ebp - 0x20004]
push eax
lea eax, [ebp - 0x10004]
push 0x7fff
push eax
call fcn.0040238a
add esp, 0x18
lea eax, [ebp - 0x10004]
push eax
push 0x40e260
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040260e
mov esp, ebp
pop ebp
ret