joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100292d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x10085018]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
push ecx
lea ecx, [esp + 0x18]
mov ebx, edx
call fcn.100195b0
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
push 0
cmovae eax, dword [esp + 0x18]
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [esp + 0x28]
mov esi, eax
cmp ecx, 8
jb 0x10029358
mov edx, dword [esp + 0x14]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1002934e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10029405
push ecx
push edx
call fcn.1002c23a
add esp, 8
xor eax, eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 7
mov word [esp + 0x14], ax
cmp esi, 0xffffffff
je 0x1002938a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1002939e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.1002bf12
mov esp, ebp
pop ebp
ret
push 0
push edi
lea ecx, [esp + 0x34]
call fcn.10002750
cmp dword [esp + 0x40], 0x10
lea eax, [esp + 0x2c]
push 0
cmovae eax, dword [esp + 0x30]
push 0
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
jne 0x100293d4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
jmp 0x100293e8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x2c]
mov ecx, ebx
push eax
call fcn.100026d0
mov bl, 1
lea ecx, [esp + 0x2c]
call fcn.10001b50
mov ecx, dword [esp + 0x44]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1002bf12
mov esp, ebp
pop ebp
ret
call fcn.10030d4f
int3

Function at 0x100294a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10082e70
push 0x1002d6d0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x10085018]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x10029550
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x10029550
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x10029550
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x10029550
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10029870
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, edx
push esi
mov esi, ecx
push edi
lea ecx, [esi - 0x10000]
movzx eax, cx
mov edi, ecx
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
jbe 0x1002993b
nop dword [eax + eax]
lea eax, [edi - 0x70000000]
cmp eax, 0x10000000
ja 0x100298b5
sub edi, 0x8000000
jmp 0x10029933
push 0x1c
lea eax, [esp + 0x14]
mov dword [esp + 0x2c], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [esp + 0x1c], xmm0
movq qword [esp + 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1002993b
cmp dword [esp + 0x20], 0x10000
jne 0x1002991d
cmp dword [esp + 0x1c], 0x10000
jb 0x1002991d
push 0x40
push 0x3000
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x100299f7
call ebp
cmp eax, 0x677
je 0x1002993b
sub edi, 0x10000
jmp 0x10029933
mov ecx, dword [esp + 0x14]
add ecx, 0xffff0000
mov edi, ecx
movzx eax, di
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
ja 0x100298a0
movzx eax, si
test eax, eax
je 0x1002994a
sub esi, eax
add esi, 0x10000
mov edi, dword [esp + 0x30]
cmp esi, edi
jae 0x100299f5
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
nop dword [eax]
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x10029975
add esi, 0x8000000
jmp 0x100299ed
push 0x1c
lea eax, [esp + 0x14]
mov dword [esp + 0x2c], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [esp + 0x1c], xmm0
movq qword [esp + 0x2c], xmm0
call ebx
test eax, eax
je 0x100299f5
cmp dword [esp + 0x20], 0x10000
mov ecx, dword [esp + 0x1c]
jne 0x100299d7
cmp ecx, 0x10000
jb 0x100299d7
push 0x40
push 0x3000
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x100299f7
call ebp
cmp eax, 0x677
je 0x100299f5
add esi, 0x10000
jmp 0x100299ed
mov esi, dword [esp + 0x10]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x100299ed
mov eax, 0x10000
sub eax, ecx
add esi, eax
cmp esi, edi
jb 0x10029960
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x1002b6bd
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.1002b699
pop esi
leave
ret 8

Function at 0x1003c154
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1007112c
push 0x10071124
push str.FlsAlloc
push 0x1e
call fcn.1003bfde
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003c188
push dword [ebp + 8]
mov ecx, esi
call dword [0x100501b8]
call esi
jmp 0x1003c18e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1003c1d2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1007113c
push 0x10071134
push str.FlsGetValue
push 0x20
call fcn.1003bfde
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003c209
push dword [ebp + 8]
mov ecx, esi
call dword [0x100501b8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1003ece3
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 + 0x1008b928]
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 0x1003ed23
cmp byte [ebx], 0xa
jne 0x1003ed23
or byte [eax + edi + 0x28], 4
jmp 0x1003ed28
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1003ee26
mov al, byte [edx]
cmp al, 0x1a
je 0x1003ee08
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1003ed57
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1003ed7c
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x1003ed86
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 0x1003ed39
jmp 0x1003ee26
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 0x1003ee03
cmp dword [ebp - 0xc], 0
je 0x1003ee03
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x1008b928]
test byte [eax + edi + 0x28], 0x48
je 0x1003eddd
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1003edc8
mov byte [esi], dl
jmp 0x1003edd9
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1008b928]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1003ee26
cmp byte [ebp - 1], 0xa
jne 0x1003edec
cmp esi, ebx
jne 0x1003edec
mov byte [esi], 0xa
jmp 0x1003ee25
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1003ec85
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1003ee26
mov byte [esi], 0xd
jmp 0x1003ee25
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x1008b928]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1003ee22
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1003ee26
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1003ee2f
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 + 0x1008b928]
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 0x1003ee72
cmp word [esi], dx
jne 0x1003ee72
or byte [edi + eax + 0x28], 4
jmp 0x1003ee77
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 0x1003efca
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 0x1003efaa
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x1003eeb9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1003eeef
cmp eax, edx
jae 0x1003eefb
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 0x1003ee91
jmp 0x1003efca
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 0x1003efa6
cmp dword [ebp - 0x14], 0
je 0x1003efa6
mov eax, dword [ebx*4 + 0x1008b928]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x1003ef7e
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x1003ef47
mov word [esi], cx
jmp 0x1003ef7a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x1008b928]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x1008b928]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x1008b928]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x1003efca
pop ebx
cmp word [ebp - 4], bx
jne 0x1003ef8f
cmp esi, dword [ebp + 0xc]
jne 0x1003ef8f
mov word [esi], bx
jmp 0x1003efc7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1003ec85
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1003efca
push 0xd
jmp 0x1003efc3
mov ecx, dword [ebx*4 + 0x1008b928]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1003efc1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1003efca
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 0x100437ba
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 0x10043857
push ebx
push esi
call fcn.10043783
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.1004254b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10043804
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10043856
push edi
push eax
call fcn.1003c588
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10043824
call fcn.1003bd03
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10043855
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1004254b
add esp, 0x20
test eax, eax
jne 0x10043843
push edi
call fcn.1003bd03
jmp 0x1004384b
push ebx
call fcn.1003bd03
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 0x10049e41
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.10049dbd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10049fb9
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10049fb9
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10049f68
jg 0x10049e9a
test eax, eax
je 0x10049f5e
push 1
push 0x1000
call fcn.1003bca6
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10049ec0
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x10049f55
push 0x8000
push ebx
call fcn.10049cee
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 0x10049eec
jg 0x10049ee7
cmp ecx, 0x1000
jb 0x10049eec
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1003ff54
add esp, 0x10
cmp eax, 0xffffffff
je 0x10049f31
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 0x10049ee7
jl 0x10049f18
test ecx, ecx
jne 0x10049ed9
push dword [ebp - 0xc]
push ebx
call fcn.10049cee
push esi
call fcn.1003bd03
add esp, 0xc
xor edi, edi
jmp 0x10049fca
cmp byte [edi + 0x24], 0
je 0x10049f48
cmp dword [edi + 0x20], 5
jne 0x10049f48
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10049f53
mov edi, dword [edi + 0x18]
jmp 0x10049f55
xor edi, edi
push esi
call fcn.1003bd03
pop ecx
jmp 0x10049fca
test ecx, ecx
jg 0x10049f2a
jl 0x10049f68
test eax, eax
jae 0x10049f2a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1003ec85
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10049f8b
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x10049f2a
jmp 0x10049fc2
push ebx
call fcn.10047c0a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10049f2a
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 0x10049fca
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x10049fc7
mov edi, dword [edi + 0x18]
jmp 0x10049fca
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1003ec85
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1004ab10
Capabilities:
Parse pe header

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

Disassembly:
mov esi, 0x43b3c1
and edx, edi
add edi, edx
call fcn.0043b69c
sub edi, 0xac5bbd34
sub edx, edx
add edi, 0x16d60b38
xor dword [ebx], esi
add edx, 0x4f91da5
inc ebx
sub esp, 4
mov dword [esp], 0x6972c9f7
mov edx, dword [esp]
add esp, 4
cmp ebx, eax
jne fcn.0043b656
or edi, edx
ret

Function at 0x414e60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf000]
push edi
jmp 0x414e7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x414e81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414e70
mov eax, 1
add ebx, ebx
jne 0x414e93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x414e88
jne 0x414ea4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414e88
xor ecx, ecx
sub eax, 3
jb 0x414eb8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x414f2a
mov ebp, eax
add ebx, ebx
jne 0x414ec3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x414ed0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x414ef4
inc ecx
add ebx, ebx
jne 0x414ee0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x414ed5
jne 0x414ef1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414ed5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x414f14
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x414f05
jmp 0x414e76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x414f14
add edi, ecx
jmp 0x414e76
pop esi
mov edi, esi
mov ecx, 0x5a7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x414f32
cmp byte [edi], 5
jne 0x414f32
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 0x414f37
lea edi, [esi + 0x12000]
mov eax, dword [edi]
or eax, eax
je 0x414fa6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x15454]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1551c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x414f64
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x15520]
or eax, eax
je 0x414fa0
mov dword [ebx], eax
add ebx, 4
jmp 0x414f81
call dword [esi + 0x15530]
mov ebp, dword [esi + 0x15524]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x414fda
sub esp, 0xffffff80
jmp 0x40a764
Function at 0x406690
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4158db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x40496c
call fcn.004072f1
push 4
mov dword [esp + 0x18], 0
call fcn.00408027
mov edi, eax
add esp, 4
test edi, edi
je 0x406704
push ebx
call fcn.004071c9
mov dword [edi], eax
call fcn.00406f88
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.004072b2
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4066f8
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.004072da
pop ebx
jmp 0x406706
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x408aa1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x419510]
jne 0x408aab
repz ret
jmp fcn.0040ccac
Function at 0x410dc3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419510]
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.0040ae66
and dword [ebp - 0x14], 0
cmp dword [0x430850], 0
mov dword [ebp - 0x18], eax
jne 0x410e76
push 0x4038cc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x410f1e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4038c0
push ebx
call edi
test eax, eax
je 0x410f1e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4038b0
push ebx
mov dword [0x430850], eax
call edi
push eax
call esi
push 0x40389c
push ebx
mov dword [0x430854], eax
call edi
push eax
call esi
push 0x403880
push ebx
mov dword [0x430858], eax
call edi
push eax
call esi
mov dword [0x430860], eax
test eax, eax
je 0x410e76
push 0x403868
push ebx
call edi
push eax
call esi
mov dword [0x43085c], eax
mov eax, dword [0x43085c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x410ecf
cmp dword [0x430860], ecx
je 0x410ecf
push eax
call esi
push dword [0x430860]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x410ecf
test ebx, ebx
je 0x410ecf
call edi
test eax, eax
je 0x410ec6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x410ec6
test byte [ebp - 8], 1
jne 0x410ecf
or dword [ebp + 0x10], 0x200000
jmp 0x410f02
mov eax, dword [0x430854]
cmp eax, dword [ebp - 0x18]
je 0x410f02
push eax
call esi
test eax, eax
je 0x410f02
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x410f02
mov eax, dword [0x430858]
cmp eax, dword [ebp - 0x18]
je 0x410f02
push eax
call esi
test eax, eax
je 0x410f02
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x430850]
call esi
test eax, eax
je 0x410f1e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x410f20
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408aa1
leave
ret
Function at 0x413540
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x100c
call fcn.00411930
cmp dword [0x7b45ec], 0x37
jne 0x4135da
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCommState]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
lea eax, [esp + 0x810]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
mov ecx, dword [0x7b55e0]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x43563c]
mov byte [ecx + esi], al
add esp, 0x100c
ret