joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404f70
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
lea ebx, [ecx + 0xe0]
push edi
push ebx
push 0x200
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
mov edi, str.screen2exe.tmp
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x428880
call fcn.004026d0
pop edi
pop esi
pop ebx
ret

Function at 0x406100
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x41783b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [esp + 3]
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov byte [esi + 0x18], al
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
lea ecx, [esi + 0x30]
mov dword [esp + 0x18], edi
call fcn.00402230
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x54], edi
mov dword [esi + 0x2c], edi
mov dword [esi], 0x419044
mov dword [esi + 0x28], 0x10
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x406190
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x417866
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
mov dword [esi], 0x419044
mov dword [esp + 0x14], 1
call fcn.004062a0
xor ebx, ebx
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], bl
call fcn.004022e0
mov eax, dword [esi + 0x1c]
push eax
mov dword [esp + 0xc], eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x406200
Capabilities:
Capture microphone audio

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
push edi
mov eax, ecx
push 0x30000
cdq
and edx, 7
push esi
add eax, edx
mov edx, dword [esp + 0x14]
sar eax, 3
mov edi, eax
mov word [esi + 0x10], ax
imul edi, edx
lea eax, [esi + 4]
push 0x406280
push eax
push 0xffffffffffffffff
mov word [eax], 1
lea eax, [esi + 0x54]
push eax
mov word [esi + 0x14], 0x12
mov dword [esi + 0xc], edi
mov word [esi + 6], 1
mov dword [esi + 8], edx
mov word [esi + 0x12], cx
call dword [sym.imp.WINMM.dll_waveInOpen]
test eax, eax
je 0x406261
pop edi
xor eax, eax
pop esi
ret 8
lea ecx, [esi + 0x30]
call fcn.004022f0
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
ret 8
Function at 0x4062d0
Capabilities:
Capture microphone audio

Disassembly:
sub esp, 0x3e8
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0x2c]
test eax, eax
je 0x4062f3
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x3e8
ret
mov edx, dword [ebp + 0x20]
mov edi, dword [ebp + 0x1c]
lea ebx, [ebp + 0x18]
mov eax, edx
cmp eax, edx
mov dword [esp + 0x10], edi
je 0x406327
mov ecx, 0xf8
mov esi, eax
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x10]
add eax, 0x3e1
add edi, 0x3e1
cmp eax, edx
mov dword [esp + 0x10], edi
jne 0x406306
mov eax, dword [ebx + 8]
mov ecx, ebx
push eax
push edi
call fcn.00402aa0
mov dword [ebx + 8], edi
mov eax, dword [ebx + 4]
mov esi, dword [ebp + 0x28]
test eax, eax
jne 0x406344
xor edx, edx
jmp 0x40635c
mov ecx, dword [ebx + 0xc]
sub ecx, eax
mov eax, 0x83fef803
imul ecx
add edx, ecx
sar edx, 9
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edx, esi
jae 0x4063cf
test esi, esi
mov eax, esi
jge 0x406368
xor eax, eax
mov edx, eax
shl edx, 5
sub edx, eax
shl edx, 5
add edx, eax
push edx
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebx + 4]
add esp, 4
mov edi, eax
mov eax, dword [ebx + 8]
push edi
push eax
push ecx
mov ecx, ebx
call fcn.00406670
mov eax, dword [ebx + 4]
push eax
mov dword [esp + 0x14], eax
call sub.MFC42.DLL_operatordelete
mov edx, esi
mov eax, edi
shl edx, 5
sub edx, esi
add esp, 4
shl edx, 5
add eax, edx
mov ecx, ebx
add esi, eax
mov dword [ebx + 0xc], esi
call fcn.00406640
mov ecx, eax
mov edx, edi
shl ecx, 5
sub ecx, eax
mov dword [ebx + 4], edi
shl ecx, 5
add edx, ecx
add eax, edx
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0x28]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x10], esi
jle 0x406441
mov ecx, 0xf8
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 8]
stosb byte es:[edi], al
xor eax, eax
mov dword [esp + 0x18], 0x3c0
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14]
push eax
push 1
push ecx
mov ecx, ebx
call fcn.004066b0
mov edx, dword [ebp + 0x1c]
push 0x20
lea eax, [edx + esi]
lea ecx, [eax + 0x21]
mov dword [eax], ecx
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x54]
add edx, esi
push edx
push eax
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x28]
inc eax
add esi, 0x3e1
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4063dc
mov ecx, dword [ebp + 0x28]
xor ebx, ebx
dec ecx
test ecx, ecx
jle 0x40647d
mov edi, dword [sym.imp.WINMM.dll_waveInAddBuffer]
xor esi, esi
mov eax, dword [ebp + 0x1c]
push 0x20
lea edx, [esi + eax]
mov eax, dword [ebp + 0x54]
push edx
push eax
call edi
mov ecx, dword [ebp + 0x1c]
test eax, eax
mov byte [ecx + esi + 0x20], 1
jne 0x40648b
mov edx, dword [ebp + 0x28]
inc ebx
add esi, 0x3e1
dec edx
cmp ebx, edx
jl 0x406453
mov eax, dword [ebp + 0x54]
push eax
call dword [sym.imp.WINMM.dll_waveInStart]
test eax, eax
je 0x406498
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3e8
ret
mov eax, 1
pop edi
mov dword [ebp + 0x2c], eax
pop esi
pop ebp
pop ebx
add esp, 0x3e8
ret
Function at 0x4077a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
fld dword [0x4190c8]
mov ebx, dword [esp + 0xc]
push esi
push edi
xor ecx, ecx
lea esi, [eax + 0x28]
mov edi, 6
mov eax, ecx
add ecx, ebx
cdq
xor eax, edx
sub esi, 8
sub eax, edx
and eax, 0x1ff
xor eax, edx
sub eax, edx
dec edi
fld dword [eax*4 + 0x41fa08]
fmul dword [esi + 8]
faddp st(1)
jne 0x4077bb
pop edi
pop esi
pop ebx
ret
Function at 0x410bd0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4179fa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [esp + 3]
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov byte [esi + 4], al
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov cl, byte [esp + 0xb]
mov dword [esp + 0x18], edi
mov byte [esi + 0x14], cl
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dl, byte [esp + 0xb]
mov dword [esi + 0x28], edi
mov byte [esi + 0x24], dl
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov al, byte [esp + 0xb]
mov dword [esi + 0x3c], edi
mov byte [esi + 0x38], al
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
lea ecx, [esi + 0x484c]
mov byte [esp + 0x18], 3
call fcn.00411ed0
lea ecx, [esi + 0x60bc]
mov byte [esp + 0x18], 4
call fcn.00411ed0
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x792c], edi
mov dword [esi + 0x7968], edi
mov dword [esi], 0x4192a8
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x410ca0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x417a58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x4192a8
mov dword [esp + 0x14], 5
call fcn.00411520
lea ecx, [esi + 0x60bc]
mov byte [esp + 0x14], 4
call fcn.00411f80
lea ecx, [esi + 0x484c]
mov byte [esp + 0x14], 3
call fcn.00411f80
mov eax, dword [esi + 0x3c]
push eax
mov dword [esp + 0xc], eax
call sub.MFC42.DLL_operatordelete
xor edi, edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov eax, dword [esi + 0x28]
push eax
mov dword [esp + 0x10], eax
call sub.MFC42.DLL_operatordelete
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov eax, dword [esi + 0x18]
push eax
mov dword [esp + 0x14], eax
call sub.MFC42.DLL_operatordelete
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov eax, dword [esi + 8]
push eax
mov dword [esp + 0x18], eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x1c]
add esp, 0x10
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x401000
Capabilities:
Delete registry value
Get common file path
Persist via run registry key
Set registry value

Disassembly:
sub esp, 0x318
mov eax, dword [0x409040]
xor eax, dword [esp + 0x318]
lea ecx, [esp + 0x210]
mov dword [esp + 0x314], eax
lea eax, [esp + 0x10c]
push eax
mov eax, dword [esp + 0x320]
push ecx
lea edx, [esp + 0xc]
push edx
push str._d_s__
push eax
call fcn.0040126e
add esp, 0x14
cmp eax, 2
jge 0x401064
or eax, 0xffffffff
mov ecx, dword [esp + 0x314]
xor ecx, dword [esp + 0x318]
add esp, 0x318
jmp fcn.004012d3
mov edx, dword [esp + 4]
push ebp
push esi
xor ecx, ecx
test edx, edx
lea edx, [esp + 8]
push edx
setle cl
push 0xf003f
xor ebp, ebp
push ebp
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push 0x80000001
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40115c
test esi, esi
jne 0x401145
lea eax, [esp + 0x10]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x4010bc
or eax, 0xffffffff
jmp 0x40116c
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x18]
push ecx
call edi
cmp byte [esp + eax + 0x17], 0x5c
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x4010e4
push 0x407150
lea edx, [esp + 0x1c]
push edx
call ebx
lea eax, [esp + 0x11c]
push 0x22
push eax
call fcn.004011b0
mov esi, eax
add esp, 8
test esi, esi
je 0x4010ff
inc esi
jmp 0x401106
lea esi, [esp + 0x11c]
push esi
call edi
cmp byte [eax + esi - 1], 0x22
jne 0x401115
mov byte [eax + esi - 1], 0
push esi
lea ecx, [esp + 0x1c]
push ecx
call ebx
lea edx, [esp + 0x18]
push edx
call edi
mov edx, dword [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
push 1
push 0
lea ecx, [esp + 0x230]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop ebx
jmp 0x401158
mov ecx, dword [esp + 8]
lea eax, [esp + 0x218]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x40115f
or ebp, 0xffffffff
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
mov ecx, dword [esp + 0x31c]
xor ecx, dword [esp + 0x320]
pop esi
pop ebp
add esp, 0x318
jmp fcn.004012d3
Function at 0x401306
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x407170
call fcn.004022fc
mov edi, 0x94
mov eax, edi
call fcn.00402f00
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 [0x4096fc], ecx
mov eax, dword [esi + 4]
mov dword [0x409708], eax
mov edx, dword [esi + 8]
mov dword [0x40970c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x409700], esi
cmp ecx, 2
je 0x401366
or esi, 0x8000
mov dword [0x409700], esi
shl eax, 8
add eax, edx
mov dword [0x409704], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4013a1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4013a1
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4013b9
cmp eax, 0x20b
je 0x4013a6
mov dword [ebp - 0x1c], esi
jmp 0x4013cd
cmp dword [ecx + 0x84], 0xe
jbe 0x4013a1
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4013c7
cmp dword [ecx + 0x74], 0xe
jbe 0x4013a1
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00402ead
pop ecx
test eax, eax
jne 0x4013f9
cmp dword [0x4096e8], 1
jne 0x4013e6
call fcn.00402656
push 0x1c
call fcn.004024df
push 0xff
call fcn.00402348
pop ecx
pop ecx
call fcn.00402e0b
mov dword [ebp - 4], esi
call fcn.00402c60
test eax, eax
jge 0x401412
push 0x1b
call fcn.004012e1
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40ac54], eax
call fcn.00402b3e
mov dword [0x4096e0], eax
call fcn.00402a9c
test eax, eax
jge 0x401438
push 8
call fcn.004012e1
pop ecx
call fcn.00402869
test eax, eax
jge 0x401449
push 9
call fcn.004012e1
pop ecx
call fcn.00402378
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x40145c
push eax
call fcn.004012e1
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00402800
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x40147d
movzx eax, word [ebp - 0x34]
jmp 0x401480
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00401190
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40149e
push edi
call fcn.0040249f
call fcn.004024c1
jmp 0x4014d0
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00402337
ret
Function at 0x4023dd
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40973c], esi
push edi
jne 0x4023fd
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 [0x409738], esi
mov byte [0x409734], al
jne 0x402463
mov ecx, dword [0x40ac48]
test ecx, ecx
je 0x402444
mov eax, dword [0x40ac44]
sub eax, 4
cmp eax, ecx
jmp 0x40243d
mov eax, dword [eax]
test eax, eax
je 0x40242f
call eax
mov eax, dword [0x40ac44]
sub eax, 4
cmp eax, dword [0x40ac48]
mov dword [0x40ac44], eax
jae 0x402427
mov eax, 0x409020
mov esi, 0x409028
cmp eax, esi
mov edi, eax
jae 0x402463
mov eax, dword [edi]
test eax, eax
je 0x40245c
call eax
add edi, 4
cmp edi, esi
jb 0x402454
mov eax, 0x40902c
mov esi, 0x409030
cmp eax, esi
mov edi, eax
jae 0x402482
mov eax, dword [edi]
test eax, eax
je 0x40247b
call eax
add edi, 4
cmp edi, esi
jb 0x402473
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x40249d
push dword [ebp + 8]
mov dword [0x40973c], 1
call fcn.00402348
pop ecx
pop ebp
ret

Function at 0x4024df
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x409040]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x409050]
je 0x40250c
inc eax
cmp eax, 0x12
jb 0x4024fd
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x409050]
jne 0x402640
mov eax, dword [0x4096e8]
cmp eax, 1
je 0x40261b
cmp eax, edx
jne 0x40253c
cmp dword [0x409048], 1
je 0x40261b
cmp ecx, 0xfc
je 0x402640
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402575
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00403520
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.004020d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4025b7
lea eax, [ebp - 0x10c]
push eax
call fcn.004020d0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4071c4
push edi
call fcn.00403620
add esp, 0x10
push edi
call fcn.004020d0
push dword [esi + 0x409054]
mov ebx, eax
call fcn.004020d0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00402f00
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00403520
push edi
push ebx
call fcn.00403530
push 0x4071c0
push ebx
call fcn.00403530
push dword [esi + 0x409054]
push ebx
call fcn.00403530
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00403424
add esp, 0x2c
jmp 0x402640
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x409054]
push dword [esi]
call fcn.004020d0
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 - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004012d3
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403314
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00402f00
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4033a9
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x4096fc]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x4033a9
cmp eax, 1
je 0x4033c1
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4033a9
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x40337e
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x4033a5
xor eax, eax
inc eax
jmp 0x4033dd
cmp esi, ebx
jae 0x4033ad
xor eax, eax
jmp 0x4033dd
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4096fc]
jmp 0x4033c3
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403424
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x409854], ebx
push esi
push edi
jne 0x4034a4
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4034df
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x409854], eax
je 0x4034df
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x409858], eax
call esi
cmp dword [0x4096fc], 2
mov dword [0x40985c], eax
jne 0x4034a4
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x409864], eax
je 0x4034a4
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x409860], eax
mov eax, dword [0x409860]
test eax, eax
je 0x4034e9
call eax
test eax, eax
je 0x4034d0
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x409864]
test eax, eax
je 0x4034d0
test byte [ebp - 8], 1
jne 0x4034e9
cmp dword [0x409708], 4
jb 0x4034e3
or byte [ebp + 0x12], 0x20
jmp 0x403508
xor eax, eax
jmp 0x403518
or byte [ebp + 0x12], 4
jmp 0x403508
mov eax, dword [0x409858]
test eax, eax
je 0x403508
call eax
mov ebx, eax
test ebx, ebx
je 0x403508
mov eax, dword [0x40985c]
test eax, eax
je 0x403508
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x409854]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404d3a
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 [0x40ab28]
push edi
jae 0x404f01
mov eax, esi
sar eax, 5
lea ebx, [eax*4 + 0x40ab40]
mov eax, dword [ebx]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x404f01
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov edi, dword [ebp + 0xc]
mov ecx, edi
je 0x404de0
test dl, 2
jne 0x404de0
test dl, 0x48
je 0x404daa
mov al, byte [eax + 5]
cmp al, 0xa
je 0x404daa
dec dword [ebp + 0x10]
mov byte [edi], al
mov eax, dword [ebx]
lea ecx, [edi + 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 [ebx]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404df3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x404ddb
mov dword [0x4096f4], ecx
jmp 0x404f08
cmp eax, 0x6d
jne 0x404de7
xor eax, eax
jmp 0x404f15
push eax
call fcn.00405c2c
pop ecx
jmp 0x404f12
mov eax, dword [ebx]
mov edx, dword [ebp - 0x10]
add dword [ebp - 0xc], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x404efc
test edx, edx
je 0x404e16
cmp byte [edi], 0xa
jne 0x404e16
or al, 4
jmp 0x404e18
and al, 0xfb
mov byte [ecx], al
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 0x404ef6
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x404ee6
cmp al, 0xd
je 0x404e4c
mov byte [edi], al
inc edi
inc dword [ebp - 8]
jmp 0x404ed8
dec ecx
cmp dword [ebp - 8], ecx
jae 0x404e66
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x404e61
add dword [ebp - 8], 2
jmp 0x404eba
mov dword [ebp - 8], eax
jmp 0x404ed4
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404e8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x404ed4
cmp dword [ebp - 0x10], 0
je 0x404ed4
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x48
je 0x404eaf
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x404eba
mov byte [edi], 0xd
mov ecx, dword [ebx]
mov byte [ecx + esi + 5], al
jmp 0x404ed7
cmp edi, dword [ebp + 0xc]
jne 0x404ebf
cmp byte [ebp - 1], 0xa
jne 0x404ebf
mov byte [edi], 0xa
jmp 0x404ed7
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00405ba0
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x404ed8
mov byte [edi], 0xd
inc edi
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x404e30
jmp 0x404ef6
mov eax, dword [ebx]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x404ef6
or al, 2
mov byte [esi], al
sub edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 0xc]
jmp 0x404f15
and dword [0x4096f4], 0
mov dword [0x4096f0], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret