joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48bf60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x80
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], 5
mov dword [esp + 0x14], edi
lea esi, [edi + 0x14]
mov eax, dword [esi - 4]
test eax, eax
je 0x48c14f
mov cl, byte [eax + 0x258]
test cl, cl
je 0x48bf93
mov byte [esi], 0
cmp byte [esi], 0
je 0x48c14f
mov eax, dword [edi + 4]
lea edx, [esp + 0x78]
push edx
mov ecx, dword [eax + 0x44]
call fcn.004a1c10
mov ecx, dword [eax]
mov dword [esp + 0x30], ecx
mov ecx, dword [edi + 4]
mov edx, dword [eax + 4]
fld dword [esp + 0x30]
fadd dword [esi + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x34], edx
fld dword [esp + 0x34]
fadd dword [esi + 8]
mov edx, dword [ecx + 0x44]
mov dword [esp + 0x38], eax
add edx, 0x124
fstp dword [esp + 0x70]
mov eax, dword [edx]
fld dword [esp + 0x38]
fadd dword [esi + 0xc]
mov ecx, dword [edx + 4]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov edx, dword [edx + 8]
fstp dword [esp + 0x74]
mov dword [esp + 0x20], edx
fld dword [esp + 0x20]
fmul dword [esp + 0x20]
fld dword [esp + 0x1c]
fmul dword [esp + 0x1c]
faddp st(1)
fld dword [esp + 0x18]
fmul dword [esp + 0x18]
faddp st(1)
fsqrt
fcom qword [0x58dc98]
fnstsw ax
test ah, 1
je 0x48c065
fcom qword [0x58dc90]
fnstsw ax
test ah, 0x41
jne 0x48c065
mov dword [esp + 0x40], 0
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x3c], 0
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x44], 0
mov ebp, dword [esp + 0x44]
fstp st(0)
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebx
jmp 0x48c099
fld dword [esp + 0x18]
fdiv st(1)
fstp dword [esp + 0x48]
fld dword [esp + 0x1c]
fdiv st(1)
mov edi, dword [esp + 0x48]
mov dword [esp + 0x24], edi
fstp dword [esp + 0x4c]
fld dword [esp + 0x20]
fdiv st(1)
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x28], ebx
fstp dword [esp + 0x50]
mov ebp, dword [esp + 0x50]
fstp st(0)
fld dword [esp + 0x24]
fmul dword [0x590874]
fld dword [esp + 0x28]
fmul dword [0x590874]
mov dword [esp + 0x2c], ebp
sub esp, 0xc
mov eax, esp
fstp dword [esp + 0x70]
fld dword [esp + 0x38]
fmul dword [0x590874]
fstp dword [esp + 0x74]
fadd st(1)
fstp dword [esp + 0x60]
mov ecx, dword [esp + 0x60]
fstp st(0)
fld dword [esp + 0x70]
fadd dword [esp + 0x7c]
mov dword [eax], ecx
fstp dword [esp + 0x64]
fld dword [esp + 0x74]
fadd dword [esp + 0x80]
mov edx, dword [esp + 0x64]
mov dword [eax + 4], edx
fstp dword [esp + 0x68]
mov ecx, dword [esp + 0x68]
mov dword [eax + 8], ecx
mov ecx, dword [esi - 4]
call fcn.004c1bb0
sub esp, 0xc
lea eax, [esp + 0x90]
mov edx, esp
push eax
mov dword [edx], edi
mov dword [edx + 4], ebx
mov dword [edx + 8], ebp
call fcn.0056e4a0
mov edx, dword [eax]
add esp, 4
mov ecx, esp
sub esp, 0xc
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov ecx, esp
mov dword [ecx], edi
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebp
mov ecx, dword [esi - 4]
call fcn.004c1c20
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add esi, 0x14
dec eax
mov dword [esp + 0x10], eax
jne 0x48bf7b
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x80
ret 4
Function at 0x49f350
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push esi
mov esi, ecx
mov al, byte [esi + 0xb4]
test al, al
jne 0x49f37b
mov al, byte [esi + 0x9e]
test al, al
je 0x49f436
push 0x7b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ah, 0x80
je 0x49f382
mov ecx, esi
call fcn.0049fed0
mov al, byte [esi + 0x9e]
test al, al
je 0x49f436
mov eax, dword [esi + 0x94]
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
push edi
fld dword [eax + 8]
sub esp, 8
lea ecx, [esp + 0x14]
fstp qword [esp]
push str.RFPS:__5.2f
push ecx
call ebx
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0xc]
push 0
not ecx
dec ecx
lea edx, [esp + 0x10]
shl ecx, 3
push 0xffff0000
push edx
sub eax, ecx
mov ecx, dword [esi + 0xb0]
push 0
push eax
call fcn.004c8770
mov ecx, dword [esi + 0x98]
sub esp, 8
lea edx, [esp + 0x14]
fld dword [ecx + 8]
fstp qword [esp]
push str.TFPS:__5.2f
push edx
call ebx
add esp, 0x10
lea eax, [esp + 0xc]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
push 0
push 0xffff0000
push eax
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0xc]
push 0x10
not ecx
dec ecx
shl ecx, 3
sub edx, ecx
mov ecx, dword [esi + 0xb0]
push edx
call fcn.004c8770
pop edi
pop ebx
mov ecx, dword [esi + 0x44]
call fcn.0049c340
pop esi
add esp, 0x20
ret
Function at 0x508750
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
cmp edi, ebx
mov esi, ecx
je 0x5087aa
lea eax, [esi + 0x25]
push edi
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x5087aa
mov ecx, esi
call fcn.00509160
push edi
mov ecx, esi
call fcn.00508cc0
test al, al
jne 0x5087aa
mov eax, dword [0x5e0790]
cmp eax, ebx
je 0x508892
push edi
push str.AMSoundStream::Play____Call_InitFromFile___s__again_fail_
push eax
call fcn.00510990
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebp
pop ebx
ret 4
mov al, byte [esi + 0x24]
test al, al
je 0x508871
mov eax, dword [esi + 0x54c]
cmp eax, ebx
jne 0x5087cd
mov ecx, dword [esi + 0x550]
push ebx
call fcn.0050d770
jmp 0x5087de
cmp eax, 1
jne 0x5087de
mov ecx, dword [esi + 0x554]
push ebx
call fcn.0050d450
mov eax, dword [esi + 0x138]
xor edi, edi
cmp eax, ebx
mov dword [esi + 0x140], ebx
mov dword [esi + 0x13c], ebx
mov byte [esi + 0x148], 0
jle 0x508829
mov ebx, dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ebp, [esi + 0x14c]
push edi
mov ecx, esi
call fcn.00508a10
test al, al
je 0x50887a
mov ecx, dword [ebp]
push ecx
call ebx
mov eax, dword [esi + 0x138]
inc edi
add ebp, 4
cmp edi, eax
jl 0x508809
lea edx, [esp + 0x14]
mov byte [0x5e0668], 0
push edx
push 0
push esi
push 0x5089b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [esi + 0x12c]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esi + 0x12c]
push 1
push 0
push 0
mov edx, dword [eax]
push eax
call dword [edx + 0x30]
mov dword [esi + 0x55c], 1
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 4
mov eax, dword [0x5e0790]
test eax, eax
je 0x508892
push edi
push str.AMSoundStream::Play____Fill_Buffer___d__fail_
push eax
call fcn.00510990
add esp, 0xc
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 4
Function at 0x50cb60
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x58aae6
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
push 4
mov dword [ecx], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 8], 0
je 0x50cb9e
mov ecx, eax
call fcn.00510840
jmp 0x50cba0
xor eax, eax
test eax, eax
mov dword [esp + 8], 0xffffffff
mov dword [0x5e0790], eax
jne 0x50cbc4
xor al, al
mov ecx, dword [esp]
mov dword fs:[0], ecx
add esp, 0xc
ret 4
push 0
push str.Angelica_Media_Error_Log
push str.AM.log
mov ecx, eax
call fcn.00510860
test al, al
jne 0x50cbec
mov ecx, dword [esp]
mov dword fs:[0], ecx
add esp, 0xc
ret 4
push 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 8], 1
je 0x50cc0f
mov ecx, eax
call fcn.0050c0d0
jmp 0x50cc11
xor eax, eax
test eax, eax
mov dword [esp + 8], 0xffffffff
mov dword [0x5e0688], eax
jne 0x50cc4c
mov eax, dword [0x5e0790]
test eax, eax
je 0x50cc6e
push str.AMEngine::Init____Not_enough_memory_
push eax
call fcn.00510990
add esp, 8
xor al, al
mov ecx, dword [esp]
mov dword fs:[0], ecx
add esp, 0xc
ret 4
mov ecx, eax
call fcn.0050c0f0
test al, al
jne 0x50cc81
mov eax, dword [0x5e0790]
test eax, eax
je 0x50cc6e
push str.AMEngine::Init____AMConfig::Init___Fail_
push eax
call fcn.00510990
add esp, 8
xor al, al
mov ecx, dword [esp]
mov dword fs:[0], ecx
add esp, 0xc
ret 4
push 0x5e068c
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, dword [esp]
mov al, 1
mov dword fs:[0], ecx
add esp, 0xc
ret 4
Function at 0x50e550
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
mov eax, dword [esi + 0x108]
cmp eax, ebx
jae 0x50e587
mov eax, dword [0x5e079c]
test eax, eax
je 0x50e57f
push ebx
push str.AFilePackage::ReadFile____Offset___d__beyond_the_end_of_the_file_
push eax
call fcn.00510990
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
ret 0x10
mov ecx, dword [esp + 0x1c]
sub eax, ebx
cmp dword [ecx], eax
jae 0x50e5b0
mov eax, dword [0x5e079c]
test eax, eax
je 0x50e60c
push str.AFilePackage::ReadFile____Buffer_is_too_small_
push eax
call fcn.00510990
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
ret 0x10
mov edx, dword [esi + 0x104]
mov eax, dword [edi + 0x118]
add edx, ebx
push 0
push edx
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [esi + 0x108]
mov ecx, dword [esi + 0x10c]
add esp, 0xc
cmp eax, ecx
jbe 0x50e659
push ecx
mov ecx, edi
mov dword [esp + 0x14], eax
call fcn.0050dc70
test al, al
jne 0x50e5f1
pop edi
pop esi
pop ebx
ret 0x10
test ebx, ebx
jbe 0x50e614
mov eax, dword [0x5e079c]
test eax, eax
je 0x50e60c
push str.AFilePackage::ReadFile____use_a_offset_for_read_is_not_allowed_when_using_a_compressed_package_
push eax
call fcn.00510990
add esp, 8
pop edi
pop esi
xor al, al
pop ebx
ret 0x10
mov ecx, dword [edi + 0x118]
mov edx, dword [esi + 0x10c]
mov eax, dword [edi + 0x11c]
push ecx
push 1
push edx
push eax
call dword [sym.imp.MSVCRT.dll_fread]
mov ecx, dword [esi + 0x10c]
mov edx, dword [edi + 0x11c]
push ecx
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x24]
push edx
push eax
push ecx
call fcn.0051d6c0
add esp, 0x20
mov al, 1
pop edi
pop esi
pop ebx
ret 0x10
mov edx, dword [edi + 0x118]
sub eax, ebx
push edx
push 1
push eax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov al, 1
pop edi
pop esi
pop ebx
ret 0x10

