joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c11a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3248
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4f8194]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
movzx eax, byte [edi + 0x6c]
push dword [esi + 0x18]
mov byte [esi + 0x6c], al
movzx eax, byte [edi + 0x6d]
mov byte [esi + 0x6d], al
mov dword [esi + 0x70], 0
mov eax, dword [edi + 0x74]
mov dword [esi + 0x74], eax
mov eax, dword [edi + 0x84]
mov dword [esi + 0x84], eax
movzx eax, byte [edi + 0x7c]
mov byte [esi + 0x7c], al
mov dword [esi + 0x80], 0
call fcn.004beb92
push dword [esi + 0x18]
mov dword [esi + 0x78], eax
push dword [edi + 0x78]
push eax
call sub.MSVCR120.dll_memcpy
mov eax, dword [edi + 0x70]
add esp, 0x10
test eax, eax
je 0x4c124d
sub eax, dword [edi + 0x78]
add eax, dword [esi + 0x78]
mov dword [esi + 0x70], eax
mov eax, dword [edi + 0x44]
mov dword [esi + 0x44], eax
mov eax, dword [edi + 0x6c]
mov dword [esi + 0x6c], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x40], eax
mov eax, dword [edi + 0x68]
mov dword [esi + 0x68], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 0x64]
mov dword [esi + 0x64], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x60]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x5c]
mov dword [esi + 0x5c], eax
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov eax, dword [edi + 0x58]
mov dword [esi + 0x58], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 0x54]
mov dword [esi + 0x54], eax
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x50]
mov dword [esi + 0x50], eax
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x4c], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x48]
mov dword [esi + 0x48], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x413420
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf000]
push edi
jmp 0x41343a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x413441
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x413430
mov eax, 1
add ebx, ebx
jne 0x413453
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x413464
jne 0x413483
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x413483
dec eax
add ebx, ebx
jne 0x413470
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x413448
add ebx, ebx
jne 0x41347f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4134d5
xor ecx, ecx
sub eax, 3
jb 0x41349b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41350a
sar eax, 1
mov ebp, eax
jmp 0x4134a6
add ebx, ebx
jne 0x4134a6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x413474
inc ecx
add ebx, ebx
jne 0x4134b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x413474
add ebx, ebx
jne 0x4134c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4134b6
jne 0x4134d2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4134b6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4134f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4134e6
jmp 0x413436
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4134f4
add edi, ecx
jmp 0x413436
pop esi
lea edi, [esi + 0x11000]
mov eax, dword [edi]
or eax, eax
je 0x413553
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x191c0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19224]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x413511
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19228]
or eax, eax
je 0x41354d
mov dword [ebx], eax
add ebx, 4
jmp 0x41352e
call dword [esi + 0x19238]
mov ebp, dword [esi + 0x1922c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x413587
sub esp, 0xffffff80
jmp 0x401690
Function at 0x100c526
Capabilities:
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
sub esp, 0xc
push ebx
push esi
push 8
xor esi, esi
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
cmp ebx, esi
jne 0x100c554
mov esi, 0xc000009a
jmp 0x100c5b2
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0100c473
test eax, eax
jl 0x100c5c3
mov edi, dword [ebp - 4]
cmp dword [edi + 0x14], esi
je 0x100c5c3
cmp dword [edi + 0x18], esi
jbe 0x100c597
mov eax, dword [edi + 0x14]
lea eax, [eax + esi*4]
cmp dword [eax], 0
je 0x100c591
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x100c5ba
inc esi
cmp esi, dword [edi + 0x18]
jb 0x100c575
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push 0
push dword [eax + 0x18]
mov esi, 0xc000000d
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x14
mov dword [ebx], esi
xor esi, esi
mov dword [ebx + 4], esi
jmp 0x100c5e0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.0101086c
mov esi, eax
test esi, esi
jl 0x100c597
mov eax, dword [ebp - 0xc]
mov dword [ebx], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, dword [ebp + 0x18]
mov dword [eax], 8
jmp 0x100c5b1
Function at 0x100d965
Capabilities:
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebx]
imul ecx, ecx, 0x14
push esi
push ecx
xor esi, esi
push esi
push dword [eax + 0x18]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, eax
mov dword [ebp - 8], ecx
cmp ecx, esi
jne 0x100d9a5
mov dword [ebp - 0xc], 0xc000009a
jmp 0x100da99
cmp byte [ebp + 0x18], 0
push edi
mov dword [ebp + 0xc], esi
je 0x100d9ef
mov dword [ebp + 0x18], esi
cmp dword [ebx], esi
jbe 0x100d9ef
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ecx
push 4
pop ecx
mov edi, 0x1001d64
mov esi, eax
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x100d9e0
mov edi, dword [ebp - 4]
inc dword [ebp + 0xc]
add dword [ebp - 4], 0x14
push 5
pop ecx
mov esi, eax
rep movsd dword es:[edi], dword [esi]
and dword [eax + 0x10], edx
inc dword [ebp + 0x18]
mov ecx, dword [ebp + 0x18]
add eax, 0x14
cmp ecx, dword [ebx]
jb 0x100d9bc
xor esi, esi
mov eax, dword [ebp + 0x14]
cmp eax, esi
jbe 0x100da5a
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0x10], ecx
mov dword [ebp - 4], eax
mov dword [ebp + 0x18], esi
cmp dword [ebx], esi
jbe 0x100da51
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
imul eax, eax, 0x14
add eax, dword [ebp - 8]
mov dword [ebp + 0x14], edi
cmp dword [edi + 0x10], esi
je 0x100da3e
mov esi, dword [ebp + 0x10]
push 4
pop ecx
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x100da3c
mov edx, dword [ebp + 0x14]
inc dword [ebp + 0xc]
push 5
mov edi, eax
pop ecx
mov esi, edx
rep movsd dword es:[edi], dword [esi]
add eax, 0x14
and dword [edx + 0x10], 0
xor esi, esi
inc dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
add edi, 0x14
mov dword [ebp + 0x14], edi
cmp ecx, dword [ebx]
jb 0x100da15
add dword [ebp + 0x10], 0x10
dec dword [ebp - 4]
jne 0x100d9ff
mov eax, dword [ebx]
imul eax, eax, 0x14
push eax
push esi
push dword [ebp + 8]
call sub.msvcrt.dll_memset
mov edi, dword [ebp + 0xc]
mov eax, edi
imul eax, eax, 0x14
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call sub.msvcrt.dll_memcpy
mov eax, dword fs:[0x18]
add esp, 0x18
push dword [ebp - 8]
mov dword [ebx], edi
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
leave
ret 0x14
Function at 0x100e358
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
mov ebx, 0x12000004
push ebx
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call fcn.010113c1
cmp eax, esi
mov dword [ebp - 0xc], eax
jl 0x100e442
push esi
lea eax, [ebp - 8]
push eax
push sym.imp.KERNEL32.dll_GetModuleFileNameW
push 0x800
call fcn.0101222d
cmp eax, esi
mov dword [ebp - 0xc], eax
jl 0x100e442
mov eax, dword [ebp - 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x100e3b3
mov ecx, dword [ebp - 4]
sub eax, edx
sar eax, 1
lea eax, [ecx + eax*2 + 2]
mov dword [ebp - 4], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push dword [ebp - 4]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
cmp edi, esi
jne 0x100e3f1
mov dword [ebp - 0xc], 0xc000009a
jmp 0x100e429
push dword [ebp - 4]
push esi
push edi
call sub.msvcrt.dll_memset
push dword [ebp - 8]
push dword [ebp - 0x10]
push 0x10018fc
push dword [ebp - 4]
push edi
call fcn.0100e0ff
add esp, 0x20
cmp eax, esi
mov dword [ebp - 0xc], eax
jl 0x100e429
push dword [ebp - 4]
push edi
push ebx
push dword [ebp + 8]
call fcn.0101b2be
mov dword [ebp - 0xc], eax
cmp edi, esi
je 0x100e441
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
cmp dword [ebp - 8], esi
je 0x100e45d
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0x10], esi
je 0x100e478
push dword [ebp - 0x10]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
leave
ret 4
Function at 0x100f58f
Capabilities:
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
xor eax, eax
push ebx
mov ebx, dword [ebp + 0x10]
inc eax
mov byte [ebp - 1], 0
mov dword [ebx + 4], ebx
mov dword [ebx], ebx
cmp dword [ebp + 8], eax
jbe 0x100f6cc
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi + eax*4]
movzx ecx, word [ecx]
cmp cx, 0x2f
je 0x100f5da
cmp cx, 0x2d
je 0x100f5da
inc eax
mov byte [ebp - 1], 1
cmp eax, dword [ebp + 8]
jb 0x100f5b6
jmp 0x100f6e3
cmp eax, dword [ebp + 8]
jae 0x100f6dd
lea ecx, [esi + eax*4]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ecx]
movzx ecx, word [ecx]
cmp cx, 0x2f
je 0x100f5fe
cmp cx, 0x2d
jne 0x100f6bd
and dword [ebp + 0x10], 0
inc eax
mov dword [ebp - 0x10], eax
mov edi, eax
jmp 0x100f620
mov eax, dword [esi + edi*4]
movzx eax, word [eax]
cmp ax, 0x2f
je 0x100f625
cmp ax, 0x2d
je 0x100f625
inc dword [ebp + 0x10]
inc edi
cmp edi, dword [ebp + 8]
jb 0x100f60a
mov ecx, dword [ebp + 0x10]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
lea ecx, [ecx*4 + 0x10]
push ecx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
je 0x100f6d4
mov eax, dword [ebp + 0x10]
lea eax, [eax*4 + 0x10]
push eax
push 0
push esi
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
add esp, 0xc
inc eax
inc eax
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xc], eax
test eax, eax
je 0x100f6a3
mov edi, dword [ebp - 0x10]
cmp edi, dword [ebp + 8]
jae 0x100f6a3
lea edx, [esi + 0x10]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + edi*4]
movzx ecx, word [eax]
cmp cx, 0x2f
je 0x100f6a3
cmp cx, 0x2d
je 0x100f6a3
mov dword [edx], eax
add edx, 4
inc edi
cmp edi, dword [ebp + 8]
jb 0x100f683
mov eax, dword [ebx + 4]
cmp edi, dword [ebp + 8]
mov dword [esi + 4], eax
mov dword [esi], ebx
mov dword [eax], esi
mov dword [ebx + 4], esi
mov esi, dword [ebp + 0xc]
mov eax, edi
jmp 0x100f5dd
mov dword [ebp - 8], 0xc000000d
push ebx
call fcn.0100f4f8
pop edi
pop esi
mov eax, dword [ebp - 8]
pop ebx
leave
ret 0xc
mov dword [ebp - 8], 0xc000009a
jmp 0x100f6c4
cmp byte [ebp - 1], 0
je 0x100f6ff
push 0x1001498
call fcn.0100f4b7
test al, al
jne 0x100f6ff
push 0x100148c
call fcn.0100f4b7
test al, al
je 0x100f6bd
cmp dword [ebp + 8], 1
jbe 0x100f6ca
mov eax, dword [esi + 4]
movzx eax, word [eax]
cmp ax, 0x2f
je 0x100f6ca
cmp ax, 0x2d
je 0x100f6ca
push 0x1001498
call fcn.0100f4b7
test al, al
jne 0x100f733
push 0x100148c
call fcn.0100f4b7
test al, al
je 0x100f6ca
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0x10
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, eax
test ecx, ecx
je 0x100f6d4
xor eax, eax
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
and dword [ecx + 0xc], 0
mov dword [ecx + 8], eax
mov eax, dword [ebx]
mov dword [ecx], eax
mov dword [ecx + 4], ebx
mov dword [eax + 4], ecx
mov dword [ebx], ecx
jmp 0x100f6ca
Function at 0x10104c7
Capabilities:
Check for peb beingdebugged flag
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1025050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x1010510
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1010516
mov ebx, 0xc0000001
jmp 0x101056f
lea edi, [ebp - 0x20c]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x101051b
mov ecx, dword fs:[0x18]
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
mov eax, dword [ecx + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esi], eax
test eax, eax
jne 0x1010550
mov ebx, 0xc000009a
jmp 0x101056f
mov ecx, edi
lea esi, [ecx + 2]
mov dx, word [ecx]
inc ecx
inc ecx
test dx, dx
jne 0x1010555
sub ecx, esi
sar ecx, 1
push edi
inc ecx
push ecx
push eax
call fcn.01012a9c
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.010125ff
leave
ret 8

Function at 0x1010587
Capabilities:
Check for peb beingdebugged flag
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x1025050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, 0x1001c44
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
push 0x43
mov dword [ebp - 0x90], eax
movsw word es:[edi], word [esi]
pop eax
mov esi, 0xc000000e
mov word [ebp - 0xc], ax
push 0x40
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x10105f2
lea eax, [ebp - 0x8c]
push eax
push dword [ebp - 0x90]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x10105ff
inc word [ebp - 0xc]
cmp word [ebp - 0xc], 0x5a
jbe 0x10105c2
jmp 0x101065f
lea eax, [ebp - 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1010605
mov ecx, dword fs:[0x18]
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
mov eax, dword [ecx + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebx], eax
test eax, eax
jne 0x101063a
mov esi, 0xc000009a
jmp 0x101065f
lea ecx, [ebp - 0xc]
lea esi, [ecx + 2]
mov dx, word [ecx]
inc ecx
inc ecx
test dx, dx
jne 0x1010640
sub ecx, esi
sar ecx, 1
lea edx, [ebp - 0xc]
push edx
inc ecx
push ecx
push eax
call fcn.01012a9c
add esp, 0xc
xor esi, esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.010125ff
leave
ret 8
Function at 0x1010b3f
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x1010c44
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor esi, esi
cmp edi, esi
jne 0x1010b7d
call ebx
test eax, eax
jne 0x1010c41
and edi, 0xffff7fff
cmp edi, 2
jne 0x1010bc8
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
jne 0x1010ba0
call ebx
cmp eax, 6
je 0x1010bc8
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1010ba6
push esi
sub eax, edx
lea ecx, [ebp - 0x10]
push ecx
sar eax, 1
push eax
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x1010c41
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
push esi
push eax
call edi
mov ebx, eax
cmp ebx, esi
je 0x1010c41
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 8], eax
cmp eax, esi
je 0x1010c41
push esi
push esi
push ebx
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
push dword [ebp - 0xc]
call edi
cmp eax, esi
je 0x1010c2b
push esi
lea ecx, [ebp - 0x10]
push ecx
dec eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10125f0
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1023f08
call fcn.01013074
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1025728
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1012405
cmp eax, esi
jne 0x10123f8
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1012408
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10123df
xor esi, esi
inc esi
mov eax, dword [0x1025724]
cmp eax, esi
jne 0x101241b
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1012456
mov eax, dword [0x1025724]
test eax, eax
jne 0x1012450
mov dword [0x1025724], esi
push 0x100129c
push 0x1001290
call fcn.0101235c
pop ecx
pop ecx
test eax, eax
je 0x1012456
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1012520
mov dword [0x10253d8], esi
mov eax, dword [0x1025724]
cmp eax, esi
jne 0x101247a
push 0x100128c
push 0x1001284
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1025724], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1012487
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1025730], ebx
je 0x10124a8
push 0x1025730
call fcn.01012fe9
pop ecx
test eax, eax
je 0x10124a8
push ebx
push 2
push ebx
call dword [0x1025730]
push dword [0x10253c0]
push dword [0x10253c4]
push dword [0x10253bc]
call fcn.010121e0
add esp, 0xc
mov dword [0x10253d4], eax
cmp dword [0x10253c8], ebx
jne 0x1012506
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x10253d8], ebx
jne 0x1012514
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10253d4]
call fcn.010130b9
ret
call fcn.010131c1
jmp 0x10123bd
Function at 0x1015612
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp esi, ebx
jne 0x1015641
call dword [sym.imp.msvcrt.dll__errno]
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.010127c8
add esp, 0x14
jmp 0x101571f
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x101571f
test al, 0x40
jne 0x101571f
test al, 2
je 0x1015663
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x101571f
or eax, 1
mov dword [esi + 0xc], eax
test eax, 0x10c
je 0x1015623
push dword [esi + 0x18]
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.msvcrt.dll__fileno]
push eax
push esi
mov dword [esi], eax
call edi
pop ecx
push eax
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
mov dword [esi + 4], eax
cmp eax, ebx
je 0x101570f
cmp eax, 0xffffffff
je 0x101570f
test byte [esi + 0xc], 0x82
jne 0x10156e4
push esi
call edi
pop ecx
cmp eax, 0xffffffff
je 0x10156cf
push esi
call edi
pop ecx
cmp eax, 0xfffffffe
je 0x10156cf
push esi
call edi
mov ecx, dword [sym.imp.msvcrt.dll___pioinfo]
sar eax, 5
push esi
lea ebx, [ecx + eax*4]
call edi
and eax, 0x1f
imul eax, eax, 0x24
add eax, dword [ebx]
pop ecx
pop ecx
jmp 0x10156d4
mov eax, dword [sym.imp.msvcrt.dll___badioinfo]
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x10156e4
or dword [esi + 0xc], 0x2000
cmp dword [esi + 0x18], 0x200
jne 0x1015702
mov eax, dword [esi + 0xc]
test al, 8
je 0x1015702
test eax, 0x400
jne 0x1015702
mov dword [esi + 0x18], 0x1000
mov ecx, dword [esi]
dec dword [esi + 4]
movzx eax, byte [ecx]
inc ecx
mov dword [esi], ecx
jmp 0x1015722
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [esi + 0xc], eax
mov dword [esi + 4], ebx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret