joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10018db0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x100af344], 0
jne 0x10018dc5
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 4], 0
push 0x10090314
mov eax, dword [0x100af344]
push eax
call fcn.100164f0
add esp, 8
mov dword [ebp - 4], eax
call dword [ebp - 4]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100210f4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x1002113b
call fcn.1002648e
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x1002113b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x10021157
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.10020c6e
mov esi, eax
test edi, edi
je 0x10021155
test ebx, ebx
je 0x10021155
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10022483
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x1008a07a
call fcn.1005e4d2
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x100224a8
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x100224ee
lea ecx, [ebp - 0x10]
call fcn.100042b0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10021931
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.10019b51
mov eax, esi
call fcn.1005e5aa
ret 8

Function at 0x1002c664
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x1002c688
cmp dword [edi + 0x54], 0
jne 0x1002c688
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.1002648e
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.1002c625
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x1002cc4b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x1002cc93
call fcn.1002648e
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x1002cc93
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x1002ccd6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x1002ccbf
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x1002ccbf
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x1002ccd3
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x10035c53
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x1008b503
call fcn.1005e4d2
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.10020a98
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x10035cb5
call fcn.100257ec
cmp eax, 1
jne 0x10035cb5
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.1002b58f
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.1002722b
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.10019b51
mov dword [ebp + 8], VariantInit
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.10019b51
mov eax, esi
call fcn.1005e5aa
ret 0x10

Function at 0x10035cde
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x1008b52e
call fcn.1005e4d2
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.10020a98
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x10035d40
call fcn.100257ec
cmp eax, 1
jne 0x10035d40
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.1002b58f
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.1002722b
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.10019b51
mov dword [ebp + 8], VariantInit
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.10019b51
mov eax, esi
call fcn.1005e5aa
ret 0x14
Function at 0x10035d6c
Capabilities:
Delete registry key

Disassembly:
push 0
mov eax, 0x1008b559
call fcn.1005e4d2
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.10020a98
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x10035dce
call fcn.100257ec
cmp eax, 1
jne 0x10035dce
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.1002b58f
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.1002722b
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.10019b51
mov dword [ebp + 8], VariantInit
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.10019b51
mov eax, esi
call fcn.1005e5aa
ret 8
Function at 0x1005d5f7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100ade34]
jne 0x1005d601
repz ret
jmp fcn.1006614c

