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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x410472
jl 0x410465
test ecx, ecx
jne 0x410472
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x410530
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.004023c0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x4104de
jg 0x41049d
test esi, esi
je 0x4104de
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x4104b5
mov eax, dword [esp + 0x10]
jl 0x4104af
cmp eax, esi
jae 0x4104b5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.0042d530
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x4104fd
mov eax, dword [ebx]
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x410519
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x410484
jl 0x410519
test ecx, ecx
jne 0x410484
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov esi, dword [ebp + 0x10]
sbb esi, edx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x41056e
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x41056e
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.0042d530
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [esp + 0x18], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x4105d7
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x410594
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x4105c2
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00436ee0
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x4105d7
cmp edi, eax
ja 0x4105a0
test edi, edi
je 0x4105d7
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00436ee0
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x410900
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x47c068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x410930
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c079
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x41096c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x41096c
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c079
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x410a4c
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x410994
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4109a0
mov byte [ebp - 0x2c], bl
jmp 0x4109db
mov byte [ebp - 0x25], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x410a0c
sub eax, 1
je 0x410a0c
sub eax, 2
jne 0x410a4c
mov al, byte [ebp - 0x25]
mov byte [ebp - 0x2c], al
push dword [esi + 0x4c]
lea eax, [ebp - 0x2c]
push 1
push 1
push eax
call fcn.004355e8
add esp, 0x10
or ecx, 0xffffffff
cmp eax, 1
cmovne ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c079
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x410a29
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004355e8
add esp, 0x10
cmp edi, eax
jne 0x410a4c
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x34], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c079
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042c079
mov esp, ebp
pop ebp
ret 4
Function at 0x412010
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x47c068]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x4120cc
cmp byte [esi + 0x3d], 0
je 0x4120cc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4120ba
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x412082
sub eax, 1
je 0x412086
sub eax, 2
jne 0x4120ba
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c079
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4120a3
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004355e8
add esp, 0x10
cmp edi, eax
jne 0x4120ba
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c079
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c079
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0042c079
mov esp, ebp
pop ebp
ret
Function at 0x412cb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44affc
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x47c068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [edi], eax
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
lea ebx, [edi + 0x38]
mov dword [edi + 0x30], 0
mov byte [edi + 0x34], 0
mov dword [ebp - 0x14], ebx
mov dword [ebx + 0x24], 0
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x412d64
mov eax, dword [ecx]
push ebx
call dword [eax]
mov dword [ebx + 0x24], eax
mov al, byte [ebp + 0xc]
lea ecx, [edi + 0x68]
mov byte [ebp - 4], 5
push 9
mov byte [edi + 0x60], al
call fcn.004126c0
mov byte [ebp - 4], 6
xor ebx, ebx
mov ecx, dword [edi + 0x1c]
mov edx, dword [edi + 0x10]
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x18], edx
test ecx, ecx
jns 0x412dab
mov eax, ecx
neg eax
cmp ebx, eax
jae 0x412dab
add ecx, ebx
mov eax, ecx
not eax
shr eax, 5
lea eax, [eax*4 + 4]
sub edx, eax
jmp 0x412db5
add ecx, ebx
mov eax, ecx
shr eax, 5
lea edx, [edx + eax*4]
and ecx, 0x1f
lea eax, [ebp - 0xd]
push ecx
push edx
push eax
push ecx
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 0x10]
call fcn.004151a0
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x412de3
mov esi, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30
Function at 0x42bb09
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.0042bae5
pop esi
leave
ret 8

Function at 0x42ccf8
Capabilities:
Parse pe header

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

Function at 0x43caa2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043c918

Function at 0x449930
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44995d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44995d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40c540
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa000]
push edi
or ebp, 0xffffffff
jmp 0x40c562
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40c569
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40c558
mov eax, 1
add ebx, ebx
jne 0x40c57b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40c570
jne 0x40c58c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c570
xor ecx, ecx
sub eax, 3
jb 0x40c5a0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40c612
mov ebp, eax
add ebx, ebx
jne 0x40c5ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40c5b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40c5dc
inc ecx
add ebx, ebx
jne 0x40c5c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40c5bd
jne 0x40c5d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c5bd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40c5fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40c5ed
jmp 0x40c55e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40c5fc
add edi, ecx
jmp 0x40c55e
pop esi
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40c664
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc050]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40c619
mov ecx, edi
jns 0x40c648
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 + 0xc054]
or eax, eax
je 0x40c65e
mov dword [ebx], eax
add ebx, 4
jmp 0x40c636
call dword [esi + 0xc064]
mov ebp, dword [esi + 0xc058]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x40c698
sub esp, 0xffffff80
jmp 0x40a3cc
Function at 0x408780
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 0xc], 0x56104d8b
mov ebx, dword [ebx + 8]
xor byte [ecx + 0x56], dl
call 0xe940a537
mov eax, esi
pop ss
pop ebp
jnp fcn.00408780
nop
nop
jno 0x4087d8
nop
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp eax, 0x11171
cmovb eax, ebx
add byte [ebx + 0xf], ah
in eax, 0x2c
add byte [eax], al
add byte [0xffffb1de], al
cmp eax, 0x19
mov dl, 0x87
cmp eax, dword [ecx]
add byte [eax], al
xor al, 0x89
test dword [ebx], ebx
mov dword [esi], edi
mov eax, 0x4100b7
pop ebp
ret
pop ebp
ret

Function at 0x40ae50
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
add byte [eax], al
add byte [edx + 0x633c4606], cl
mov al, byte [esi]
inc esi
cmp al, 0x63
mov byte [ebp + 0x10], al
sbb bl, byte [edx]
mov eax, dword [ebp + 0x10]
mov ebx, 0x9164
je 0x40ad91
add byte [eax], al
add byte [ecx + 0x3095c7f7], bl
mov byte [ebp + 0x10], dl
mov byte [ecx + eax*2 + 0x93c04eb], al
jbe 0x40ae38
mov edi, dword [ecx + 0x4622bbc3]
add byte [eax], al
and eax, 0xff
cdq
idiv ebx
add al, 0x30
mov byte [ecx], al
inc ecx
mov ah, byte [edi - 3]
std
xor byte [eax + 0x1749701], cl
inc ecx
dec edi
jne 0x40adf9
mov eax, dword [ebp - 0x4b]
mov ebp, 0xff41e25e
add byte [ebx + 0x5d], bl
out dx, al
push ebp
mov ebp, esp
inc esp
in al, dx
or al, 0x53
sub dword [ebx - 0x22dbef37], ecx
sbb al, byte [eax]
ja 0x40adf6
mov dword [esi], 0xa1
pop edi
pop esi
xor eax, eax
pop ebx
dec ebp
in eax, 0x92
invalid
Function at 0x40b5de
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4bc5f8]
jne 0x40b5e8
repz ret
jmp fcn.0040e05b

Function at 0x40cb13
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4bc5f8]
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.0040819d
and dword [ebp - 0x14], 0
cmp dword [0x4c0718], 0
mov dword [ebp - 0x18], eax
jne 0x40cbc6
push 0x4023e4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40cc6e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4023d8
push ebx
call edi
test eax, eax
je 0x40cc6e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4023c8
push ebx
mov dword [0x4c0718], eax
call edi
push eax
call esi
push 0x4023b4
push ebx
mov dword [0x4c071c], eax
call edi
push eax
call esi
push 0x402398
push ebx
mov dword [0x4c0720], eax
call edi
push eax
call esi
mov dword [0x4c0728], eax
test eax, eax
je 0x40cbc6
push 0x402380
push ebx
call edi
push eax
call esi
mov dword [0x4c0724], eax
mov eax, dword [0x4c0724]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40cc1f
cmp dword [0x4c0728], ecx
je 0x40cc1f
push eax
call esi
push dword [0x4c0728]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40cc1f
test ebx, ebx
je 0x40cc1f
call edi
test eax, eax
je 0x40cc16
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40cc16
test byte [ebp - 8], 1
jne 0x40cc1f
or dword [ebp + 0x10], 0x200000
jmp 0x40cc52
mov eax, dword [0x4c071c]
cmp eax, dword [ebp - 0x18]
je 0x40cc52
push eax
call esi
test eax, eax
je 0x40cc52
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40cc52
mov eax, dword [0x4c0720]
cmp eax, dword [ebp - 0x18]
je 0x40cc52
push eax
call esi
test eax, eax
je 0x40cc52
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4c0718]
call esi
test eax, eax
je 0x40cc6e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40cc70
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b5de
leave
ret
Function at 0x4a2c90
Capabilities:
Accept command line arguments
Delete directory
Get common file path

