joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006699
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi], edi
jne 0x1006753
cmp dword [esi + 4], edi
jne 0x1006753
push ebx
xor ebx, ebx
call sub.cmutil.dll_GetOSVersion
cmp eax, 2
jne 0x10066d0
call sub.cmutil.dll_GetOSMajorVersion
cmp eax, 5
jb 0x10066d0
push 0x1001dac
jmp 0x10066d5
push 0x1001d88
push edi
push 6
call dword [0x1009170]
cmp eax, edi
mov dword [esi], eax
je 0x1006736
push edi
push edi
push edi
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 4], eax
jne 0x1006703
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
jmp 0x1006736
call sub.cmutil.dll_GetOSVersion
cmp eax, 2
jne 0x100671e
call sub.cmutil.dll_GetOSMajorVersion
cmp eax, 5
jb 0x100671e
push 0x1001d58
jmp 0x1006723
push 0x1001d34
push edi
push 0xe0000000
call dword [0x100917c]
cmp eax, edi
mov dword [esi + 0xc], eax
jne 0x100674e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, edi
jle 0x100674e
and ebx, 0xffff
or ebx, 0x80070000
mov eax, ebx
pop ebx
jmp 0x1006758
mov eax, 0x80070005
pop edi
pop esi
ret

Function at 0x402106
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
push 0x404075
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
sub esp, 0xe
mov byte [esp], 0x6d
mov byte [esp + 1], 0x63
mov byte [esp + 2], 0x69
mov byte [esp + 3], 0x53
mov byte [esp + 4], 0x65
mov byte [esp + 5], 0x6e
mov byte [esp + 6], 0x64
mov byte [esp + 7], 0x53
mov byte [esp + 8], 0x74
mov byte [esp + 9], 0x72
mov byte [esp + 0xa], 0x69
mov byte [esp + 0xb], 0x6e
mov byte [esp + 0xc], 0x67
mov byte [esp + 0xd], 0x41
mov byte [esp + 0xe], 0
lea eax, [esp]
push eax
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x4060ec], eax
leave
ret

Function at 0x403576
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
push 0x40
push ebx
push eax
call dword [sym.imp.kernel32.dll_VirtualProtect]
ret
Function at 0x43b400
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x36000]
push edi
jmp 0x43b41a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x43b421
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x43b410
mov eax, 1
add ebx, ebx
jne 0x43b433
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x43b428
jne 0x43b444
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43b428
xor ecx, ecx
sub eax, 3
jb 0x43b458
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43b4ca
mov ebp, eax
add ebx, ebx
jne 0x43b463
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x43b470
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43b494
inc ecx
add ebx, ebx
jne 0x43b480
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43b475
jne 0x43b491
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43b475
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43b4b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43b4a5
jmp 0x43b416
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43b4b4
add edi, ecx
jmp 0x43b416
pop esi
mov edi, esi
mov ecx, 0x24a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43b4d2
cmp byte [edi], 1
jne 0x43b4d2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x43b4d7
lea edi, [esi + 0x39000]
mov eax, dword [edi]
or eax, eax
je 0x43b54f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3ca14]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3cac8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43b504
mov ecx, edi
jns 0x43b533
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3cacc]
or eax, eax
je 0x43b549
mov dword [ebx], eax
add ebx, 4
jmp 0x43b521
call dword [esi + 0x3cadc]
mov ebp, dword [esi + 0x3cad0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x43b583
sub esp, 0xffffff80
jmp 0x40323c
Function at 0x427500
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1e000]
push edi
or ebp, 0xffffffff
jmp 0x427522
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x427529
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x427518
mov eax, 1
add ebx, ebx
jne 0x42753b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x427530
jne 0x42754c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x427530
xor ecx, ecx
sub eax, 3
jb 0x427560
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4275d2
mov ebp, eax
add ebx, ebx
jne 0x42756b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x427578
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42759c
inc ecx
add ebx, ebx
jne 0x427588
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42757d
jne 0x427599
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42757d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4275bc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4275ad
jmp 0x42751e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4275bc
add edi, ecx
jmp 0x42751e
pop esi
mov edi, esi
mov ecx, 0xce
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4275da
cmp byte [edi], 6
jne 0x4275da
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4275df
lea edi, [esi + 0x25000]
mov eax, dword [edi]
or eax, eax
je 0x42764e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x281dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x28218]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42760c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2821c]
or eax, eax
je 0x427648
mov dword [ebx], eax
add ebx, 4
jmp 0x427629
call dword [esi + 0x28224]
mov ebp, dword [esi + 0x28220]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x427682
sub esp, 0xffffff80
jmp 0x403861
Function at 0x1248058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.012481a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x124807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x124806a
add dl, dl
jne 0x1248089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x12480dc
xor eax, eax
add dl, dl
jne 0x1248096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x124817d
add dl, dl
jne 0x12480a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x12480b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x12480bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x12480c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x12480d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1248075
mov eax, 1
add dl, dl
jne 0x12480ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x12480f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x12480e1
sub eax, ebx
mov ebx, 1
jne 0x1248128
mov ecx, 1
add dl, dl
jne 0x124810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1248119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1248105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1248075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x124813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x124814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1248136
cmp eax, 0x7d00
jae 0x124816d
cmp eax, 0x500
jb 0x1248168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1248075
cmp eax, 0x7f
ja 0x1248170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1248075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x124819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1248075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40c5d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x210
mov ebx, dword [ebp + 8]
mov eax, dword [0x43300c]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x21a]
push 0x20a
push 0
push edi
call fcn.0040f9d0
add esp, 0xc
push ebx
call fcn.0040d0bb
add esp, 4
xor esi, esi
cmp eax, 0x104
ja 0x40c63e
mov esi, dword [ebp + 0xc]
push 0x104
push ebx
push edi
call fcn.0040d26d
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
cmp eax, 3
sete cl
mov dword [esi], ecx
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040dac1
mov eax, esi
add esp, 0x210
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40e1f0
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
pushal
push ebp
mov ebp, esp
sub esp, 0x108
mov dword [ebp - 8], 1
mov eax, 0xd
xor ecx, ecx
inc ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 6
mov dword [ebp - 0x34], 0xc
mov eax, 0x6c
mov ecx, 0xc
mov edx, 0x2aaaaaab
push ecx
mov ecx, eax
imul edx
sar edx, 1
sar ecx, 0x1f
sub edx, ecx
mov eax, edx
pop ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x54], 0x158
mov dword [ebp - 0x44], 0xa245cec8
mov eax, 0x325a
mul dword [ebp - 0x54]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0x13d4
add dword [ebp - 0x1c], 0x423a
add dword [ebp - 0x1c], 0x333f2
mov dword [ebp - 0x48], 0x26fb
dec dword [ebp - 0x44]
add dword [ebp - 0x18], 0x12
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0xc]
sub eax, 0xf
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x48]
sub dword [ebp - 0x18], eax

Function at 0x40e2d4
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push dword [ecx]
sal bh, cl
int1
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x58], eax
mov eax, 0x27
mov ecx, dword [ebp - 0x14]
cdq
idiv ecx
mov edi, eax
add edi, dword [ebp - 0x48]
mov dword [ebp - 0x24], edi
invalid

Function at 0x41cb59
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041cda4

Function at 0x41f379
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041f384
Function at 0x10003b9d
Capabilities:
Encode data using xor

Disassembly:
add byte [0x867092bb], ah
imul byte [ebp + 0x4b37535b]
mov bh, 0xaa
bound eax, qword [ebp - 0x39]
or dh, byte [ecx]
xor dword [edx], ebx
mov dh, 0x3a
add bh, dl
xor dword [edi], ebx
mov dh, 0x91
xchg ecx, eax
add esi, esi
mov edi, 0x714e833b
or dword [esi + 0x71], 0xffffff96
mov eax, dword [0x50169e83]
mov word [edx - 0x681aab2c], ds
invalid
aam 0x54
in eax, 0x97
jb 0x10003b73
test eax, 0x95c025a1
mov bh, 0xbc
loop 0x10003b43
pop esp

Function at 0x100054c5
Capabilities:
Encode data using xor

Disassembly:
sal byte [ecx], 0x7a
rol byte [edx - 0x2d], 0x74
sal dword [edx + ecx*8 + 0x1c], cl
invalid

Function at 0x10006e7e
Capabilities:
Encode data using xor

Disassembly:
cmp eax, 0x1bc0698e
imul ecx, esp, 0xffffff80
xor al, 0xad
je 0x10006e3e
cld
test ax, 0x9518
xchg ebp, eax
xchg dword [0x9f0e2ddb], edx
outsd dx, dword [esi]
and eax, 0x96088341
or dword [eax], 0xffffff96
xchg esi, eax
cmpsb byte [esi], byte es:[edi]
or dh, byte [edx]
mov byte [0x79b4b51d], al
mov ah, 0x79
jge 0x10006e13
cmp ah, al
Function at 0x10003960
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100df00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x24], edx
push edi
xor ebx, ebx
push ebx
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x10003adc
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10003a77
mov ebx, 1
cmp dword [ebp - 0x20], 0x10
jb 0x10003a3a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x10003a3a
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10003a3a
mov edx, dword [esi]
test edx, edx
jne 0x10003a06
push 0x200
push edx
push dword [0x100e1a24]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10003a5f
jmp 0x10003a2e
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x10003a2e
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x100e1a24]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10003a5f
mov dword [esi], edx
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x100039c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x10003a77
mov eax, dword [esi]
xor ebx, ebx
test eax, eax
je 0x10003a77
push eax
push ebx
push dword [0x100e1a24]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x10003adc
cmp dword [esi], 0
je 0x10003ac9
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x10003ac9
nop
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10003ac3
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.100037f0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x10003a90
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a6425
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 9
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a6425
mov esp, ebp
pop ebp
ret
Function at 0x10003b00
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx], 0
je 0x10003b4c
push esi
xor esi, esi
cmp dword [ebx + 8], esi
jbe 0x10003b3b
push edi
mov eax, dword [ebx]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10003b34
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebx + 8]
jb 0x10003b11
pop edi
push dword [ebx]
push 0
push dword [0x100e1a24]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebx
ret

Function at 0x10003b50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100df00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x100e7fc0]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10003bb1
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a6425
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x10003bd2
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x10003bf3
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x10003bf3
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x10003bed
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x10003bf3
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, byte [esi + 0x14]
and bl, 1
and cl, 0xfd
mov al, bl
add al, al
shl bl, 2
or cl, al
xor eax, eax
and cl, 0xfb
or cl, bl
mov byte [esi + 0x14], cl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a6425
mov esp, ebp
pop ebp
ret
Function at 0x100058d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x10005903
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push dword [ebp + 8]
push 0x10005750
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10005903
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ebp
ret 0xc

Function at 0x10006100
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x100df00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, 0xffff
mov esi, ecx
cmp bx, di
jne 0x10006137
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a6425
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x1000616d
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x1000616d
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_protected:_wchar_t____thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::_Pninc_void_]
mov word [eax], di
mov ax, di
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a6425
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10006242
mov ecx, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [ecx], eax
jne 0x1000619a
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
sar edx, 1
mov dword [eax], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100061cf
push dword [esi + 0x4c]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
add esp, 8
cmp ax, bx
movzx eax, di
jne 0x10006245
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a6425
mov esp, ebp
pop ebp
ret 4
movzx eax, di
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet___wchar_t_const___wchar_t_const___wchar_t_const____char___char___char___const]
sub eax, 0
je 0x1000620e
sub eax, 1
je 0x1000620e
sub eax, 2
jne 0x10006242
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x100061a5
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x34], eax
je 0x10006232
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x34], eax
jne 0x10006242
lea ecx, [ebp - 0x28]
movzx eax, di
cmp dword [ebp - 0x30], ecx
mov byte [esi + 0x3e], 1
cmovne ebx, eax
mov ax, bx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a6425
mov esp, ebp
pop ebp
ret 4
Function at 0x10006670
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x1000669c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x100066c4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x100066ca
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x10006732
jg 0x100066e1
test esi, esi
je 0x10006732
test ecx, ecx
jl 0x1000672d
jg 0x100066eb
test eax, eax
je 0x1000672d
cmp edi, ecx
jg 0x100066ff
jl 0x100066f5
cmp esi, eax
jae 0x100066ff
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x10006735
mov ecx, dword [ebp + 8]
jmp 0x1000673f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x10006759
jg 0x1000673f
test esi, esi
je 0x10006759
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10006759
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc