joyce8/EMBER2024-capa huggingface dataset:
Function at 0x78f0fe
Capabilities:
Execute anti-debugging instructions

Disassembly:
not bh
cpuid
setbe dl
xchg cl, bh
not cx
xchg edx, ebx
jmp 0x78f062
lea ecx, [esi*4]
btr ecx, esp
bsf dx, ax
pop bp
mov dh, byte [esp + 0x1f]
jmp 0x78f01a
xchg byte [esp + 0x2a], ch
rdtsc
bswap ebp
xchg byte [esp + 0x1a], bl
lea esi, [edx + 0xd5]
push dword [esp + 1]
jmp 0x78f030
std
lea edx, [edx*4]
setg ch
push di
xchg byte [esp + 0x25], bh
cpuid
jmp 0x78f0c6
xchg ch, dh
sub esp, 0x19
lea edx, reloc.SHELL32.dll_ShellExecuteW
push word [esp]
xchg al, bh
pop edi
jmp 0x78f04a
sub esp, 0x13
push si
lea esp, [esp + 0xc]
lea eax, [eax*4]
jmp 0x78f0db
push word [esp + 1]
setp ah
xchg word [esp + 0xa], ax
mov byte [esp + 3], ch
setnp ch
xchg ecx, ebp
jmp 0x78f08f
pop word [esp + 0x10]
bsf ebx, ecx
rdtsc
setg ah
mov ax, word [esp + 0x24]
popal
jmp 0x78f0a5
add esp, 0x15
bsr si, bp
xchg word [esp + 1], bp
sbb esi, ebp
mov dx, 0xb732
mov bh, byte [esp]
jmp 0x78f11a
jmp 0x78f07b
cpuid
mov dh, byte [esp]
lea edx, reloc.SHELL32.dll_ShellExecuteW
call fcn.0078f131
push dword [edx - 0x20]
xchg dword [edx - 0x6f], esi
xchg word [esp], si
xchg word [esp], si
lea edx, [ebx*4]
bsr dx, si
rdtsc
clc
bsr ecx, edi
jmp 0x78f103

Function at 0x78f17a
Capabilities:
Execute anti-debugging instructions

Disassembly:
clc
xchg word [esp + 4], ax
rdtsc
btc esi, eax
mov edi, ebp
xchg si, bx
jmp 0x78f1a6
xchg di, si
lea esi, [edx*4]
xchg word [esp + 9], ax
bsr ebx, ecx
pop bp
jmp 0x78f164
not si
mov ebp, dword [esp + 6]
add esp, 5
push word [esp + 3]
jmp 0x78f1bc
mov bl, 0x24
mov ebp, edi
bsr di, sp
sub esp, 1
mov eax, dword [esp + 0xa]
pop word [esp + 3]
jmp 0x78f190
add esp, 4
mov word [esp], di
mov al, byte [esp + 1]
add esp, 1
xchg byte [esp], al
jmp 0x78f9ec
cpuid
not ecx
add esp, 0xc
mov dword [esp + 2], ecx
mov ax, 0xe5ec
add esp, 8
jmp 0x78f1dd
pop word [esp + 0x10]
dec al
add bx, 0x14a9
pop dword [esp + 0xd]
shr di, cl
dec bx
jmp 0x78f1f3
btc edi, esi
xchg word [esp + 5], cx
xchg ecx, eax
bswap ebx
rcl ebx, cl
mov bl, byte [esp + 0x12]
jmp 0x78f20e
mov ah, byte [esp]
sete dh
add esp, 0
sub esp, 0x1a
neg al
xchg dword [esp + 0xd], edx
jmp 0x78f23c
mov byte [esp], ah
lea esp, [esp]
lea esi, [edx*4]
mov dh, byte [esp]
lea ebp, [eax + ecx]
lea esi, [edi*4]
jmp 0x78f270
mov byte [esp], dh
cpuid
dec eax
mov al, byte [esp]
lea edx, [ecx + esi]
mov ax, word [esp]
jmp 0x78f3e3
Function at 0x10003720
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
movzx ecx, word [edx + 0x14]
lea edx, [eax + ecx + 0x18]
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0
jmp 0x10003762
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x28
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
movzx ecx, word [eax + 6]
cmp dword [ebp - 4], ecx
jge 0x10003866
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x10], 0
jne 0x100037e3
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
jle 0x100037de
push 4
push 0x1000
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100037b7
xor eax, eax
jmp 0x1000386b
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
add eax, dword [edx + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.10003520
add esp, 0xc
jmp 0x10003750
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp - 0x14]
add eax, dword [ecx + 0x10]
push eax
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.100036f0
test eax, eax
jne 0x10003804
xor eax, eax
jmp 0x1000386b
push 4
push 0x1000
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
add eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1000382f
xor eax, eax
jmp 0x1000386b
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
add edx, dword [ecx + 0xc]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.10003570
add esp, 0xc
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov dword [edx + 8], eax
jmp 0x10003750
mov eax, 1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10019439
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x1001948c
call fcn.1003beab
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x1001948c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x10019482
xor eax, eax
jmp 0x100195a5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x100194bc
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x100194bc
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x100195a2
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x100194e9
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.1001ac71
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x100195a2
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x10019532
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x10019532
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x1001952c
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.1001ac71
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x10019592
and dword [ebp + 0xc], 0
jmp 0x10019592
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x10019592
push 0xc
call fcn.10030adc
mov esi, eax
test esi, esi
pop ecx
je 0x10019574
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x10019576
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x1001958d
push dword [ebp - 8]
call fcn.100303b9
jmp 0x10019592
call fcn.10030390
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x100194f7
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
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 [0x100503b4]
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 [0x100503b4]
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 [0x100503b4], ecx
mov eax, dword [esi + 4]
mov dword [0x100503c0], eax
mov edx, dword [esi + 8]
mov dword [0x100503c4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x100503b8], esi
je 0x100239c7
or esi, 0x8000
mov dword [0x100503b8], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x100503bc], 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 [0x10051c70], eax
call fcn.1002a088
mov dword [0x100503a0], 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 [0x1005039c]
jmp 0x10023ad2
call fcn.10029d67
call fcn.10027665
jmp 0x100239ea
test eax, eax
jne 0x10023a7c
cmp dword [0x1005039c], eax
jle 0x10023ac1
dec dword [0x1005039c]
cmp dword [0x100503f0], 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 [0x1004d6bc]
call dword [0x10050558]
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 [0x100503f4], 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 [0x100503f0], esi
mov al, byte [ebp + 0x10]
mov byte [0x100503ec], al
cmp dword [ebp + 0xc], edi
jne 0x100243a8
cmp dword [0x10051c68], edi
je 0x10024398
mov eax, dword [0x10051c64]
sub eax, 4
mov dword [0x10051c64], eax
cmp eax, dword [0x10051c68]
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 [0x100503f4], 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 [0x1004d324]
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 + 0x1004d9f8]
je 0x1002a3e6
inc eax
cmp eax, 0x13
jb 0x1002a3d7
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1004d9f8]
jne 0x1002a50c
mov eax, dword [0x100503a8]
cmp eax, 1
je 0x1002a4e4
cmp eax, edx
jne 0x1002a416
cmp dword [0x100503ac], 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 + 0x1004d9fc]
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 + 0x1004d9fc]
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 + 0x1004d9fc]
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 + 0x10051900]
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 [0x1004d324]
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 + 0x10051900]
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 [0x10050848], 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 [0x10050848], eax
je 0x1002e295
push 0x10044dac
push edi
call esi
push 0x10044d98
push edi
mov dword [0x1005084c], eax
call esi
cmp dword [0x100503b4], 2
mov dword [0x10050850], eax
jne 0x1002e25a
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x10050858], eax
je 0x1002e25a
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x10050854], eax
mov eax, dword [0x10050854]
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 [0x10050858]
test eax, eax
je 0x1002e286
test byte [ebp - 8], 1
jne 0x1002e29f
cmp dword [0x100503c0], 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 [0x1005084c]
test eax, eax
je 0x1002e2be
call eax
mov ebx, eax
test ebx, ebx
je 0x1002e2be
mov eax, dword [0x10050850]
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 [0x10050848]
pop edi
pop esi
pop ebx
leave
ret