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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7fc0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4f3280]
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 + 0xc]
mov esi, dword [ebp + 8]
mov edi, edx
mov dword [ebp - 0x3c], ecx
xor bl, bl
mov ecx, edi
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x2d], bl
call fcn.00471d00
test al, al
jne 0x496c9a
push edi
lea ecx, [ebp - 0x2c]
call fcn.00403470
lea edi, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.0049d100
call fcn.00409d80
mov ecx, esi
mov dword [ebp - 0x34], eax
call fcn.004033d0
mov ebx, eax
test ebx, ebx
je 0x496bea
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, 1
cmp esi, 0x3fffffff
jg 0x496bea
lea eax, [esi + esi]
call fcn.004b36a0
mov edi, esp
test edi, edi
je 0x496bea
mov edx, dword [ebp - 0x34]
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push edx
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, edi
jmp 0x496bec
xor eax, eax
push eax
lea ecx, [ebp - 0x58]
call fcn.00408320
lea eax, [ebp - 0x58]
push eax
lea ebx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0049d1f0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call fcn.004034c0
mov ecx, ebx
call fcn.004035c0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x496c8d
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x496c86
lea ecx, [edi + 1]
push ecx
mov dword [ebp - 0x34], 0
call fcn.004a0665
mov esi, dword [ebp - 0x38]
add esp, 4
push 0
lea edx, [ebp - 0x34]
push edx
push edi
push eax
push ebx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x496c86
cmp dword [ebp - 0x34], edi
jne 0x496c86
mov eax, dword [ebp - 0x3c]
mov dword [eax], edi
mov ecx, dword [esi]
mov byte [edi + ecx], 0
mov byte [ebp - 0x2d], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
call fcn.004034c0
mov al, byte [ebp - 0x2d]
jmp 0x496c9c
mov al, bl
lea esp, [ebp - 0x68]
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.004a1723
mov esp, ebp
pop ebp
ret 8
Function at 0x496ee0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4ca2c7
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x4f3280]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f3280]
xor eax, esp
push eax
lea eax, [esp + 0xf4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x104]
lea eax, [esp + 0x74]
xor esi, esi
push eax
mov byte [esp + 0x1b], 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call fcn.00494660
push 0x4e2eac
lea ecx, [esp + 0x24]
mov dword [esp + 0x100], esi
call fcn.004032f0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebp
lea eax, [esp + 0x2c]
mov byte [esp + 0x108], 1
call fcn.00496cc0
test al, al
lea ecx, [esp + 0x20]
sete bl
mov byte [esp + 0xfc], 0
call fcn.004033a0
test bl, bl
jne 0x4970c6
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x74]
push eax
call fcn.00495340
test al, al
je 0x4970c6
push str.strings
lea ecx, [esp + 0x78]
call fcn.004020b0
cmp eax, esi
je 0x4970c6
mov ecx, str.string
call fcn.00493ed0
mov edi, eax
cmp edi, esi
je 0x4970c2
mov edi, edi
lea ecx, [esp + 0x58]
call fcn.004032a0
lea ecx, [esp + 0x3c]
call fcn.004032a0
lea esi, [edi + 0x44]
push esi
mov ebx, 0x4e117c
mov byte [esp + 0x100], 3
call fcn.004952e0
test eax, eax
je 0x497005
mov ecx, eax
call fcn.0040fc20
jmp 0x497007
xor eax, eax
push eax
lea ecx, [esp + 0x5c]
call fcn.00418420
push esi
mov ebx, str.value
call fcn.004952e0
test eax, eax
je 0x497029
mov ecx, eax
call fcn.0040fc20
jmp 0x49702b
xor eax, eax
push eax
lea ecx, [esp + 0x40]
call fcn.00418420
lea ecx, [esp + 0x58]
call fcn.00403400
test eax, eax
je 0x497098
lea ecx, [esp + 0x3c]
call fcn.00403400
test eax, eax
je 0x497098
lea ecx, [esp + 0x3c]
lea ebx, [esp + 0x20]
call fcn.0048b380
mov ecx, ebx
push ecx
mov byte [esp + 0x100], 4
call fcn.00496e50
add esp, 4
mov edx, ebx
push edx
push ecx
lea edx, [ebp + 0x2c]
lea ecx, [esp + 0x60]
call fcn.00498650
add esp, 4
mov ecx, eax
call fcn.004034f0
mov ecx, ebx
mov byte [esp + 0xfc], 3
call fcn.004034c0
mov ecx, str.string
mov eax, edi
call fcn.00493f40
lea ecx, [esp + 0x3c]
mov edi, eax
call fcn.004033a0
lea ecx, [esp + 0x58]
call fcn.004033a0
test edi, edi
jne 0x496fd0
xor esi, esi
mov bl, 1
jmp 0x4970ca
mov bl, byte [esp + 0x17]
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x4970db
push eax
call fcn.004a171e
add esp, 4
lea ecx, [esp + 0x74]
mov dword [esp + 0xfc], 0xffffffff
call fcn.004020e0
mov al, bl
mov ecx, dword [esp + 0xf4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.004a1723
add esp, 0xec
ret 4
Function at 0x497f70
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4c931b
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x4f3280]
xor eax, esp
mov dword [esp + 0x414], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f3280]
xor eax, esp
push eax
lea eax, [esp + 0x42c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x43c]
xor edi, edi
push 0x206
lea eax, [esp + 0x1e]
push edi
push eax
mov word [esp + 0x24], di
call fcn.004a1d00
push 0x206
lea ecx, [esp + 0x232]
push edi
push ecx
mov word [esp + 0x238], di
call fcn.004a1d00
add esp, 0x18
push edi
push 0x1a
lea edx, [esp + 0x20]
push edx
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.kingsoftkclear_temp
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ebx, [esp + 0x18]
lea esi, [esp + 0x14]
call fcn.00495620
mov ecx, esi
mov dword [esp + 0x434], edi
call fcn.00495ca0
mov esi, eax
mov eax, dword [esp + 0x14]
lea ecx, [eax - 0xc]
cmp ecx, 0x4f731c
je 0x498049
lea ebx, [eax - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x498049
push ebx
call fcn.004a171e
add esp, 4
cmp esi, edi
je 0x4980b4
lea edx, [esp + 0x220]
push edx
push edi
push 0x4e2f78
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [esp + 0x220]
push 0x4e2f80
push ecx
call fcn.004a5eba
mov esi, eax
add esp, 8
cmp esi, edi
je 0x4980b4
mov edx, dword [esp + 0x440]
push esi
push edx
push 1
push ebp
call fcn.004a7d8f
push esi
call fcn.004a5b9e
add esp, 0x14
push 0x10
push 0x20
push 0x20
push 1
lea eax, [esp + 0x230]
push eax
push edi
call dword [sym.imp.USER32.dll_LoadImageW]
mov edi, eax
lea ecx, [esp + 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
mov ecx, dword [esp + 0x42c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.004a1723
add esp, 0x424
ret
Function at 0x49d650
Capabilities:
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x49d657
xor eax, eax
ret
mov eax, dword [esp + 4]
jmp fcn.0049d660
Function at 0x49d660
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, edx
test esi, esi
not eax
je 0x49d692
lea esp, [esp]
test cl, 3
je 0x49d692
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4d0b40]
add ecx, 1
sub esi, 1
jne 0x49d670
cmp esi, 0x20
push ebx
push edi
jb 0x49d87c
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4d0f40]
xor edx, dword [ebx*4 + 0x4d1340]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4d0b40]
add ecx, 4
xor edx, dword [eax*4 + 0x4d1740]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4d0f40]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4d1340]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4d0b40]
add ecx, 4
xor eax, dword [edx*4 + 0x4d1740]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4d0f40]
xor edx, dword [ebx*4 + 0x4d1340]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4d0b40]
xor edx, dword [eax*4 + 0x4d1740]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4d0f40]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4d1340]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4d0b40]
xor eax, dword [edx*4 + 0x4d1740]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4d0f40]
xor edx, dword [ebx*4 + 0x4d1340]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4d0b40]
xor edx, dword [eax*4 + 0x4d1740]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4d0f40]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4d1340]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4d0b40]
and edx, 0xff
xor eax, dword [edx*4 + 0x4d1740]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4d0f40]
xor edx, dword [ebx*4 + 0x4d1340]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4d0b40]
add ecx, 4
xor edx, dword [eax*4 + 0x4d1740]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4d0f40]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4d1340]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4d0b40]
and edx, 0xff
xor eax, dword [edx*4 + 0x4d1740]
sub edi, 1
jne 0x49d6a2
cmp esi, 4
jb 0x49d8c9
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x4d0f40]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x4d1340]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4d0b40]
and eax, 0xff
xor edi, dword [eax*4 + 0x4d1740]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x49d886
test esi, esi
pop edi
pop ebx
je 0x49d8ed
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4d0b40]
add ecx, 1
sub esi, 1
jne 0x49d8d0
not eax
pop esi
ret
Function at 0x4a05d2
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4f7438], 0
push esi
jne 0x4a0545
call fcn.004a0470
test eax, eax
je 0x4a0588
mov eax, dword [0x4f7438]
cmp eax, 1
jne 0x4a0566
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4a0588
pop esi
ret
push eax
call dword [0x4f7440]
test eax, eax
jne 0x4a05d0
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4a058c
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4f7438]
call dword [0x4f7440]
mov edi, eax
test edi, edi
je 0x4a05b3
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4a05cf
lea edi, [esi + 0xff0]
push esi
push dword [0x4f7438]
call dword [0x4f743c]
add esi, 0x10
cmp esi, edi
jb 0x4a05b9
mov eax, esi
pop edi
pop esi
ret
jmp 0x4a0532

