joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a647a
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 0x4a6517
push ebx
push esi
call fcn.004a651a
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.004a637e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4a64c4
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4a6516
push edi
push eax
call fcn.004a4e0b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4a64e4
call fcn.004a3ebb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4a6515
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004a637e
add esp, 0x20
test eax, eax
jne 0x4a6503
push edi
call fcn.004a3ebb
jmp 0x4a650b
push ebx
call fcn.004a3ebb
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 0x4a7b3c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x4b6a50]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a7b7c
cmp byte [ebx], 0xa
jne 0x4a7b7c
or byte [edi + eax + 0x28], 4
jmp 0x4a7b81
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4a7c80
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4a7c63
inc eax
cmp dl, 0xd
je 0x4a7bad
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4a7bd3
cmp eax, ecx
jae 0x4a7be1
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4a7b95
jmp 0x4a7c80
push 0
lea eax, [ebp - 0x10]
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 0x4a7c5e
cmp dword [ebp - 0x10], 0
je 0x4a7c5e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4b6a50]
test byte [eax + edi + 0x28], 0x48
je 0x4a7c38
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a7c23
mov byte [esi], dl
jmp 0x4a7c34
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4b6a50]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a7c80
cmp byte [ebp - 1], 0xa
jne 0x4a7c47
cmp esi, ebx
jne 0x4a7c47
mov byte [esi], 0xa
jmp 0x4a7c7f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004a7fdd
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a7c80
mov byte [esi], 0xd
jmp 0x4a7c7f
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4b6a50]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a7c7d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a7c80
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a7c89
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4b6a50]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a7ccf
cmp word [ebx], dx
jne 0x4a7ccf
or byte [eax + edi + 0x28], 4
jmp 0x4a7cd4
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4a7e37
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4a7e17
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4a7d15
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a7d4b
cmp eax, edx
jae 0x4a7d59
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4a7cf0
jmp 0x4a7e37
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a7e12
cmp dword [ebp - 0x18], 0
je 0x4a7e12
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4b6a50]
test byte [eax + edi + 0x28], 0x48
je 0x4a7de8
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4a7dac
mov word [esi], cx
jmp 0x4a7de3
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4b6a50]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4b6a50]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4b6a50]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4a7e37
pop eax
cmp word [ebp - 4], ax
jne 0x4a7df8
cmp esi, ebx
jne 0x4a7df8
mov word [esi], ax
jmp 0x4a7e34
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004a7fdd
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4a7e37
push 0xd
pop eax
jmp 0x4a7df3
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4b6a50]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4a7e31
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4a7e37
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4ac208
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004ac39f
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4ac377
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4ac377
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4ac32c
jg 0x4ac264
test eax, eax
je 0x4ac322
push 1
push 0x1000
call fcn.004a4dae
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4ac287
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4ac319
push 0x8000
push ebx
call fcn.004a12db
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4ac2b0
jg 0x4ac2ab
cmp ecx, 0x1000
jb 0x4ac2b0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004a8b15
add esp, 0x10
cmp eax, 0xffffffff
je 0x4ac2f5
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 0x4ac2ab
jl 0x4ac2dc
test ecx, ecx
jne 0x4ac29d
push dword [ebp - 0xc]
push ebx
call fcn.004a12db
push esi
call fcn.004a3ebb
add esp, 0xc
xor ebx, ebx
jmp 0x4ac385
cmp byte [edi + 0x24], 0
je 0x4ac30c
cmp dword [edi + 0x20], 5
jne 0x4ac30c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4ac317
mov ebx, dword [edi + 0x18]
jmp 0x4ac319
xor ebx, ebx
push esi
call fcn.004a3ebb
pop ecx
jmp 0x4ac385
test ecx, ecx
jg 0x4ac2ee
jl 0x4ac32c
test eax, eax
jae 0x4ac2ee
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004a7fdd
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4ac34c
cmp byte [edi + 0x1c], 0
je 0x4ac2ee
jmp 0x4ac37d
push ebx
call fcn.004a68db
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4ac2ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4ac385
cmp byte [edi + 0x1c], 0
je 0x4ac382
mov ebx, dword [edi + 0x18]
jmp 0x4ac385
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004a7fdd
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6e84a690
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.6e8592d0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.6e8592d0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x6e84a6f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x6e967054]
test esi, esi
jle 0x6e84a810
mov eax, dword [0x6e967058]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x6e84a724
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x6e84a7a7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x6e84a710
mov dword [esp], ebx
call fcn.6e84aee0
mov edi, eax
test eax, eax
je 0x6e84a837
mov eax, dword [0x6e967058]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.6e84b020
mov edx, dword [0x6e967058]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6e84a817
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x6e84a7a0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x6e84a7b0
add dword [0x6e967054], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x6e967058]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x6e84a7a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6e84a690
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x6e84a72e
mov eax, dword [0x6e967058]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.6e84a690
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6e84a690
lea esi, [esi]
nop
Function at 0x6e84ab50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6e967064
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6e96705c]
sub esp, 4
test ebx, ebx
je 0x6e84aba5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6e84ab9e
test esi, esi
je 0x6e84ab9e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6e84ab80
mov dword [esp], 0x6e967064
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x6e84aee0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x6e840000], 0x5a4d
jne 0x6e84af05
mov ecx, dword [0x6e84003c]
cmp dword [ecx + 0x6e840000], 0x4550
lea edx, [ecx + 0x6e840000]
je 0x6e84af10
ret
cmp word [ecx + 0x6e840018], 0x10b
jne 0x6e84af05
push esi
movzx eax, word [ecx + 0x6e840014]
push ebx
movzx esi, word [ecx + 0x6e840006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x6e840000
test si, si
je 0x6e84af58
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6e84af4e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x6e84af5a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x6e84af40
xor eax, eax
pop ebx
pop esi
ret

Function at 0x6e850290
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
mov dword [0x6e9670c0], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffff
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
sub esp, 0x10
mov dword [0x6e9670c4], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x6e850300
mov dword [esp + 4], 0x6e8501a0
mov dword [esp], eax
mov dword [0x6e9670bc], eax
call fcn.6e859b50
test eax, eax
jne 0x6e916d79
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x6e8502ea
Function at 0x6e859b70
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov eax, dword [0x6e96702c]
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp], 1
mov ebx, dword [esp + 0x40]
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
sub esp, 4
test eax, eax
je 0x6e859bad
mov dword [esp], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
sub esp, 4
test eax, eax
jne 0x6e859be0
mov dword [esp], 0x6e91f176
mov ecx, ebx
call fcn.6e8e2e80
sub esp, 4
mov eax, dword [esp + 0x2c]
sub eax, dword [0x6e96702c]
jne 0x6e859c53
add esp, 0x30
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov dword [esp], 1
call dword [sym.imp.USER32.dll_GetClipboardData]
sub esp, 4
mov esi, eax
test eax, eax
je 0x6e859c48
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
sub esp, 4
test eax, eax
je 0x6e859c48
mov dword [esp], eax
lea edi, [esp + 0x14]
mov ecx, edi
call fcn.6e8e2e80
sub esp, 4
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
sub esp, 4
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esp], edi
mov ecx, ebx
call fcn.6e8e2790
mov ecx, edi
sub esp, 4
call fcn.6e8e3660
jmp 0x6e859bbe
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x6e859bad
call fcn.6e841590
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x6e85c170
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ecx, 0x1a
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x80]
mov esi, 0x6e920df5
push ebx
sub esp, 0x9c
mov eax, dword [str.not_enough_space_for_format_expansion__Please_submit_full_bug_report_at_https:__gcc.gnu.org_bugs__:_n]
mov dword [ebp - 0x81], eax
mov eax, dword [0x6e920e59]
mov dword [ebp - 0x1c], eax
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp + 8]
lea eax, [edx + 0x84]
and eax, 0xfffffff0
call fcn.6e84b1c0
mov ecx, 0x1a
sub esp, eax
lea esi, [ebp - 0x81]
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov edi, ebx
lea eax, [ebx + 0x68]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 8], edx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x8c], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.6e859a70
mov edx, dword [ebp - 0x8c]
mov byte [ebx + edx + 0x68], 0
mov dword [esp], ebx
call fcn.6e915980
nop
nop
nop
nop
nop
nop
nop
push edi
push esi
push ebx
sub esp, 0x20
cmp byte [0x6e91e248], 0
jne 0x6e85c296
mov byte [0x6e91e248], 1
call fcn.6e9135a0
test eax, eax
je 0x6e85c264
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
sete al
mov dword [esp + 4], 0
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call fcn.6e84a340
mov dword [esp], 2
mov esi, dword [fcn.6e8592d0]
mov edi, eax
call esi
mov dword [esp + 8], 0x30
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
call sub.msvcrt.dll_fwrite
mov edx, dword [esp + 0x1c]
mov dword [esp], 2
test edx, edx
je 0x6e85c254
call esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x6e9215f9
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x6e916164
jmp 0x6e91615c
call esi
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
jmp 0x6e85c21a
mov dword [esp], 2
call dword [0x6e91d0a0]
mov dword [esp + 8], 0x2d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
call sub.msvcrt.dll_fwrite
jmp 0x6e916157
mov dword [esp], 2
call dword [0x6e91d0a0]
mov dword [esp + 8], 0x1d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x6e9215a8
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
call sub.msvcrt.dll_abort
mov dword [esp], edi
call fcn.6e859a38
call fcn.6e9138d0
call fcn.6e913490
call fcn.6e9135d0
jmp 0x6e916157
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x403920
Capabilities:
Get common file path

Disassembly:
sub esp, 0xf70
cmp dword [0x57ce64], 0x37
jne 0x403a04
push esi
push 0x401210
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLocaleInfoA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
lea eax, [esp + 0x154]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
push 0
push 0
push 0
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov esi, dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
lea edx, [esp + 8]
push edx
push 0
lea eax, [esp + 0x2c]
push eax
push 0
call esi
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0
lea ecx, [esp + 0x778]
push ecx
push 0x40121c
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
push 0
lea edx, [esp + 0x378]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0xc]
push eax
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
call esi
lea edx, [esp + 4]
push edx
push 0
push 0x401270
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetStringTypeExA]
mov ecx, dword [0x57d278]
mov eax, dword [esp + 0xf78]
mov dl, byte [ecx + eax + 0x38d6]
mov ecx, dword [0x57c948]
mov byte [ecx + eax], dl
pop esi
add esp, 0xf70
ret 4
mov edx, dword [0x57d278]
mov eax, dword [esp + 0xf74]
mov cl, byte [edx + eax + 0x38d6]
mov edx, dword [0x57c948]
mov byte [edx + eax], cl
add esp, 0xf70
ret 4
Function at 0x408f95
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43cde8]
jne 0x408f9f
repz ret
jmp fcn.0040ba72

