joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424170
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c4d4b
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
mov eax, dword [0x6b5068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x400000
mov dword [0x6b75a0], 0x4de354
mov dword [0x6b75a8], 0x4de5f4
push 0
mov dword [ebp - 0x14], 0x6b75a0
mov dword [0x6b75bc], 1
mov dword [0x6b75b8], 0x100
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
je 0x42441e
lea eax, [ecx + 0x400000]
mov dword [0x6b75b4], ecx
mov dword [0x6b75b0], eax
mov edx, 0x1555
mov eax, dword [0x6b75b8]
mov dword [0x6b75ac], ecx
add eax, ecx
mov dword [ecx], eax
mov eax, dword [0x6b75b8]
add ecx, eax
add eax, ecx
mov dword [ecx], eax
mov eax, dword [0x6b75b8]
add ecx, eax
add eax, ecx
mov dword [ecx], eax
mov eax, dword [0x6b75b8]
add ecx, eax
sub edx, 1
jne 0x424204
mov dword [ecx], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], 0x6b75c0
mov dword [ebp - 0x18], 0x6b75c0
mov dword [ebp - 0x1c], 0x6b75c0
mov dword [0x6b75c0], 0x4dcd5c
mov dword [0x6b75c4], edx
mov dword [0x6b75c8], edx
mov byte [ebp - 4], 1
mov dword [0x6b75c0], 0x4dccf8
mov dword [0x6b75cc], edx
mov dword [0x6b75d4], edx
mov dword [0x6b75d0], edx
mov dword [0x6b75d8], 0x40
mov byte [ebp - 4], 2
mov dword [0x6b75d8], 0x80
mov byte [ebp - 4], 5
mov dword [0x6b75dc], edx
mov byte [ebp - 4], 6
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x6b75f0
mov dword [ebp - 0x20], 0x6b75f0
call esi
mov byte [ebp - 4], 7
mov dword [0x6b7608], 0
mov byte [ebp - 4], 8
push 0x6b7614
mov dword [ebp - 0x24], 0x6b7614
call esi
mov byte [ebp - 4], 9
mov dword [0x6b762c], 0x3e8
mov dword [ebp - 0x28], 0x6b7640
mov dword [ebp - 0x2c], 0x6b7640
mov dword [0x6b7640], 0x4dcd5c
mov dword [0x6b7644], 0
mov dword [0x6b7648], 0
mov byte [ebp - 4], 0xa
mov dword [0x6b7640], 0x4dccf8
mov dword [0x6b764c], 0
mov dword [0x6b7654], 0
mov dword [0x6b7650], 0
mov dword [0x6b7658], 0x40
mov byte [ebp - 4], 0xb
mov dword [0x6b7658], 0x80
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x3c]
mov dword [0x6b7634], 0x3e80
mov dword [0x6b7638], 1
mov dword [0x6b763c], 0
lea eax, [eax*2 + 2]
mov dword [0x6b7630], eax
mov byte [ebp - 4], 0xe
push 0x6b765c
call esi
mov byte [ebp - 4], 0xf
push ecx
mov ecx, 0x6b7674
call fcn.00423ac0
mov byte [ebp - 4], 0x10
mov dword [0x6b75e0], 0
mov dword [0x6b769c], 0
movsd xmm0, qword [0x6a7a30]
movsd qword [0x6b75e8], xmm0
xorps xmm0, xmm0
mov dword [0x6b76a0], 0
mov dword [0x6b76a4], 0
mov dword [0x6b76a8], 0
mov dword [0x6b75e4], 0
movq qword [0x6b760c], xmm0
mov dword [ebp - 4], 0xffffffff
mov eax, 0x6b75a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call fcn.0049db44
int3
Function at 0x425030
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [esi + 0x14], 0
test ebx, ebx
jne 0x42504f
pop esi
lea eax, [ebx + 1]
pop ebx
pop ebp
ret 0xc
mov eax, dword [ecx]
push edi
xor edi, edi
call dword [eax]
push dword [ebp + 0x10]
mov ecx, eax
movzx eax, bx
push eax
push ecx
mov dword [ebp + 0xc], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x425125
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x425125
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x42511c
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [esi + 0x14], 0
cmp dword [esi + 0x10], edi
jl 0x425100
cmp edi, 1
jne 0x4250c5
mov eax, dword [esi + 0xc]
mov cl, byte [ebx]
mov byte [eax], cl
inc dword [esi + 0x14]
jmp 0x425117
cmp edi, 2
jne 0x4250d8
mov eax, dword [esi + 0xc]
movzx ecx, word [ebx]
mov word [eax], cx
add dword [esi + 0x14], edi
jmp 0x425117
cmp edi, 4
jne 0x4250e9
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx]
mov dword [eax], ecx
add dword [esi + 0x14], edi
jmp 0x425117
cmp edi, 8
jne 0x425100
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [eax], ecx
mov dword [eax + 4], edx
add dword [esi + 0x14], edi
jmp 0x425117
test edi, edi
jle 0x425117
push edi
mov ecx, esi
call fcn.004273e0
push edi
push ebx
push eax
call fcn.0049b820
add esp, 0xc
mov edi, 1
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x426070
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bf74d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
mov eax, dword [0x6b5068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
test edx, edx
je 0x426141
cmp word [edx], 0
je 0x426141
lea ecx, [ebp - 0x38]
call fcn.004018c0
mov dword [ebp - 4], 0
cmp word [edx], 0
je 0x426110
cmp word [edx + 2], 0
je 0x426110
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4260d0
sub ecx, esi
sar ecx, 1
cmp word [edx + ecx*2 - 2], 0x5c
jne 0x426110
cmp word [edx + ecx*2 - 4], 0x3a
je 0x426110
lea eax, [ecx - 1]
push eax
push edx
lea ecx, [ebp - 0x38]
call fcn.00428a70
mov edx, dword [ebp - 0x2c]
test edx, edx
jne 0x426110
cmp dword [ebp - 0x14], 0
mov edx, 0x4dd138
cmovne edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00401b70
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x426160
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
mov word [esi], ax
lea eax, [ebp + 8]
push eax
push 1
push 0
push edx
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x42618c
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x208
push eax
push esi
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
push dword [ebp + 8]
neg eax
sbb esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi + 1]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x427670
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
test eax, eax
je 0x42773f
cmp word [eax], 0
je 0x42773f
push ebx
push edi
push 0x4de524
push eax
or ebx, 0xffffffff
call fcn.004a62cf
mov edi, eax
add esp, 8
test edi, edi
je 0x427712
push 2
push 0
push edi
call fcn.004a207b
push edi
call fcn.004a6d24
push 0
push 0
push edi
mov ebx, eax
call fcn.004a207b
add esp, 0x1c
test ebx, ebx
jle 0x427702
push edi
push ebx
push 1
push ebx
mov ecx, esi
call fcn.00427380
push eax
call fcn.004a6651
push edi
mov ebx, eax
call fcn.004a6f30
add esp, 0x14
test eax, eax
jne 0x427706
push ebx
mov ecx, esi
call fcn.004273e0
push edi
call fcn.0049f11d
add esp, 4
mov eax, ebx
pop edi
pop ebx
pop esi
pop ebp
ret 8
xor ebx, ebx
jmp 0x427709
or ebx, 0xffffffff
push edi
call fcn.0049f11d
add esp, 4
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x427721
mov edx, dword [esi]
push ecx
mov ecx, esi
call dword [edx + 0xc]
pop edi
mov eax, ebx
mov dword [esi + 0xc], 0
pop ebx
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
pop esi
pop ebp
ret 8
or eax, 0xffffffff
pop esi
pop ebp
ret 8
Function at 0x4a6b1d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0049a250
mov eax, dword [0x6b5068]
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.004b0688
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4a6b5f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4a6cbb
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0049a1a0
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 + 0x6b6df0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004ab10d
mov ecx, dword [esi*4 + 0x6b6df0]
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 0x4a6cb4
cmp eax, dword [edi + ecx + 0x24]
jne 0x4a6cb4
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 0x4a6cb4
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004ab10d
add esp, 0x14
test edx, edx
jl 0x4a6cb4
jg 0x4a6c2a
test eax, eax
jb 0x4a6cb4
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4a6cb4
jl 0x4a6c44
cmp dword [ebp - 0x1008], eax
ja 0x4a6cb4
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4a6c62
test ebx, ebx
je 0x4a6c9b
cmp ecx, edi
jae 0x4a6c9b
mov al, byte [ecx]
cmp al, 0xd
jne 0x4a6c7c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4a6c88
cmp byte [ecx + 1], 0xa
jne 0x4a6c88
inc ecx
jmp 0x4a6c88
movzx eax, al
movsx eax, byte [eax + 0x6b5180]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4a6c62
cmp edx, ebx
jne 0x4a6c62
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4a6cb9
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004998bb
leave
ret
Function at 0x4aab9b
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6b5068]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x4d5648
push esi
call fcn.004b3e5a
pop ecx
pop ecx
test eax, eax
jne 0x4aabc9
xor al, al
jmp 0x4aac46
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.004aa8d2
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x4aac03
push dword [ebp - 0x210]
call fcn.0049db7f
xor al, al
jmp 0x4aac44
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4aac09
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x4aac29
push edx
call fcn.004aaad1
pop ecx
test al, al
je 0x4aabf4
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4aac37
mov bl, 1
push dword [ebp - 0x210]
call fcn.0049db7f
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004998bb
leave
ret
Function at 0x4ad10a
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 + 0x6b6df0]
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 0x4ad14a
cmp byte [ebx], 0xa
jne 0x4ad14a
or byte [eax + edi + 0x28], 4
jmp 0x4ad14f
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4ad24d
mov al, byte [edx]
cmp al, 0x1a
je 0x4ad22f
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4ad17e
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4ad1a3
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4ad1ad
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 0x4ad160
jmp 0x4ad24d
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 0x4ad22a
cmp dword [ebp - 0xc], 0
je 0x4ad22a
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x6b6df0]
test byte [eax + edi + 0x28], 0x48
je 0x4ad204
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4ad1ef
mov byte [esi], dl
jmp 0x4ad200
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x6b6df0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4ad24d
cmp byte [ebp - 1], 0xa
jne 0x4ad213
cmp esi, ebx
jne 0x4ad213
mov byte [esi], 0xa
jmp 0x4ad24c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004ab12b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4ad24d
mov byte [esi], 0xd
jmp 0x4ad24c
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x6b6df0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4ad249
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4ad24d
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4ad256
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 + 0x6b6df0]
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 0x4ad299
cmp word [esi], dx
jne 0x4ad299
or byte [edi + eax + 0x28], 4
jmp 0x4ad29e
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 0x4ad3f1
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 0x4ad3d1
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4ad2e0
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4ad316
cmp eax, edx
jae 0x4ad322
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 0x4ad2b8
jmp 0x4ad3f1
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 0x4ad3cd
cmp dword [ebp - 0x14], 0
je 0x4ad3cd
mov eax, dword [ebx*4 + 0x6b6df0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4ad3a5
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4ad36e
mov word [esi], cx
jmp 0x4ad3a1
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x6b6df0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x6b6df0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x6b6df0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4ad3f1
pop ebx
cmp word [ebp - 4], bx
jne 0x4ad3b6
cmp esi, dword [ebp + 0xc]
jne 0x4ad3b6
mov word [esi], bx
jmp 0x4ad3ee
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004ab12b
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4ad3f1
push 0xd
jmp 0x4ad3ea
mov ecx, dword [ebx*4 + 0x6b6df0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4ad3e8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4ad3f1
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 0x4b21d0
Capabilities:
Read file on windows

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

Function at 0x4b24f1
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4d7364
push 0x4d735c
push 0x4d46b0
push 0x1e
call fcn.004b2372
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b2525
push dword [ebp + 8]
mov ecx, esi
call dword [0x4c64a0]
call esi
jmp 0x4b252b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4b256f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4d7374
push 0x4d736c
push 0x4d46d4
push 0x20
call fcn.004b2372
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b25a6
push dword [ebp + 8]
mov ecx, esi
call dword [0x4c64a0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4b4940
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x6b5068]
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 0x4b498b
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004b4adf
test al, al
jne 0x4b4985
sub edx, 2
cmp edx, edi
jne 0x4b496b
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4b49ad
lea eax, [edi + 2]
cmp edx, eax
je 0x4b49ad
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004b488c
add esp, 0x10
jmp 0x4b4aa7
push esi
lea ecx, [ebp - 0x255]
call fcn.004b4adf
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 0x4b49f0
push dword [ebp - 0x25c]
jmp 0x4b499d
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 0x4b4a2d
cmp word [ebp - 0x226], 0
je 0x4b4a4e
cmp word [ebp - 0x226], ax
jne 0x4b4a2d
cmp word [ebp - 0x224], 0
je 0x4b4a4e
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004b488c
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4b4a9a
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4b4a07
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4b4a82
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4b4aa7
push 0x4b46bc
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004a20c0
add esp, 0x10
jmp 0x4b4a77
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.004998bb
leave
ret
Function at 0x4b53b4
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 0x4b5451
push ebx
push esi
call fcn.004b537d
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.004b44f9
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4b53fe
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4b5450
push edi
push eax
call fcn.004b0dd1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4b541e
call fcn.004afa2e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4b544f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004b44f9
add esp, 0x20
test eax, eax
jne 0x4b543d
push edi
call fcn.004afa2e
jmp 0x4b5445
push ebx
call fcn.004afa2e
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 0x4b5454
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4b5465
pop esi
ret
push ebx
push edi
push esi
call fcn.004b537d
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004b0dd1
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4b548d
push ebx
push esi
push edi
call fcn.0049b820
add esp, 0xc
push 0
call fcn.004afa2e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4b5bd9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b5700
Function at 0x4b72ec
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.004b7268
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4b7464
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4b7464
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4b7413
jg 0x4b7345
test eax, eax
je 0x4b7409
push 1
push 0x1000
call fcn.004b3229
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4b736b
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4b7400
push 0x8000
push ebx
call fcn.004ac4fe
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 0x4b7397
jg 0x4b7392
cmp ecx, 0x1000
jb 0x4b7397
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004ae371
add esp, 0x10
cmp eax, 0xffffffff
je 0x4b73dc
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 0x4b7392
jl 0x4b73c3
test ecx, ecx
jne 0x4b7384
push dword [ebp - 0xc]
push ebx
call fcn.004ac4fe
push esi
call fcn.004afa2e
add esp, 0xc
xor edi, edi
jmp 0x4b7475
cmp byte [edi + 0x24], 0
je 0x4b73f3
cmp dword [edi + 0x20], 5
jne 0x4b73f3
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4b73fe
mov edi, dword [edi + 0x18]
jmp 0x4b7400
xor edi, edi
push esi
call fcn.004afa2e
pop ecx
jmp 0x4b7475
test ecx, ecx
jg 0x4b73d5
jl 0x4b7413
test eax, eax
jae 0x4b73d5
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004ab12b
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4b7436
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4b73d5
jmp 0x4b746d
push ebx
call fcn.004b4272
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4b73d5
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 0x4b7475
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4b7472
mov edi, dword [edi + 0x18]
jmp 0x4b7475
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004ab12b
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4bca50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4bca5c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.004bca70