joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44292f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x45e56c]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x442960
xor eax, eax
jmp 0x442ae9
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x466c60]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x44299c
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00445ace
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x442a77
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x442ab5
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x442a00
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4429f1
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x4429d1
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x442a40
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x442a49
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x4429c2
jmp 0x442a4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x442ae4
cmp dword [ebp - 0x6c], edi
je 0x442ab5
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x442aaa
call fcn.00440ef5
mov dword [eax], 9
call fcn.00440efe
mov dword [eax], esi
jmp 0x442adf
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x442a9f
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x442a4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x442a4b
push dword [ebp - 0x6c]
call fcn.00440f07
pop ecx
jmp 0x442adf
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x442acd
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x442acd
xor eax, eax
jmp 0x442ae7
call fcn.00440ef5
mov dword [eax], 0x1c
call fcn.00440efe
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x442ae7
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0043800c
add ebp, 0x3a0
leave
ret
Function at 0x442fc9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x465898], ebx
push esi
push edi
jne 0x443049
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x443084
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4567e4
push edi
call esi
test eax, eax
mov dword [0x465898], eax
je 0x443084
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x46589c], eax
call esi
cmp dword [0x46547c], 2
mov dword [0x4658a0], eax
jne 0x443049
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4658a8], eax
je 0x443049
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4658a4], eax
mov eax, dword [0x4658a4]
test eax, eax
je 0x44308e
call eax
test eax, eax
je 0x443075
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4658a8]
test eax, eax
je 0x443075
test byte [ebp - 8], 1
jne 0x44308e
cmp dword [0x465488], 4
jb 0x443088
or byte [ebp + 0x12], 0x20
jmp 0x4430ad
xor eax, eax
jmp 0x4430bd
or byte [ebp + 0x12], 4
jmp 0x4430ad
mov eax, dword [0x46589c]
test eax, eax
je 0x4430ad
call eax
mov ebx, eax
test ebx, ebx
je 0x4430ad
mov eax, dword [0x4658a0]
test eax, eax
je 0x4430ad
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x465898]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4468f1
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004396e0
mov eax, dword [0x45e56c]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00442d61
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x446a24
push 2
push esi
push dword [ebp + 8]
call fcn.00442d61
add esp, 0xc
cmp eax, ebx
je 0x446a24
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4469c4
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00439720
push 0x8000
push dword [ebp + 8]
call fcn.0044757d
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x44697a
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0044292f
add esp, 0xc
cmp eax, 0xffffffff
je 0x44699a
sub edi, eax
test edi, edi
jg 0x446972
jmp 0x4469b2
call fcn.00440efe
cmp dword [eax], 5
jne 0x4469af
call fcn.00440ef5
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0044757d
pop ecx
pop ecx
jmp 0x446a0c
jge 0x446a0c
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00442d61
push dword [ebp + 8]
call fcn.0044584f
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x446a0c
call fcn.00440ef5
mov dword [eax], 0xd
call fcn.00440efe
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.00442d61
add esp, 0xc
mov eax, esi
pop edi
jmp 0x446a26
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0043800c
leave
ret
Function at 0x446a32
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x457708
call fcn.00439588
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x465944], edi
jne 0x446a76
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x446a61
mov dword [0x465944], ebx
jmp 0x446a76
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x446a76
mov dword [0x465944], 2
mov eax, dword [0x465944]
cmp eax, ebx
jne 0x446a96
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x446b59
cmp eax, 2
je 0x446a9f
cmp eax, edi
jne 0x446ac7
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x446ab2
mov eax, dword [0x4658f0]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x446ace
xor eax, eax
jmp 0x446b59
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.004396e0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x446b01
cmp esi, edi
jne 0x446b17
push dword [ebp - 0x20]
call fcn.00439422
pop ecx
mov esi, eax
cmp esi, edi
je 0x446ac7
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x446b4a
cmp dword [ebp + 0x14], edi
jne 0x446b34
push edi
push edi
jmp 0x446b3a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x446b56
push esi
call fcn.00439434
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.004395c3
ret
Function at 0x446b62
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x457718
call fcn.00439588
xor esi, esi
cmp dword [0x465948], esi
jne 0x446ba6
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x446b91
mov dword [0x465948], edi
jmp 0x446ba6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x446ba6
mov dword [0x465948], 2
mov eax, dword [0x465948]
cmp eax, 2
je 0x446c87
cmp eax, esi
je 0x446c87
cmp eax, 1
jne 0x446beb
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x446bd4
mov eax, dword [0x4658f0]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x446bf2
xor eax, eax
jmp 0x446c99
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.004396e0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x446c28
cmp edi, esi
jne 0x446c43
lea eax, [ebx + ebx]
push eax
call fcn.00439422
pop ecx
mov edi, eax
cmp edi, esi
je 0x446beb
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x446c76
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x446c60
push esi
push esi
jmp 0x446c66
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x446c82
push edi
call fcn.00439434
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x446c99
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.004395c3
ret
Function at 0x4473a8
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x4473c1
or eax, 0xffffffff
jmp 0x447422
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x44741e
push 0x3d
push esi
call fcn.004475e9
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x44741e
cmp esi, eax
je 0x44741e
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x46549c]
sete cl
cmp eax, dword [0x4654a0]
mov dword [ebp - 8], ecx
jne 0x447404
mov edi, eax
call fcn.00447347
mov dword [0x46549c], eax
cmp eax, ebx
jne 0x44745d
cmp dword [ebp + 0xc], ebx
je 0x447426
cmp dword [0x4654a4], ebx
je 0x447426
call fcn.00446861
test eax, eax
je 0x44745d
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x44742f
xor eax, eax
jmp 0x447421
push 4
call fcn.00439422
cmp eax, ebx
pop ecx
mov dword [0x46549c], eax
je 0x44741e
mov dword [eax], ebx
cmp dword [0x4654a4], ebx
jne 0x44745d
push 4
call fcn.00439422
cmp eax, ebx
pop ecx
mov dword [0x4654a4], eax
je 0x44741e
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x46549c]
call fcn.004472fa
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x4474be
cmp dword [esi], ebx
je 0x4474be
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00439434
cmp dword [ebp - 8], ebx
pop ecx
jne 0x4474a1
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x4474ff
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x447498
mov eax, edi
shl eax, 2
push eax
push dword [0x46549c]
call fcn.00439d1b
cmp eax, ebx
pop ecx
pop ecx
je 0x4474ff
jmp 0x4474fa
cmp dword [ebp - 8], ebx
jne 0x44756a
cmp edi, ebx
jge 0x4474cd
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x46549c]
call fcn.00439d1b
cmp eax, ebx
pop ecx
pop ecx
je 0x44741e
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x46549c], eax
cmp dword [ebp + 0xc], ebx
je 0x447554
push dword [ebp - 4]
call fcn.00438020
inc eax
inc eax
push eax
call fcn.00439422
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x447554
push dword [ebp - 4]
push esi
call fcn.004380c0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x44754d
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00439434
pop ecx
cmp dword [ebp - 8], ebx
je 0x447562
push dword [ebp - 4]
call fcn.00439434
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x447421
push dword [ebp - 4]
call fcn.00439434
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x44742b
Function at 0x423750
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1d000]
push edi
or ebp, 0xffffffff
jmp 0x423772
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x423779
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x423768
mov eax, 1
add ebx, ebx
jne 0x42378b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x423780
jne 0x42379c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x423780
xor ecx, ecx
sub eax, 3
jb 0x4237b0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x423822
mov ebp, eax
add ebx, ebx
jne 0x4237bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4237c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4237ec
inc ecx
add ebx, ebx
jne 0x4237d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4237cd
jne 0x4237e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4237cd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42380c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4237fd
jmp 0x42376e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42380c
add edi, ecx
jmp 0x42376e
pop esi
mov edi, esi
mov ecx, 0x29
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42382a
cmp byte [edi], 3
jne 0x42382a
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 0x42382f
lea edi, [esi + 0x21000]
mov eax, dword [edi]
or eax, eax
je 0x4238a7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28e2c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x28e68]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42385c
mov ecx, edi
jns 0x42388b
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 + 0x28e6c]
or eax, eax
je 0x4238a1
mov dword [ebx], eax
add ebx, 4
jmp 0x423879
call dword [esi + 0x28e74]
mov ebp, dword [esi + 0x28e70]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1e7]
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 0x4238db
sub esp, 0xffffff80
jmp 0x4013cc

Function at 0x401c2e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
and byte [ebp - 0x100], 0
push edi
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0xff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 8
lea eax, [ebp - 0x100]
push 0x404008
push eax
call fcn.00401ca0
mov ecx, 0x401bdc
mov eax, 0x4017fd
sub ecx, eax
push ecx
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.00401d18
push 0x100
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.004020d0
add esp, 0x24
call fcn.00401846
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x402634
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
call esi
cmp eax, 0xffffffff
je 0x402655
push dword [ebp + 8]
call esi
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
pop esi
jne 0x402682
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x402682
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
cmp dword [eax], 0
je 0x402682
push 4
push eax
lea eax, [ebp - 4]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 4]
leave
ret 8

Function at 0x402689
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0x10]
and dword [ebp - 4], 0
imul edx, edx, 0x9e3779b9
push esi
mov esi, dword [ebp + 0xc]
test edx, edx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
je 0x4026fe
mov esi, dword [ebp + 8]
push ebx
push edi
mov edi, ecx
mov ebx, ecx
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, dword [ebp - 4]
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, dword [ebp - 4]
xor ebx, ecx
sub dword [ebp - 4], 0x61c88647
add ebx, eax
lea eax, [ebx + edi]
mov edi, eax
mov ebx, eax
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, dword [ebp - 4]
sar ebx, 0xb
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, dword [ebp - 4]
xor ebx, eax
add ebx, ecx
cmp dword [ebp - 4], edx
lea ecx, [ebx + edi]
jne 0x4026ac
mov esi, dword [ebp + 0xc]
pop edi
pop ebx
mov dword [esi], eax
mov dword [esi + 4], ecx
pop esi
leave
ret

Function at 0x402706
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push esi
imul eax, eax, 0x61c88647
mov esi, dword [esp + 0xc]
test eax, eax
mov edx, dword [esi]
mov ecx, dword [esi + 4]
je 0x40276e
mov esi, dword [esp + 8]
push ebx
push edi
mov edi, edx
mov ebx, edx
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, eax
sar ebx, 0xb
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, eax
xor ebx, edx
add eax, 0x61c88647
add edi, ebx
sub ecx, edi
mov edi, ecx
mov ebx, ecx
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, eax
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, eax
xor ebx, ecx
add edi, ebx
sub edx, edi
test eax, eax
jne 0x402724
mov esi, dword [esp + 0x14]
pop edi
pop ebx
mov dword [esi], edx
mov dword [esi + 4], ecx
pop esi
ret

Function at 0x7ffac0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x7ffaca
pushal
call 0x7ffad0
pop ebp
sub ebp, 0x10
sub ebp, 0x3ffac0
jmp 0x7ffae6
mov eax, 0x3ffac0
add eax, ebp
add eax, 0x4c
mov ecx, 0x5ff
mov edx, 0x2f44d028
xor byte [eax], dl
inc eax
dec ecx
jne 0x7ffafd
jmp 0x7ffb10
mov dword [0x14a1a3e5], eax
sub byte [eax], ch
sub byte [ecx + 0x2828d0e9], ch
sub byte [ebx], ch
in eax, 0x90
sub byte cs:[eax], ch
sub byte [edx + 0x28282800], dl
invalid
Function at 0x4010c0
Capabilities:
Delete file
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [ebp + 8]
mov ecx, dword [0x44b058]
push ebx
mov ebx, dword [0x44b05c]
push esi
push edi
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
xor esi, esi
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0x34], 0x9e3779b9
mov dword [ebp - 0x30], ecx
call fcn.004010b0
mov edx, dword [0x44b060]
mov eax, dword [0x44b064]
add dword [ebp - 8], 0x23f
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0x20
jmp 0x401122
xor esi, esi
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov ecx, dword [0x86a09c]
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x40117b
push esi
lea ecx, [ebp - 0x38]
push ecx
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push esi
call dword [sym.imp.KERNEL32.dll_SetCommBreak]
xor edx, edx
xor eax, eax
lea ecx, [ebp - 0x3c]
push ecx
mov word [ebp - 0x1c], dx
mov word [ebp - 0x1a], ax
mov edx, dword [ebp - 0x1c]
push edx
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
mov eax, dword [ebp - 4]
mov ecx, dword [0x86a09c]
add eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
jne 0x401195
mov dword [0x86a098], 0xedeb2e40
jmp 0x4011b5
cmp ecx, 0x3eb
jne 0x4011b5
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov dword [0x869a4c], esi
mov ecx, dword [ebp - 8]
add ecx, edi
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x10]
mov edx, edi
shr edx, cl
mov dword [0x86a094], 0xf4ea3dee
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
mov edx, dword [ebp - 0xc]
shl edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 8]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
nop
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
shr esi, cl
mov ecx, dword [ebp - 4]
push eax
push ecx
add esi, ebx
call fcn.00401090
cmp dword [0x86a09c], 0xb03
mov dword [ebp - 4], eax
jne 0x40123e
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov eax, dword [ebp - 4]
xor eax, esi
mov dword [ebp - 4], eax
sub edi, eax
mov eax, dword [ebp - 0x34]
sub dword [ebp - 8], eax
sub dword [ebp - 0x20], 1
jne 0x401120
cmp dword [0x86a09c], 0xa6d
mov esi, dword [ebp + 8]
mov dword [esi], edi
jne 0x401286
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebp - 0xc]
pop edi
mov dword [esi + 4], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0xc]
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401690
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x86a09c], 0x400
push esi
push edi
jne 0x4016b4
lea eax, [ebp - 0x24]
call fcn.00401770
lea esi, [ebp - 0x24]
call fcn.00401790
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov ebx, dword [ebp - 4]
xor esi, esi
call edi
cmp esi, 0x2af054
jle 0x4016d2
cmp ebx, 0x787e04e5
jne 0x4016db
inc esi
cmp esi, 0x1d8d
jl 0x4016c0
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
lea esp, [esp]
push 0
call edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, 0x206d47
jg 0x40170d
inc esi
cmp esi, 0x4f6a4
jl 0x4016f0
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
xor esi, esi
pop ebx
push 0
call edi
cmp esi, 0x2b2589
jg 0x40172b
inc esi
cmp esi, 0x11915
jl 0x401716
mov eax, dword [0x44b684]
mov dword [0x86a09c], eax
call fcn.004013f0
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, 0x3078f
jmp 0x401750
cmp dword [0x86a09c], 0x51f
jne 0x401760
push 0
call esi
sub edi, 1
jne 0x401750
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x405900
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44a8e0]
jne 0x40590a
repz ret
jmp fcn.004097a9