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

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push edi
lea edi, [esi + 4]
xor ebx, ebx
cmp eax, ebx
je 0x45d91c
push eax
call fcn.0043af5f
add esp, 4
mov dword [edi], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x45d92f
push eax
call fcn.004598e4
add esp, 4
mov dword [esi + 8], ebx
mov eax, dword [esp + 0x10]
push 0x46bffc
push eax
push edi
mov dword [esi + 0xc], ebx
call fcn.0045eb7e
add esp, 0xc
test eax, eax
je 0x45d9a2
mov eax, dword [edi]
cmp eax, ebx
je 0x45d95a
push eax
call fcn.0043af5f
add esp, 4
mov dword [edi], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x45d96d
push eax
call fcn.004598e4
add esp, 4
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call dword [sym.imp.RTX_RTSS.SYS_GetLastError]
push eax
push 0x2f3
push str.._rtxcsv.cpp
push 0x4684dc
push str.__s___e____s___d___error__d__n
push 1
push 0x486aa0
call fcn.00457eb0
add esp, 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
mov ecx, dword [edi]
push 2
push ebx
push ecx
call fcn.0045f0d3
add esp, 0xc
test eax, eax
je 0x45d9e9
mov eax, dword [edi]
cmp eax, ebx
je 0x45d9c5
push eax
call fcn.0043af5f
add esp, 4
mov dword [edi], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x45d9d8
push eax
call fcn.004598e4
add esp, 4
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call dword [sym.imp.RTX_RTSS.SYS_GetLastError]
push eax
push 0x2f7
jmp 0x45d97c
mov edx, dword [edi]
push edx
call fcn.0045efde
add esp, 4
cmp eax, ebx
mov dword [esi + 0xc], eax
jge 0x45da13
mov ecx, esi
call fcn.0045d790
call dword [sym.imp.RTX_RTSS.SYS_GetLastError]
push eax
push 0x2fb
jmp 0x45d97c
cmp eax, dword [esp + 0x14]
je 0x45da31
mov ecx, esi
call fcn.0045d790
call dword [sym.imp.RTX_RTSS.SYS_GetLastError]
push eax
push 0x2ff
jmp 0x45d97c
mov eax, dword [edi]
push ebx
push ebx
push eax
call fcn.0045f0d3
add esp, 0xc
test eax, eax
je 0x45da5a
mov ecx, esi
call fcn.0045d790
call dword [sym.imp.RTX_RTSS.SYS_GetLastError]
push eax
push 0x303
jmp 0x45d97c
mov ecx, dword [esi + 0xc]
push ecx
call fcn.00459947
add esp, 4
mov dword [esi + 8], eax
cmp eax, ebx
jne 0x45da85
mov ecx, esi
call fcn.0045d790
call dword [sym.imp.RTX_RTSS.SYS_GetLastError]
push eax
push 0x308
jmp 0x45d97c
mov edx, dword [edi]
mov ecx, dword [esi + 0xc]
push edx
push ecx
push 1
push eax
call fcn.0045ee2b
add esp, 0x10
cmp eax, dword [esi + 0xc]
je 0x45dab4
mov ecx, esi
call fcn.0045d790
call dword [sym.imp.RTX_RTSS.SYS_GetLastError]
push eax
push 0x30c
jmp 0x45d97c
mov edx, dword [edi]
push edx
call fcn.0043af5f
add esp, 4
test eax, eax
je 0x45dadb
mov ecx, esi
call fcn.0045d790
call dword [sym.imp.RTX_RTSS.SYS_GetLastError]
push eax
push 0x310
jmp 0x45d97c
mov eax, dword [esi + 8]
mov dword [edi], ebx
pop edi
pop esi
pop ebx
ret 8
Function at 0x40c65c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c6c0
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404208
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040804c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c6c7
lea eax, [ebp - 0xc]
call fcn.00403f98
ret

Function at 0x41a05f
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x41a09a
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x41a081
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x41a092
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x41a09c
inc edi
add eax, 0x28
cmp edi, esi
jb 0x41a077
xor eax, eax
pop edi
pop esi
ret

Function at 0x41a270
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x41a273
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x41a264
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov bh, 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.0041a01f
popfd
div bl
lea eax, [ebp - 0x58]
push eax
call fcn.0041a02f
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.00419fe4
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x41a30d
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
Function at 0x41e4c8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41e519
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41e500
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41e4f0
jmp 0x41e519
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41e501
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417c10
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 8
push esi
push edi
push str.Shell32.lib
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.SetCurrentProcessExplicitAppUserModelID
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
mov eax, dword [esp + 8]
push eax
call sub.MPR.dll_WNetCloseEnum
mov dword [esp + 8], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea ecx, [esp + 0xc]
mov edi, eax
push ecx
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetACP]
test edi, edi
mov dword [0x4c6cdc], eax
je 0x417c92
test esi, esi
je 0x417c81
mov edx, dword [0x4c5abc]
push 0x4c57ac
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [0x4c6cdc]
pop edi
pop esi
add esp, 8
ret

Function at 0x4ba3a5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c2378
cmp edx, dword [eax]
je 0x4ba3c7
add eax, 8
inc ecx
cmp eax, 0x4c2408
jl 0x4ba3b8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c2378]
jne 0x4ba4f5
mov eax, dword [0x4c6cfc]
cmp eax, 1
je 0x4ba4cf
test eax, eax
jne 0x4ba3f8
cmp dword [0x4c22a4], 1
je 0x4ba4cf
cmp edx, 0xfc
je 0x4ba4f5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ba42f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bad90
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bb220
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4ba472
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bb220
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4bf904
push edi
call fcn.004bd0f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bad90
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bada0
lea eax, [ebp - 0xa0]
push 0x4bf8e4
push eax
call fcn.004bada0
push dword [esi + 0x4c237c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bada0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bd064
add esp, 0x2c
pop edi
jmp 0x4ba4f5
lea eax, [ebp + 8]
lea esi, [esi + 0x4c237c]
push 0
push eax
push dword [esi]
call fcn.004bb220
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x564cdf
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [eax + 0x7c]
jmp 0x533387
je 0x4a1ddb
jmp fcn.004ee47e
push ebp
mov ebp, 0x4bffacf0
not ebp
or ebp, 0x7eda494e
push ebx
push 0x7ff78165
pop ebx
shr ebx, 3
push esi
mov esi, 0x7ed754a1
add esi, 0x2d63ed3b
add esi, 0x7ffbc905
add esi, 0x14c9f36b
add ebx, esi
pop esi
add ebp, ebx
pop ebx
sub eax, ebp
pop ebp
add eax, esi
add eax, 0x4fda49c7
jmp 0x500e80
push dword [esi + 0x3c]
mov eax, dword [esp]
push esi
mov esi, esp
push eax
mov eax, 4
add esi, eax
mov eax, dword [esp]
add esp, 4
add esi, 4
xchg dword [esp], esi
pop esp
jmp 0x530d0f
test ecx, ecx
jmp 0x51a27c
add byte [ecx - 0x484e915], al
jae 0x564d10
retf
add byte [edi - 0x74a3dbcc], al
adc al, 0x24
push edi
mov edi, esp
push eax
mov eax, 4
push ebp
mov ebp, 0x5ffeb015
add edi, ebp
pop ebp
add edi, eax
sub edi, 0x5ffeb015
pop eax
add edi, 4
xchg dword [esp], edi
pop esp
jmp 0x53335e

Function at 0x57761f
Capabilities:
Encode data using xor

Disassembly:
mov bl, 0xc7
adc eax, 0x77ccec5a
xchg esp, eax
movsb byte es:[edi], byte [esi]
push ebp
dec ebx
mov esp, 0x9eb095f4
clc
mov ebp, 0xe3c5d31d
popfd
adc byte [ebx + 0x78], dl
out dx, eax
lodsd eax, dword [esi]
xchg byte [edi - 0x6eb77292], ah
lea ebp, [edx]
sti
mov cl, 0x44
les edi, [edx]
lodsd eax, dword [esi]
popfd
sub ecx, edx
lea edx, [eax + 0x15]
and byte [0x79504256], bl
and dword [esi + 0x3421ca5d], esp
and eax, 0x1c8a8f12
outsd dx, dword [esi]
rcl esi, cl
or cl, byte [edi]
xchg byte fs:[ecx], dh
cmpsd dword [esi], dword es:[edi]
adc esi, dword [eax + 0x6a]
aaa
pushal
pop dword [esi + edi]
xor al, 0x40
xor eax, 0x4cfd8e0d
pop edi
add dl, ah
movsd dword es:[edi], dword [esi]
div byte [ebx]
test al, 0x10
mov ebp, cs
mov byte [edx], dl
fcom qword [edi]
push ebx
sti
pop ss
or eax, 0x93d542a1
xor dword ss:[esi], esp
and byte [edi + 0x71047b39], 0x83
jbe 0x577626
test byte [ebx], dl
mov eax, dword [0x442369b3]
je 0x577707
cmp dword [edx - 0x20], esp
stosd dword es:[edi], eax
salc
int 0x21
stosb byte es:[edi], al
xchg esp, eax
wait
ficomp dword [edx + ebx*8]
add dword [esi + 0x6528cc06], edi
fiadd dword [ecx]
arpl word ds:[edx - 0x2c3bd9b0], si
add dword [esi], edi
popfd
mov esp, esp
push eax
or byte [edi - 0x3d], ah
or edx, 0xbde01eb3
lahf
aaa
inc ebp
retf
add dword [edx], 0x70
loopne 0x57772b
push edx
in al, dx
invalid
mov esi, dword [ebp + 0x6a]
push 0xf007a59c
xchg edx, eax
std
xchg byte [edx + 0x59], bh
lcall 0x15aa, 0x710301ec
sbb byte [eax - 0x29], bl
push eax
mov esp, 0x8fa0e653
popfd
lea edx, [eax + 0x6dbad099]
hlt
Function at 0x5976ef
Capabilities:
Encode data using xor

Disassembly:
xor dword [edx], ebp
pop ds
push 0xffffffffffffffe8
sbb eax, 0x858908e1
clc
fcomp qword [ebx + 0x6d]
pop ebx
insd dword es:[edi], dx
pop ebx
insd dword es:[edi], dx
test al, 0xd6
cmp byte [edi], ch
adc ah, byte [ebx + 0x59abf5b8]
dec ecx
fsub qword [eax]
adc byte [edx + 0x838e6df], dl
jbe 0x59770c
cmpsd dword [esi], dword es:[edi]
xor al, 0x7b
fild dword [edx]
and eax, 0xb3e6c2c8
ret 0xb3e6
inc eax
cmp al, 0x3d
ror byte [0x2f7a37ad], 1
sbb al, 0x34
mov esp, 0x907ec971
pop eax
mov ecx, 0xa741e4b1
je 0x597787
xor byte [ebx - 0x68288229], ch
lodsd eax, dword [esi]
je 0x59775a
mov bl, bl
sti
aaa
jb 0x597794
mov ecx, 0x6036eb87
mov esi, 0x20d0d954
mov edx, dword [ebp - 0x14]
sahf
outsd dx, dword [esi]
sub ah, byte [esp + ebp*8]
cmpsd dword [esi], dword es:[edi]
movsb byte es:[edi], byte [esi]
mov gs, word [esi - 3]
jge 0x5976e3
add ah, 0x68
invalid
out 0x7e, al
scasd eax, dword es:[edi]
add eax, 0xcd23756a
adc eax, 0xc1758e30
jbe 0x597751
ja 0x59770e
pop ecx
pop ss
cdq
std
xchg ecx, eax
pushfd
xor eax, dword [0xc02cf4f]
ficomp dword [ecx]
mov eax, esi
or al, 0xe7
jmp 0x597784
inc ecx
inc esi
adc byte [edi + 0x6e], 0x39
pop esp
outsb dx, byte [esi]
cmp dword [edx + ecx*4 + 0x7c], ebx
push edi
sti
mov bh, byte [edi + edx*2 - 5]
xor al, 0xae
salc
xchg ecx, eax
cwde
pop esp
cmc
fild qword [edi]
das
inc ebp
lodsb al, byte [esi]
fistp qword [ebx - 0x1952976a]
push ds
je 0x59777f
in eax, 0xeb
invalid
Function at 0x100c0e2
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.01008580
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100c148
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x100e2e4]
mov esi, dword [ebp - 0x40]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
lea edx, [esi - 1]
and ecx, 0x103
not edx
and edx, ebx
inc ecx
sub edx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
imul eax, esi
add eax, edi
cmp edx, eax
jae 0x100c14c
xor eax, eax
jmp 0x100c159
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x8120b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x812200
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x8120d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8120c2
add dl, dl
jne 0x8120e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x812134
xor eax, eax
add dl, dl
jne 0x8120ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8121d5
add dl, dl
jne 0x8120fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x812108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x812113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x81211e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x81212a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x8120cd
mov eax, 1
add dl, dl
jne 0x812142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x81214d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x812139
sub eax, ebx
mov ebx, 1
jne 0x812180
mov ecx, 1
add dl, dl
jne 0x812166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x812171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x81215d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8120cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x812197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8121a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x81218e
cmp eax, 0x7d00
jae 0x8121c5
cmp eax, 0x500
jb 0x8121c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8120cd
cmp eax, 0x7f
ja 0x8121c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8120cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x8121f6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x8120cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401207
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84c
mov eax, dword [0x41a1f8]
xor edx, edx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x30], eax
mov eax, dword [0x41a1fc]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0xc], edx
mov esi, dword [edi]
mov ebx, dword [edi + 4]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x2c], 0x9e3779b9
mov dword [ebp - 0x18], eax
call fcn.00401200
add dword [ebp - 0xc], 0x23f
cmp dword [0x2d5ad14], 0x14
jne 0x401263
push edx
lea eax, [ebp - 0x84c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov ecx, dword [0x41a200]
mov edx, dword [0x41a204]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0x18], 2
add dword [ebp - 0x18], 3
mov eax, esi
mov dword [ebp - 8], 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0x2d5ad14], 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x2d5ad10]
cmove eax, dword [ebp - 8]
and dword [ebp - 8], 0
cmp dword [0x2d5ad14], 0x3eb
mov dword [0x2d5ad10], eax
mov eax, dword [0x2d5ac64]
cmove eax, dword [ebp - 8]
mov dword [0x2d5ac64], eax
mov eax, dword [ebp - 0xc]
add eax, esi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 0x10], eax
add dword [ebp - 0x10], edx
xor edx, edx
mov eax, dword [ebp - 4]
mov dword [0x2d5ad0c], 0xf4ea3dee
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x20]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
xor ecx, eax
cmp dword [0x2d5ad14], 0x213
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
jne 0x40135a
push edx
push edx
push edx
push edx
push edx
push edx
call dword [sym.imp.KERNEL32.dll_CompareStringA]
lea eax, [ebp - 0x44c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x38]
push eax
push 0
lea eax, [ebp - 0x4c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
mov ecx, dword [ebp - 0x10]
sub ebx, ecx
mov eax, ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0x18]
mov edx, ebx
mov eax, dword [ebp - 0xc]
shr edx, cl
add eax, ebx
mov ecx, dword [ebp - 4]
add edx, edi
xor ecx, eax
mov dword [ebp - 0x10], edx
cmp dword [0x2d5ad14], 0xb03
mov dword [ebp - 4], ecx
jne 0x40139d
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
xor ecx, edx
sub esi, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 0xc], eax
dec dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x24]
jne 0x40127f
mov edi, dword [ebp - 0x28]
mov dword [edi], esi
mov dword [edi + 4], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c027
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4195a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040797c
mov dword [ebp - 0x14], eax
cmp dword [0x4613f0], esi
jne 0x40c11a
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c0a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c1fa
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c1fa
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c1fa
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4613f0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4613f4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4613f8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x461400], eax
test eax, eax
je 0x40c117
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4613fc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c13f
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c132
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c154
push 4
pop eax
jmp 0x40c1fc
cmp dword [ebp - 0x14], esi
je 0x40c154
push dword [0x4613f0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c139
mov eax, dword [0x4613fc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c1b2
cmp dword [0x461400], edi
je 0x40c1b2
push eax
call ebx
push dword [0x461400]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c1b2
test eax, eax
je 0x40c1b2
call ecx
test eax, eax
je 0x40c1a7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c1a7
test byte [ebp - 8], 1
jne 0x40c1b2
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c1e2
mov eax, dword [0x4613f4]
cmp eax, edi
je 0x40c1df
push eax
call ebx
test eax, eax
je 0x40c1df
call eax
mov esi, eax
test esi, esi
je 0x40c1df
mov eax, dword [0x4613f8]
cmp eax, edi
je 0x40c1df
push eax
call ebx
test eax, eax
je 0x40c1df
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4613f0]
call ebx
test eax, eax
je 0x40c1fa
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c1fc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040388c
mov esp, ebp
pop ebp
ret