joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d8c0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4997a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [0x4bd96c]
push ebx
push ebp
push esi
xor ebx, ebx
mov dword [esp + 0x2c], eax
push edi
mov esi, ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x3c], ebx
mov ebp, 0xf
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
cmp byte [esi + 4], bl
push 0xffffffffffffffff
mov byte [esp + 0x40], 2
push ebx
jne 0x43d932
mov esi, dword [esp + 0x4c]
lea eax, [esp + 0x6c]
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00403a90
mov edi, 0x10
jmp 0x43d9da
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x20]
call fcn.00403a90
mov eax, dword [esp + 0x60]
mov edi, 0x10
cmp eax, edi
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x10], pe_nt_image_headers32
jae 0x43d95d
lea eax, [esp + 0x4c]
lea edx, [esp + 0x10]
push edx
push 0x4c0ad0
push ebx
push ebx
push eax
mov eax, dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp esi, ebx
je 0x43d99e
call fcn.00442dc0
cmp dword [esp + 0x60], edi
mov ecx, dword [esp + 0x4c]
jae 0x43d98c
lea ecx, [esp + 0x4c]
mov edx, dword [eax]
push esi
push ecx
push str.Unable_to_query_string_registry_value:__s__Error:__d__n
push eax
call dword [edx + 0x58]
add esp, 0x10
jmp 0x43d9be
mov eax, 0x4c0ad0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x43d9a6
sub eax, edx
push eax
push 0x4c0ad0
lea ecx, [esp + 0x1c]
call fcn.00403b80
mov esi, dword [esp + 0x44]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x1c]
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00403a90
cmp dword [esp + 0x2c], edi
jb 0x43d9ed
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0046256d
add esp, 4
cmp dword [esp + 0x60], edi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
jb 0x43da0c
mov edx, dword [esp + 0x4c]
push edx
call fcn.0046256d
add esp, 4
cmp dword [esp + 0x7c], edi
mov dword [esp + 0x60], ebp
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
jb 0x43da2b
mov eax, dword [esp + 0x68]
push eax
call fcn.0046256d
add esp, 4
mov ecx, dword [esp + 0x34]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x24]
pop ebx
call fcn.00462751
add esp, 0x30
ret 0x3c
Function at 0x4409c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x499ad1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
xor edi, edi
push edi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.004401d0
push 0x3f800000
push 0x3f800000
lea ecx, [esi + 8]
call fcn.004401d0
push edi
push edi
push edi
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 0x3f800000
call fcn.004452e0
push edi
push edi
push edi
lea ecx, [esi + 0x24]
mov dword [esp + 0x20], edi
call fcn.004452e0
mov dword [esi + 0x30], edi
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x444770
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x499e79
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
xor ebp, ebp
cmp eax, ebp
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
je 0x4447a8
mov dword [esi + 4], 0x4a8000
mov dword [esi + 0x38], 0x4a2e74
push ebp
mov ecx, esi
call fcn.00441c60
mov eax, dword [esi + 4]
mov dword [esi], 0x4a7f80
mov ecx, dword [eax + 4]
mov dword [ecx + esi + 4], 0x4a2e94
mov edx, dword [esi + 4]
mov eax, dword [edx + 4]
lea ecx, [eax - 0x34]
mov dword [eax + esi], ecx
lea edi, [esi + 0xc]
mov ecx, edi
mov dword [esp + 0x1c], ebp
call fcn.00410dc0
mov dword [edi + 4], eax
mov bl, 1
mov byte [eax + 0x2d], bl
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebp
lea edi, [esi + 0x18]
mov ecx, edi
mov byte [esp + 0x1c], bl
call fcn.00410dc0
mov dword [edi + 4], eax
mov byte [eax + 0x2d], bl
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebp
lea edi, [esi + 0x24]
mov ecx, edi
mov byte [esp + 0x1c], 2
call fcn.00410dc0
mov dword [edi + 4], eax
mov byte [eax + 0x2d], bl
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebp
mov ecx, dword [esp + 0x14]
pop edi
mov dword [esi + 0x30], ebp
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x447450
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x49a0d1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [0x4bd96c]
push ebx
xor ebx, ebx
mov dword [esp + 0x30], eax
push esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x40], 1
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
push edx
lea eax, [esp + 0x18]
push eax
mov ecx, esi
mov byte [esp + 0x48], 3
call fcn.00446e30
mov eax, dword [eax]
mov esi, dword [esi + 4]
cmp eax, esi
je 0x44750b
push 0xffffffffffffffff
add eax, 0x28
push ebx
push eax
lea ecx, [esp + 0x24]
call fcn.00403a90
cmp dword [esp + 0x30], 0x10
mov eax, dword [esp + 0x1c]
jae 0x4474e3
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x54]
push edx
push 0x4a7ca0
push eax
call fcn.00462891
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
add esp, 0x10
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov dword [esi], edx
mov dword [esi + 4], eax
lea ecx, [esp + 8]
mov dword [esp + 0x10], 1
mov byte [esp + 0x40], 2
call fcn.0043f2d0
cmp dword [esp + 0x30], 0x10
jb 0x447546
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0046256d
add esp, 4
lea ecx, [esp + 0x54]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
mov byte [esp + 0x40], bl
call fcn.0043f2d0
mov ecx, dword [esp + 0x38]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x30]
pop ebx
call fcn.00462751
add esp, 0x3c
ret 0x14
Function at 0x44a770
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49a42e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x30]
push ebx
push esi
xor ebx, ebx
cmp eax, ebx
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
je 0x44a7ac
mov dword [esi + 4], 0x4a5520
mov dword [esi + 0x150], 0x4a2e74
push ebx
mov ecx, esi
call fcn.00445e40
mov dword [esi + 0x138], 0x4a2e74
mov eax, dword [esi + 4]
mov dword [esi], 0x4a8728
mov dword [esi + 0x138], 0x4a6d6c
mov ecx, dword [eax + 4]
mov dword [ecx + esi + 4], 0x4a5408
mov edx, dword [esi + 4]
mov eax, dword [edx + 4]
lea ecx, [eax - 0x14c]
mov dword [eax + esi], ecx
lea edi, [esi + 0x13c]
mov ecx, edi
mov dword [esp + 0x34], ebx
call fcn.00410dc0
mov dword [edi + 4], eax
mov cl, 1
mov byte [eax + 0x2d], cl
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
mov byte [esp + 0x34], cl
push 4
mov ecx, esi
mov dword [esi + 0x148], ebx
mov byte [esi + 0x69], bl
call fcn.0043f320
push 0xc
push 0x4a8718
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.00403b80
lea edx, [esp + 0x10]
push edx
mov ecx, esi
mov byte [esp + 0x38], 2
call fcn.0043f830
cmp dword [esp + 0x28], 0x10
jb 0x44a873
mov eax, dword [esp + 0x14]
push eax
call fcn.0046256d
add esp, 4
mov ecx, dword [esp + 0x2c]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4

Function at 0x4577d7
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x49b7a2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
call fcn.004401a0
lea ecx, [esi + 8]
call fcn.004401a0
lea ecx, [esi + 0x10]
call fcn.004401a0
lea ecx, [esi + 0x18]
call fcn.004401a0
lea ecx, [esi + 0x20]
call fcn.004401a0
lea ecx, [esi + 0x30]
call fcn.004401a0
lea ecx, [esi + 0x38]
call fcn.004401a0
lea ecx, [esi + 0x48]
call fcn.004401a0
xor ebx, ebx
lea ecx, [esi + 0x50]
mov dword [esp + 0x14], ebx
call fcn.004401a0
lea ecx, [esi + 0x58]
call fcn.004401a0
lea ecx, [esi + 0x60]
call fcn.004401a0
lea ecx, [esi + 0x68]
call fcn.004401a0
mov eax, 0xf
mov dword [esi + 0x88], eax
mov dword [esi + 0x84], ebx
mov byte [esi + 0x74], bl
mov dword [esi + 0xa4], eax
mov dword [esi + 0xa0], ebx
mov byte [esi + 0x90], bl
mov dword [esi + 0xc0], eax
mov dword [esi + 0xbc], ebx
mov byte [esi + 0xac], bl
lea ecx, [esi + 0xc4]
mov byte [esp + 0x14], 3
call fcn.004401a0
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x45e620
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49c058
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [0x4bd96c]
mov edx, dword [esp + 0x30]
push esi
mov dword [esp + 0x20], eax
mov eax, edx
push edi
mov esi, ecx
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45e663
sub eax, edi
push eax
push edx
lea ecx, [esp + 0x10]
call fcn.00403b80
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esi + 0x124]
mov dword [esp + 0x38], 0
call fcn.00443060
mov eax, dword [eax]
cmp eax, dword [esi + 0x128]
jne 0x45e6b6
cmp dword [esp + 0x20], 0x10
jb 0x45e6b2
mov edx, dword [esp + 0xc]
push edx
call fcn.0046256d
add esp, 4
xor eax, eax
jmp 0x45e6cf
mov esi, dword [eax + 0x28]
cmp dword [esp + 0x20], 0x10
jb 0x45e6cd
mov eax, dword [esp + 0xc]
push eax
call fcn.0046256d
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x20]
pop esi
call fcn.00462751
add esp, 0x2c
ret 4

Function at 0x4629e9
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x4cd944], esi
push edi
jne 0x462a09
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x4cd940], esi
mov byte [0x4cd93c], al
jne 0x462a6f
mov ecx, dword [0x4cf66c]
test ecx, ecx
je 0x462a50
mov eax, dword [0x4cf668]
sub eax, 4
cmp eax, ecx
jmp 0x462a49
mov eax, dword [eax]
test eax, eax
je 0x462a3b
call eax
mov eax, dword [0x4cf668]
sub eax, 4
cmp eax, dword [0x4cf66c]
mov dword [0x4cf668], eax
jae 0x462a33
mov eax, 0x4bd1fc
mov esi, 0x4bd204
cmp eax, esi
mov edi, eax
jae 0x462a6f
mov eax, dword [edi]
test eax, eax
je 0x462a68
call eax
add edi, 4
cmp edi, esi
jb 0x462a60
mov eax, 0x4bd208
mov esi, 0x4bd210
cmp eax, esi
mov edi, eax
jae 0x462a8e
mov eax, dword [edi]
test eax, eax
je 0x462a87
call eax
add edi, 4
cmp edi, esi
jb 0x462a7f
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x462aa8
push dword [ebp + 8]
mov dword [0x4cd944], 1
call fcn.0046294f
pop ebp
ret
Function at 0x462c39
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4aa340
call fcn.004657a8
mov edi, 0x94
mov eax, edi
call fcn.00467430
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4cd904], ecx
mov eax, dword [esi + 4]
mov dword [0x4cd910], eax
mov edx, dword [esi + 8]
mov dword [0x4cd914], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4cd908], esi
cmp ecx, 2
je 0x462c99
or esi, 0x8000
mov dword [0x4cd908], esi
shl eax, 8
add eax, edx
mov dword [0x4cd90c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x462cd4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x462cd4
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x462cec
cmp eax, 0x20b
je 0x462cd9
mov dword [ebp - 0x1c], esi
jmp 0x462d00
cmp dword [ecx + 0x84], 0xe
jbe 0x462cd4
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x462cfa
cmp dword [ecx + 0x74], 0xe
jbe 0x462cd4
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.004673d6
pop ecx
test eax, eax
jne 0x462d2c
cmp dword [0x4cd950], 1
jne 0x462d19
call fcn.00466c13
push 0x1c
call fcn.00466a9c
push 0xff
call fcn.0046294f
pop ecx
pop ecx
call fcn.00466a14
mov dword [ebp - 4], esi
call fcn.00467211
test eax, eax
jge 0x462d45
push 0x1b
call fcn.00462c14
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4cf660], eax
call fcn.004670ef
mov dword [0x4cd948], eax
call fcn.0046704d
test eax, eax
jge 0x462d6b
push 8
call fcn.00462c14
pop ecx
call fcn.00466e1a
test eax, eax
jge 0x462d7c
push 9
call fcn.00462c14
pop ecx
push 1
call fcn.0046297f
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x462d92
push eax
call fcn.00462c14
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00466dbd
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x462db3
movzx eax, word [ebp - 0x40]
jmp 0x462db6
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0046e9b0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x462dd4
push edi
call fcn.00462aaa
call fcn.00462acc
jmp 0x462e06
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004657e3
ret
Function at 0x466a9c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4bd96c]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4bd9d0]
je 0x466ad1
inc eax
cmp eax, 0x13
jb 0x466ac2
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4bd9d0]
jne 0x466bf7
mov eax, dword [0x4cd950]
cmp eax, 1
je 0x466bcf
cmp eax, edx
jne 0x466b01
cmp dword [0x4bd984], 1
je 0x466bcf
cmp ecx, 0xfc
je 0x466bf7
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x466b37
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00464ad0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00463900
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x466b6b
mov eax, edi
push eax
call fcn.00463900
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4aa52c
push edi
call fcn.00462af0
add esp, 0x10
push edi
call fcn.00463900
push dword [esi + 0x4bd9d4]
mov ebx, eax
call fcn.00463900
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00467430
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00464ad0
push edi
push ebx
call fcn.00464ae0
push 0x4aa528
push ebx
call fcn.00464ae0
push dword [esi + 0x4bd9d4]
push ebx
call fcn.00464ae0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0046a0e5
add esp, 0x2c
jmp 0x466bf7
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4bd9d4]
push dword [esi]
call fcn.00463900
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00462751
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x467dbc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x4cf550]
push edi
jae 0x467f91
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x4cf560]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x467f91
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x467e67
test dl, 2
jne 0x467e67
test dl, 0x48
je 0x467e31
cmp byte [eax + 5], 0xa
je 0x467e31
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x467e7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x467e62
mov dword [0x4cd8fc], ecx
jmp 0x467f98
cmp eax, 0x6d
jne 0x467e6e
xor eax, eax
jmp 0x467fa5
push eax
call fcn.0046bafc
pop ecx
jmp 0x467fa2
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x467f8c
test eax, eax
je 0x467ea1
cmp byte [ebx], 0xa
jne 0x467ea1
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x467eaa
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x467f86
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x467f76
cmp al, 0xd
je 0x467edc
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x467f68
dec ecx
cmp dword [ebp - 8], ecx
jae 0x467ef6
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x467ef1
add dword [ebp - 8], 2
jmp 0x467f4a
mov dword [ebp - 8], eax
jmp 0x467f64
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x467f1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x467f64
cmp dword [ebp - 0x10], 0
je 0x467f64
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x467f3f
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x467f4a
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x467f67
cmp ebx, dword [ebp + 0xc]
jne 0x467f4f
cmp byte [ebp - 1], 0xa
jne 0x467f4f
mov byte [ebx], 0xa
jmp 0x467f67
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00467faa
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x467f68
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x467ec0
jmp 0x467f86
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x467f86
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x467fa5
and dword [0x4cd8fc], 0
mov dword [0x4cd8f8], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x469cc9
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x4cf550]
mov eax, dword [0x4bd96c]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x469e8f
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x4cf560]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x469e8f
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x469d33
xor eax, eax
jmp 0x469ea3
test al, 0x20
je 0x469d44
push 2
push edi
push edi
push ecx
call fcn.0046c800
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x469e19
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x469e60
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x469da6
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x469d97
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x469d79
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x469de6
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x469df2
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x469d6d
jmp 0x469df4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x469e8a
cmp dword [ebp + 0x3a4], edi
je 0x469e60
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x469e52
mov dword [0x4cd8fc], eax
jmp 0x469e96
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x469e44
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x469df4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x469df4
push dword [ebp + 0x3a4]
call fcn.0046bafc
pop ecx
jmp 0x469ea0
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x469e78
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x469d2c
mov dword [0x4cd8f8], 0x1c
mov dword [0x4cd8fc], edi
jmp 0x469ea0
sub eax, dword [ebp - 0x7c]
jmp 0x469ea3
and dword [0x4cd8fc], 0
mov dword [0x4cd8f8], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.00462751
add ebp, 0x39c
leave
ret
Function at 0x46a0e5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4cdb14], ebx
push esi
push edi
jne 0x46a165
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x46a1a0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4ab13c
push edi
call esi
test eax, eax
mov dword [0x4cdb14], eax
je 0x46a1a0
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4cdb18], eax
call esi
cmp dword [0x4cd904], 2
mov dword [0x4cdb1c], eax
jne 0x46a165
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4cdb24], eax
je 0x46a165
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4cdb20], eax
mov eax, dword [0x4cdb20]
test eax, eax
je 0x46a1aa
call eax
test eax, eax
je 0x46a191
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4cdb24]
test eax, eax
je 0x46a191
test byte [ebp - 8], 1
jne 0x46a1aa
cmp dword [0x4cd910], 4
jb 0x46a1a4
or byte [ebp + 0x12], 0x20
jmp 0x46a1c9
xor eax, eax
jmp 0x46a1d9
or byte [ebp + 0x12], 4
jmp 0x46a1c9
mov eax, dword [0x4cdb18]
test eax, eax
je 0x46a1c9
call eax
mov ebx, eax
test ebx, ebx
je 0x46a1c9
mov eax, dword [0x4cdb1c]
test eax, eax
je 0x46a1c9
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4cdb14]
pop edi
pop esi
pop ebx
leave
ret