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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4370f0]
xor eax, ebp
mov dword [ebp - 4], eax
xor ecx, ecx
lea eax, [ebp - 8]
push eax
push ecx
push ecx
push 0x403ef5
push ecx
push ecx
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004094ce
leave
ret

Function at 0x409fd1
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40a010
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40a010
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40a010
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40a010
cmp dword [ecx + 0x74], 0xe
jbe 0x40a010
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x416bc5
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42bb68
push 0x42bb60
push str.FlsAlloc
push 0x1e
call fcn.00416a32
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416bf9
push dword [ebp + 8]
mov ecx, esi
call dword [0x428194]
call esi
jmp 0x416bff
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x416c43
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42bb78
push 0x42bb70
push str.FlsGetValue
push 0x20
call fcn.00416a32
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416c7a
push dword [ebp + 8]
mov ecx, esi
call dword [0x428194]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41a40f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041a0b1

Function at 0x41a41a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041a240

Function at 0x41a98f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040a350
mov eax, dword [0x4370f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004171f8
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41a9d1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41ab2d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00426f90
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x439d78]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041adb5
mov ecx, dword [esi*4 + 0x439d78]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41ab26
cmp eax, dword [edi + ecx + 0x24]
jne 0x41ab26
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ab26
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041adb5
add esp, 0x14
test edx, edx
jl 0x41ab26
jg 0x41aa9c
test eax, eax
jb 0x41ab26
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41ab26
jl 0x41aab6
cmp dword [ebp - 0x1008], eax
ja 0x41ab26
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41aad4
test ebx, ebx
je 0x41ab0d
cmp ecx, edi
jae 0x41ab0d
mov al, byte [ecx]
cmp al, 0xd
jne 0x41aaee
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41aafa
cmp byte [ecx + 1], 0xa
jne 0x41aafa
inc ecx
jmp 0x41aafa
movzx eax, al
movsx eax, byte [eax + 0x437a30]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41aad4
cmp edx, ebx
jne 0x41aad4
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41ab2b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004094ce
leave
ret
Function at 0x41e75d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41e7fa
push ebx
push esi
call fcn.0041e726
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041d3ab
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41e7a7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41e7f9
push edi
push eax
call fcn.00417a4c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41e7c7
call fcn.00416757
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41e7f8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041d3ab
add esp, 0x20
test eax, eax
jne 0x41e7e6
push edi
call fcn.00416757
jmp 0x41e7ee
push ebx
call fcn.00416757
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x423f75
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x439d78]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x423fb5
cmp byte [ebx], 0xa
jne 0x423fb5
or byte [eax + edi + 0x28], 4
jmp 0x423fba
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4240b8
mov al, byte [edx]
cmp al, 0x1a
je 0x42409a
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x423fe9
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x42400e
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x424018
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x423fcb
jmp 0x4240b8
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x424095
cmp dword [ebp - 0xc], 0
je 0x424095
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x439d78]
test byte [eax + edi + 0x28], 0x48
je 0x42406f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42405a
mov byte [esi], dl
jmp 0x42406b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x439d78]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4240b8
cmp byte [ebp - 1], 0xa
jne 0x42407e
cmp esi, ebx
jne 0x42407e
mov byte [esi], 0xa
jmp 0x4240b7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041add3
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4240b8
mov byte [esi], 0xd
jmp 0x4240b7
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x439d78]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4240b4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4240b8
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4240c1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x439d78]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x424104
cmp word [esi], dx
jne 0x424104
or byte [edi + eax + 0x28], 4
jmp 0x424109
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x42425c
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x42423c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x42414b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x424181
cmp eax, edx
jae 0x42418d
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x424123
jmp 0x42425c
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x424238
cmp dword [ebp - 0x14], 0
je 0x424238
mov eax, dword [ebx*4 + 0x439d78]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x424210
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4241d9
mov word [esi], cx
jmp 0x42420c
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x439d78]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x439d78]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x439d78]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x42425c
pop ebx
cmp word [ebp - 4], bx
jne 0x424221
cmp esi, dword [ebp + 0xc]
jne 0x424221
mov word [esi], bx
jmp 0x424259
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041add3
add esp, 0x10
cmp word [ebp - 4], bx
je 0x42425c
push 0xd
jmp 0x424255
mov ecx, dword [ebx*4 + 0x439d78]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x424253
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42425c
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x425e35
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00425db1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x425fad
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x425fad
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x425f5c
jg 0x425e8e
test eax, eax
je 0x425f52
push 1
push 0x1000
call fcn.004166fa
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x425eb4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x425f49
push 0x8000
push ebx
call fcn.0041399a
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x425ee0
jg 0x425edb
cmp ecx, 0x1000
jb 0x425ee0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004193d5
add esp, 0x10
cmp eax, 0xffffffff
je 0x425f25
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x425edb
jl 0x425f0c
test ecx, ecx
jne 0x425ecd
push dword [ebp - 0xc]
push ebx
call fcn.0041399a
push esi
call fcn.00416757
add esp, 0xc
xor edi, edi
jmp 0x425fbe
cmp byte [edi + 0x24], 0
je 0x425f3c
cmp dword [edi + 0x20], 5
jne 0x425f3c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x425f47
mov edi, dword [edi + 0x18]
jmp 0x425f49
xor edi, edi
push esi
call fcn.00416757
pop ecx
jmp 0x425fbe
test ecx, ecx
jg 0x425f1e
jl 0x425f5c
test eax, eax
jae 0x425f1e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041add3
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x425f7f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x425f1e
jmp 0x425fb6
push ebx
call fcn.0041ef4f
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x425f1e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x425fbe
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x425fbb
mov edi, dword [edi + 0x18]
jmp 0x425fbe
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041add3
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x426d90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x426dbd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x426dbd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4304bb67
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x4304bb76
pop dword [ebp - 0x50]
mov eax, 0x5ab8ae2
sub eax, 0xc2a6cf6c
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x3a79f
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0xad59ea8a
sub ecx, 0xad59a255
mov esi, eax
mov edi, 0xae6be66b
add edi, 0x949b3f95
add edi, dword [ebp - 0x50]
mov ebx, 0x83b12001
sub ebx, 0x30bc555
sub dword [ebp - 0x20], 0x304e932e
mov edx, dword [edi]
mov dword [ebp - 0x1c], 0xbd5ee967
sub edx, ebx
add dword [ebp - 0x2c], 0xd1ca35bd
mov dword [esi], edx
xor dword [ebp - 0x10], edi
add esi, 0xa1895712
sub esi, 0xa189570e
add edi, 4
loop 0x4304bbd0
add eax, 0x836d76b4
sub eax, 0x836c630d
mov ebx, eax
add eax, 0xc8c12663
add eax, 0x373ed9a2
mov ecx, 0x40802085
sub ecx, 0xfd7d2085
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x4304c25f
Capabilities:
Hide graphical window

Disassembly:
cmp byte [edi + 0x30], 0
push esi
sete al
mov byte [edi + 0x30], al
lea esi, [edi + 4]
test al, al
je 0x4304c28c
push 5
push 0x1f7
push dword [esi]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi + 0x2c]
jmp 0x4304c2a5
push 0
push 0x1f7
push dword [esi]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi + 0x28]
call fcn.4304bb67
xor eax, eax
pop esi
ret

Function at 0x4304eb37
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x4306c86c], 0
jne 0x4304eb50
push 0x4304eb78
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov dword [0x4306c86c], eax
cmp dword [0x4306c868], 0
jne 0x4304eb74
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push eax
push 0
push 0x4304eb9e
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x4306c868], eax
ret
Function at 0x413828
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x413837
pop dword [ebp - 4]
mov eax, 0x55ebb129
sub eax, 0x55aa78f2
sub dword [ebp - 4], eax
push 0x40
push 0x1000
push 0x4c44b
push 0
mov eax, 0x427c296f
sub eax, 0x42386717
add eax, dword [ebp - 4]
call dword [eax]
mov ecx, 0x10a05d59
sub ecx, 0x10a01936
mov edi, eax
mov edx, 0x46b200
add edx, dword [ebp - 4]
mov esi, 0x9c13be71
mov ebx, dword [edx]
xor ebx, esi
mov dword [edi], ebx
add edi, 0x4c8737a7
sub edi, 0x4c8737a3
add edx, 4
loop 0x41388a
add eax, 0x1035f
xor ebx, ebx
add ebx, eax
add eax, 0x36f790cf
sub eax, 0x36f790ca
mov ecx, 0x23720ee6
add ecx, 0xdccdf11a
add ecx, dword [ebp - 4]
call ebx
leave
ret

Function at 0x414831
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44eca0]
jne 0x41483b
repz ret
jmp fcn.0041a6db
Function at 0x40333c
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x410aa0
call fcn.00406024
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x40323d
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40323d
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40323d
cmp dword [eax + 0x400074], 0xe
jbe 0x40323d
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x403241
and dword [ebp - 0x1c], 0
push 1
call main
pop ecx
test eax, eax
jne 0x403255
push 0x1c
call main
pop ecx
call fcn.00407199
test eax, eax
jne 0x403266
push 0x10
call main
pop ecx
call fcn.00406d3d
and dword [ebp - 4], 0
call fcn.00403bed
test eax, eax
jge 0x403280
push 0x1b
call main
pop ecx
call sub.kernel32.dll_GetCommandLineW
mov dword [0x413d00], eax
call fcn.00406ce0
mov dword [0x412ff8], eax
call main
test eax, eax
jge 0x4032a5
push 8
call main
pop ecx
call fcn.00406a03
test eax, eax
jge 0x4032b6
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x4032c9
push eax
call main
pop ecx
mov eax, dword [0x413340]
mov dword [0x413344], eax
push eax
push dword [0x413334]
push dword [0x41332c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4032f7
push eax
call main
call fcn.0040428b
jmp 0x40332c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00406069
ret
call main
jmp 0x4031eb

Function at 0x4098ac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x4098bb
pop dword [ebp - 0x28]
mov eax, 0x377a513c
sub eax, 0x3739b881
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x38b35
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0xe262660a
sub ecx, 0xe26220f4
xor esi, esi
add esi, eax
mov edi, 0x417800
add edi, dword [ebp - 0x28]
mov edx, 0xe3b125e3
sub edx, 0xb98db24d
xor dword [ebp - 0x18], 0xbcbcd8bd
mov ebx, dword [edi]
mov dword [ebp - 0x1c], 0x2268f769
xor ebx, edx
add dword [ebp - 0x18], 0x484cd2b1
mov dword [esi], ebx
sub dword [ebp - 0x24], edx
add esi, 4
add edi, 4
loop 0x409911
add eax, 0xee641e3c
add eax, 0x119ce8ef
mov ebx, eax
add eax, 5
mov ecx, 0x3873a442
sub ecx, 0x3833a442
add ecx, dword [ebp - 0x28]
call ebx
leave
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 0x4013bd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4c
cmp dword [0x4405938], 0x594
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x2c], esi
mov ebx, dword [esi]
mov edi, dword [esi + 4]
mov dword [ebp - 0x10], ebx
jne 0x4013f3
push 0
lea eax, [ebp - 0x44c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [0x4182e8]
lea ecx, [ebp - 4]
and dword [ebp - 4], 0
mov dword [ebp - 0x20], eax
mov eax, dword [0x4182ec]
mov dword [ebp - 0x18], 0x9e3779b9
mov dword [ebp - 0x28], eax
call fcn.004013b3
mov ecx, dword [0x4182f0]
mov eax, dword [0x4182f4]
add dword [ebp - 4], 0x23f
push 0x20
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], eax
pop esi
mov dword [ebp - 0x14], 2
add dword [ebp - 0x14], 3
mov eax, ebx
mov edx, 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0x4405938], 0xfa9
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [0x4405934]
cmove eax, edx
xor edx, edx
cmp dword [0x4405938], 0x3eb
mov dword [0x4405934], eax
mov eax, dword [0x4401d3c]
cmove eax, edx
add ecx, ebx
mov dword [0x4401d3c], eax
mov eax, dword [ebp - 0x10]
shr eax, 5
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0xc]
xor ebx, ebx
mov eax, dword [ebp - 8]
xor edx, ecx
add eax, dword [ebp - 0x1c]
mov ecx, dword [0x4405938]
xor eax, edx
mov dword [0x4405930], 0xf4ea3dee
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp ecx, 0x213
jne 0x401527
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
lea eax, [ebp - 0x30]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push ebx
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea eax, [ebp - 0xc4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebx
lea eax, [ebp - 0x44c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateTimerQueueTimer]
mov eax, dword [ebp - 8]
mov ecx, dword [0x4405938]
sub edi, eax
cmp ecx, 0xc
jne 0x401535
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
mov eax, edi
shl eax, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x14]
mov eax, edi
mov edx, dword [ebp - 4]
shr eax, cl
add edx, edi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x10]
xor eax, edx
mov edx, dword [ebp - 0xc]
xor edx, eax
mov dword [ebp - 0xc], edx
call fcn.004013ba
mov eax, dword [ebp - 0x18]
sub dword [ebp - 4], eax
dec esi
je 0x401581
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
jmp 0x401431
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], edi
pop edi
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret