joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47fa54
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x47fa79
cmp dword [esp + 4], 5
jb 0x47fa79
mov al, 1
jmp 0x47fa7b
xor eax, eax
add esp, 0x94
ret

Function at 0x485718
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x485720
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x4859c3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
call fcn.004060d8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004864a8
mov edx, dword [eax + 0x30]
lea eax, [ebp - 0x2c]
mov ecx, 0x4859d4
call fcn.0040611c
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
call fcn.004061e8
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x18]
mov ecx, 0x4859e4
call fcn.0040611c
lea eax, [ebp - 0x1c]
call fcn.004060d8
push eax
push 0x4859f4
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax]
push 0
push 0
push 0
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
cmp dword [ebp - 0x1c], 0
je 0x485970
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x485969
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20]
call fcn.004060d8
push eax
push 0x485a04
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax]
cmp dword [ebp - 0x20], 0
je 0x4857e9
push 0
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
jne 0x485931
mov eax, dword [ebp - 4]
dec eax
test eax, eax
jl 0x485931
inc eax
mov dword [ebp - 0x24], eax
xor esi, esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4859ca
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.00404364
lea eax, [ebp - 0x2c]
call fcn.004060d8
lea eax, [ebp - 0x28]
call fcn.004060d8
lea eax, [ebp - 0x20]
call fcn.004060d8
lea eax, [ebp - 0x1c]
call fcn.004060d8
lea eax, [ebp - 0x18]
call fcn.004060d8
lea eax, [ebp - 0x14]
call fcn.004060d8
lea eax, [ebp - 0x10]
call fcn.00404a4c
ret
Function at 0x4908e8
Capabilities:
Encode data using base64
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov dword [esp], ecx
mov esi, eax
mov ebp, edx
xor ebx, ebx
xor edi, edi
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
test eax, eax
jle 0x490986
xor edx, edx
mov dl, byte [esi + ebx]
shr edx, 2
mov dl, byte [edx + 0x4bd740]
mov byte [ebp + edi], dl
mov dl, byte [esi + ebx]
and dl, 3
and edx, 0xff
shl edx, 4
xor ecx, ecx
mov cl, byte [esi + ebx + 1]
shr ecx, 4
add edx, ecx
mov dl, byte [edx + 0x4bd740]
push edx
pop edx
mov byte [ebp + edi + 1], dl
mov dl, byte [esi + ebx + 1]
and dl, 0xf
and edx, 0xff
shl edx, 2
xor ecx, ecx
mov cl, byte [esi + ebx + 2]
shr ecx, 6
add edx, ecx
mov dl, byte [edx + 0x4bd740]
push edx
pop edx
mov byte [ebp + edi + 2], dl
mov dl, byte [esi + ebx + 2]
and dl, 0x3f
and edx, 0xff
mov dl, byte [edx + 0x4bd740]
mov byte [ebp + edi + 3], dl
add edi, 4
add ebx, 3
dec eax
jne 0x490907
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
dec edx
je 0x49099c
dec edx
je 0x4909d1
jmp 0x490a22
xor eax, eax
mov al, byte [esi + ebx]
shr eax, 2
mov al, byte [eax + 0x4bd740]
mov byte [ebp + edi], al
mov al, byte [esi + ebx]
and al, 3
and eax, 0xff
shl eax, 4
mov al, byte [eax + 0x4bd740]
mov byte [ebp + edi + 1], al
mov byte [ebp + edi + 2], 0x3d
mov byte [ebp + edi + 3], 0x3d
jmp 0x490a22
xor eax, eax
mov al, byte [esi + ebx]
shr eax, 2
mov al, byte [eax + 0x4bd740]
mov byte [ebp + edi], al
mov al, byte [esi + ebx]
and al, 3
and eax, 0xff
shl eax, 4
xor edx, edx
mov dl, byte [esi + ebx + 1]
shr edx, 4
add eax, edx
mov al, byte [eax + 0x4bd740]
mov byte [ebp + edi + 1], al
mov al, byte [esi + ebx + 1]
and al, 0xf
and eax, 0xff
shl eax, 2
mov al, byte [eax + 0x4bd740]
mov byte [ebp + edi + 2], al
mov byte [ebp + edi + 3], 0x3d
mov eax, dword [esp]
add eax, 2
mov ecx, 3
cdq
idiv ecx
shl eax, 2
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x490a84
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], ecx
mov edi, eax
mov dword [esp + 8], edx
xor esi, esi
xor ebp, ebp
xor eax, eax
mov edx, dword [esp]
test edx, edx
jns 0x490aa3
add edx, 3
sar edx, 2
test edx, edx
jle 0x490bb0
mov dword [esp + 0xc], edx
mov edx, 4
lea eax, [esp + 4]
xor ecx, ecx
mov cl, byte [edi + esi]
cmp ecx, 0x3d
jg 0x490ad9
je 0x490b19
sub ecx, 0x2b
je 0x490b0f
sub ecx, 4
je 0x490b14
dec ecx
sub ecx, 0xa
jb 0x490b02
jmp 0x490b1c
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x490aeb
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x490af5
jmp 0x490b1c
mov cl, byte [edi + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x490b1c
mov cl, byte [edi + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x490b1c
mov cl, byte [edi + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x490b1c
mov byte [eax], 0x3e
jmp 0x490b1c
mov byte [eax], 0x3f
jmp 0x490b1c
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x490abb
mov al, byte [esp + 4]
shl eax, 2
xor edx, edx
mov dl, byte [esp + 5]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp], al
lea eax, [ebp + 1]
mov dl, byte [esp + 6]
cmp dl, 0xff
je 0x490b6d
cmp byte [esp + 7], 0xff
jne 0x490b6d
mov al, byte [esp + 5]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
lea eax, [ebp + 2]
inc ebp
jmp 0x490ba5
cmp dl, 0xff
je 0x490ba5
mov al, byte [esp + 5]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
mov eax, dword [esp + 8]
mov dl, byte [esp + 6]
shl edx, 6
or dl, byte [esp + 7]
mov byte [eax + ebp + 2], dl
lea eax, [ebp + 3]
add ebp, 2
inc ebp
dec dword [esp + 0xc]
jne 0x490ab2
add esp, 0x10
pop ebp
pop edi
pop esi
ret

Function at 0x491834
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
jbe 0x491854
mov ecx, 1
mov ebx, edx
add ebx, ecx
dec ebx
mov bl, byte [ebx]
mov edi, eax
add edi, ecx
dec edi
xor byte [edi], bl
inc ecx
dec esi
jne 0x491842
pop edi
pop esi
pop ebx
ret

Function at 0x492750
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
mov bl, dl
dec ebx
test ebx, ebx
jb 0x4927a4
inc ebx
xor edx, edx
mov ecx, edx
shl ecx, 2
movzx esi, byte [eax + ecx]
lea esi, [esi*4 + 0x4bf980]
mov esi, dword [esi]
movzx edi, byte [eax + ecx + 1]
lea edi, [edi*4 + 0x4bfd80]
xor esi, dword [edi]
movzx edi, byte [eax + ecx + 2]
lea edi, [edi*4 + 0x4c0180]
xor esi, dword [edi]
movzx edi, byte [eax + ecx + 3]
lea edi, [edi*4 + 0x4c0580]
xor esi, dword [edi]
lea ecx, [eax + ecx]
mov dword [ecx], esi
inc edx
dec ebx
jne 0x49275f
pop edi
pop esi
pop ebx
ret
Function at 0x1100258e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
xor esi, esi
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], esi
je 0x110025fc
mov eax, dword [eax + edi + 0x78]
add eax, edi
push ebx
mov ecx, dword [eax + 0x1c]
add ecx, edi
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0x20]
add ecx, edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
mov ebx, esi
cmp dword [eax + 0x14], esi
jbe 0x110025fb
mov eax, dword [ecx + ebx*4]
add eax, edi
push 0x110015a8
push eax
call dword [0x11006014]
pop ecx
test eax, eax
mov eax, dword [ebp - 4]
pop ecx
je 0x110025e9
mov ecx, dword [ebp - 8]
inc ebx
cmp ebx, dword [eax + 0x14]
jb 0x110025c4
jmp 0x110025fb
mov eax, dword [eax + 0x24]
mov esi, dword [ebp - 0xc]
lea eax, [eax + ebx*2]
movzx eax, word [eax + edi]
mov esi, dword [esi + eax*4]
add esi, edi
pop ebx
call fcn.11003526
sub eax, dword [0x11006040]
xor ecx, ecx
cmp eax, 0x7fff
cmova esi, ecx
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x110031d7
Capabilities:
Accept command line arguments
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x11001234
mov dword [ebp - 8], ecx
call edi
push eax
call dword [0x11006008]
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x11003202
xor al, al
jmp 0x11003269
add esi, 0x2a
push 0x20
push esi
call dword [0x11006004]
pop ecx
pop ecx
test eax, eax
jne 0x11003221
push ecx
push 0x11001260
call fcn.1100249a
jmp 0x110031fe
sub eax, esi
sar eax, 1
cmp eax, 2
jae 0x1100323b
push ecx
push 0x11001274
call fcn.1100249a
push ecx
call edi
push eax
jmp 0x1100321a
lea edi, [eax + eax]
push ebx
lea eax, [edi + 2]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
jne 0x1100326d
push ecx
push 0x11001288
call fcn.1100249a
xor al, al
pop ebx
pop edi
pop esi
leave
ret
push edi
push esi
push ebx
call dword [0x11006020]
add esp, 0xc
xor eax, eax
push ebx
mov word [edi + ebx], ax
xor ebx, ebx
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x110032b2
push ecx
push 0x1100129c
call fcn.1100249a
push 0xa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, 0x11006048
call fcn.11002433
jmp 0x11003266
mov esi, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
push ebx
push ebx
push 4
push eax
call esi
mov ebx, eax
test ebx, ebx
jne 0x110032ce
push ecx
push 0x110012b0
jmp 0x11003298
push 0x20
push ebx
push dword [ebp - 8]
call dword [0x11006020]
add esp, 0xc
call fcn.1100341e
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x11003266
mov eax, dword [ebx + 0x20]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
add eax, 0x18
mov edx, eax
mov ecx, edi
mov dword [ebp - 8], eax
call fcn.110033c5
test al, al
je 0x11003266
lea edx, [ebp - 4]
mov ecx, edi
call fcn.110033c5
test al, al
je 0x11003266
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ebp - 8]
push 2
push dword [eax]
call esi
mov ecx, eax
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x11003343
push ecx
push 0x110012c4
jmp 0x11003298
mov eax, dword [ebx + 0x24]
lea esi, [ebx + 0x28]
lea eax, [esi + eax*4]
mov dword [ebp - 0xc], eax
cmp esi, eax
je 0x11003371
mov edx, dword [esi]
add edx, ecx
mov ecx, edi
call fcn.110033c5
test al, al
je 0x11003266
mov ecx, dword [ebp - 8]
add esi, 4
cmp esi, dword [ebp - 0xc]
jne 0x11003353
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x11003389
push ecx
push 0x110012d8
jmp 0x11003298
push dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
call edi
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
push ebx
call edi
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x18]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x11003268
Function at 0x401000
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x664
mov eax, dword [0x412050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0
push 2
mov dword [ebp - 0x664], ecx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x40112d
push 0x428
lea eax, [ebp - 0x430]
push 0
push eax
call fcn.00405e10
push 0x22c
lea eax, [ebp - 0x660]
mov dword [ebp - 0x430], 0x428
push 0
push eax
call fcn.00405e10
add esp, 0x18
mov dword [ebp - 0x660], 0x22c
lea eax, [ebp - 0x660]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x40109c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401ea2
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x660]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40112a
push dword [ebp - 0x658]
push 8
call edi
mov edi, eax
xor eax, eax
mov word [ebp - 0x210], ax
test edi, edi
je 0x4010f7
lea eax, [ebp - 0x430]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
push edi
call ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x664]
call fcn.00401f39
add esp, 8
test eax, eax
je 0x401111
lea eax, [ebp - 0x660]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x40112a
mov edi, dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
jmp 0x4010b4
push esi
call ebx
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401ea2
mov esp, ebp
pop ebp
ret
push esi
call ebx
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401ea2
mov esp, ebp
pop ebp
ret

Function at 0x4012a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x412050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
xor esi, esi
jmp 0x4012d0
lea eax, [esi + 0x43]
mov dword [ebp - 0x12], 0x5c003a
mov word [ebp - 0x14], ax
xor eax, eax
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x414]
push pe_nt_image_headers32
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x418]
push eax
push pe_nt_image_headers32
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x14]
push eax
call ebx
test eax, eax
je 0x40135a
push 5
lea eax, [ebp - 0x214]
push 0x410dcc
push eax
call fcn.004022a9
add esp, 0xc
test eax, eax
jne 0x40135a
mov ax, word [ebp - 0x14]
mov word [0x414560], ax
xor eax, eax
push eax
push 0x401
push 0x111
push dword [0x414354]
mov word [0x414562], ax
call edi
inc esi
cmp esi, 0x18
jb 0x4012d0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401ea2
mov esp, ebp
pop ebp
ret
Function at 0x401380
Capabilities:
Check mutex on windows
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x434
mov eax, dword [0x412050]
xor eax, esp
mov dword [esp + 0x430], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push edi
mov edi, dword [ebp + 8]
push pe_nt_image_headers32
push 0x414150
push 0x67
push edi
mov dword [0x414358], edi
call esi
push pe_nt_image_headers32
push 0x413f50
push 0x6d
push edi
call esi
xor eax, eax
mov dword [esp + 0x14], 0x200
mov word [0x414360], ax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
lea eax, [esp + 0x38]
je 0x40141b
push eax
push pe_nt_image_headers32
push 0x414360
call fcn.00402458
add esp, 0xc
lea eax, [esp + 0x38]
push 0x414150
push 0x200
push eax
call fcn.004024b4
jmp 0x40142b
push 0x414150
push 0x200
push eax
call fcn.00402458
add esp, 0xc
lea eax, [esp + 0x38]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40146e
cmp esi, 0xffffffff
je 0x40146e
mov ecx, edi
call fcn.00401550
mov ecx, edi
call fcn.004015d0
test eax, eax
jne 0x401487
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x430]
xor ecx, esp
call fcn.00401ea2
mov esp, ebp
pop ebp
ret 0x10
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
push 0
push dword [0x414354]
mov dword [esp + 0x20], eax
call dword [sym.imp.WTSAPI32.dll_WTSRegisterSessionNotification]
call fcn.004012a0
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x1c]
push 0
push 0
push 0
push eax
call edi
test eax, eax
je 0x401503
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push esi
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x4014ee
lea eax, [esp + 0x1c]
push eax
call ebx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x28]
push eax
call edi
test eax, eax
jne 0x4014c8
mov esi, dword [esp + 0x10]
push dword [0x414354]
call dword [sym.imp.WTSAPI32.dll_WTSUnRegisterSessionNotification]
mov eax, dword [0x4130a0]
cmp eax, 0xffffffff
je 0x401520
push eax
call dword [sym.imp.USER32.dll_UnregisterDeviceNotification]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x43c]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401ea2
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4018e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x412050]
xor eax, ebp
mov dword [ebp - 4], eax
movsx ax, cl
push pe_nt_image_headers32
mov dword [ebp - 0x12], 0x5c003a
mov word [ebp - 0x14], ax
xor eax, eax
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x418]
push eax
push pe_nt_image_headers32
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x401970
push 5
lea eax, [ebp - 0x214]
push 0x410dcc
push eax
call fcn.004022a9
add esp, 0xc
test eax, eax
jne 0x401970
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401ea2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00401ea2
mov esp, ebp
pop ebp
ret

Function at 0x401ab0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4b4
mov eax, dword [0x412050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov eax, ecx
push edi
lea ecx, [ebp - 0x4a8]
mov dword [ebp - 0x4ac], eax
push ecx
mov ebx, edx
push eax
mov dword [ebp - 0x4b0], ebx
call esi
mov edi, eax
lea eax, [ebp - 0x258]
push eax
push ebx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, eax
cmp edi, 0xffffffff
je 0x401b4d
cmp ebx, 0xffffffff
je 0x401b4a
mov ecx, dword [ebp - 0x488]
cmp ecx, dword [ebp - 0x238]
jne 0x401b4a
mov eax, dword [ebp - 0x494]
cmp eax, dword [ebp - 0x244]
jne 0x401b4a
mov eax, dword [ebp - 0x490]
cmp eax, dword [ebp - 0x240]
jne 0x401b4a
push edi
call esi
push ebx
call esi
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401ea2
mov esp, ebp
pop ebp
ret
push edi
call esi
cmp ebx, 0xffffffff
je 0x401b55
push edi
call esi
push 0
push dword [ebp - 0x4b0]
push dword [ebp - 0x4ac]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 4]
neg eax
pop edi
sbb eax, eax
xor ecx, ebp
pop esi
neg eax
pop ebx
call fcn.00401ea2
mov esp, ebp
pop ebp
ret

Function at 0x401b80
Capabilities:
Create process on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
push 0x44
lea eax, [ebp - 0x58]
mov esi, edx
push 0
push eax
mov edi, ecx
call fcn.00405e10
add esp, 0xc
mov dword [ebp - 0x58], 0x44
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x10], xmm0
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push 0
push 0
push 0
push 0
push 0
push str._cdrom
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401be5
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401bf0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc08
mov eax, dword [0x412050]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x414560
lea eax, [ebp - 0x408]
push 0x200
push eax
call fcn.00402458
add esp, 0xc
lea eax, [ebp - 0x408]
push str.:ESHOW.EXE
push 0x200
push eax
call fcn.004024b4
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401d07
lea ecx, [ebp - 0xc08]
call fcn.00401a10
push str.ESHOW
lea eax, [ebp - 0xc08]
push 0x400
push eax
call fcn.004024b4
add esp, 0xc
lea eax, [ebp - 0xc08]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401c90
push 0
lea eax, [ebp - 0xc08]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.ESHOW.exe
lea eax, [ebp - 0xc08]
push 0x400
push eax
call fcn.004024b4
add esp, 0xc
lea ecx, [ebp - 0x408]
call fcn.00401000
test eax, eax
jne 0x401d07
lea ecx, [ebp - 0xc08]
call fcn.00401000
test eax, eax
jne 0x401d07
lea edx, [ebp - 0xc08]
lea ecx, [ebp - 0x408]
call fcn.00401ab0
test eax, eax
je 0x401cf7
xor edx, edx
lea ecx, [ebp - 0xc08]
call fcn.00401b80
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401ea2
mov esp, ebp
pop ebp
ret
mov edx, 0x414560
lea ecx, [ebp - 0x408]
call fcn.00401b80
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401ea2
mov esp, ebp
pop ebp
ret
Function at 0x4055d9
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x412050]
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.00403724
mov dword [ebp - 0x14], eax
cmp dword [0x413f14], esi
jne 0x4056cc
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x405659
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4057ac
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4057ac
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4057ac
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x413f14], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x413f18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x413f1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x413f24], eax
test eax, eax
je 0x4056c9
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x413f20], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4056f1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4056e4
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x405706
push 4
pop eax
jmp 0x4057ae
cmp dword [ebp - 0x14], esi
je 0x405706
push dword [0x413f14]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4056eb
mov eax, dword [0x413f20]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x405764
cmp dword [0x413f24], edi
je 0x405764
push eax
call ebx
push dword [0x413f24]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x405764
test eax, eax
je 0x405764
call ecx
test eax, eax
je 0x405759
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 0x405759
test byte [ebp - 8], 1
jne 0x405764
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x405794
mov eax, dword [0x413f18]
cmp eax, edi
je 0x405791
push eax
call ebx
test eax, eax
je 0x405791
call eax
mov esi, eax
test esi, esi
je 0x405791
mov eax, dword [0x413f1c]
cmp eax, edi
je 0x405791
push eax
call ebx
test eax, eax
je 0x405791
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x413f14]
call ebx
test eax, eax
je 0x4057ac
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4057ae
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401ea2
mov esp, ebp
pop ebp
ret