joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dbd1c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.004dca8c
test byte [ebp + 0xd], 0xc0
jne 0x4dbd40
mov eax, dword [0x4f0e04]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x4dbd4d
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x4dbd7a
je 0x4dbd8c
sub ecx, 0x100
je 0x4dbd9e
sub ecx, 0x100
je 0x4dbda7
sub ecx, 0x100
je 0x4dbd95
jmp 0x4dbdb0
sub ecx, 0x600
je 0x4dbda7
sub ecx, 0x100
je 0x4dbd8c
jmp 0x4dbdb0
mov dword [ebp - 8], 1
jmp 0x4dbdb7
mov dword [ebp - 8], 2
jmp 0x4dbdb7
mov dword [ebp - 8], 4
jmp 0x4dbdb7
mov dword [ebp - 8], 5
jmp 0x4dbdb7
mov dword [ebp - 8], 3
test byte [ebp + 0xd], 1
je 0x4dbdde
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x4f087c]
test al, 0x80
je 0x4dbdd7
mov ebx, 0x80
jmp 0x4dbdf0
mov ebx, 1
jmp 0x4dbdf0
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4dbdf0
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x4dbe02
je 0x4dbe0b
dec eax
je 0x4dbe14
jmp 0x4dbe1d
mov dword [ebp - 4], SysReAllocStringLen
jmp 0x4dbe2c
mov dword [ebp - 4], 0x40000000
jmp 0x4dbe2c
mov dword [ebp - 4], 0xc0000000
jmp 0x4dbe2c
push 1
call fcn.004dcea4
pop ecx
mov ebx, eax
jmp 0x4dbf2c
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x4dbe48
sub eax, 0x10
je 0x4dbe4c
sub eax, 0x10
je 0x4dbe53
sub eax, 0x10
je 0x4dbe5a
jmp 0x4dbe5a
xor edi, edi
jmp 0x4dbe5f
mov edi, 1
jmp 0x4dbe5f
mov edi, 2
jmp 0x4dbe5f
mov edi, 3
test byte [ebp + 0xc], 4
je 0x4dbe77
cmp dword [ebp - 4], 0x80000000
jne 0x4dbe75
mov edi, 1
jmp 0x4dbe77
xor edi, edi
mov dword [ebp - 0x14], 0xc
xor eax, eax
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 0xc]
and edx, 0x80
cmp edx, 1
sbb ecx, ecx
neg ecx
mov dword [ebp - 0xc], ecx
push 0
push ebx
mov ecx, dword [ebp - 8]
push ecx
lea eax, [ebp - 0x14]
push eax
push edi
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileW
mov esi, eax
cmp eax, 0xffffffff
jne 0x4dbee5
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x4dbeda
test byte [ebp + 0xd], 1
je 0x4dbed5
mov ebx, 0x50
jmp 0x4dbeda
mov ebx, 2
push ebx
call fcn.004dcea4
pop ecx
mov ebx, eax
jmp 0x4dbf2c
mov edi, esi
push edi
call fcn.004db8ac
pop ecx
test eax, eax
je 0x4dbef9
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x4dbf05
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.004dcbcc
add esp, 8
mov ebx, eax
inc eax
jne 0x4dbf2c
push 4
call fcn.004dcea4
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.004dcac0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4dfffc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.004da40c
add esp, 8
lea ecx, [ebp - 0x200]
push ecx
call fcn.004da4bc
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.004da4bc
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x4f1ac5
lea ecx, [ebp - 0x200]
push ecx
call fcn.004da40c
add esp, 8
push 0xa
lea ecx, [ebp - 0x200]
push ecx
call fcn.004da4bc
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov eax, dword [ebx]
push eax
call fcn.004e1738
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x4e010d
push esi
call fcn.004da4bc
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.004da4bc
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.004d94e0
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x4e00e4
xor eax, eax
jmp 0x4e0194
push esi
call fcn.004da4bc
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.004da4bc
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.004da33b
add esp, 0xc
jmp 0x4e014d
mov edi, dword [ebx + 0x24]
push edi
call fcn.004da4bc
pop ecx
push eax
push esi
call fcn.004da4bc
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.004da4bc
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.004d9500
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x4e014d
xor eax, eax
jmp 0x4e0194
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.004da40c
add esp, 8
push 0x4f1ac7
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.004da40c
add esp, 8
lea ecx, [ebp - 0x200]
push ecx
mov eax, dword [ebx + 0x24]
push eax
call fcn.004da40c
add esp, 8
push 0x4f1ac9
mov edx, dword [ebx + 0x24]
push edx
call fcn.004da40c
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e3d64
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
jne 0x4e3d91
jmp 0x4e3dc8
call fcn.004e3d14
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004da4bc
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004da4bc
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4e3e4c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4f2104], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4e3f26
cmp dword [0x4f2100], 0
jne 0x4e3f26
cmp dword [0x4f2394], 0
je 0x4e3ee0
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.004e37c4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4e3ec6
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004e37c4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4e3ec6
lea ebx, [ebp - 0x84]
jmp 0x4e3ec7
inc ebx
call fcn.004e3e04
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4e3f61
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4f2108
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004da4bc
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4f210b
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4e3f61
cmp dword [0x4f2100], 0
je 0x4e3f40
cmp dword [0x4f2100], 0xffffffff
je 0x4e3f61
push esi
call dword [0x4f2100]
pop ecx
mov eax, dword [0x4f2104]
test eax, eax
je 0x4e3f61
cmp dword [0x4f2104], 0xffffffff
je 0x4e3f61
cmp byte [eax], 0
je 0x4e3f61
push esi
push eax
call fcn.004e3d64
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409978
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409a4b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409a64
push ebx
push 0x409a70
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403388
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402750
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004033e8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x4099f8
mov al, 0x69
call fcn.0040961c
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040994c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a01
call fcn.0040994c
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a52
lea eax, [ebp - 4]
call fcn.0040316c
ret

Function at 0x409b04
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409bb8
jmp 0x409bad
cmp dword [esi + 0x10], 0x1000
jne 0x409b99
test byte [esi + 0x15], 1
jne 0x409b99
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409b58
cmp eax, 2
je 0x409b58
cmp eax, 0x10
je 0x409b58
cmp eax, 0x20
jne 0x409b6d
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409b6d
mov bl, 1
xor ebp, ebp
jmp 0x409b7e
mov eax, dword [esi]
add eax, ebp
call fcn.00409afc
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409b71
test bl, bl
je 0x409b99
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409bb8
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409b30
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40a5cb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x401000
call 0x40a5cb
lcall 0x5de5, 0x8b10c483
jmp loc.0078ecd8
Function at 0x401d80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x584538
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x5e0930]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea esi, [edi + 0xf88]
mov ecx, esi
call fcn.00432690
xor ebx, ebx
cmp dword [0x5e85f4], ebx
mov dword [esp + 0x14], 0
setne bl
mov dword [esp + 0x10], vtable.CBitmap.0
add ebx, 0xb1
mov dword [esp + 0x38], 0
call fcn.00433b15
mov eax, dword [eax + 0xc]
movzx ecx, bx
push ecx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.0043ff57
test eax, eax
je 0x401ead
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [0x5e85f4]
mov ecx, dword [esp + 0x20]
neg eax
sbb eax, eax
and eax, 0x14
push 0
add eax, 4
push 0
or eax, 1
push eax
push ecx
push 0x10
mov ecx, esi
call fcn.004327c7
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 0xf8c]
push 0xff
push edx
push eax
call fcn.00433b15
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.00402990
test esi, esi
je 0x401e5e
mov esi, dword [esi + 4]
mov ecx, dword [edi + 0xf54]
push esi
push 0
push 0x1109
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
call fcn.004326a5
lea esi, [edi + 0x330]
mov ecx, esi
call fcn.0041c0d3
mov edx, dword [esi]
mov edx, dword [edx + 0x308]
xor eax, eax
cmp dword [0x5e85f4], eax
push 0
push 0
setne al
push 1
push 0
push 0
mov ecx, esi
add eax, 0xab
push eax
call edx
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], vtable.CBitmap.0
call fcn.00402df0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret

Function at 0x403120
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x58373b
mov eax, dword fs:[0]
push eax
mov eax, dword [0x5e0930]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov dword [eax], vtable.CDownloader.0
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov byte [eax + 0xc], cl
mov edx, 0xf
mov dword [eax + 0x28], edx
mov dword [eax + 0x24], ecx
mov byte [eax + 0x14], cl
mov dword [eax + 0x44], edx
mov dword [eax + 0x40], ecx
mov byte [eax + 0x30], cl
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4
Function at 0x404190
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x584538
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x5e0930]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea esi, [edi + 0x38c]
mov ecx, esi
call fcn.0041c0d3
mov eax, dword [esi]
mov edx, dword [eax + 0x308]
xor ecx, ecx
cmp dword [0x5e85f4], ecx
push 0
push 0
setne cl
push 1
push 0
push 0
add ecx, 0xa9
push ecx
mov ecx, esi
call edx
lea esi, [edi + 0x384]
mov ecx, esi
call fcn.00432690
xor ebx, ebx
cmp dword [0x5e85f4], ebx
mov dword [esp + 0x14], 0
setne bl
mov dword [esp + 0x10], vtable.CBitmap.0
add ebx, 0xaf
mov dword [esp + 0x38], 0
call fcn.00433b15
mov eax, dword [eax + 0xc]
movzx ecx, bx
push ecx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.0043ff57
test eax, eax
je 0x4042ba
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [0x5e85f4]
mov ecx, dword [esp + 0x20]
neg eax
sbb eax, eax
and eax, 0x14
push 0
add eax, 4
push 0
or eax, 1
push eax
push ecx
push 0x10
mov ecx, esi
call fcn.004327c7
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 0x388]
push 0xff00ff
push edx
push eax
call fcn.00433b15
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.00402990
test esi, esi
je 0x40429f
mov esi, dword [esi + 4]
mov ecx, dword [edi + 0x350]
push esi
push 0
push 0x1109
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
call fcn.004326a5
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], vtable.CBitmap.0
call fcn.00402df0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret

Function at 0x404510
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x5b95e8
push str.C:UsersPublicMusicen.dat
call fcn.005240a3
push 2
mov esi, eax
push 0
push esi
call fcn.00524466
push esi
call fcn.00524688
push 0
push 0
push esi
mov ebx, eax
call fcn.00524466
push ebx
call fcn.0040d684
push esi
push ebx
mov edi, eax
push 1
push edi
call fcn.00524996
push esi
mov ebp, eax
call fcn.00523f63
lea ebx, [edi + ebp]
add esp, 0x3c
mov esi, edi
mov dword [esp + 0x10], ebp
cmp edi, ebx
jae 0x404594
lea esp, [esp]
cmp dword [esp + 0x10], 8
jb 0x404594
lea eax, [esi + 4]
push eax
mov eax, dword [esp + 0x1c]
push esi
call fcn.00404320
sub dword [esp + 0x18], 8
add esi, 8
add esp, 8
cmp esi, ebx
jb 0x404570
push 0x5b8b4c
push str.C:UsersPublicMusicde.dat
call fcn.005240a3
mov esi, eax
push esi
push ebp
push 1
push edi
call fcn.0052421c
push esi
call fcn.00523f63
push edi
call fcn.0040d679
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4045d0
Capabilities:
Delete file

Disassembly:
sub esp, 0x13c
mov eax, dword [0x5e0930]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push ebp
push esi
push edi
call fcn.0040d380
mov ebp, eax
xor ebx, ebx
cmp ebp, ebx
je 0x404605
call fcn.0040d480
test eax, eax
je 0x40460c
mov edi, ebp
call fcn.0040d4f0
xor eax, eax
jmp 0x40476f
xor eax, eax
mov dword [esp + 0x14], eax
mov byte [esp + 0x18], bl
mov dword [esp + 0x13c], ebx
cmp dword [ebp], 1
je 0x40463b
mov edi, ebp
mov dword [0x5e84fc], 0x80000
call fcn.0040d4f0
xor eax, eax
jmp 0x40476f
mov esi, dword [ebp + 4]
mov edi, dword [esi]
or ecx, 0xffffffff
cmp dword [edi + 4], ecx
jg 0x40464f
mov ecx, 0x10000
jmp 0x4046ad
cmp dword [esi + 4], ecx
je 0x40465c
call fcn.0040c7b0
or ecx, 0xffffffff
mov eax, dword [esi]
mov dword [esi + 4], ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
mov byte [esp + 0x18], bl
mov dword [esp + 0x11c], ebx
mov dword [esp + 0x120], ebx
mov dword [esp + 0x124], ebx
mov dword [esp + 0x128], ebx
mov dword [esp + 0x12c], ebx
mov dword [esp + 0x130], ebx
mov dword [esp + 0x134], ebx
mov dword [esp + 0x138], ebx
mov dword [esp + 0x13c], ebx
xor ecx, ecx
mov dword [0x5e84fc], ecx
cmp ecx, ebx
jne 0x4045fe
xor esi, esi
cmp eax, ebx
mov edi, eax
jle 0x40472e
jmp 0x4046d0
mov dword [esp + 0x14], ebx
mov byte [esp + 0x18], bl
mov dword [esp + 0x13c], ebx
cmp dword [ebp], 1
je 0x4046f1
mov dword [0x5e84fc], 0x80000
jmp 0x404704
mov ecx, dword [ebp + 4]
lea edx, [esp + 0x14]
push edx
push esi
call fcn.0040c990
mov dword [0x5e84fc], eax
cmp dword [ebp], 1
je 0x404716
mov dword [0x5e84fc], 0x80000
jmp 0x404729
mov eax, dword [ebp + 4]
push esi
push eax
lea ecx, [esp + 0x20]
call fcn.0040d010
mov dword [0x5e84fc], eax
inc esi
cmp esi, edi
jl 0x4046d0
cmp dword [ebp], 1
je 0x404740
mov dword [0x5e84fc], 0x80000
jmp 0x40475f
mov esi, dword [ebp + 4]
call fcn.0040d320
mov dword [0x5e84fc], eax
cmp esi, ebx
je 0x404756
call fcn.0040d430
push ebp
call fcn.0040d679
add esp, 4
push str.C:UsersPublicMusicde.dat
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
mov ecx, dword [esp + 0x148]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005239a2
add esp, 0x13c
ret
Function at 0x404fd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.0045308d

Function at 0x405000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405019
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405054
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x405050
lea ebx, [ebx]
cmp esi, eax
jae 0x405054
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x405040
cmp esi, eax
jb 0x40505a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40ae60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x40ae67
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x40af44
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5bc568]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x5bc568]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x5bc568]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5bc568]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5bc568]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5bc568]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5bc568]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5bc568]
inc ecx
sub edx, 8
sub esi, 1
jne 0x40ae80
pop edi
test edx, edx
je 0x40af6b
jmp 0x40af50
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x5bc568]
inc ecx
sub edx, 1
jne 0x40af50
not eax
pop esi
ret

Function at 0x40af70
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5bc568]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x5bc568]
mov dword [edx + 8], ecx
ret

Function at 0x40afc0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x5bc568]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x5bc568]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x40b720
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x40b752
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40b748
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x40b765
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call fcn.00527800
add dword [edi + 0x1c], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x40b780
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x40b7b3
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40b7ad
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x40b7df
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x40b7c5
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.00527800
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x40b7f6
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x40b7f0
cmp byte [esi + 8], 0
je 0x40b7f0
or eax, 0xffffffff
add esp, 8
ret