Disassembly:
mov eax, 0x1020
call fcn.0040e030
cmp dword [0x260faa4], 0x37
jne 0x4a2d58
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0x403450
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
mov eax, dword [esp]
push 0
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
push 0
lea ecx, [esp + 0x424]
push ecx
push 0x403460
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea edx, [esp + 0x824]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 4]
push eax
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea edx, [esp + 8]
push edx
push 0x4034b8
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
lea eax, [esp + 0x20]
push eax
push 0
push 0x4034c0
push 0x4034d0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0x403520
push 0x4035e0
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
mov ecx, dword [0x260faa8]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x4c5834]
mov byte [ecx + esi], al
add esp, 0x1020
ret

Function at 0x4a2d80
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0x60
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx]
mov edx, dword [0x4bd368]
push ebx
push ebp
mov ebp, dword [0x4bd364]
push esi
mov esi, dword [ecx + 4]
mov ecx, dword [0x4bd360]
mov dword [esp + 0x20], ecx
mov ecx, dword [0x4bd36c]
push edi
mov dword [esp + 0x14], eax
mov ebx, 0xc6ef3720
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], 0x20
jmp 0x4a2dcb
mov eax, dword [esp + 0x14]
mov edx, eax
mov ecx, eax
shr edx, 5
add edx, dword [esp + 0x1c]
shl ecx, 4
add ecx, dword [esp + 0x20]
add eax, ebx
xor edx, ecx
xor edx, eax
sub esi, edx
mov ecx, esi
shl ecx, 4
mov dword [0x2605a54], 0
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x24]
add dword [esp + 0x10], eax
cmp dword [0x260faa4], 0x1be
lea edi, [ebx + esi]
jne 0x4a2e20
lea edx, [esp + 0x28]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov eax, esi
shr eax, 5
add eax, ebp
xor eax, edi
xor dword [esp + 0x10], eax
mov dword [0x2605a58], 0xff6b3619
mov dword [0x2605a5c], 0xffffffff
mov eax, dword [esp + 0x10]
sub dword [esp + 0x14], eax
mov eax, dword [0x260faa4]
cmp eax, 0x93
je 0x4a2e5b
add ebx, 0x61c88647
dec dword [esp + 0x18]
jne 0x4a2dc7
cmp eax, 0x8d4
jne 0x4a2e8e
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x14]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], edx
pop ebx
add esp, 0x60
ret 4
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x14]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x60
ret 4
Function at 0x4a2eb0
Capabilities:
Manipulate console buffer

Disassembly:
push ecx
mov eax, dword [0x260faa4]
shr eax, 3
push esi
mov esi, dword [0x4c5834]
test eax, eax
je 0x4a2ef4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push edi
mov edi, eax
mov edi, edi
cmp dword [0x260faa4], 0x1c
jne 0x4a2ee6
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
call ebx
push esi
call fcn.004a2d80
add esi, 8
dec edi
jne 0x4a2ed0
pop edi
pop ebx
pop esi
pop ecx
ret
Function at 0x1143320
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push esi
push edi
mov edi, ecx
or esi, 0xffffffff
xor ecx, ecx
mov eax, ecx
shr eax, 1
mov dword [ebp + ecx*4 - 0x400], ecx
test cl, 1
je 0x1143347
xor eax, 0xedb88320
mov dword [ebp + ecx*4 - 0x400], eax
test al, 1
je 0x114335b
shr eax, 1
xor eax, 0xedb88320
jmp 0x114335d
shr eax, 1
mov dword [ebp + ecx*4 - 0x400], eax
test al, 1
je 0x1143371
shr eax, 1
xor eax, 0xedb88320
jmp 0x1143373
shr eax, 1
mov dword [ebp + ecx*4 - 0x400], eax
test al, 1
je 0x1143387
shr eax, 1
xor eax, 0xedb88320
jmp 0x1143389
shr eax, 1
mov dword [ebp + ecx*4 - 0x400], eax
test al, 1
je 0x114339d
shr eax, 1
xor eax, 0xedb88320
jmp 0x114339f
shr eax, 1
mov dword [ebp + ecx*4 - 0x400], eax
test al, 1
je 0x11433b3
shr eax, 1
xor eax, 0xedb88320
jmp 0x11433b5
shr eax, 1
mov dword [ebp + ecx*4 - 0x400], eax
test al, 1
je 0x11433c9
shr eax, 1
xor eax, 0xedb88320
jmp 0x11433cb
shr eax, 1
mov dword [ebp + ecx*4 - 0x400], eax
test al, 1
je 0x11433df
shr eax, 1
xor eax, 0xedb88320
jmp 0x11433e1
shr eax, 1
mov dword [ebp + ecx*4 - 0x400], eax
inc ecx
cmp ecx, 0x100
jb 0x1143332
xor ecx, ecx
test edx, edx
je 0x114341a
jmp 0x1143400
movzx eax, byte [ecx + edi]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [ebp + eax*4 - 0x400]
inc ecx
cmp ecx, edx
jb 0x1143400
not esi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1143460
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
xor eax, eax
mov byte [ebp + eax - 0x108], al
inc eax
cmp eax, 0x100
jb 0x1143471
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
xor esi, esi
lea ebx, [ebx]
mov dl, byte [ebp + esi - 0x108]
mov eax, esi
and eax, 0xf
movzx ecx, dl
movzx eax, byte [eax + ebx]
add edi, eax
add edi, ecx
and edi, 0xff
inc esi
mov al, byte [ebp + edi - 0x108]
mov byte [ebp + esi - 0x109], al
mov byte [ebp + edi - 0x108], dl
cmp esi, 0x100
jb 0x1143490
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp dword [ebp - 4], ebx
jbe 0x114352d
inc esi
and esi, 0xff
inc edi
mov dl, byte [ebp + esi - 0x108]
movzx eax, dl
add ebx, eax
and ebx, 0xff
movzx eax, byte [ebp + ebx - 0x108]
mov byte [ebp + esi - 0x108], al
mov byte [ebp + ebx - 0x108], dl
movzx ecx, byte [ebp + esi - 0x108]
movzx eax, dl
add ecx, eax
and ecx, 0xff
movzx eax, byte [ebp + ecx - 0x108]
mov ecx, dword [ebp - 8]
xor byte [edi + ecx - 1], al
cmp edi, dword [ebp - 4]
jb 0x11434d6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1143b00
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push 0xf0000000
mov eax, dword [eax + 0xc]
push 1
mov eax, dword [eax + 0x14]
push 0
mov eax, dword [eax + 0x20]
push 0
push 0x113ec24
mov dword [0x113ec28], eax
call dword [fcn.0113100c]
neg eax
sbb eax, eax
neg eax
ret
Function at 0x401688
Capabilities:
Encode data using xor

Disassembly:
add byte [eax], al
push 0x498c20
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
push eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add ah, dl
push ebx
mov dword [ecx + 0x45ff9952], ebx
pushfd
loope 0x401686
out 0x72, al
mov ah, 0xb5
dec ebx
add byte [eax], al
add byte [eax], al
add byte [eax], al
add dword [eax], eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
xlatb
retf 0xb4d4