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

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408048
call sym._EnterCriticalSection_4
mov ebx, dword [0x408040]
sub esp, 4
test ebx, ebx
je 0x401c5b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401c54
test esi, esi
je 0x401c54
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401c30
mov dword [esp], 0x408048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401e40
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401e90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401f64
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x401ece
cmp eax, 4
jne 0x401ef0
test esi, esi
je 0x401ee2
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x401ed4
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x401f2f
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x401f21
cmp ecx, 0x40
je 0x401ee2
cmp ecx, 4
je 0x401ee2
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401e40
lea esi, [esi]
Function at 0x40610d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x40611c
pop dword [ebp - 0x10]
mov eax, 0xa44aa8c5
sub eax, 0xa40a47a9
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0xe514ad52
add dword [ebp - 0x20], 0x693d97f9
mov dword [ebp - 0x1c], 0xc17d1e73
sub dword [ebp - 0x1c], 0x8f49d22e
mov dword [ebp - 0x18], 0xe1b2a7fc
sub dword [ebp - 0x18], 0x956663ce
mov dword [ebp - 0x14], 0x346f62fd
add dword [ebp - 0x14], 0xcb909d03
lea eax, [ebp - 0x20]
push eax
mov eax, 0xc3eddba7
add eax, 0x3c5294b9
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x417008d4
sub dword [ebp - 0x20], 0xccfd9f7e
mov dword [ebp - 0x1c], 0xe6ce4623
add dword [ebp - 0x1c], 0x5a9e1b52
mov dword [ebp - 0x18], 0x1d08a2f8
add dword [ebp - 0x18], 0x4666c974
mov dword [ebp - 0x14], 0xf09036b2
add dword [ebp - 0x14], 0xf6fc94e
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x64fdcb46
add eax, 0x9b42a5ba
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x38393
push 0
call eax
mov ecx, 0x4e76
mov edx, eax
mov esi, 0x410000
add esi, dword [ebp - 0x10]
mov ebx, 0x5fe264cf
sub ebx, 0x1560b9dc
sub dword [ebp - 0xc], edx
mov edi, dword [esi]
sub dword [ebp - 4], 0x46665803
add edi, ebx
sub dword [ebp - 4], 0x7296fe44
mov dword [edx], edi
xor dword [ebp - 4], 0xe2d9bc6
add edx, 4
add esi, 4
loop 0x406232
add eax, 0x906da593
add eax, 0x6f938718
mov ebx, eax
add eax, 0xe9327d1b
add eax, 0x16cd82ea
mov ecx, 0x3bf4473d
add ecx, 0xc44bb8c3
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x40595e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x40596d
pop dword [ebp - 0x1c]
mov eax, 0x40596d
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0xa9daad4f
add dword [ebp - 0x2c], 0xa47797fc
mov dword [ebp - 0x28], 0xec94a114
sub dword [ebp - 0x28], 0xba6154cf
mov dword [ebp - 0x24], 0x1a88cebd
sub dword [ebp - 0x24], 0xce3c8a8f
mov dword [ebp - 0x20], 0x47e901b3
add dword [ebp - 0x20], 0xb816fe4d
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0xaf49b4bb
sub dword [ebp - 0x2c], 0x3ad74b65
mov dword [ebp - 0x28], 0x60fc3b50
sub dword [ebp - 0x28], 0x1f8fd9db
mov dword [ebp - 0x24], 0x14b61425
add dword [ebp - 0x24], 0x4eb95847
mov dword [ebp - 0x20], 0x1134272f
sub dword [ebp - 0x20], 0x1134272f
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0x1b70f2d7
sub eax, 0x1b3081d7
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x35e3f
push 0
call eax
mov ecx, 0x44b2
xor edi, edi
add edi, eax
mov edx, 0xd127c3f3
add edx, 0x2f193c0d
add edx, dword [ebp - 0x1c]
mov esi, 0xdc42401d
sub esi, 0x55d5c384
mov ebx, dword [edx]
mov dword [ebp - 0xc], 0x8b6eb0c2
add ebx, esi
add dword [ebp - 0x10], 0x954482d9
mov dword [edi], ebx
xor dword [ebp - 8], eax
add edi, 4
add edx, 0x61201d87
sub edx, 0x61201d83
loop 0x405a81
add eax, 0x241f59e9
add eax, 0xdbe1abb2
mov ebx, eax
add eax, 5
mov ecx, 0x8f9063e8
sub ecx, 0x8f5063e8
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x402560
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
and esi, 0xb3
add ebx, 0xc5
sbb esi, 0x6e
neg ebx
inc esi
not edi
rol esi, 0x71
rol esi, 0x2d
neg eax
bswap ebx
neg esi
imul eax
bswap edx
mov edi, 0xa3
not ebx
inc ebx
imul edx
neg ebx
rcr eax, 0xc5
neg edi
rcl esi, 0x8e
add edx, 0x8f
dec ebx
or edi, 0x7c
rcl ebx, 0xb6
neg eax
or edx, 0xda
and ebx, 8
or edi, 0x48
add edx, 0x30
sub esi, 0x57
rcr edx, 0x71
rol edx, 0x81
mov edx, 0x64
mov eax, 0x79
mov ebx, 0x20
not edx
inc eax
neg edi
and esi, 0x77
bswap ebx
mov esi, 0x91
imul edi
rcl esi, 0x70
dec edx
imul ebx
imul edx
neg esi
or eax, 0xbd
neg ebx
xor ecx, ecx
xor edi, edi
neg edx
add ebx, 0x69
rcr ebx, 0x39
inc edi
dec eax
not eax
rcl esi, 0xeb
bswap edi
imul ebx
mov edi, pe_nt_image_headers32
rol eax, 0x16
rcr edi, 0x70
neg edx
and eax, 0xc1
ror esi, 0xbd
not edx
bswap edi
dec esi
rcr esi, 0xd5
imul edx
rcl edi, 6
inc edx
bswap edx
or esi, 0x11
inc eax
imul edx
add edx, 0x9d
dec ebx
inc esi
rcl esi, 0xdb
ror eax, 0xac
imul edx
ror edx, 0xd1
rcr eax, 0xd5
inc eax
ror esi, 0x40
neg edx
ror edi, 0xfe
imul ebx
rcl ebx, 0x1c
ror edx, 0x75
neg eax
bswap esi
dec edx
sbb ebx, 0xdb
mov eax, 0x36
rcr ebx, 0xca
inc esi
rol edi, 0xfe
and edi, 0x4b
mov ecx, dword [ebp + 0xc]
neg esi
rcl ebx, 0x91
rcr edx, 0x5e
dec esi
sub ebx, 0x9f
sub edi, 0xef
rol esi, 0xdb
not esi
or edx, 5
neg edi
bswap edi
imul eax
mov ebx, 0xb3
dec edx
inc edx
inc edx
neg ebx
and ebx, 0xa3
rcl ebx, 0x16
imul esi
not esi
imul edi
inc edx
imul ebx
bswap edx
not esi
not ebx
inc eax
rol edi, 0xa2
neg ebx
rol esi, 0x9e
dec edx
dec eax
rol eax, 0xcd
rcr ebx, 0x4d
add ebx, 0xc7
bswap ebx
add ebx, 0xa8
not edx
sub ebx, 0xdb
dec esi
neg edx
not eax
rcr edi, 0x1f
and eax, 0x8d
inc eax
not edi
not ebx
imul ebx
bswap edx
mov edi, dword [ebp + 8]
mov ebx, eax
mov esi, esi
xor ebx, ebx
not byte [edi]
mov esi, eax
xor eax, ebx
xor esi, ebx
xor eax, eax
mov ebx, eax
mov esi, esi
mov eax, eax
mov esi, eax
mov esi, esi
add byte [edi], 0x54
xor esi, eax
xor eax, eax
mov ebx, eax
mov esi, eax
mov esi, eax
mov esi, ebx
xor esi, eax
mov ebx, eax
xor esi, ebx
sub byte [edi], 0x29
mov ebx, eax
xor esi, ebx
xor esi, esi
xor eax, eax
xor eax, eax
xor eax, eax
mov ebx, esi
xor esi, eax
mov esi, esi
imul byte [edi]
inc edi
loop 0x402707
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x405664
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x450a94]
jne 0x40566e
repz ret
jmp fcn.0040a045
Function at 0x40b84d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040860f
and dword [ebp - 4], 0
cmp dword [0x452014], 0
mov ebx, eax
jne 0x40b8fe
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b9af
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b9af
push eax
call fcn.0040859d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x452014], eax
call esi
push eax
call fcn.0040859d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x452018], eax
call esi
push eax
call fcn.0040859d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45201c], eax
call esi
push eax
call fcn.0040859d
pop ecx
mov dword [0x452024], eax
test eax, eax
je 0x40b8fe
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040859d
pop ecx
mov dword [0x452020], eax
mov eax, dword [0x452020]
cmp eax, ebx
je 0x40b956
cmp dword [0x452024], ebx
je 0x40b956
push eax
call fcn.00408618
push dword [0x452024]
mov esi, eax
call fcn.00408618
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b956
test edi, edi
je 0x40b956
call esi
test eax, eax
je 0x40b94d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b94d
test byte [ebp - 0xc], 1
jne 0x40b956
or dword [ebp + 0x10], 0x200000
jmp 0x40b98f
mov eax, dword [0x452018]
cmp eax, ebx
je 0x40b98f
push eax
call fcn.00408618
pop ecx
test eax, eax
je 0x40b98f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b98f
mov eax, dword [0x45201c]
cmp eax, ebx
je 0x40b98f
push eax
call fcn.00408618
pop ecx
test eax, eax
je 0x40b98f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x452014]
call fcn.00408618
pop ecx
test eax, eax
je 0x40b9af
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b9b1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x438c8e
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x438a14
sub edi, ecx
call fcn.00438cd6
add ecx, edi
push ecx
mov edi, dword [esp]
add esp, 4
add edi, 0x9453f0f3
xor dword [edx], ebx
sub ecx, 0xb182583f
add edx, 1
sub ecx, 0x3525432
and edi, edi
cmp edx, esi
jne fcn.00438c8e
add ecx, 0x6294945b
sub ecx, 0x3257abc2
ret

Function at 0x430000
Capabilities:
Packed with generic packer

Disassembly:
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax - 0x6f6f6f70], dl
nop
nop
nop
nop
nop
pushal
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x42ffd9
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x43cf6a
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x43ccda
add esi, edi
add edi, esi
call fcn.0043cf95
add esi, edi
sub esp, 4
mov dword [esp], 0x5d408c7c
pop esi
xor dword [eax], ecx
inc eax
add esi, 0x4a3cf374
cmp eax, ebx
jne fcn.0043cf6a
sub esi, edi
ret

Function at 0x404b33
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4016c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push 0x2c
pop eax
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x4011c8
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call sub.MSVBVM60.DLL___vbaOnError
mov dword [ebp - 4], 3
push 0x402d04
call fcn.00404c1c
mov dword [ebp - 4], 4
mov eax, dword [ebp + 0x10]
cmp word [eax], 0xffff
jne 0x404bb5
mov dword [ebp - 4], 5
mov dword [ebp - 0x24], 0x1d
jmp 0x404bc0
mov dword [ebp - 4], 7
and dword [ebp - 0x24], 0
mov dword [ebp - 4], 9
lea eax, [ebp - 0x24]
push eax
call sub.MSVBVM60.DLL_VarPtr
mov dword [ebp - 0x38], eax
push 4
push dword [ebp - 0x38]
push 0x1d
xor eax, eax
mov eax, dword [ebp + 0xc]
mov ax, word [eax]
push eax
call fcn.0040307c
call sub.MSVBVM60.DLL___vbaSetSystemError
push 0x404bfe
jmp 0x404bfd
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408ecc
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x24223f6f
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x58626510
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4060b6
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004021ba
and dword [ebp - 4], 0
cmp dword [0x40b654], 0
mov ebx, eax
jne 0x406167
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406218
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406218
push eax
call fcn.00402148
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b654], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b658], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b65c], eax
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b664], eax
test eax, eax
je 0x406167
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b660], eax
mov eax, dword [0x40b660]
cmp eax, ebx
je 0x4061bf
cmp dword [0x40b664], ebx
je 0x4061bf
push eax
call fcn.004021c3
push dword [0x40b664]
mov esi, eax
call fcn.004021c3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4061bf
test edi, edi
je 0x4061bf
call esi
test eax, eax
je 0x4061b6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4061b6
test byte [ebp - 0xc], 1
jne 0x4061bf
or dword [ebp + 0x10], 0x200000
jmp 0x4061f8
mov eax, dword [0x40b658]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4061f8
mov eax, dword [0x40b65c]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b654]
call fcn.004021c3
pop ecx
test eax, eax
je 0x406218
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40621a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408961
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x4085d8
pop ecx
call fcn.00408982
xor dword [ebx], ecx
inc ebx
and eax, eax
sub eax, 0xc95f7a10
cmp ebx, edx
jne fcn.00408961
ret
Function at 0x40a220
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x80c458]
jne 0x40a22a
repz ret
jmp fcn.0040cf4b

Function at 0x40c363
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x80c458]
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.004084d9
and dword [ebp - 0x14], 0
cmp dword [0x80ea00], 0
mov dword [ebp - 0x18], eax
jne 0x40c416
push 0x403e34
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40c4be
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403e28
push ebx
call edi
test eax, eax
je 0x40c4be
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403e18
push ebx
mov dword [0x80ea00], eax
call edi
push eax
call esi
push 0x403e04
push ebx
mov dword [0x80ea04], eax
call edi
push eax
call esi
push 0x403de8
push ebx
mov dword [0x80ea08], eax
call edi
push eax
call esi
mov dword [0x80ea10], eax
test eax, eax
je 0x40c416
push 0x403dd0
push ebx
call edi
push eax
call esi
mov dword [0x80ea0c], eax
mov eax, dword [0x80ea0c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40c46f
cmp dword [0x80ea10], ecx
je 0x40c46f
push eax
call esi
push dword [0x80ea10]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40c46f
test ebx, ebx
je 0x40c46f
call edi
test eax, eax
je 0x40c466
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40c466
test byte [ebp - 8], 1
jne 0x40c46f
or dword [ebp + 0x10], 0x200000
jmp 0x40c4a2
mov eax, dword [0x80ea04]
cmp eax, dword [ebp - 0x18]
je 0x40c4a2
push eax
call esi
test eax, eax
je 0x40c4a2
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40c4a2
mov eax, dword [0x80ea08]
cmp eax, dword [ebp - 0x18]
je 0x40c4a2
push eax
call esi
test eax, eax
je 0x40c4a2
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x80ea00]
call esi
test eax, eax
je 0x40c4be
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40c4c0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a220
leave
ret
Function at 0x808270
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov eax, 0x6b
mov edx, 0x72
mov word [0xb92a90], ax
mov word [0xb92a94], dx
mov ecx, 0x6e
mov edx, 0x65
xor eax, eax
push 0xb92a90
mov dword [0xb92a9c], 0x320033
mov dword [0xb92aa4], 0x6c006c
mov word [0xb92a96], cx
mov dword [0xb92a98], 0x6c0065
mov dword [0xb92aa0], 0x64002e
mov word [0xb92a92], dx
mov word [0xb92aa8], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [0xb92a8c]
lea ecx, [esp]
push ecx
push 0x40
mov dword [0xb92a88], eax
mov eax, dword [0x813adc]
push edx
push eax
mov byte [0x80ed53], 0x65
mov dword [0x80ed49], 0x75747269
mov word [0x80ed4d], 0x6c61
mov byte [0x80ed48], 0x56
mov word [0x80ed54], 0x7463
mov byte [0x80ed56], 0
mov dword [0x80ed4f], 0x746f7250
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ecx
ret

Function at 0x808360
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x108c
call fcn.0040cf20
cmp dword [0xb92a8c], 0x37
jne 0x808435
push 0
call dword [sym.imp.KERNEL32.dll_DebugActiveProcess]
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0x4046b4
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
mov ecx, dword [esp + 4]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_MapUserPhysicalPages]
push 0
lea edx, [esp + 0x8c]
push edx
push 0x4046c4
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea eax, [esp + 0x48c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea edx, [esp + 0xc]
push edx
push 0x4046d8
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessIoCounters]
push 0
lea ecx, [esp + 0x88c]
push ecx
push 0
push 0x4046e4
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push 0
push 0
push 0
push 0x404710
push 0x40472c
push 0x40473c
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
mov edx, dword [0xb93a80]
mov dword [esp + 4], edx
mov eax, 0x5d1
add dword [esp + 4], eax
mov eax, dword [esp + 4]
mov cl, byte [eax + esi]
mov edx, dword [0x813adc]
mov byte [edx + esi], cl
add esp, 0x108c
ret
Function at 0x8085d0
Capabilities:
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0xb92a8c]
sub esp, 0x2dc
push ebx
push ebp
push esi
mov esi, dword [0x813adc]
shr eax, 3
push edi
test eax, eax
je 0x80877c
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], eax
jmp 0x808604
mov esi, dword [esp + 0x18]
cmp dword [0xb92a8c], 0x1c
jne 0x808621
lea eax, [esp + 0x38]
push eax
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov edx, dword [0x80d200]
mov ecx, dword [0x80d204]
mov eax, dword [esi]
mov edi, dword [esi + 4]
mov dword [esp + 0x28], edx
mov edx, dword [0x80d208]
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x80d20c]
mov dword [esp + 0x14], eax
mov ebx, 0xc6ef3720
mov dword [esp + 0x24], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], 0x20
jmp 0x808665
mov eax, dword [esp + 0x14]
mov edx, eax
mov ecx, eax
shr edx, 5
add edx, dword [esp + 0x34]
shl ecx, 4
add ecx, dword [esp + 0x24]
add eax, ebx
xor edx, ecx
xor edx, eax
sub edi, edx
mov ecx, edi
shl ecx, 4
mov dword [0xb929fc], 0
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x28]
add dword [esp + 0x10], eax
cmp dword [0xb92a8c], 0x1be
lea ebp, [ebx + edi]
jne 0x8086ba
lea edx, [esp + 0x30]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov esi, edi
shr esi, 5
add esi, dword [esp + 0x2c]
cmp dword [0xb92a8c], 0x979
mov dword [0xb92a00], 0xff6b3619
mov dword [0xb92a04], 0xffffffff
jne 0x8086fa
mov eax, dword [esp + 0x30]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
xor esi, ebp
xor dword [esp + 0x10], esi
mov eax, dword [esp + 0x10]
sub dword [esp + 0x14], eax
add ebx, 0x61c88647
dec dword [esp + 0x1c]
jne 0x808661
cmp dword [0xb92a8c], 0x8d4
jne 0x80872f
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [esi], edx
mov dword [esi + 4], edi
cmp dword [0xb92a8c], 0x17
jne 0x80876b
push 0
push 0
push 0
push 0x404690
push 0x4046a0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
lea eax, [esp + 0x98]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
add esi, 8
dec dword [esp + 0x20]
mov dword [esp + 0x18], esi
jne 0x808600
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2dc
ret