joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46186b
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 0x461884
or eax, 0xffffffff
jmp 0x4618e5
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x4618e1
push 0x3d
push esi
call fcn.00461a40
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4618e1
cmp esi, eax
je 0x4618e1
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x48ed40]
sete cl
cmp eax, dword [0x48ed44]
mov dword [ebp - 8], ecx
jne 0x4618c7
mov edi, eax
call fcn.0046180a
mov dword [0x48ed40], eax
cmp eax, ebx
jne 0x461920
cmp dword [ebp + 0xc], ebx
je 0x4618e9
cmp dword [0x48ed48], ebx
je 0x4618e9
call fcn.00461244
test eax, eax
je 0x461920
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x4618f2
xor eax, eax
jmp 0x4618e4
push 4
call fcn.0044ffb9
cmp eax, ebx
pop ecx
mov dword [0x48ed40], eax
je 0x4618e1
mov dword [eax], ebx
cmp dword [0x48ed48], ebx
jne 0x461920
push 4
call fcn.0044ffb9
cmp eax, ebx
pop ecx
mov dword [0x48ed48], eax
je 0x4618e1
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x48ed40]
call fcn.004617bd
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x461981
cmp dword [esi], ebx
je 0x461981
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0044ffcb
cmp dword [ebp - 8], ebx
pop ecx
jne 0x461964
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x4619c2
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x46195b
mov eax, edi
shl eax, 2
push eax
push dword [0x48ed40]
call fcn.0045427d
cmp eax, ebx
pop ecx
pop ecx
je 0x4619c2
jmp 0x4619bd
cmp dword [ebp - 8], ebx
jne 0x461a2d
cmp edi, ebx
jge 0x461990
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x48ed40]
call fcn.0045427d
cmp eax, ebx
pop ecx
pop ecx
je 0x4618e1
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 [0x48ed40], eax
cmp dword [ebp + 0xc], ebx
je 0x461a17
push dword [ebp - 4]
call fcn.004506e0
inc eax
inc eax
push eax
call fcn.0044ffb9
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x461a17
push dword [ebp - 4]
push esi
call fcn.00451890
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 0x461a10
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0044ffcb
pop ecx
cmp dword [ebp - 8], ebx
je 0x461a25
push dword [ebp - 4]
call fcn.0044ffcb
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4618e4
push dword [ebp - 4]
call fcn.0044ffcb
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x4618ee
Function at 0x405c83
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4345c0
call fcn.004339e0
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00407553
mov esi, dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 1
je 0x405caf
push edi
call esi
cmp eax, 0xffffffff
jne 0x405cf1
test ebx, ebx
je 0x405cee
lea ecx, [ebp - 0x18]
call fcn.004028e9
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.0040765c
test al, al
push dword [ebp - 0x18]
je 0x405ce8
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401abd
pop ecx
mov eax, esi
jmp 0x405cf1
call fcn.00401abd
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x406306
Capabilities:
Get disk information

Disassembly:
mov eax, 0x434664
call fcn.004339e0
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
call fcn.0041c900
mov edi, dword [sym.imp.kernel32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x14], ebx
je 0x4063d4
mov eax, SysReAllocString
cmp ebx, eax
ja 0x406342
mov eax, ebx
add eax, eax
push eax
call fcn.0040b97d
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
push esi
push ebx
call edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x10], ebx
je 0x4063cd
cmp ebx, dword [ebp - 0x14]
ja 0x4063cd
lea ecx, [ebp - 0x2c]
call fcn.004028e9
test ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], edi
jbe 0x4063b5
push 2
xor eax, eax
pop ebx
cmp word [esi + ebx - 2], 0
jne 0x4063aa
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.0040b97d
mov ecx, dword [ebp - 0x18]
lea eax, [edi + 1]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x1c], ebx
call fcn.0040150c
mov eax, ebx
inc edi
inc ebx
inc ebx
cmp edi, dword [ebp - 0x10]
jb 0x406380
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0x2c]
call fcn.00401abd
push esi
call fcn.00401abd
cmp dword [ebp - 0x14], ebx
pop ecx
pop ecx
sete al
jmp 0x4063d6
push esi
call fcn.00401abd
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40b97d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x40b98c
pop dword [ebp - 0x30]
mov eax, 0x77acaefa
add eax, 0x88940a92
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x3fb2a
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0x5b05
xor edx, edx
add edx, eax
mov edi, 0x9a497232
add edi, 0x65fb53ce
add edi, dword [ebp - 0x30]
mov esi, 0xddae058b
sub dword [ebp - 0x1c], 0x87ed0f26
mov ebx, dword [edi]
xor ebx, esi
mov dword [ebp - 0xc], 0x5ed817bf
mov dword [edx], ebx
mov dword [ebp - 0x18], 0x7907db46
add edx, 0x4e91a6b7
add edx, 0xb16e594d
add edi, 4
loop 0x40b9dc
add eax, 0xfd1aba10
sub eax, 0xfd195b29
mov ebx, eax
add eax, 0x475d7807
add eax, 0xb8a287fe
mov ecx, 0xa57a9039
add ecx, 0x5ac56fc7
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0xf64268
Capabilities:
Decompress data using aplib

Disassembly:
call 0xf643b8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xf6428e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xf6427a
add dl, dl
jne 0xf64299
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xf642ec
xor eax, eax
add dl, dl
jne 0xf642a6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xf6438d
add dl, dl
jne 0xf642b5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf642c0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf642cb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf642d6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xf642e2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xf64285
mov eax, 1
add dl, dl
jne 0xf642fa
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf64305
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xf642f1
sub eax, ebx
mov ebx, 1
jne 0xf64338
mov ecx, 1
add dl, dl
jne 0xf6431e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xf64329
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xf64315
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xf64285
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xf6434f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xf6435a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xf64346
cmp eax, 0x7d00
jae 0xf6437d
cmp eax, 0x500
jb 0xf64378
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xf64285
cmp eax, 0x7f
ja 0xf64380
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xf64285
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xf643ae
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 0xf64285
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401f20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x214], 0
test edi, edi
je 0x40202c
push 0x105
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.00402a00
xor eax, eax
push 0x100
push eax
mov word [ebp - 0x210], ax
mov byte [ebp - 0x20e], al
lea eax, [ebp - 0x20c]
push eax
call fcn.00402a00
add esp, 0x18
lea eax, [ebp - 0x214]
push eax
push 0x20019
push esi
push str.SOFTWARECanoncnmpa
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40201b
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push str.Path
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40201b
push eax
push eax
push eax
push eax
push 0x100
lea eax, [ebp - 0x20c]
push eax
push 3
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.004027d8
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 0xc]
push edi
call fcn.004026e5
add esp, 0x3c
mov esi, 1
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x40202c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004029e2
mov esp, ebp
pop ebp
ret
Function at 0x4067da
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
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
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00402cb8
mov dword [ebp - 0x14], eax
cmp dword [0x40fb04], edi
jne 0x4068cb
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x406858
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4069ab
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4069ab
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4069ab
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x40fb04], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x40fb08], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x40fb0c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x40fb14], eax
test eax, eax
je 0x4068c8
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x40fb10], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4068f0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4068e3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x406905
push 4
pop eax
jmp 0x4069ad
cmp dword [ebp - 0x14], edi
je 0x406905
push dword [0x40fb04]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4068ea
mov eax, dword [0x40fb10]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x406963
cmp dword [0x40fb14], esi
je 0x406963
push eax
call ebx
push dword [0x40fb14]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x406963
test eax, eax
je 0x406963
call ecx
test eax, eax
je 0x406958
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 0x406958
test byte [ebp - 8], 1
jne 0x406963
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x406993
mov eax, dword [0x40fb08]
cmp eax, esi
je 0x406990
push eax
call ebx
test eax, eax
je 0x406990
call eax
mov edi, eax
test edi, edi
je 0x406990
mov eax, dword [0x40fb0c]
cmp eax, esi
je 0x406990
push eax
call ebx
test eax, eax
je 0x406990
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x40fb04]
call ebx
test eax, eax
je 0x4069ab
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4069ad
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004029e2
leave
ret
Function at 0x4197e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x419805
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jae 0x419878
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
xor ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x41983a
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 8
jge 0x41986d
mov edx, dword [ebp - 0x10]
and edx, 1
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x41986b
mov edx, dword [ebp - 0x10]
xor edx, 0xedb88320
mov dword [ebp - 0x10], edx
jmp 0x419831
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x4197fc
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
ret

Function at 0xe08134
Capabilities:
Encode data using xor

Disassembly:
jmp 0xe0813e
pushal
call 0xe08144
pop ebp
sub ebp, 0x10
sub ebp, 0xa08134
jmp 0xe0815a
mov bh, 0xb8
xor al, 0x81
mov al, byte [0x81c50300]
ror byte [eax + eax], 0
mov eax, 0xa08134
add eax, ebp
add eax, 0x4c
mov ecx, 0x5bf
mov edx, 0x4a9978c6
xor byte [eax], dl
inc eax
dec ecx
jne 0xe08171
jmp 0xe08184
dec ebp
or ecx, dword [ebp + 0x4f]
cli
mov dh, 0xc6
inc edi
pop es
mov dh, 0xc6
lds ecx, [ebx]
jle 0xe08159
mov dh, 0xc6
jl 0xe08189
mov dh, 0xc6
xor dword [eax*8 - 0x35b8b2f2], esp
mov dh, 0xc6
lds eax, [ebx]
xchg esi, eax
dec ebx
mov byte [0xc24f3ae2], al
loop 0xe08161
jbe 0xe0822c
out 0xc6, eax
scasb al, byte es:[edi]
inc edx
or dword [eax - 0x1d15383a], edi
scasb al, byte es:[edi]
invalid
mov dh, 0xc6
inc edi
aaa
cli
movsb byte es:[edi], byte [esi]
pop ecx
mov esi, 0xa4fa3747
pop ecx
mov esi, 0x14f50ff5
inc ebp
ret
Function at 0x401760
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44fe10
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x469090]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
cmp dword [ebx + 4], esi
jne 0x4018bc
lea edi, [ebx + 8]
push edi
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebx], eax
cmp eax, 0xb7
jne 0x401843
xor eax, eax
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
push 0x13
mov eax, str.cant_create_mutex
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
call fcn.00402510
xor esi, esi
mov eax, edi
mov dword [ebp - 4], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4017e0
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea ecx, [ebp - 0x2c]
call fcn.00402190
mov eax, dword [ebp - 0x2c]
mov edi, 8
cmp dword [ebp - 0x18], edi
jae 0x40180a
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x208]
push eax
push str.ERROR
call fcn.0040c980
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebx + 4], esi
cmp dword [ebp - 0x18], edi
jb 0x401839
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00437245
add esp, 4
mov eax, 1
jmp 0x4018be
xor eax, eax
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], ax
push 0x11
mov eax, str.Mutex_is_created
lea esi, [ebp - 0x48]
mov dword [ebp - 0x34], 7
call fcn.00402510
mov eax, edi
mov dword [ebp - 4], 1
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401870
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea ecx, [ebp - 0x48]
call fcn.00402190
mov eax, dword [ebp - 0x48]
mov edi, 8
cmp dword [ebp - 0x34], edi
jae 0x40189a
lea eax, [ebp - 0x48]
mov ecx, dword [ebx + 0x208]
push eax
push str.INFO
call fcn.0040c980
cmp dword [ebp - 0x34], edi
jb 0x4018bc
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00437245
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043722b
mov esp, ebp
pop ebp
ret
Function at 0x402a90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetSystemDefaultLangID]
movzx ebx, ax
mov ecx, 0x419
mov eax, 0x68
cmp bx, cx
jne 0x402ab2
mov eax, 0x67
jmp 0x402ac1
mov edx, 0x422
cmp bx, dx
jne 0x402ac1
mov eax, 0x69
movzx eax, ax
push 0x458830
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov edi, eax
test edi, edi
je 0x402b10
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov esi, eax
test esi, esi
je 0x402b0a
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push ebx
push eax
push esi
call fcn.00403af0
add esp, 0xc
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x403160
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
cmp ecx, eax
je 0x4031b8
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push esi
push edi
jmp 0x403180
mov ecx, dword [ebp - 4]
mov edi, dword [ecx + 8]
xor esi, esi
add edi, 4
jmp 0x403190
mov eax, dword [edi]
test eax, eax
je 0x4031a6
mov edx, dword [eax]
push 0
push edx
call ebx
inc esi
add edi, 4
cmp esi, 0x20
jl 0x403190
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp eax, dword [ecx]
jne 0x403180
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4036d0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 8]
mov eax, dword [edx + 4]
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
ret
Function at 0x404a80
Capabilities:
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45081b
mov eax, dword fs:[0]
push eax
sub esp, 0x658
mov eax, dword [0x469090]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push 0x208
mov dword [ebp - 0x644], eax
xor ebx, ebx
lea eax, [ebp - 0x218]
lea edi, [ecx + 4]
push ebx
push eax
mov dword [ebp - 0x640], edx
mov esi, edi
call fcn.0043c0c0
push 0x208
lea ecx, [ebp - 0x420]
push ebx
push ecx
call fcn.0043c0c0
add esp, 0x18
cmp word [esi], 0x7c
je 0x404afd
add esi, 2
cmp word [esi], 0x7c
jne 0x404af4
push edi
xor edx, edx
lea eax, [ebp - 0x218]
push 0x104
mov word [esi], dx
push eax
add esi, 2
call fcn.0043782b
lea eax, [ebp - 0x218]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404b23
sub eax, edx
push esi
lea edx, [ebp - 0x420]
sar eax, 1
xor ecx, ecx
push 0x104
push edx
mov word [ebp + eax*2 - 0x216], cx
call fcn.0043782b
xor eax, eax
add esp, 0xc
mov word [ebp - 0x63c], ax
push 6
mov eax, str.Copy_
lea esi, [ebp - 0x63c]
mov dword [ebp - 0x628], 7
mov dword [ebp - 0x62c], ebx
call fcn.00402510
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ebx
lea edx, [eax + 2]
jmp 0x404b90
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404b90
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x63c]
call fcn.00402190
mov ecx, eax
push 6
mov eax, str._to_
call fcn.00402190
mov ecx, eax
lea eax, [ebp - 0x420]
lea esi, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x404bd0
sub eax, esi
sar eax, 1
push eax
lea eax, [ebp - 0x420]
call fcn.00402190
mov ecx, eax
push 1
mov eax, 0x4589bc
call fcn.00402190
mov esi, 8
cmp dword [eax + 0x14], esi
jb 0x404c05
mov eax, dword [eax]
mov ecx, dword [ebp - 0x640]
push eax
push str.INFO
call fcn.0040c980
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x628], esi
jb 0x404c34
mov ecx, dword [ebp - 0x63c]
push ecx
call fcn.00437245
add esp, 4
push ebx
lea edx, [ebp - 0x420]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x65c], eax
lea eax, [ebp - 0x664]
lea ecx, [ebp - 0x420]
mov edx, 0xe14
push eax
mov dword [ebp - 0x664], ebx
mov dword [ebp - 0x660], 2
mov dword [ebp - 0x658], ecx
mov word [ebp - 0x654], dx
mov dword [ebp - 0x652], ebx
mov dword [ebp - 0x64e], ebx
mov dword [ebp - 0x64a], 0x4589c0
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov esi, eax
cmp esi, ebx
je 0x404ce7
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x644]
mov edi, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
push esi
push 0x458994
push ecx
push edx
call edi
push esi
push str.Error_copy_file__err:__d
lea eax, [ebp - 0x620]
push 0x100
push eax
call edi
add esp, 0x20
lea ecx, [ebp - 0x620]
push ecx
mov ecx, dword [ebp - 0x640]
push str.INFO
call fcn.0040c980
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043722b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404d10
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4507db
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x469090]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
push 0x208
mov esi, ecx
xor edi, edi
lea ecx, [ebp - 0x218]
push edi
push ecx
mov dword [ebp - 0x438], eax
call fcn.0043c0c0
add esi, 4
push esi
lea edx, [ebp - 0x218]
push 0x104
push edx
call fcn.0043782b
lea eax, [ebp - 0x218]
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x404d81
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x216], cx
xor edx, edx
push 7
mov eax, str.Delete
lea esi, [ebp - 0x434]
mov dword [ebp - 0x420], 7
mov dword [ebp - 0x424], edi
mov word [ebp - 0x434], dx
call fcn.00402510
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x404dd1
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x434]
call fcn.00402190
mov esi, 8
cmp dword [eax + 0x14], esi
jb 0x404dfe
mov eax, dword [eax]
push eax
push str.INFO
mov ecx, ebx
call fcn.0040c980
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x420], esi
jb 0x404e29
mov eax, dword [ebp - 0x434]
push eax
call fcn.00437245
add esp, 4
lea eax, [ebp - 0x458]
lea ecx, [ebp - 0x218]
mov edx, 0xc14
push eax
mov dword [ebp - 0x458], edi
mov dword [ebp - 0x454], 3
mov dword [ebp - 0x450], ecx
mov dword [ebp - 0x44c], edi
mov word [ebp - 0x448], dx
mov dword [ebp - 0x446], edi
mov dword [ebp - 0x442], edi
mov dword [ebp - 0x43e], edi
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov esi, eax
cmp esi, edi
je 0x404ebf
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x438]
mov edi, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
push esi
push 0x458994
push ecx
push edx
call edi
push esi
push str.Error_delete_file__err:__d
lea eax, [ebp - 0x418]
push 0x100
push eax
call edi
add esp, 0x20
lea ecx, [ebp - 0x418]
push ecx
push str.INFO
mov ecx, ebx
call fcn.0040c980
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043722b
mov esp, ebp
pop ebp
ret 0xc