Function at 0x40ac84
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43cde8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00404750
and dword [ebp - 0x14], 0
cmp dword [0x57dcb4], 0
mov dword [ebp - 0x18], eax
jne 0x40ad37
push 0x402500
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40addf
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4024f4
push ebx
call edi
test eax, eax
je 0x40addf
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4024e4
push ebx
mov dword [0x57dcb4], eax
call edi
push eax
call esi
push 0x4024d0
push ebx
mov dword [0x57dcb8], eax
call edi
push eax
call esi
push 0x4024b4
push ebx
mov dword [0x57dcbc], eax
call edi
push eax
call esi
mov dword [0x57dcc4], eax
test eax, eax
je 0x40ad37
push 0x40249c
push ebx
call edi
push eax
call esi
mov dword [0x57dcc0], eax
mov eax, dword [0x57dcc0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40ad90
cmp dword [0x57dcc4], ecx
je 0x40ad90
push eax
call esi
push dword [0x57dcc4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40ad90
test ebx, ebx
je 0x40ad90
call edi
test eax, eax
je 0x40ad87
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40ad87
test byte [ebp - 8], 1
jne 0x40ad90
or dword [ebp + 0x10], 0x200000
jmp 0x40adc3
mov eax, dword [0x57dcb8]
cmp eax, dword [ebp - 0x18]
je 0x40adc3
push eax
call esi
test eax, eax
je 0x40adc3
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40adc3
mov eax, dword [0x57dcbc]
cmp eax, dword [ebp - 0x18]
je 0x40adc3
push eax
call esi
test eax, eax
je 0x40adc3
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x57dcb4]
call esi
test eax, eax
je 0x40addf
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40ade1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408f95
leave
ret