Function at 0x1007ba2c
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.10065a86
and dword [ebp - 4], 0
cmp dword [0x100b1d14], 0
mov ebx, eax
jne 0x1007badd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1007bb8e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100990e8
push edi
call esi
test eax, eax
je 0x1007bb8e
push eax
call fcn.10065a14
mov dword [esp], 0x100990d8
push edi
mov dword [0x100b1d14], eax
call esi
push eax
call fcn.10065a14
mov dword [esp], 0x100990c4
push edi
mov dword [0x100b1d18], eax
call esi
push eax
call fcn.10065a14
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x100b1d1c], eax
call esi
push eax
call fcn.10065a14
pop ecx
mov dword [0x100b1d24], eax
test eax, eax
je 0x1007badd
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10065a14
pop ecx
mov dword [0x100b1d20], eax
mov eax, dword [0x100b1d20]
cmp eax, ebx
je 0x1007bb35
cmp dword [0x100b1d24], ebx
je 0x1007bb35
push eax
call fcn.10065a8f
push dword [0x100b1d24]
mov esi, eax
call fcn.10065a8f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1007bb35
test edi, edi
je 0x1007bb35
call esi
test eax, eax
je 0x1007bb2c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1007bb2c
test byte [ebp - 0xc], 1
jne 0x1007bb35
or dword [ebp + 0x10], 0x200000
jmp 0x1007bb6e
mov eax, dword [0x100b1d18]
cmp eax, ebx
je 0x1007bb6e
push eax
call fcn.10065a8f
pop ecx
test eax, eax
je 0x1007bb6e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1007bb6e
mov eax, dword [0x100b1d1c]
cmp eax, ebx
je 0x1007bb6e
push eax
call fcn.10065a8f
pop ecx
test eax, eax
je 0x1007bb6e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100b1d14]
call fcn.10065a8f
pop ecx
test eax, eax
je 0x1007bb8e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1007bb90
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002299d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.10022960
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10022a38
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x100503d4]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x10022a38
cmp eax, 1
je 0x10022a59
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10022a38
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x10022a05
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x10022a34
xor eax, eax
inc eax
jmp 0x10022a78
cmp edi, eax
jae 0x10022a3c
xor eax, eax
jmp 0x10022a78
cmp eax, esi
jae 0x10022a43
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x100503d4]
jmp 0x10022a5c
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002395c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x10023a4c
mov eax, 0x94
call fcn.10022960
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10023ac1
mov ecx, dword [esi + 0x10]
mov dword [0x100503d4], ecx
mov eax, dword [esi + 4]
mov dword [0x100503e0], eax
mov edx, dword [esi + 8]
mov dword [0x100503e4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x100503d8], esi
je 0x100239c7
or esi, 0x8000
mov dword [0x100503d8], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x100503dc], eax
call fcn.1002603b
test eax, eax
pop ecx
je 0x10023ac1
call fcn.1002787c
test eax, eax
jne 0x100239f4
call fcn.1002608c
jmp 0x10023ac1
call fcn.1002a1aa
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10051c90], eax
call fcn.1002a088
mov dword [0x100503c0], eax
call fcn.10029b69
test eax, eax
jl 0x10023a45
call fcn.10029fe6
test eax, eax
jl 0x10023a40
call fcn.10029db3
test eax, eax
jl 0x10023a40
push 0
call fcn.100242c0
test eax, eax
pop ecx
jne 0x10023a40
inc dword [0x100503bc]
jmp 0x10023ad2
call fcn.10029d67
call fcn.10027665
jmp 0x100239ea
test eax, eax
jne 0x10023a7c
cmp dword [0x100503bc], eax
jle 0x10023ac1
dec dword [0x100503bc]
cmp dword [0x10050410], eax
jne 0x10023a6b
call fcn.100243fe
call fcn.10029d67
call fcn.10027665
call fcn.1002608c
jmp 0x10023ad2
cmp eax, 2
jne 0x10023ac5
push 0x8c
push 1
call fcn.10025f66
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10023ac1
push esi
push dword [0x1004d6cc]
call dword [0x10050578]
test eax, eax
push esi
je 0x10023abb
call fcn.10027682
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x10023ad2
call fcn.10022369
pop ecx
xor eax, eax
jmp 0x10023ad5
cmp eax, 3
jne 0x10023ad2
push 0
call fcn.1002784d
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc

Function at 0x1002432a
Capabilities:
Terminate process

Disassembly:
push 8
push 0x10043a40
call fcn.10023c90
push 8
call fcn.1002625e
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x10050414], esi
jne 0x1002435e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x10050410], esi
mov al, byte [ebp + 0x10]
mov byte [0x1005040c], al
cmp dword [ebp + 0xc], edi
jne 0x100243a8
cmp dword [0x10051c88], edi
je 0x10024398
mov eax, dword [0x10051c84]
sub eax, 4
mov dword [0x10051c84], eax
cmp eax, dword [0x10051c88]
jb 0x10024398
mov eax, dword [eax]
cmp eax, edi
je 0x10024379
call eax
jmp 0x10024379
push 0x1004c094
mov eax, 0x1004c08c
call fcn.100242a8
pop ecx
push 0x1004c0a0
mov eax, 0x1004c098
call fcn.100242a8
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x100243d9
cmp dword [ebp + 0x10], edi
jne 0x100243e7
mov dword [0x10050414], esi
push dword [ebp + 8]
call fcn.10024266
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x100243e6
push 8
call fcn.100261a9
pop ecx
ret
call fcn.10023ccb
ret
Function at 0x1002a3b1
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x1004d334]
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 + 0x1004da08]
je 0x1002a3e6
inc eax
cmp eax, 0x13
jb 0x1002a3d7
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1004da08]
jne 0x1002a50c
mov eax, dword [0x100503c8]
cmp eax, 1
je 0x1002a4e4
cmp eax, edx
jne 0x1002a416
cmp dword [0x100503cc], 1
je 0x1002a4e4
cmp ecx, 0xfc
je 0x1002a50c
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 0x1002a44c
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.1002b650
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.10022c00
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1002a480
mov eax, edi
push eax
call fcn.10022c00
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x100443f0
push edi
call fcn.1002d4c0
add esp, 0x10
push edi
call fcn.10022c00
push dword [esi + 0x1004da0c]
mov ebx, eax
call fcn.10022c00
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10022960
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.1002b650
push edi
push ebx
call fcn.1002b660
push 0x100443d0
push ebx
call fcn.1002b660
push dword [esi + 0x1004da0c]
push ebx
call fcn.1002b660
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.1002e1da
add esp, 0x2c
jmp 0x1002a50c
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x1004da0c]
push dword [esi]
call fcn.10022c00
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.10023c25
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x1002bc90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x1002be64
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x10051920]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x1002be64
test cl, 0x48
je 0x1002bcfb
cmp byte [eax + 5], 0xa
je 0x1002bcfb
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1002bd4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x1002bd35
call fcn.10024adb
mov dword [eax], 9
call fcn.10024ae4
mov dword [eax], esi
jmp 0x1002bd45
cmp eax, 0x6d
je 0x1002be64
push eax
call fcn.10024aed
pop ecx
or eax, 0xffffffff
jmp 0x1002be66
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x1002be5f
test eax, eax
je 0x1002bd74
cmp byte [ebx], 0xa
jne 0x1002bd74
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x1002bd7d
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x1002be59
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x1002be49
cmp al, 0xd
je 0x1002bdaf
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x1002be3b
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x1002bdc9
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x1002bdc4
add dword [ebp + 0x10], 2
jmp 0x1002be1d
mov dword [ebp + 0x10], eax
jmp 0x1002be37
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
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 0x1002bdf1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1002be37
cmp dword [ebp - 0xc], 0
je 0x1002be37
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x1002be12
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x1002be1d
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x1002be3a
cmp ebx, dword [ebp + 0xc]
jne 0x1002be22
cmp byte [ebp - 1], 0xa
jne 0x1002be22
mov byte [ebx], 0xa
jmp 0x1002be3a
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1002c241
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x1002be3b
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x1002bd93
jmp 0x1002be59
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x1002be59
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x1002be66
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002bf16
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x1004d334]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x1002bf47
xor eax, eax
jmp 0x1002c0d0
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x10051920]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x1002bf83
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.1002e4c5
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x1002c05e
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x1002c09c
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x1002bfe7
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x1002bfd8
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x1002bfb8
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1002c027
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x1002c030
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x1002bfa9
jmp 0x1002c032
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x1002c0cb
cmp dword [ebp - 0x6c], edi
je 0x1002c09c
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x1002c091
call fcn.10024adb
mov dword [eax], 9
call fcn.10024ae4
mov dword [eax], esi
jmp 0x1002c0c6
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1002c086
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x1002c032
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x1002c032
push dword [ebp - 0x6c]
call fcn.10024aed
pop ecx
jmp 0x1002c0c6
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1002c0b4
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x1002c0b4
xor eax, eax
jmp 0x1002c0ce
call fcn.10024adb
mov dword [eax], 0x1c
call fcn.10024ae4
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x1002c0ce
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.10023c25
add ebp, 0x3a0
leave
ret
Function at 0x1002e1da
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x10050868], ebx
push esi
push edi
jne 0x1002e25a
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1002e295
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10044dbc
push edi
call esi
test eax, eax
mov dword [0x10050868], eax
je 0x1002e295
push 0x10044dac
push edi
call esi
push 0x10044d98
push edi
mov dword [0x1005086c], eax
call esi
cmp dword [0x100503d4], 2
mov dword [0x10050870], eax
jne 0x1002e25a
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x10050878], eax
je 0x1002e25a
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x10050874], eax
mov eax, dword [0x10050874]
test eax, eax
je 0x1002e29f
call eax
test eax, eax
je 0x1002e286
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x10050878]
test eax, eax
je 0x1002e286
test byte [ebp - 8], 1
jne 0x1002e29f
cmp dword [0x100503e0], 4
jb 0x1002e299
or byte [ebp + 0x12], 0x20
jmp 0x1002e2be
xor eax, eax
jmp 0x1002e2ce
or byte [ebp + 0x12], 4
jmp 0x1002e2be
mov eax, dword [0x1005086c]
test eax, eax
je 0x1002e2be
call eax
mov ebx, eax
test ebx, ebx
je 0x1002e2be
mov eax, dword [0x10050870]
test eax, eax
je 0x1002e2be
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x10050868]
pop edi
pop esi
pop ebx
leave
ret