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

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
cmp dword [edi + 0x18], 8
jb 0x4d6132
mov eax, dword [edi + 4]
jmp 0x4d6135
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4d615c
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
push eax
push edi
push esi
call fcn.004d5a50
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
ret
mov esi, dword [esp + 0x18]
test esi, esi
je 0x4d6172
mov dword [esi], 0
call fcn.004ef450
mov dword [esi + 4], eax
test ebx, 0x400
je 0x4d61a7
push edi
call fcn.004d47e0
add esp, 4
test al, al
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 4
jne 0x4d619b
mov dword [esp + 0x14], 9
mov ecx, dword [eax]
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
ret
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 3
test bl, 0x10
jne 0x4d61c0
mov dword [esp + 0x14], 2
mov edx, dword [eax]
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov dword [eax], edx
pop ebx
ret

Function at 0x4d6550
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x536d48
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push esi
push edi
mov eax, dword [0x581094]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x9c]
cmp dword [esi + 0x18], 8
jb 0x4d658b
mov eax, dword [esi + 4]
jmp 0x4d658e
lea eax, [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4d65bb
mov esi, dword [esp + 0xa0]
test esi, esi
je 0x4d65b4
mov dword [esi], 0
call fcn.004ef450
mov dword [esi + 4], eax
mov al, 1
jmp 0x4d6654
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.004ef450
cmp ebx, 0xb7
jne 0x4d6603
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.004d5f60
add esp, 0xc
cmp dword [eax], 3
jne 0x4d6603
mov esi, dword [esp + 0xa0]
test esi, esi
je 0x4d6652
mov dword [esi], 0
call fcn.004ef450
mov dword [esi + 4], eax
jmp 0x4d6652
mov edi, dword [esp + 0xa0]
test edi, edi
jne 0x4d6648
push str.boost::filesystem::create_directory
lea ecx, [esp + 0x20]
call fcn.004020cc
mov dword [esp + 0x94], edi
call fcn.004ef450
push eax
push ebx
push esi
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x48]
call fcn.004d54f0
push 0x571ccc
lea eax, [esp + 0x3c]
push eax
call fcn.005027d6
call fcn.004ef450
mov dword [edi], ebx
mov dword [edi + 4], eax
xor al, al
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x88
ret
Function at 0x4d6e20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x536e88
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x581094]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x581094]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x4c]
mov esi, ecx
xor ecx, ecx
mov word [esp + 0x10], cx
mov ecx, dword [esp + 0x50]
push edx
push ecx
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
call fcn.004d4940
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x44]
push ecx
push edx
push eax
mov ecx, esi
mov dword [esp + 0x48], 0
call fcn.00431da2
cmp dword [esp + 0x24], 8
jb 0x4d6ebc
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00500d36
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00502c08
add esp, 0x30
ret 0x1c

Function at 0x4d7b30
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
xor eax, eax
cmp ecx, edx
je 0x4d7b5f
push esi
push edi
mov esi, eax
mov edi, eax
shl esi, 6
shr edi, 2
add esi, edi
movsx edi, byte [ecx]
lea esi, [esi + edi - 0x61c88647]
inc ecx
xor eax, esi
cmp ecx, edx
jne 0x4d7b40
pop edi
pop esi
ret

Function at 0x4dc4c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5370c8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x581094]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.00401254
mov dword [esp + 0x18], 0
test edi, edi
je 0x4dc504
add edi, 0x28
jmp 0x4dc506
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
mov dword [esi + 0x2c], ecx
test ecx, ecx
je 0x4dc51e
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], 0x552318
mov dword [esi + 0x28], 0x552314
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x4de1e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x537338
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x581094]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.00401254
mov dword [esi], vtable.std::invalid_argument.0
mov dword [esp + 0x18], 0
test edi, edi
je 0x4de22a
add edi, 0x28
jmp 0x4de22c
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
mov dword [esi + 0x2c], ecx
test ecx, ecx
je 0x4de244
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], 0x552318
mov dword [esi + 0x28], 0x552314
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x4e4580
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x5378b3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x581094]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.00473950
xor ebx, ebx
lea ecx, [esi + 0x18]
mov dword [esp + 0x18], ebx
call fcn.00473950
lea ecx, [esi + 0x40]
mov byte [esp + 0x18], 1
call fcn.00473950
mov byte [esi + 0x30], bl
mov byte [esi + 0x31], bl
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov byte [esi + 0x3c], 1
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x4edaf0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x538148
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x581094]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.004011ff
mov dword [esi], 0x552fe4
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov ecx, dword [edi + 0x2c]
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], vtable.boost::exception.0
mov ecx, dword [edi + 0x34]
mov dword [esp + 0x18], 0
mov dword [esi + 0x34], ecx
test ecx, ecx
je 0x4edb55
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [edi + 0x38]
mov dword [esi + 0x38], ecx
mov edx, dword [edi + 0x3c]
mov dword [esi + 0x3c], edx
mov eax, dword [edi + 0x40]
mov dword [esi + 0x40], eax
mov dword [esi], 0x552fd0
mov dword [esi + 0x30], 0x552fcc
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x4edbf0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x538183
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x581094]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.004edaf0
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov dword [esi + 0x44], vtable.boost::exception_detail::clone_base.0
lea eax, [esi + 0x30]
mov byte [esp + 0x18], 1
mov dword [esi], 0x552fdc
mov dword [eax], 0x552fd8
mov dword [esi + 0x44], 0x552fec
cmp edi, ecx
je 0x4edc52
lea ecx, [edi + 0x30]
push ecx
push eax
call fcn.00464660
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x4ef000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xf0
mov eax, 0x558728
mov dword [esp], eax
mov dword [esp + 4], 0x5444dc
mov dword [esp + 8], 0x54df30
mov dword [esp + 0xc], 0x553450
mov dword [esp + 0x10], 0x55344c
mov dword [esp + 0x14], 0x542c68
mov dword [esp + 0x18], 0x542b08
mov dword [esp + 0x1c], 0x553448
mov dword [esp + 0x20], 0x54a6e4
mov dword [esp + 0x24], 0x558be4
mov dword [esp + 0x28], 0x558bec
mov dword [esp + 0x2c], 0x541b50
mov dword [esp + 0x30], 0x541d2c
mov dword [esp + 0x34], 0x553444
mov dword [esp + 0x38], 0x54293c
mov dword [esp + 0x3c], 0x558bf0
mov dword [esp + 0x40], 0x558bfc
mov dword [esp + 0x44], str.0123456789
mov dword [esp + 0x48], 0x553148
mov dword [esp + 0x4c], str.BDMS
mov dword [esp + 0x50], 0x553434
mov dword [esp + 0x54], 0x553430
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0x55342c
mov dword [esp + 0x64], 0x553428
mov dword [esp + 0x68], 0x558994
mov dword [esp + 0x6c], 0x558be8
mov dword [esp + 0x70], 0x55314c
mov dword [esp + 0x74], 0x55313c
mov dword [esp + 0x78], 0x542c60
mov dword [esp + 0x7c], 0x553110
mov dword [esp + 0x80], 0x553108
mov dword [esp + 0x84], 0x553100
mov dword [esp + 0x88], 0x5530f8
mov dword [esp + 0x8c], 0x553144
mov dword [esp + 0x90], 0x558bf8
mov dword [esp + 0x94], 0x5425ec
mov dword [esp + 0x98], 0x558c28
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], 0x558c24
mov dword [esp + 0xc0], 0x5531d0
mov dword [esp + 0xc4], 0x5531b8
mov dword [esp + 0xc8], 0x552054
mov dword [esp + 0xcc], str.ZYXWVUTRQPOLKJIHGFA
mov dword [esp + 0xd0], 0x5531f0
mov dword [esp + 0xd4], 0x553424
mov dword [esp + 0xd8], 0x553118
mov dword [esp + 0xdc], 0x5531d4
mov dword [esp + 0xe0], 0x542c64
mov dword [esp + 0xe4], 0x553420
mov dword [esp + 0xe8], 0x5531e0
mov dword [esp + 0xec], 0x5531cc
cmp cl, 0x3c
jae 0x4ef21d
movzx eax, cl
mov eax, dword [esp + eax*4]
add esp, 0xf0
ret