Function at 0x50ed00
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x58ab5b
push eax
mov eax, dword [0x5e079c]
mov dword fs:[0], esp
test eax, eax
push edi
je 0x50ed24
call fcn.0050ee50
mov al, byte [esp + 0x14]
push 0x5e07a0
push 0x104
mov byte [0x5e08a4], al
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, 0x5e07a0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + 0x5e079f], 0x5c
jne 0x50ed69
mov edi, 0x5e07a0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov byte [ecx + 0x5e079e], al
mov eax, dword [0x5e079c]
test eax, eax
jne 0x50edcd
push 4
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0xc], 0
je 0x50ed95
mov ecx, eax
call fcn.00510840
jmp 0x50ed97
xor eax, eax
test eax, eax
mov dword [esp + 0xc], 0xffffffff
mov dword [0x5e079c], eax
jne 0x50edba
xor al, al
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop edi
add esp, 0xc
ret
push 0
push str.Angelica_File_Module_Error_Log
push str.AF.log
mov ecx, eax
call fcn.00510860
mov ecx, dword [esp + 4]
mov al, 1
mov dword fs:[0], ecx
pop edi
add esp, 0xc
ret
Function at 0x50f3d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x110
push ebx
mov ebx, dword [esp + 0x118]
push ebp
push esi
mov esi, ecx
push edi
push 0x104
push ebx
lea eax, [esi + 8]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
lea ebp, [esi + 0x10c]
push ebp
push ebx
call fcn.0050f1b0
mov ecx, dword [0x5e0798]
add esp, 0x14
test ecx, ecx
jne 0x50f511
push 0x5ceba0
push ebx
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x50f451
mov eax, dword [0x5e079c]
test eax, eax
je 0x50f5ca
push ebx
push str.AFileImage::Init_Cant_open_file___s__to_create_image_in_memory
push eax
call fcn.00510990
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push edi
call ebx
push edi
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 0x10
mov dword [esi + 0x220], eax
test eax, eax
jne 0x50f49c
mov eax, dword [0x5e079c]
test eax, eax
je 0x50f587
push str.AFileImage::Init_The_file___s__is_zero_length_
push eax
call fcn.00510990
add esp, 8
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
push 0
push 0
push edi
call ebx
mov ecx, dword [esi + 0x220]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 0x10
mov dword [esi + 0x218], eax
test eax, eax
jne 0x50f4e7
mov eax, dword [0x5e079c]
test eax, eax
je 0x50f587
push str.AFileImage::Init_Not_enough_memory_
push eax
call fcn.00510990
add esp, 8
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
mov edx, dword [esi + 0x220]
push edi
push 1
push edx
push eax
call dword [sym.imp.MSVCRT.dll_fread]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x110
ret 4
lea eax, [esp + 0x10]
push 0
push eax
push ebp
call fcn.0050e330
test al, al
jne 0x50f54d
mov eax, dword [0x5e079c]
test eax, eax
je 0x50f5ca
push ebp
push str.AFileImage::Can_not_locate_file___s__in_the_package_
push eax
call fcn.00510990
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
mov eax, dword [esp + 0x118]
lea edi, [esi + 0x220]
push eax
mov dword [edi], eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [esi + 0x218], eax
test eax, eax
jne 0x50f596
mov eax, dword [0x5e079c]
test eax, eax
je 0x50f587
push str.AFileImage::Init____Not_enough_memory_
push eax
call fcn.00510990
add esp, 8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x110
ret 4
push edi
push 0
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, dword [0x5e0798]
call fcn.0050e550
test al, al
jne 0x50f502
mov eax, dword [0x5e079c]
test eax, eax
je 0x50f5ca
push ebp
push str.AFileImage::Init____Error_Reading_file___s__from_package_
push eax
call fcn.00510990
add esp, 0xc
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x110
ret 4
Function at 0x510810
Capabilities:
Create directory

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0
push esi
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
cmp eax, 0xffffffff
jne 0x51082f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop esi
ret

Function at 0x51bac0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x58b56e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
push 0
mov dword [esp + 0x1c], esi
call fcn.00518600
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov dword [esi + 0x10], ecx
mov cx, word [esp + 0x48]
mov dword [esi + 0x14], edx
mov edx, dword [esp + 0x54]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x5c]
mov word [esi + 0x28], cx
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x2c], edx
mov edx, dword [esp + 0x50]
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x4c]
push ecx
push edx
push eax
lea ecx, [esi + 0x34]
mov dword [esp + 0x2c], 0
mov dword [esi + 0x20], ebx
call fcn.0051b840
lea edi, [esi + 0x48]
mov dword [edi], 0
fld qword [esp + 0x38]
fmul qword [0x598488]
mov byte [esp + 0x20], 2
mov dword [esi + 0x4c], 0x80004004
mov dword [esi], 0x5984ac
mov dword [esi + 0xc], 0x598490
call sub.MSVCRT.dll__ftol
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
lea ebp, [esp + 0x2c]
mov dword [esi + 0x1c], edx
push ebp
mov edx, dword [eax]
push ecx
push eax
call dword [edx]
test eax, eax
jl 0x51bbdd
mov eax, dword [esp + 0x2c]
push eax
mov edx, dword [eax]
call dword [edx + 8]
lea eax, [esp + 0x10]
push eax
push 0
push 0
push ebx
push edi
call fcn.005198c0
test eax, eax
jl 0x51bbdd
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 8]
cmp word [esp + 0x48], 4
jne 0x51bbcf
lea eax, [esi + 0x44]
mov dword [esi + 0x40], 1
mov dword [esi + 0x38], eax
mov dword [eax], 0xfffffffd
mov ecx, dword [esp + 0x28]
push esi
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
jge 0x51bbe3
mov ecx, dword [esp + 0x30]
mov dword [ecx], eax
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x38
Function at 0x52f33a
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x98
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0x78], esi
push edi
mov edi, ecx
jne 0x52f35b
mov eax, 0x8876086c
jmp 0x52f43d
cmp dword [ebp + 0x7c], esi
je 0x52f3d5
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x18], 2
je 0x52f3b5
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [ebp + 0x78]
push esi
push esi
call ebx
mov dword [ebp + 0x6c], eax
add eax, 3
and eax, 0xfffffffc
call fcn.0049ad80
mov dword [ebp + 0x7c], esp
push esi
push esi
push dword [ebp + 0x6c]
push dword [ebp + 0x7c]
push 0xffffffffffffffff
push dword [ebp + 0x78]
push esi
push esi
call ebx
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x78], eax
mov dword [ebp + 0x7c], esi
cmp dword [ebp + 0x7c], esi
je 0x52f3d5
push esi
push 0x10000000
push 3
push esi
push 1
push SysReAllocString
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x52f3ee
push esi
push 0x10000000
push 3
push esi
push 1
push SysReAllocString
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [edi], eax
je 0x52f42e
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [edi + 4], eax
je 0x52f42e
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [edi + 8], eax
je 0x52f42e
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi + 0xc], eax
jne 0x52f43b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x88760b59
jmp 0x52f43d
xor eax, eax
lea esp, [ebp - 0x34]
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8
Function at 0x531ecb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
xor esi, esi
cmp dword [ebx], esi
push edi
je 0x531ede
call fcn.00531eac
cmp dword [ebp + 0x14], esi
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
jne 0x531eef
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp dword [ebp + 0x10], esi
je 0x531f04
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov esi, eax
test esi, esi
jne 0x531f14
push 0xa
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov esi, eax
test esi, esi
je 0x531f43
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
mov dword [ebx + 8], eax
je 0x531f43
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebx], eax
je 0x531f43
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [ebx + 4], eax
jne 0x531f50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x88760b59
jmp 0x531f52
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x534f30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x18], eax
jae 0x535051
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
jae 0x535035
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 0xc], edi
shr edi, 2
and edi, esi
mov dword [ebp - 4], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp - 4]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 0xc]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp - 4]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 0xc]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp - 4]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 8]
add dword [ebp - 8], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0x10]
add ecx, 8
dec dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
mov esi, 0xffc03fc0
jne 0x534f87
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x18]
mov dword [ebp + 0xc], edx
jb 0x534f65
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret
Function at 0x535395
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [ecx + 4]
mov eax, dword [eax + 0x18]
push ebp
push esi
mov esi, dword [ecx]
mov ebp, dword [esi + 0x105c]
push edi
mov edi, dword [esi + 0x1050]
imul ebp, edi
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x18]
add ebp, eax
cmp eax, ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], ebp
jae 0x5354dc
mov edx, 0xf81f
push ebx
mov ebx, dword [esp + 0x14]
mov esi, dword [esi + 0x1058]
lea esi, [eax + esi*2]
mov dword [esp + 0x10], ebx
add edi, eax
cmp eax, esi
mov ebx, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], esi
jae 0x5354b7
movzx ecx, word [ebx]
movzx esi, word [ebx + 2]
movzx eax, word [edi + 2]
movzx edi, word [edi]
mov ebp, ecx
mov ebx, eax
and bx, dx
and bp, dx
mov dword [esp + 0x24], ecx
and ecx, 0xffff07e0
add ebx, ebp
mov ebp, edi
and bp, dx
add ebx, ebp
mov ebp, esi
and bp, dx
lea ebx, [ebx + ebp + 0x1002]
mov ebp, eax
and ebp, 0xffff07e0
add ebp, ecx
mov ecx, edi
and ecx, 0xffff07e0
add ebp, ecx
mov ecx, esi
and ecx, 0xffff07e0
shr ebx, 2
lea ecx, [ecx + ebp + 0x40]
shr ecx, 2
xor ebx, ecx
mov ecx, dword [esp + 0x24]
and eax, edx
and ecx, edx
add eax, ecx
and edi, edx
add eax, edi
mov edi, dword [esp + 0x1c]
and esi, edx
and ebx, 0xffff07e0
lea eax, [eax + esi + 0x1002]
shr eax, 2
xor ebx, eax
mov eax, dword [esp + 0x10]
add dword [esp + 0x10], 2
mov word [eax], bx
mov ebx, dword [esp + 0x18]
add ebx, 4
add edi, 4
cmp ebx, dword [esp + 0x28]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
jb 0x5353fe
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x30]
mov esi, dword [ecx + 4]
mov esi, dword [esi + 0x1050]
add dword [esp + 0x14], esi
mov esi, dword [ecx]
mov edi, dword [esi + 0x1050]
lea eax, [eax + edi*2]
cmp eax, ebp
mov dword [esp + 0x20], eax
jb 0x5353d5
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x24
ret