joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4995f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x4f6014]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x49966c
mov eax, dword [ebp + 8]
cmp dword [0x50b15c], eax
jg 0x49966c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
mov dword [ebp - 0x1c], esi
add esi, ebx
nop dword [eax]
cmp ebx, esi
jae 0x49965b
mov dword [ebp - 0x18], 0
mov eax, esi
sub eax, ebx
push 0
lea ecx, [ebp - 0x18]
push ecx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x49965b
mov eax, dword [ebp - 0x18]
add ebx, eax
test eax, eax
jne 0x499630
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
mov eax, dword [ebp + 0xc]
je 0x49966c
cmp byte [ecx + eax - 1], 0xa
jne 0x499684
cmp dword [ebp + 8], 3
je 0x4996d1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a8de3
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, 0x4e3c0a
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
lea ebx, [ebp - 0x14]
nop word cs:[eax + eax]
cmp edi, 0x4e3c0b
jae 0x49966c
mov dword [ebp - 0x14], 0
mov eax, 0x4e3c0b
sub eax, edi
push 0
push ebx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x49966c
mov eax, dword [ebp - 0x14]
add edi, eax
test eax, eax
jne 0x4996a0
jmp 0x49966c
int3
Function at 0x49d92e
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edx, dword [ebp + 0x2c]
mov eax, dword [ebp + 8]
mov ecx, dword [0x4f6014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov dword [edx], 0xffffffff
mov esi, 5
cmp eax, 3
jne 0x49d9cf
mov edx, dword [ebp + 0x28]
mov esi, dword [ebp + 0x10]
cmp byte [esi + 0xb], 0
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
jns 0x49d972
mov esi, dword [esi]
mov ebx, dword [ebx]
push 0
push edx
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push ecx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp eax, 0xffffffff
je 0x49d9bc
mov esi, eax
lea eax, [ebp - 0x14]
mov dword [eax], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edi, edi
push 3
push edi
push edi
lea ecx, [ebp - 0x14]
push ecx
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
cmp eax, 1
sbb edi, edi
lea eax, [ebp - 0x14]
or edi, dword [eax]
jmp 0x49d9bf
xor edi, edi
dec edi
mov eax, dword [ebp + 0x2c]
mov dword [eax], edi
xor eax, eax
cmp edi, 0xffffffff
sete al
lea esi, [eax + eax*4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a8de3
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x49fc9e
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x68
mov ebx, ecx
mov al, byte [ebp + 8]
mov ecx, dword [0x4f6014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
test al, al
je 0x49fcee
xor edi, edi
inc edi
mov esi, 0x4ef2e0
mov ecx, ebx
push 0
push 0x4a25d0
push edi
push str.NtMapViewOfSection
push esi
call fcn.0049f736
mov ecx, ebx
push edi
push 0x4a2810
push edi
push str.NtUnmapViewOfSection
push esi
call fcn.0049f736
jmp 0x49fcf8
cmp dword [ebx + 0xc], 0
je 0x49fe55
mov eax, dword [ebx]
test eax, eax
je 0x49fe6d
mov edi, dword [eax]
sub esp, 0x14
movdqa xmm0, xmmword [0x4ef2c0]
movdqu xmmword [esp + 4], xmm0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x6c], eax
mov esi, dword [ebx + 0xc]
shl esi, 6
lea eax, [esi + 0x50]
mov dword [ebp - 0x70], eax
push eax
call fcn.0049f504
add esp, 4
mov dword [ebp - 0x74], ebx
mov ebx, eax
mov eax, 0xfffff000
mov ecx, ebx
and ecx, eax
add ecx, dword [ebp - 0x6c]
add esi, 0x104f
and esi, eax
push 0x40
push 0x1000
push esi
push ecx
mov dword [ebp - 0x6c], edi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test eax, eax
je 0x49fe70
mov edi, eax
and ebx, 0xfff
add edi, ebx
pcmpeqd xmm0, xmm0
lea esi, [ebp - 0x60]
movdqu xmmword [esi + 8], xmm0
xor eax, eax
dec eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x48], eax
movdqu xmmword [esi + 0x38], xmm0
movdqu xmmword [esi + 0x28], xmm0
movdqu xmmword [esi + 0x18], xmm0
mov eax, dword [ebp - 0x70]
mov dword [esi], eax
mov dword [esi + 0xc], 0
mov dword [esi + 4], 0x10
pxor xmm0, xmm0
movdqu xmmword [0x50b184], xmm0
movdqu xmmword [0x50b194], xmm0
movdqu xmmword [0x50b1a4], xmm0
movdqu xmmword [0x50b1b4], xmm0
movdqu xmmword [0x50b1c4], xmm0
movdqu xmmword [0x50b1d4], xmm0
movdqu xmmword [0x50b1e0], xmm0
mov ecx, dword [ebp - 0x74]
push esi
push eax
push edi
call fcn.004a0140
mov ebx, eax
test eax, eax
jne 0x49fe57
lea eax, [ebp - 0x64]
mov dword [eax], 0xffffffff
push eax
push 0x10
push esi
push edi
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebx, 0x2a
test eax, eax
je 0x49fe57
cmp dword [ebp - 0x64], 0x10
jne 0x49fe57
lea eax, [ebp - 0x68]
mov dword [eax], 0xffffffff
push eax
push 0x20
push dword [ebp - 0x70]
push edi
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
test ecx, ecx
je 0x49fe73
push 0x6c
push 0x50b184
push str.g_originals
call fcn.004938dc
mov ebx, eax
jmp 0x49fe57
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a8de3
mov eax, ebx
add esp, 0x68
pop esi
pop edi
pop ebx
pop ebp
ret 4
int3
int3
int3
Function at 0x4a7b1e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, dword [ebp + 0x20]
mov ebx, dword [ebp + 8]
movups xmm0, xmmword [ebp + 0xc]
mov eax, dword [ebp + 0x1c]
xor edx, edx
mov dword [edi], edx
mov ecx, dword [ebx]
sub esp, 0x1c
mov dword [esp + 0x18], eax
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], edx
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x4a7b7d
mov esi, eax
mov ebx, dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 3
xor ecx, ecx
push ecx
push ecx
push edi
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea eax, [ecx + ecx*4]
pop esi
pop edi
pop ebx
pop ebp
ret
pop esi
pop edi
pop ebx
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x4b7b97
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004b7d3a
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4b7d0f
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4b7d0f
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4b7cbe
jg 0x4b7bf0
test eax, eax
je 0x4b7cb4
push 1
push 0x1000
call fcn.00453490
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4b7c16
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4b7cab
push 0x8000
push ebx
call fcn.004bc943
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4b7c42
jg 0x4b7c3d
cmp ecx, 0x1000
jb 0x4b7c42
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004bfb4b
add esp, 0x10
cmp eax, 0xffffffff
je 0x4b7c87
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4b7c3d
jl 0x4b7c6e
test ecx, ecx
jne 0x4b7c2f
push dword [ebp - 0xc]
push ebx
call fcn.004bc943
push esi
call fcn.00453410
add esp, 0xc
xor edi, edi
jmp 0x4b7d20
cmp byte [edi + 0x24], 0
je 0x4b7c9e
cmp dword [edi + 0x20], 5
jne 0x4b7c9e
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4b7ca9
mov edi, dword [edi + 0x18]
jmp 0x4b7cab
xor edi, edi
push esi
call fcn.00453410
pop ecx
jmp 0x4b7d20
test ecx, ecx
jg 0x4b7c80
jl 0x4b7cbe
test eax, eax
jae 0x4b7c80
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004bba40
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4b7ce1
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4b7c80
jmp 0x4b7d18
push ebx
call fcn.004bab2a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4b7c80
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4b7d20
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4b7d1d
mov edi, dword [edi + 0x18]
jmp 0x4b7d20
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004bba40
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4bc455
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4fa928]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4bc495
cmp byte [ebx], 0xa
jne 0x4bc495
or byte [eax + edi + 0x28], 4
jmp 0x4bc49a
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4bc598
mov al, byte [edx]
cmp al, 0x1a
je 0x4bc57a
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4bc4c9
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4bc4ee
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4bc4f8
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4bc4ab
jmp 0x4bc598
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4bc575
cmp dword [ebp - 0xc], 0
je 0x4bc575
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4fa928]
test byte [eax + edi + 0x28], 0x48
je 0x4bc54f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4bc53a
mov byte [esi], dl
jmp 0x4bc54b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4fa928]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4bc598
cmp byte [ebp - 1], 0xa
jne 0x4bc55e
cmp esi, ebx
jne 0x4bc55e
mov byte [esi], 0xa
jmp 0x4bc597
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004bba40
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4bc598
mov byte [esi], 0xd
jmp 0x4bc597
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4fa928]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4bc594
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4bc598
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4bc5a1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4fa928]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4bc5e4
cmp word [esi], dx
jne 0x4bc5e4
or byte [edi + eax + 0x28], 4
jmp 0x4bc5e9
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4bc722
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4bc702
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4bc62b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4bc661
cmp eax, edx
jae 0x4bc66d
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4bc603
jmp 0x4bc722
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4bc6fe
cmp dword [ebp - 0x14], 0
je 0x4bc6fe
mov eax, dword [ebx*4 + 0x4fa928]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4bc6d6
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x4bc71c
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4fa928]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x4fa928]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4fa928]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x4bc71f
pop ebx
cmp word [ebp - 4], bx
jne 0x4bc6e7
cmp esi, dword [ebp + 0xc]
jne 0x4bc6e7
mov word [esi], bx
jmp 0x4bc71f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004bba40
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4bc722
push 0xd
jmp 0x4bc71b
mov ecx, dword [ebx*4 + 0x4fa928]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4bc719
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4bc722
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4c1b6b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004a9200
mov eax, dword [0x4f6014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004baad2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4c1bad
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4c1d09
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004cc810
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4fa928]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004bba9e
mov ecx, dword [esi*4 + 0x4fa928]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4c1d02
cmp eax, dword [edi + ecx + 0x24]
jne 0x4c1d02
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c1d02
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004bba9e
add esp, 0x14
test edx, edx
jl 0x4c1d02
jg 0x4c1c78
test eax, eax
jb 0x4c1d02
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4c1d02
jl 0x4c1c92
cmp dword [ebp - 0x1008], eax
ja 0x4c1d02
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4c1cb0
test ebx, ebx
je 0x4c1ce9
cmp ecx, edi
jae 0x4c1ce9
mov al, byte [ecx]
cmp al, 0xd
jne 0x4c1cca
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4c1cd6
cmp byte [ecx + 1], 0xa
jne 0x4c1cd6
inc ecx
jmp 0x4c1cd6
movzx eax, al
movsx eax, byte [eax + 0x4f6280]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4c1cb0
cmp edx, ebx
jne 0x4c1cb0
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4c1d07
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004a8de3
leave
ret

Function at 0x4c6a16
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4d9708
push 0x4d9700
push 0x4d9708
push 0x1e
call fcn.004c6f72
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4c6a4a
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x4c6a50
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4c6a94
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4d972c
push 0x4d9724
push 0x4d972c
push 0x20
call fcn.004c6f72
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4c6acb
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4cb622
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4f6014]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4cb66d
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004cb798
test al, al
jne 0x4cb667
sub edx, 2
cmp edx, edi
jne 0x4cb64d
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4cb68f
lea eax, [edi + 2]
cmp edx, eax
je 0x4cb68f
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004cb56e
add esp, 0x10
jmp 0x4cb789
push esi
lea ecx, [ebp - 0x255]
call fcn.004cb798
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4cb6d2
push dword [ebp - 0x25c]
jmp 0x4cb67f
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4cb70f
cmp word [ebp - 0x226], 0
je 0x4cb730
cmp word [ebp - 0x226], ax
jne 0x4cb70f
cmp word [ebp - 0x224], 0
je 0x4cb730
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004cb56e
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4cb77c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4cb6e9
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4cb764
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4cb789
push 0x4cb7c0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004c2a10
add esp, 0x10
jmp 0x4cb759
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8de3
leave
ret
Function at 0x4cc971
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4cca0e
push ebx
push esi
call fcn.004cca5f
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004cc8ba
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4cc9bb
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4cca0d
push edi
push eax
call fcn.004533c0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4cc9db
call fcn.00453410
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4cca0c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004cc8ba
add esp, 0x20
test eax, eax
jne 0x4cc9fa
push edi
call fcn.00453410
jmp 0x4cca02
push ebx
call fcn.00453410
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4cca11
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4cca22
pop esi
ret
push ebx
push edi
push esi
call fcn.004cca5f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004533c0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4cca4a
push ebx
push esi
push edi
call fcn.004aafe0
add esp, 0xc
push 0
call fcn.00453410
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4ccaa1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ccd0a

Function at 0x4cf897
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004cf8a2
Function at 0x6490a690
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.649192d0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.649192d0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x6490a6f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x64a27054]
test esi, esi
jle 0x6490a810
mov eax, dword [0x64a27058]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x6490a724
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x6490a7a7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x6490a710
mov dword [esp], ebx
call fcn.6490aee0
mov edi, eax
test eax, eax
je 0x6490a837
mov eax, dword [0x64a27058]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.6490b020
mov edx, dword [0x64a27058]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6490a817
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x6490a7a0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x6490a7b0
add dword [0x64a27054], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x64a27058]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x6490a7a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6490a690
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x6490a72e
mov eax, dword [0x64a27058]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.6490a690
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6490a690
lea esi, [esi]
nop