joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404880
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x40], 0x3c
mov esi, ecx
mov dword [ebp - 0x3c], 0x8140
push edi
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
push esi
push str._Installing_with__s__s_n
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 1
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 8], 0
movq qword [ebp - 0x10], xmm0
call fcn.00401130
add esp, 0xc
push 0
push 0
push str.PYLAUNCHER_DRYRUN
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, 2
jb 0x4049b3
push str._Exiting_due_to_PYLAUNCHER_DRYRUN_n
call fcn.00401130
add esp, 4
push 1
call fcn.0040ee4d
add esp, 4
push eax
call fcn.0040f1e1
add esp, 4
push 0x40000
push 1
call fcn.0040ee4d
add esp, 4
push eax
call fcn.00414f86
add esp, 4
push eax
call fcn.00414d97
add esp, 8
mov ebx, eax
test edi, edi
je 0x40495a
push edi
push esi
push str.__s___s_n
push 1
call fcn.0040ee4d
add esp, 4
push eax
call fcn.00401050
add esp, 0x10
jmp 0x404973
push esi
push str.__s__n
push 1
call fcn.0040ee4d
add esp, 4
push eax
call fcn.00401050
add esp, 0xc
push 1
call fcn.0040ee4d
add esp, 4
push eax
call fcn.0040f1e1
add esp, 4
test ebx, ebx
js 0x4049a7
push ebx
push 1
call fcn.0040ee4d
add esp, 4
push eax
call fcn.00414f86
add esp, 4
push eax
call fcn.00414d97
add esp, 8
mov eax, 0x6f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4049cd
mov eax, 0x67
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
test eax, eax
je 0x4049a7
push 0
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4049a7
mov eax, dword [ebp - 4]
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 0x6f
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406490
Capabilities:
Accept command line arguments
Extract resource via kernel32 functions
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
pop ebp
jmp fcn.004059c0

Function at 0x415e47
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x415e86
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x415e86
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x415e86
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x415e86
cmp dword [ecx + 0x74], 0xe
jbe 0x415e86
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x418e2a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4258ac
push 0x4258a4
push str.FlsAlloc
push 0x1f
call fcn.00418d08
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418e5e
push dword [ebp + 8]
mov ecx, esi
call dword [0x4231a0]
call esi
jmp 0x418e64
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x418ea8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4258bc
push 0x4258b4
push str.FlsGetValue
push 0x21
call fcn.00418d08
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418edf
push dword [ebp + 8]
mov ecx, esi
call dword [0x4231a0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x418ee7
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4258c4
push 0x4258bc
push str.FlsSetValue
push 0x22
call fcn.00418d08
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418f21
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4231a0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41a47b
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x42e004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x41a4c6
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041a616
test al, al
jne 0x41a4c0
sub edx, 2
cmp edx, edi
jne 0x41a4a6
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41a4e8
lea eax, [edi + 2]
cmp edx, eax
je 0x41a4e8
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041a3c7
add esp, 0x10
jmp 0x41a5e2
push esi
lea ecx, [ebp - 0x255]
call fcn.0041a616
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41a52b
push dword [ebp - 0x25c]
jmp 0x41a4d8
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x41a568
cmp word [ebp - 0x226], 0
je 0x41a589
cmp word [ebp - 0x226], ax
jne 0x41a568
cmp word [ebp - 0x224], 0
je 0x41a589
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041a3c7
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41a5d5
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41a542
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41a5bd
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41a5e2
push 0x41a1f7
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0041efe0
add esp, 0x10
jmp 0x41a5b2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040649c
leave
ret

Function at 0x41b11e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41b12f
pop esi
ret
push ebx
push edi
push esi
call fcn.0041b0e7
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00417168
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41b157
push ebx
push esi
push edi
call fcn.00407fc0
add esp, 0xc
push 0
call fcn.0041712e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x41b527
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041b16c

Function at 0x421bf0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x421c1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x421c1d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x414838
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44ec90]
jne 0x414842
repz ret
jmp fcn.0041a6eb

Function at 0x42b420
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x42b42f
pop dword [ebp - 0xc]
mov eax, 0x42b42f
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x4abcb
push 0
mov eax, 0xff6f0510
add eax, 0xd4bd48
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x4db27845
add ecx, 0xb24dc50c
xor edx, edx
add edx, eax
mov ebx, 0x2c211f36
sub ebx, 0x2bda6d36
add ebx, dword [ebp - 0xc]
mov edi, 0x86b63eba
add edi, 0x459e8868
xor dword [ebp - 4], 0xbe5aa7b0
mov esi, dword [ebx]
sub dword [ebp - 4], ecx
add esi, edi
sub dword [ebp - 4], eax
mov dword [edx], esi
sub dword [ebp - 8], edi
add edx, 4
add ebx, 4
loop 0x42b48b
add eax, 0xe0a3c8ad
add eax, 0x1f5d1f6a
mov ebx, eax
add eax, 0xd1ba4cf7
sub eax, 0xd1ba4cf2
mov ecx, 0x400000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x411480
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x210
mov eax, dword [0x4a86f0]
xor eax, esp
mov dword [esp + 0x20c], eax
mov eax, dword [esp + 0x218]
push ebx
push ebp
mov ebp, dword [esp + 0x224]
push esi
mov esi, dword [esp + 0x220]
push edi
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x1e]
push edx
mov dword [esp + 0x1c], eax
xor edi, edi
xor ebx, ebx
mov word [esp + 0x20], cx
call fcn.0046a390
push 1
push 0x208
lea eax, [esp + 0x28]
push eax
push esi
call fcn.004113d0
add esp, 0x1c
test eax, eax
je 0x41151d
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
mov eax, edx
push 0x48f650
push eax
call fcn.004697eb
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x411513
lea edi, [ebx + 1]
jmp 0x411522
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x411522
mov ebx, 0xa1
mov eax, edi
test ebp, ebp
je 0x41152b
mov dword [ebp], ebx
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004698aa
add esp, 0x210
ret

Function at 0x411630
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
xor esi, esi
mov dword [esp + 4], esi
test eax, eax
je 0x411699
mov ecx, dword [esp + 0x1c]
push edi
push ecx
push 2
push 2
push 0x40000000
push str.Mac.pad
push eax
lea edx, [esp + 0x28]
push edx
call fcn.00411550
mov edi, dword [esp + 0x2c]
add esp, 0x1c
mov esi, eax
cmp edi, 0xffffffff
je 0x411691
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push 0
lea eax, [esp + 0xc]
push eax
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x411691
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4116af
mov ecx, esi
neg ecx
sbb ecx, ecx
not ecx
and ecx, dword [esp + 4]
mov dword [eax], ecx
mov eax, esi
pop esi
pop ecx
ret
Function at 0x427d90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x427ddb
push edi
push str.InstallToolbarRemote__s___File_doesnt_exist_
call fcn.0045f520
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
call fcn.0046a390
push esi
push str._ctid_s__s__openuninstallpageFALSE__openwelcomedialogFALSE
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.0046988e
add esp, 0x1c
lea eax, [ebp - 0x804]
cmp byte [ebp + 0x14], 3
jne 0x427e23
push 0x487e44
jmp 0x427e28
push str.__ie
push 0x400
push eax
call fcn.004694b4
add esp, 0xc
lea eax, [ebp - 0x804]
cmp dword [ebp + 0x18], 0
je 0x427e49
push str.__DefaultSearchTRUE
jmp 0x427e4e
push str.__DefaultSearchFALSE
push 0x400
push eax
call fcn.004694b4
add esp, 0xc
lea eax, [ebp - 0x804]
cmp dword [ebp + 0x1c], 0
je 0x427e6f
push str.__StartPageTRUE
jmp 0x427e74
push str.__StartPageFALSE
push 0x400
push eax
call fcn.004694b4
add esp, 0xc
mov dword [ebp - 0x808], 0
lea eax, [ebp - 0x808]
push 0
push eax
push 1
push 1
push 0x487854
push 0x487854
lea eax, [ebp - 0x804]
push eax
push edi
push ebx
call fcn.0045cf50
mov esi, eax
lea eax, [ebp - 0x804]
push esi
push eax
push edi
push ebx
push str.InstallToolbarRemote__d___s___s___End__d_
call fcn.0045f520
mov ecx, dword [ebp - 4]
add esp, 0x38
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004698aa
mov esp, ebp
pop ebp
ret

Function at 0x429c00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x488c68
push 0x83
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x429c46
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x429c46
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
test ecx, ecx
jne 0x429c5a
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push str.CheckDataRes____No_DATA_Resource_found_
call fcn.0045f520
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp dword [ebp + 0x10], 0
je 0x429c67
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push str.CheckDataRes____DATA_Resource_found_
call fcn.0045f520
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x44fd00
Capabilities:
Check if file exists
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push 0x206
push eax
mov word [ebp - 0x20c], ax
xor esi, esi
lea eax, [ebp - 0x20a]
mov dword [ebp - 0x220], ebx
push eax
call fcn.0046a390
add esp, 0xc
test ebx, ebx
jne 0x44fd55
pop esi
lea eax, [ebx + 0xd]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x44ff02
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 0x218], ebx
test ebx, ebx
je 0x44fefc
push str.SETUPAQ.CAB
push 0x4b4f40
lea eax, [ebp - 0x20c]
push 0x48f650
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x20c]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x210], eax
mov esi, 0x100000
cmp edi, 0x6400000
jbe 0x44fdd5
mov eax, 0x51eb851f
mul edi
mov esi, edx
shr esi, 5
push esi
push edi
push str.ExtractDATARes____LgData:__d_oct_MaxDataRead:__d_oct
call fcn.0045f520
add esp, 0xc
mov ecx, 0x4a8038
push 0
push edi
push 0x28
push 0
call fcn.00430390
cmp edi, esi
jbe 0x44ff1c
mov ebx, esi
mov dword [ebp - 0x21c], 0
lea esp, [esp]
cmp dword [0x4c2e50], 0
jne 0x44fe8b
push 0
lea eax, [ebp - 0x214]
push eax
push ebx
push dword [ebp - 0x218]
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x214]
push ebx
push edi
push str.ExtractDATARes____dwLgRemain:__d_dwNbOfBytesToWrite:__d_Bytes_Write:__d_oct
call fcn.0045f520
add esp, 0x10
cmp edi, esi
jbe 0x44fe8b
mov eax, dword [ebp - 0x214]
sub edi, esi
mov ecx, dword [ebp - 0x218]
cmp edi, esi
mov ebx, edi
cmova ebx, esi
push 0
lea ecx, [ecx + eax*2]
mov dword [ebp - 0x218], ecx
mov ecx, dword [ebp - 0x21c]
add ecx, eax
mov dword [ebp - 0x21c], ecx
push ecx
mov ecx, 0x4a8038
call fcn.00430700
test edi, edi
jne 0x44fe10
mov edi, dword [ebp + 0xc]
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
mov ecx, 0x4a8038
call fcn.004305b0
push 0
push edi
push 0x64
push 0x28
mov ecx, 0x4a8038
call fcn.00430390
push 0x4ba5a4
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x44fed3
push 0x4ba5a4
call fcn.0042c370
add esp, 4
push dword [0x4ba7bc]
lea eax, [ebp - 0x20c]
push 0x4ba5a4
push eax
call fcn.0045e390
add esp, 0xc
mov esi, eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [ebp - 0x220]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004698aa
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x214]
push eax
push edi
push ebx
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x44fe8e
Function at 0x45da20
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x460
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0046a390
push 0x24c
lea eax, [ebp - 0x458]
mov dword [ebp - 0x45c], 0
push 0
push eax
call fcn.0046a390
add esp, 0x18
test edi, edi
je 0x45dc34
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45dc34
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x45dc34
push edi
push str._s.
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0046988e
add esp, 0x10
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x460], eax
cmp eax, 0xffffffff
je 0x45dc34
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test bl, 2
je 0x45dbdb
lea esp, [esp]
mov cx, word [ebp - 0x42e]
mov ax, word [ebp - 0x430]
test cx, cx
jne 0x45db0d
cmp ax, 0x2e
je 0x45dbba
cmp word [ebp - 0x42c], 0
jne 0x45db26
cmp ax, 0x2e
jne 0x45db26
cmp cx, ax
je 0x45dbba
lea eax, [ebp - 0x430]
push eax
push edi
push 0x48f650
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0046988e
mov eax, dword [ebp - 0x45c]
add esp, 0x14
test al, 1
je 0x45db64
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
mov eax, dword [ebp - 0x45c]
test al, 0x10
lea eax, [ebp - 0x20c]
je 0x45db7a
push ebx
push eax
call fcn.0045da20
add esp, 8
jmp 0x45dbba
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
lea eax, [ebp - 0x20c]
push esi
push eax
push str.DeleteFile__s____d
call fcn.0045f520
add esp, 0xc
test esi, esi
jne 0x45dbb4
test ebx, 0x100
je 0x45dbb4
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0045e630
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x45daf0
mov eax, dword [ebp - 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x45c]
test al, 1
je 0x45dbf3
and eax, 0xfffffffe
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
push esi
push edi
push str.RemoveDirectory__s____d
call fcn.0045f520
add esp, 0xc
test esi, esi
jne 0x45dc21
test ebx, 0x100
je 0x45dc21
push esi
push edi
call fcn.0045e630
add esp, 8
mov eax, esi
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.004698aa
mov esp, ebp
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x3ac672c2
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x4bd1eb1
nop
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401060
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp], str.Usage:_eject___u____a____h___x:_..._n
call fcn.00401000
mov dword [esp], str._____a__Eject_all_the_CD_drives_we_find_n
call fcn.00401000
mov dword [esp], str._____h__Display_this_help_message_n
call fcn.00401000
mov dword [esp], str._____u__Unmount_only__dont_eject_the_CD_n
call fcn.00401000
mov dword [esp], str.____x:__Eject_drive_x:_n
call fcn.00401000
mov dword [esp], 1
call sub.ucrtbase.dll_exit
nop
Function at 0x401996
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test ebx, ebx
sete dl
cmp dword [ebp + 8], 0
sete al
mov ecx, 0
or dl, al
jne 0x401ada
lea ecx, [edi*4 + 0xb]
mov edx, 0x2aaaaaab
mov eax, ecx
imul edx
sar edx, 1
mov eax, ecx
sar eax, 0x1f
sub edx, eax
lea edx, [edx*4 + 1]
cmp edx, dword [ebp + 0x14]
jle 0x401a3d
mov dword [esp], 0x6f
call 0x40c300
sub esp, 4
mov ecx, 0
jmp 0x401ada
movzx eax, byte [ecx]
and eax, 3
shl eax, 4
movzx eax, byte [eax + section.747brvgw]
mov byte [ebx + 1], al
mov byte [ebx + 2], 0x3d
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
movzx eax, byte [ecx + 1]
and eax, 0xf
movzx eax, byte [eax*4 + section.747brvgw]
mov byte [ebx + 2], al
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
mov esi, 0
mov ecx, dword [ebp + 8]
cmp esi, edi
jge 0x401ad2
movzx eax, byte [ecx]
shr al, 2
movzx eax, al
movzx eax, byte [eax + section.747brvgw]
mov byte [ebx], al
mov eax, edi
sub eax, esi
cmp eax, 1
je 0x4019fc
movzx edx, byte [ecx]
and edx, 3
shl edx, 4
movzx eax, byte [ecx + 1]
shr al, 4
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.747brvgw]
mov byte [ebx + 1], al
mov eax, edi
sub eax, esi
cmp eax, 2
je 0x401a1f
movzx edx, byte [ecx + 1]
and edx, 0xf
shl edx, 2
movzx eax, byte [ecx + 2]
shr al, 6
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.747brvgw]
mov byte [ebx + 2], al
movzx eax, byte [ecx + 2]
and eax, 0x3f
movzx eax, byte [eax + section.747brvgw]
mov byte [ebx + 3], al
add esi, 3
add ecx, 3
add ebx, 4
cmp esi, edi
jl 0x401a4d
mov byte [ebx], 0
mov ecx, 1
mov eax, ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x3080194f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x308249ec]
jne 0x30801959
repz ret
jmp fcn.3081a014

Function at 0x30807ed2
Capabilities:
Get file attributes

Disassembly:
push 0x58
mov eax, 0x3081ac18
call fcn.3081997e
mov eax, dword [ebp + 8]
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], cx
lea ecx, [ebp - 0x2c]
push ecx
push eax
mov dword [ebp - 4], esi
xor ebx, ebx
call fcn.30807c9a
pop ecx
pop ecx
test eax, eax
je 0x30807f69
push str.__
lea ecx, [ebp - 0x64]
call fcn.3080c670
lea ecx, [ebp - 0x2c]
push ecx
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 1
call fcn.3080c670
add esp, 0xc
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.3080c670
push esi
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.3080c670
push esi
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], bl
call fcn.3080c670
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x30807f60
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ebx, eax
or dword [ebp - 4], 0xffffffff
push esi
push 1
lea ecx, [ebp - 0x2c]
and bl, 1
call fcn.3080c670
mov al, bl
call fcn.308199b4
ret