Function at 0x4a1723
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4f3280]
jne 0x4a172d
repz ret
jmp fcn.004abcc1

Function at 0x4a7ea5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4a7ed2
call fcn.004a9dc8
mov dword [eax], esi
call fcn.004a9db5
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004a1929
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4a7eae
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4a7f01
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004a9ddb
pop ecx
call fcn.004a9db5
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x4a7f28
test al, 1
je 0x4a7f28
test byte [esp + 0xc], 2
je 0x4a7f28
call fcn.004a9dc8
mov dword [eax], 5
call fcn.004a9db5
mov dword [eax], 0xd
jmp 0x4a7ef8
xor eax, eax
pop esi
ret
Function at 0x4a815a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4a8197
cmp dword [ebp + 0x14], edi
je 0x4a8197
cmp ecx, edi
jne 0x4a819e
call fcn.004a9db5
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004a1929
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4a81b2
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4a81d3
cmp ebx, 0xffffffff
je 0x4a81c2
push ebx
push edi
push ecx
call fcn.004a1d00
add esp, 0xc
cmp esi, edi
je 0x4a817f
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4a817f
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4a81ef
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4a81f6
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4a82e7
test word [esi + 0xc], 0x10c
je 0x4a824a
mov eax, dword [esi + 4]
test eax, eax
je 0x4a824a
jl 0x4a8348
cmp ebx, eax
mov edi, ebx
jb 0x4a821b
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4a82ef
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004a195d
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4a82df
cmp ebx, dword [ebp - 0xc]
jb 0x4a82b7
cmp dword [ebp - 0xc], 0
je 0x4a8274
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x4a8269
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4a8270
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4a827f
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4a827f
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4a831b
push eax
push dword [ebp - 8]
push esi
call fcn.004b3bef
pop ecx
push eax
call fcn.004b5e55
add esp, 0xc
test eax, eax
je 0x4a835a
cmp eax, 0xffffffff
je 0x4a8348
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4a82df
push esi
call fcn.004b5774
cmp eax, 0xffffffff
pop ecx
je 0x4a834c
cmp dword [ebp - 4], 0
je 0x4a831b
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4a81fe
mov eax, dword [ebp + 0x14]
jmp 0x4a8199
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4a8306
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004a1d00
add esp, 0xc
call fcn.004a9db5
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4a818f
cmp dword [ebp + 0xc], 0xffffffff
je 0x4a8331
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004a1d00
add esp, 0xc
call fcn.004a9db5
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4a818f
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4a8199
or dword [esi + 0xc], 0x10
jmp 0x4a834c
Function at 0x4aec12
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4f3570]
je 0x4aec2d
inc edi
cmp edi, 0x17
jb 0x4aec1e
cmp edi, 0x17
jae 0x4aedad
push ebp
push 3
call fcn.004be657
cmp eax, 1
pop ecx
je 0x4aed79
push 3
call fcn.004be657
test eax, eax
pop ecx
jne 0x4aec61
cmp dword [0x4f3270], 1
je 0x4aed79
cmp ebx, 0xfc
je 0x4aedac
push 0x4ceb20
mov ebx, 0x314
push ebx
mov ebp, 0x4f7b18
push ebp
call fcn.004a70c1
add esp, 0xc
test eax, eax
je 0x4aec97
push esi
push esi
push esi
push esi
push esi
call fcn.004a182d
add esp, 0x14
push 0x104
mov esi, 0x4f7b31
push esi
push 0
mov byte [0x4f7c35], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4aecdb
push 0x4ceb08
push 0x2fb
push esi
call fcn.004a70c1
add esp, 0xc
test eax, eax
je 0x4aecdb
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004a182d
add esp, 0x14
push esi
call fcn.004a1bd0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4aed20
push esi
call fcn.004a1bd0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4f7e2c
push 0x4ceb04
sub ecx, eax
push ecx
push eax
call fcn.004a7356
add esp, 0x14
test eax, eax
je 0x4aed20
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004a182d
add esp, 0x14
jmp 0x4aed22
xor esi, esi
push 0x4ceb00
push ebx
push ebp
call fcn.004b7476
add esp, 0xc
test eax, eax
je 0x4aed42
push esi
push esi
push esi
push esi
push esi
call fcn.004a182d
add esp, 0x14
push dword [edi*8 + 0x4f3574]
push ebx
push ebp
call fcn.004b7476
add esp, 0xc
test eax, eax
je 0x4aed64
push esi
push esi
push esi
push esi
push esi
call fcn.004a182d
add esp, 0x14
push 0x12010
push 0x4cead8
push ebp
call fcn.004be49a
add esp, 0xc
jmp 0x4aedac
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4aedac
cmp ebp, 0xffffffff
je 0x4aedac
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4f3574]
push dword [esi]
call fcn.004a1bd0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4be49a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004abf3b
xor ebx, ebx
cmp dword [0x4f824c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4be570
push 0x4d00ec
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4be650
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4d00e0
push edi
call esi
cmp eax, ebx
je 0x4be650
push eax
call fcn.004abecd
mov dword [esp], 0x4d00d0
push edi
mov dword [0x4f824c], eax
call esi
push eax
call fcn.004abecd
mov dword [esp], 0x4d00bc
push edi
mov dword [0x4f8250], eax
call esi
push eax
call fcn.004abecd
mov dword [0x4f8254], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004a500d
test eax, eax
pop ecx
pop ecx
je 0x4be53e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004a182d
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4be570
push 0x4d00a0
push edi
call esi
push eax
call fcn.004abecd
cmp eax, ebx
pop ecx
mov dword [0x4f825c], eax
je 0x4be570
push 0x4d0088
push edi
call esi
push eax
call fcn.004abecd
pop ecx
mov dword [0x4f8258], eax
mov eax, dword [0x4f8258]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4be5f5
cmp dword [0x4f825c], ecx
je 0x4be5f5
push eax
call fcn.004abf44
push dword [0x4f825c]
mov esi, eax
call fcn.004abf44
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4be5f5
cmp edi, ebx
je 0x4be5f5
call esi
cmp eax, ebx
je 0x4be5c2
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4be5c2
test byte [ebp - 0x18], 1
jne 0x4be5f5
lea eax, [ebp - 0x10]
push eax
call fcn.004a5044
test eax, eax
pop ecx
je 0x4be5dd
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004a182d
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4be5ec
or dword [ebp + 0x10], 0x200000
jmp 0x4be630
or dword [ebp + 0x10], 0x40000
jmp 0x4be630
mov eax, dword [0x4f8250]
cmp eax, dword [ebp - 8]
je 0x4be630
push eax
call fcn.004abf44
cmp eax, ebx
pop ecx
je 0x4be630
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4be630
mov eax, dword [0x4f8254]
cmp eax, dword [ebp - 8]
je 0x4be630
push eax
call fcn.004abf44
cmp eax, ebx
pop ecx
je 0x4be630
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4f824c]
call fcn.004abf44
cmp eax, ebx
pop ecx
je 0x4be650
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4be652
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

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