Function at 0x502c08
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x581094]
jne 0x502c12
repz ret
jmp fcn.0050ceec
Function at 0x51d552
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0050c69a
and dword [ebp - 4], 0
cmp dword [0x587c7c], 0
mov ebx, eax
jne 0x51d603
push 0x557c9c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x51d6b4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x557c90
push edi
call esi
test eax, eax
je 0x51d6b4
push eax
call fcn.0050c628
mov dword [esp], 0x557c80
push edi
mov dword [0x587c7c], eax
call esi
push eax
call fcn.0050c628
mov dword [esp], 0x557c6c
push edi
mov dword [0x587c80], eax
call esi
push eax
call fcn.0050c628
mov dword [esp], 0x557c50
push edi
mov dword [0x587c84], eax
call esi
push eax
call fcn.0050c628
pop ecx
mov dword [0x587c8c], eax
test eax, eax
je 0x51d603
push 0x557c38
push edi
call esi
push eax
call fcn.0050c628
pop ecx
mov dword [0x587c88], eax
mov eax, dword [0x587c88]
cmp eax, ebx
je 0x51d65b
cmp dword [0x587c8c], ebx
je 0x51d65b
push eax
call fcn.0050c6a3
push dword [0x587c8c]
mov esi, eax
call fcn.0050c6a3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x51d65b
test edi, edi
je 0x51d65b
call esi
test eax, eax
je 0x51d652
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x51d652
test byte [ebp - 0xc], 1
jne 0x51d65b
or dword [ebp + 0x10], 0x200000
jmp 0x51d694
mov eax, dword [0x587c80]
cmp eax, ebx
je 0x51d694
push eax
call fcn.0050c6a3
pop ecx
test eax, eax
je 0x51d694
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x51d694
mov eax, dword [0x587c84]
cmp eax, ebx
je 0x51d694
push eax
call fcn.0050c6a3
pop ecx
test eax, eax
je 0x51d694
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x587c7c]
call fcn.0050c6a3
pop ecx
test eax, eax
je 0x51d6b4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x51d6b6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x525930
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x539608
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x581094]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [esp + 0x28]
test esi, esi
jne 0x525970
push esi
push esi
push esi
push 2
call fcn.00526db0
xor al, al
jmp 0x525af4
call fcn.00524bc0
push 2
or eax, 0xffffffff
push 0
push esi
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
call fcn.00503b68
push esi
call fcn.00505a20
push 0
push 0
push esi
mov edi, eax
call fcn.00503b68
add esp, 0x1c
test edi, edi
jg 0x5259b7
push 0
push 0
push 0
push 0xd
mov ecx, ebx
call fcn.00526db0
xor al, al
jmp 0x525af4
mov dword [esp + 0x14], 0x587cb4
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0
call fcn.005248b0
lea eax, [edi + 1]
push eax
call fcn.00502771
push esi
push 1
mov ebp, eax
push edi
push ebp
mov byte [ebp], 0
call fcn.00504f93
add esp, 0x14
cmp eax, 1
je 0x525a2d
push ebp
call fcn.00500d36
add esp, 4
push 0
push 0
push 0
push 2
mov ecx, ebx
call fcn.00526db0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
cmp eax, 0x587cb4
je 0x525a26
push eax
call fcn.00500d36
add esp, 4
xor al, al
jmp 0x525af4
mov byte [edi + ebp], 0
cmp byte [ebp], 0
mov eax, ebp
mov esi, ebp
je 0x525a9c
jmp 0x525a40
mov cl, byte [esi]
cmp cl, 0xa
jne 0x525a5c
mov ecx, esi
sub ecx, eax
inc ecx
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00524a40
inc esi
mov eax, esi
jmp 0x525a97
cmp cl, 0xd
jne 0x525a96
mov ecx, esi
sub ecx, eax
test ecx, ecx
jle 0x525a74
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00524a40
push 1
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 0xa
call fcn.00524a40
cmp byte [esi + 1], 0xa
jne 0x525a57
add esi, 2
mov eax, esi
jmp 0x525a97
inc esi
cmp byte [esi], 0
jne 0x525a40
sub esi, eax
je 0x525aab
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.00524a40
push ebp
call fcn.00500d36
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov eax, dword [ebx]
mov eax, dword [eax + 8]
add esp, 4
push ecx
push 0
add edx, 8
push edx
mov ecx, ebx
call eax
cmp byte [ebx + 0x2c], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
jne 0x525a16
cmp eax, 0x587cb4
je 0x525af2
push eax
call fcn.00500d36
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x528490
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x88
push 0xffffffffffffffff
push 0x539738
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x581094]
xor eax, ebp
mov dword [ebp + 0x84], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0x90]
xor edi, edi
mov dword [ebp - 0x14], esi
cmp esi, edi
jne 0x5284e2
xor eax, eax
jmp 0x528626
push edi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
call fcn.00462530
push edi
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x14]
push edx
mov byte [ebp - 4], 1
call fcn.004d5f60
mov eax, dword [eax]
add esp, 0xc
cmp eax, edi
je 0x52851f
cmp eax, 1
je 0x52851f
mov eax, 1
jmp 0x528521
xor eax, eax
test al, al
sete bl
cmp dword [ebp - 0x20], 8
mov byte [ebp - 4], 0
jb 0x52853c
mov eax, dword [ebp - 0x34]
push eax
call fcn.00500d36
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], edi
mov word [ebp - 0x34], cx
test bl, bl
jne 0x5284db
push 0x542c2c
push esi
call fcn.00504520
mov esi, eax
add esp, 8
mov dword [ebp - 0x1c], esi
cmp esi, edi
je 0x5285ed
push esi
push 1
lea edx, [ebp]
push 0x84
push edx
call fcn.00504f93
add esp, 0x10
cmp eax, 1
jne 0x5285da
mov eax, dword [ebp]
cmp eax, dword [ebp + 0x94]
jne 0x5285c7
push esi
call fcn.00528d60
mov ecx, dword [ebp + 0x14]
add ecx, 0x84
add esp, 4
cmp eax, ecx
jne 0x5285b4
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0xffffffff
jmp 0x52861a
mov dword [0x587cc0], 8
mov dword [ebp - 4], 0xffffffff
jmp 0x52861a
mov dword [0x587cc0], 6
mov dword [ebp - 4], 0xffffffff
jmp 0x52861a
mov dword [0x587cc0], 2
mov dword [ebp - 4], 0xffffffff
jmp 0x52861a
mov dword [0x587cc0], 1
mov dword [ebp - 4], 0xffffffff
jmp 0x52861a
push esi
call fcn.00503ca9
mov eax, dword [ebp - 0x18]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x84]
xor ecx, ebp
call fcn.00502c08
add ebp, 0x88
mov esp, ebp
pop ebp
ret
Function at 0x528a10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5397c0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x581094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor ecx, ecx
xor bl, bl
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x11], bl
mov dword [ebp - 4], ecx
cmp eax, ecx
je 0x528ac3
mov edi, dword [ebp + 0xc]
cmp edi, ecx
je 0x528ac3
push 0x542c2c
push eax
call fcn.00504520
mov esi, eax
add esp, 8
mov dword [ebp - 0x18], esi
test esi, esi
je 0x528a84
mov eax, dword [ebp + 0x10]
push esi
push 1
push eax
push edi
call fcn.00504f93
add esp, 0x10
cmp eax, 1
jne 0x528a84
mov bl, al
mov dword [ebp - 4], 0xffffffff
jmp 0x528aa0
test esi, esi
je 0x528aad
push esi
call fcn.00503ca9
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x528ae0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5397e0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x581094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor ecx, ecx
xor bl, bl
mov byte [ebp - 0x11], bl
mov dword [ebp - 0x18], ecx
cmp eax, ecx
je 0x528b93
mov edi, dword [ebp + 0xc]
cmp edi, ecx
je 0x528b93
push 0x5424b0
push eax
mov dword [ebp - 4], ecx
call fcn.00504520
mov esi, eax
add esp, 8
mov dword [ebp - 0x18], esi
test esi, esi
je 0x528b54
mov eax, dword [ebp + 0x10]
push esi
push 1
push eax
push edi
call fcn.005039ee
add esp, 0x10
cmp eax, 1
jne 0x528b54
mov bl, al
mov dword [ebp - 4], 0xffffffff
jmp 0x528b70
test esi, esi
je 0x528b7d
push esi
call fcn.00503ca9
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x529440
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539980
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x581094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
mov eax, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x5294c8
push 0
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi], eax
test eax, eax
je 0x5294c8
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 4], eax
test eax, eax
jne 0x529523
mov dword [ebp - 4], 0xffffffff
jmp 0x5294e1
mov eax, dword [esi + 4]
test eax, eax
je 0x5294ef
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi]
test eax, eax
je 0x529501
cmp eax, 0xffffffff
je 0x529501
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 8]
mov dword [esi], 0
test eax, eax
je 0x52951a
cmp eax, 0xffffffff
je 0x52951a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x529590
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5399b9
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x581094]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov ebp, dword [esp + 0x48]
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
mov dword [esp + 0x28], edi
mov byte [edi + 4], bl
mov ecx, 1
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], ebx
cmp byte [esp + 0x4c], bl
je 0x5295fa
mov ecx, 0x101
cmp dword [eax + 0x18], 0x10
jb 0x529605
mov eax, dword [eax + 4]
jmp 0x529608
add eax, 4
lea esi, [esp + 0x18]
push esi
push ecx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5296c5
cmp dword [ebp + 0x18], 0x10
lea eax, [ebp + 4]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], eax
jb 0x529636
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push ebx
lea edx, [esp + 0x28]
push edx
push ebx
push eax
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5296ba
mov eax, dword [esp + 0x14]
cmp eax, ebx
jbe 0x5296ba
cmp dword [esp + 0x20], 3
je 0x5296ba
push eax
call fcn.00502fd7
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x5296ba
mov ecx, dword [esp + 0x14]
push ecx
push ebx
push esi
call fcn.00502e80
add esp, 0xc
cmp dword [ebp + 0x18], 0x10
jb 0x52968d
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
jmp 0x529691
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push esi
push ebx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5296b1
push esi
mov ecx, edi
call fcn.00405456
push esi
call fcn.00502efa
add esp, 4
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret