joyce8/EMBER2024-capa huggingface dataset:
Function at 0x55a801
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0xffc334], 0
push ebx
push esi
mov esi, 0xffc33c
jne 0x55a82d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0xffc354], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0xffc334], 1
push dword [0xffc354]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x55a8ca
push 0x14
push 8
push dword [0xf81030]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x55a8f4
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0xffc338]
test eax, eax
je 0x55a86f
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0xffc338], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x55a8f9
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0xffc354]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0xf81030]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x55a8f4
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x55b050
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x55b07d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x55b07d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x572fb9
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0xf7c008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x5d5f38
push esi
call fcn.0045c399
pop ecx
pop ecx
test eax, eax
jne 0x572fe7
xor al, al
jmp 0x573064
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.00572c4c
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x573021
push dword [ebp - 0x210]
call fcn.0055b72e
xor al, al
jmp 0x573062
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x573027
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x573047
push edx
call fcn.00572ef0
pop ecx
test al, al
je 0x573012
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x573055
mov bl, 1
push dword [ebp - 0x210]
call fcn.0055b72e
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045030f
leave
ret
Function at 0x574e11
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0055af10
mov eax, dword [0xf7c008]
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.004626e7
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x574e53
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x574faf
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0055b1a0
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 + 0xf82410]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004653b8
mov ecx, dword [esi*4 + 0xf82410]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x574fa8
cmp eax, dword [ecx + edi + 0x24]
jne 0x574fa8
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x574fa8
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004653b8
add esp, 0x14
test edx, edx
jl 0x574fa8
jg 0x574f1e
test eax, eax
jb 0x574fa8
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x574fa8
jl 0x574f38
cmp dword [ebp - 0x1008], eax
ja 0x574fa8
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x574f56
test ebx, ebx
je 0x574f8f
cmp ecx, edi
jae 0x574f8f
mov al, byte [ecx]
cmp al, 0xd
jne 0x574f70
lea eax, [edi - 1]
cmp ecx, eax
jae 0x574f7c
cmp byte [ecx + 1], 0xa
jne 0x574f7c
inc ecx
jmp 0x574f7c
movzx eax, al
movsx eax, byte [eax + 0xf7c760]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x574f56
cmp edx, ebx
jne 0x574f56
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x574fad
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0045030f
leave
ret
Function at 0x58ee80
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0xf7c008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x58eec3
call fcn.00456cbf
mov dword [eax], 0xf
call fcn.00456cd2
mov dword [eax], 0xd
call fcn.0045568d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045030f
leave
ret
test eax, eax
jne 0x58eeca
inc eax
jmp 0x58eeb7
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x58eeb5
xor eax, eax
cmp ecx, 1
setne al
jmp 0x58eeb7

Function at 0x59259f
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x188
push 8
push dword [0xf81030]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0xffc784]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0xffc788], esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
push esi
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 2
mov dword [esi + 0x78], 0x3f
call fcn.00595559
mov dword [esi + 0x58], 0x593582
mov eax, esi
mov dword [esi + 0x5c], 0x5935ce
mov dword [esi + 0x10], fcn.005930ba
mov dword [esi + 0x30], 0x592e95
mov dword [esi + 0x64], 0x593663
mov dword [esi + 0x60], 0x593617
mov dword [esi + 0x34], 0x592960
mov dword [esi + 0x24], 0x592937
mov dword [esi + 0x28], 0x59290c
mov dword [esi + 0x2c], 0x592860
mov dword [esi + 0x44], 0x593352
mov dword [esi + 0x68], 0x592660
mov dword [esi + 0x6c], 0x593865
pop esi
ret 4
Function at 0x406ef6
Capabilities:
Encode data using xor

Disassembly:
call 0x406dda
sub ecx, ecx
sub cx, 0xff80
call 0x406ef6
rcr byte [esi - 0x7f], 0x76
push cs
aaa
inc eax
loopne 0x406ebb
xor dword [esi + 0xe], 0xbbe04037
sub esi, 0xfffffffc
loop 0x406ef9
push es
mov dword [ebx + 0x52], esp
mov cl, 0xa8
pop ds
inc esp
enter 0x20bf, 0xffffffffffffffe5
mov dh, 0x36
out dx, al
xchg edx, eax
lea edi, [edi - 0x4326c797]
add cl, byte [edi + 0x37]
xor ebx, dword [ebx + ebx*8 - 0x321fed6e]
loope 0x406f2c
fild qword [edi + ebx*4 - 0x74]
adc edi, ecx
xchg esi, eax
aaa
mov cl, 0xf0
push es
std
invalid
iretd

Function at 0x408db0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x4e]
inc eax
leave
test eax, eax
setne cl
mov dword [eax + 0xc4d8bfc], esp
cmp ecx, 0x40
inc eax
push esi
js 0xbe209003
je 0x40aedb
dec ecx
or dword [ebx + 0x3b], 0xf
xchg dword [eax], eax
add eax, dword [eax]
add byte [ebx], dh
ror byte [edx + 0x40911091], cl
add bh, bh
and al, 0x95
clc
nop
inc eax
add byte [ebx - 0x2dccf78b], cl
mov ecx, dword [eax + edi + 0x1702e183]
stc
add cl, byte [edi]
xchg esp, eax
pop edx
test dl, 0x74
dec ebp
mov ecx, dword [esi + 4]
lea esp, [ebx]
popal
push 4
push eax
push 0x60
push 0x1fbcffd3
jae 0x408e13
call dword [0x4140e6b8]
adc eax, 0x4140e6b8
cmp eax, 0xffffffff
je 0x2ee90af
mov eax, dword [ebp + 0x10]
test eax, eax
mov eax, dword [esi + 0x38]
je 0x408dc6
or al, 0x33
mov dword [esi + 0x38], eax
xor ecx, dword [ebp + 0x46]
mov esp, ebp
invalid
xchg dword [ebx + 0xc425de5], ecx
add byte [ebx - 0x307ccfbd], cl
invalid

Function at 0x40b080
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
imul eax, ebp, 8
push edi
mov edi, dword [ebp + 0x10]
mov ebp, ebp
adc byte [ebx + 0x260b144e], cl
invalid

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 0x10008ec6
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x10008f28
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, ecx
test edx, edx
jne 0x10008f38
push 0xd
pop eax
jmp 0x10008f6e
push ebp
push esi
push edi
xor esi, esi
mov edi, edx
mov ecx, edi
lea ebp, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10008f44
sub ecx, ebp
lea eax, [ecx + 1]
add edi, eax
add esi, eax
cmp eax, 1
jne 0x10008f3f
push esi
push edx
push 7
push 0
push dword [esp + 0x24]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x1000bb8b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x1000bb9a
pop dword [ebp - 0x10]
mov eax, 0x1000bb9a
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x351be
push 0
mov eax, 0xd1f15879
sub eax, 0xc1f08771
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0xd71f406
add ecx, 0xf28e4ae9
mov ebx, eax
mov edi, 0x10021400
add edi, dword [ebp - 0x10]
mov edx, 0x50855f2f
sub edx, 0x427642d4
mov esi, dword [edi]
xor dword [ebp - 8], 0x671e2d6d
add esi, edx
xor dword [ebp - 4], 0x53414ead
mov dword [ebx], esi
xor dword [ebp - 4], eax
add ebx, 0xf0ff6380
sub ebx, 0xf0ff637c
add edi, 0x70ae4fde
sub edi, 0x70ae4fda
loop 0x1000bbee
add eax, 0xee8f
xor ebx, ebx
add ebx, eax
add eax, 0xd02bb2a4
add eax, 0x2fd44d61
mov ecx, 0xba5448b
sub ecx, 0xfba5448b
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x18030aac
Capabilities:
Authenticate hmac

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x18030aee
call fcn.18030d20
mov ecx, esi
cmp eax, 0xef
jne 0x18030ae9
call fcn.18030d20
cmp eax, 0xbb
jne 0x18030add
mov ecx, esi
call fcn.18030d20
cmp eax, 0xbf
je 0x18030aee
mov dword [esi + 0x40], str.invalid_BOM__must_be_0xEF_0xBB_0xBF_if_given
push 0xe
pop eax
pop esi
ret
call fcn.180317e7
mov ecx, esi
call fcn.18030d20
mov eax, dword [esi + 8]
cmp eax, 0x20
je 0x18030aee
cmp eax, 9
je 0x18030aee
cmp eax, 0xa
je 0x18030aee
cmp eax, 0xd
je 0x18030aee
cmp eax, 0x36
jg 0x18030b67
je 0x18030b36
cmp eax, 0x30
jg 0x18030b4e
je 0x18030b36
cmp eax, 0xffffffff
je 0x18030b4a
test eax, eax
je 0x18030b4a
cmp eax, 0x22
je 0x18030b42
cmp eax, 0x2c
je 0x18030b3e
cmp eax, 0x2d
jne 0x18030bb6
mov ecx, esi
pop esi
jmp fcn.18030dcb
push 0xd
jmp 0x18030ae6
mov ecx, esi
pop esi
jmp fcn.18031191
push 0xf
jmp 0x18030ae6
sub eax, 0x31
je 0x18030b36
sub eax, 1
je 0x18030b36
sub eax, 1
je 0x18030b36
sub eax, 1
je 0x18030b36
sub eax, 1
jmp 0x18030b30
cmp eax, 0x5d
jg 0x18030b9c
je 0x18030b95
sub eax, 0x37
je 0x18030b36
sub eax, 1
je 0x18030b36
sub eax, 1
je 0x18030b36
sub eax, 1
je 0x18030b8e
sub eax, 0x21
jne 0x18030bb6
push 8
jmp 0x18030ae6
push 0xc
jmp 0x18030ae6
push 0xa
jmp 0x18030ae6
sub eax, 0x66
je 0x18030be6
sub eax, 8
je 0x18030bdb
sub eax, 6
je 0x18030bd0
sub eax, 7
je 0x18030bc9
dec eax
sub eax, 1
je 0x18030bc2
mov dword [esi + 0x40], str.invalid_literal
jmp 0x18030ae4
push 0xb
jmp 0x18030ae6
push 9
jmp 0x18030ae6
push 1
push 4
push str.true
jmp 0x18030bef
push 3
push 4
push str.null
jmp 0x18030bef
push 2
push 5
push str.false
mov ecx, esi
call fcn.18030d8c
pop esi
ret

Function at 0x1803b0ba
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
wait
xor eax, 0x349c45c6
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
invalid
inc ebp
invalid
Function at 0x7003301
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x7003310
pop dword [ebp - 0x34]
mov eax, 0x7003310
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xa81b1c4f
sub dword [ebp - 0x44], 0x59c8d704
mov dword [ebp - 0x40], 0xe8f0ec96
sub dword [ebp - 0x40], 0xb6bda051
mov dword [ebp - 0x3c], 0x233658e5
sub dword [ebp - 0x3c], 0xd6ea14b7
mov dword [ebp - 0x38], 0x8c05c8ac
sub dword [ebp - 0x38], 0x8c05c8ac
lea eax, [ebp - 0x44]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x4e44af58
add dword [ebp - 0x44], 0x262db9fe
mov dword [ebp - 0x40], 0x5dcc048c
sub dword [ebp - 0x40], 0x1c5fa317
mov dword [ebp - 0x3c], 0x6456cb05
add dword [ebp - 0x3c], 0xff18a167
mov dword [ebp - 0x38], 0x2c6547cd
sub dword [ebp - 0x38], 0x2c6547cd
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0xe053b4b8
sub eax, 0xd9529484
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x3cde7
push 0
call eax
mov ecx, 0xa9a2fbd
add ecx, 0xf5662144
xor edx, edx
add edx, eax
mov esi, 0x6effe7c0
sub esi, 0x67fe07c0
add esi, dword [ebp - 0x34]
mov ebx, 0x3eeeafa
mov dword [ebp - 0x14], 0x2c1e88ca
mov edi, dword [esi]
add dword [ebp - 0x24], 0x9e8f52e1
add edi, ebx
add dword [ebp - 0x28], edi
mov dword [edx], edi
xor dword [ebp - 0x20], 0xe20ca5b0
add edx, 0x11a6b5b3
add edx, 0xee594a51
add esi, 0x756b616
sub esi, 0x756b612
loop 0x7003424
add eax, 0x672f4cce
add eax, 0x98d1ea09
mov ebx, eax
add eax, 0x560f746e
add eax, 0xa9f08b97
mov ecx, 0x7000000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret

Function at 0x700c938
Capabilities:
Set current directory

Disassembly:
push 8
mov eax, 0x7010cdd
call fcn.07001ea6
mov edi, ecx
mov dword [ebp - 0x14], edi
mov esi, dword [ebp + 8]
push esi
call fcn.0700cc00
xor ebx, ebx
mov dword [edi], vtable.FileSharedStream.0
mov dword [edi + 0xc], ebx
mov byte [edi + 0x10], bl
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
lea eax, [edi + 0x18]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0700d3f5
lea ecx, [ebp - 0x10]
call fcn.0700c8d5
mov eax, dword [edi + 0x14]
mov byte [ebp - 4], 2
push dword [eax + 0x14]
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x700c9a5
mov eax, dword [eax + 0x14]
jmp 0x700c9aa
mov eax, 0x70127b2
push 0x701411c
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov dword [edi + 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x700c9dc
mov ecx, dword [edi + 4]
call fcn.07007826
lea ecx, [ebp - 0x10]
mov dword [edi + 8], eax
call fcn.07003301
mov eax, edi
call fcn.07002b7f
ret 4
push str.file_does_not_exist
push ebx
call fcn.07003301
int3
Function at 0x4013b5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4c
cmp dword [0x1a991d8], 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 0x4013eb
push 0
lea eax, [ebp - 0x44c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [0x41a308]
lea ecx, [ebp - 4]
and dword [ebp - 4], 0
mov dword [ebp - 0x20], eax
mov eax, dword [0x41a30c]
mov dword [ebp - 0x18], 0x9e3779b9
mov dword [ebp - 0x28], eax
call fcn.004013ab
mov ecx, dword [0x41a310]
mov eax, dword [0x41a314]
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 [0x1a991d8], 0xfa9
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [0x1a991d4]
cmove eax, edx
xor edx, edx
cmp dword [0x1a991d8], 0x3eb
mov dword [0x1a991d4], eax
mov eax, dword [0x1a98bc4]
cmove eax, edx
add ecx, ebx
mov dword [0x1a98bc4], 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 [0x1a991d8]
xor eax, edx
mov dword [0x1a991d0], 0xf4ea3dee
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp ecx, 0x213
jne 0x40151f
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_ReadConsoleInputA]
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 [0x1a991d8]
sub edi, eax
cmp ecx, 0xc
jne 0x40152d
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.004013b2
mov eax, dword [ebp - 0x18]
sub dword [ebp - 4], eax
dec esi
je 0x401579
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
jmp 0x401429
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
Function at 0x40f00d
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4197a4]
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.0040b3e7
mov dword [ebp - 0x14], eax
cmp dword [0x4d2fe0], esi
jne 0x40f100
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40f08d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40f1e0
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40f1e0
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f1e0
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4d2fe0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4d2fe4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4d2fe8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4d2ff0], eax
test eax, eax
je 0x40f0fd
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4d2fec], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40f125
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40f118
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40f13a
push 4
pop eax
jmp 0x40f1e2
cmp dword [ebp - 0x14], esi
je 0x40f13a
push dword [0x4d2fe0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40f11f
mov eax, dword [0x4d2fec]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40f198
cmp dword [0x4d2ff0], edi
je 0x40f198
push eax
call ebx
push dword [0x4d2ff0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40f198
test eax, eax
je 0x40f198
call ecx
test eax, eax
je 0x40f18d
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 0x40f18d
test byte [ebp - 8], 1
jne 0x40f198
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40f1c8
mov eax, dword [0x4d2fe4]
cmp eax, edi
je 0x40f1c5
push eax
call ebx
test eax, eax
je 0x40f1c5
call eax
mov esi, eax
test esi, esi
je 0x40f1c5
mov eax, dword [0x4d2fe8]
cmp eax, edi
je 0x40f1c5
push eax
call ebx
test eax, eax
je 0x40f1c5
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4d2fe0]
call ebx
test eax, eax
je 0x40f1e0
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40f1e2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403ef8
mov esp, ebp
pop ebp
ret
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x401c66
pop dword [ebp - 0x44]
mov eax, 0x3012660e
add eax, 0xd02db658
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x287885e0
add dword [ebp - 0x54], 0x25d9bf6b
mov dword [ebp - 0x50], 0x3a4ffa43
sub dword [ebp - 0x50], 0x81cadfe
mov dword [ebp - 0x4c], 0x32d84a20
add dword [ebp - 0x4c], 0x1973fa0e
mov dword [ebp - 0x48], 0xc5b01f80
sub dword [ebp - 0x48], 0xc5b01f80
lea eax, [ebp - 0x54]
push eax
mov eax, 0xe437e532
add eax, 0x1c084b22
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x7aaf27de
add dword [ebp - 0x54], 0xf9c34178
mov dword [ebp - 0x50], 0x2f69da0e
sub dword [ebp - 0x50], 0xedfd7899
mov dword [ebp - 0x4c], 0xb55bb473
add dword [ebp - 0x4c], 0xae13b7f9
mov dword [ebp - 0x48], 0xa3cb21cd
add dword [ebp - 0x48], 0x5c34de33
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0xc2d2b1e9
sub eax, 0xc29281bd
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x34c42
push 0
call eax
mov ecx, 0xf67d11f2
add ecx, 0x9832f32
mov edi, eax
mov ebx, 0x98655ff3
sub ebx, 0x9824eff3
add ebx, dword [ebp - 0x44]
mov esi, 0x7ecbbac6
add dword [ebp - 0x18], 0xe2532251
mov edx, dword [ebx]
xor edx, esi
xor dword [ebp - 8], esi
mov dword [edi], edx
mov dword [ebp - 4], 0x4de4e146
add edi, 0xf76da200
sub edi, 0xf76da1fc
add ebx, 0xc14f682a
add ebx, 0x3eb097da
loop 0x401d82
add eax, 0x86cab644
sub eax, 0x86c9bee1
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret