joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d9ff0
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ec238
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x540
mov eax, dword [0x7ce4e4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x2e4], edi
mov esi, ecx
push 0x2a4
lea eax, [ebp - 0x2d8]
push 0
push eax
call fcn.005c0be0
add esp, 8
push edi
push 3
push ecx
push esi
lea ecx, [ebp - 0x2d8]
call fcn.004e0560
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
xor esi, esi
lea ecx, [ebp - 0x2d8]
push eax
mov dword [ebp - 0x2dc], esi
call fcn.004e07d0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], esi
je 0x4da1ad
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x550]
push eax
lea ecx, [ebp - 0x2d8]
call fcn.004e0770
mov edx, dword [ebp - 0x550]
mov cl, byte [ebx + 8]
mov dword [ebp - 0x2e0], edx
test dl, 1
je 0x4da0e6
test cl, cl
jne 0x4da0c5
mov eax, edx
shr eax, 4
test al, 1
jne 0x4da0e6
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
mov eax, edx
cmovae ecx, dword [ebp - 0x2c]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [ebp - 0x2e0]
mov cl, byte [ebx + 8]
shr edx, 4
xor esi, esi
test dl, 1
je 0x4da121
test cl, cl
je 0x4da13b
mov edx, dword [ebp - 0x2e4]
lea ecx, [ebp - 0x2c]
push 1
call fcn.004d9ff0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4da13b
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4da133
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4da13b
call edi
mov esi, eax
mov eax, dword [ebp - 0x2dc]
lea ecx, [ebp - 0x2d8]
test eax, eax
cmovne esi, eax
lea eax, [ebp - 0x2fc]
push eax
mov dword [ebp - 0x2dc], esi
call fcn.004e07d0
mov esi, eax
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x4da192
mov ecx, eax
call fcn.004743f0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x2fc]
call fcn.004743f0
cmp dword [ebp - 0x1c], 0
jne 0x4da092
mov esi, dword [ebp - 0x2dc]
lea ecx, [ebp - 0x2c]
call fcn.004743f0
mov eax, dword [ebp - 0x84]
cmp eax, 0xffffffff
je 0x4da1c7
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x44]
call fcn.004e0c90
lea ecx, [ebp - 0x60]
call fcn.004743f0
lea ecx, [ebp - 0x80]
call fcn.004743f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005be209
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x4da200
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ec285
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x7ce4e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4da308
cmp eax, 0x104
jb 0x4da253
mov eax, 0xa1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call fcn.004dbb30
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4da266
mov ecx, dword [eax]
mov edx, dword [eax + 0x10]
push 2
push 0x796bc0
push 0
call fcn.004dac90
add esp, 0xc
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.004743f0
cmp esi, 0xffffffff
je 0x4da2e0
lea eax, [ebp - 0x3c]
mov ecx, edi
push eax
call fcn.004dbb30
mov esi, eax
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.004db990
push 0
mov edx, esi
mov byte [ebp - 4], 1
mov ecx, eax
call fcn.004d9ff0
add esp, 4
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.004743f0
lea ecx, [ebp - 0x3c]
call fcn.004743f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4da2ea
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4da31c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4da308
cmp eax, 3
jne 0x4da36c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test bl, 1
je 0x4da33c
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x4da32b
mov ecx, dword [edi]
mov eax, ebx
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4da366
mov eax, dword [edi + 0x14]
test bl, 0x10
jne 0x4da354
cmp eax, 8
jb 0x4da34b
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4da362
cmp eax, 8
jb 0x4da35b
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4da308
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4da5c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ec322
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x7ce4e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], 0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x4da6e5
sub esp, 8
lea eax, [ebp - 0x21c]
mov edx, esp
xor ecx, ecx
mov dword [edx], eax
cmp word [ebp - 0x21c], cx
je 0x4da63a
nop
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x4da630
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x254]
call fcn.004db240
sub esp, 8
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
mov edx, esp
mov ecx, eax
jb 0x4da65e
mov ecx, dword [eax]
mov dword [edx], ecx
lea ecx, [ebp - 0x23c]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.004db240
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x220], 1
call fcn.004dc240
lea eax, [ebp - 0x23c]
cmp esi, eax
je 0x4da6cb
mov ecx, esi
call fcn.004743f0
movups xmm0, xmmword [ebp - 0x23c]
xor eax, eax
mov word [ebp - 0x23c], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x22c]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 7
lea ecx, [ebp - 0x23c]
call fcn.004743f0
lea ecx, [ebp - 0x254]
call fcn.004743f0
mov al, 1
jmp 0x4da6e7
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005be209
mov esp, ebp
pop ebp
ret

Function at 0x4da710
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ec35d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x7ce4e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov edi, esi
jb 0x4da747
mov edi, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
call ebx
cmp eax, 0xffffffff
je 0x4da75c
shr eax, 4
and al, 1
jmp 0x4da7ce
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004db990
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 3
push esi
push eax
call fcn.004a72f0
add esp, 8
test al, al
jne 0x4da7c2
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.004da710
test al, al
je 0x4da7c2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4da7be
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4da7c2
cmp dword [esi + 0x14], 8
jb 0x4da7af
mov esi, dword [esi]
push esi
call ebx
cmp eax, 0xffffffff
je 0x4da7c2
shr eax, 4
test al, 1
je 0x4da7c2
mov bl, 1
jmp 0x4da7c4
xor bl, bl
lea ecx, [ebp - 0x28]
call fcn.004743f0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005be209
mov esp, ebp
pop ebp
ret
Function at 0x4da7f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ec3cd
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x7ce4e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x234], 0
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4da9ae
cmp eax, 0x104
ja 0x4da9ae
xorps xmm0, xmm0
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
movups xmmword [ebp - 0x230], xmm0
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4da880
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00474450
mov dword [ebp - 4], 0
lea eax, [ebp - 0x230]
sub esp, 8
cmp dword [ebp - 0x21c], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x230]
mov dword [ecx], eax
mov eax, dword [ebp - 0x220]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x268]
call fcn.004db240
sub esp, 8
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
mov edx, esp
mov ecx, eax
jb 0x4da8eb
mov ecx, dword [eax]
mov dword [edx], ecx
lea ecx, [ebp - 0x250]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.004db240
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x234], 1
call fcn.004dc240
lea eax, [ebp - 0x250]
cmp esi, eax
je 0x4da958
mov ecx, esi
call fcn.004743f0
movups xmm0, xmmword [ebp - 0x250]
xor eax, eax
mov word [ebp - 0x250], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x240]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
lea ecx, [ebp - 0x250]
call fcn.004743f0
lea ecx, [ebp - 0x268]
call fcn.004743f0
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x4da9aa
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4da9a0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4da9ca
push ecx
push edx
call fcn.005be247
add esp, 8
mov al, 1
jmp 0x4da9b0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005be209
mov esp, ebp
pop ebp
ret
call fcn.005c44be
int3
Function at 0x4ddb20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ec95d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x7ce4e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
xorps xmm0, xmm0
mov edi, dword [0x7f9d6c]
xor eax, eax
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004e3d10
add esp, 4
cmp dword [ebp - 0x1c], 0
je 0x4ddbbb
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x14]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x14], 0
cmovae eax, dword [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov dword [ebp - 4], 0
push esi
push dword [ebp - 0x14]
mov ecx, edi
call fcn.004dd1a0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x4ddbf1
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4ddbe7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ddc0e
push ecx
push edx
call fcn.005be247
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005be209
mov esp, ebp
pop ebp
ret 4
call fcn.005c44be
int3
Function at 0x4de970
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 0x10], ebx
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x4deacb
lea eax, [ecx - 1]
mov esi, dword [ebx + 4]
or eax, edi
mov dword [ebp - 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.004ad9f0
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x4dea9e
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
imul edx, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, edx
mov edx, dword [ebx + 0xc]
mov ebx, dword [edx + edi*8]
lea edx, [edx + edi*8]
mov dword [ebp - 0xc], edx
cmp ebx, esi
jne 0x4dea24
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x4dea91
mov edx, dword [edx + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x4dea5e
mov edx, dword [edx]
mov dword [ebp - 4], edx
cmp edx, eax
je 0x4dea56
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 4]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], eax
jmp 0x4dea91
cmp ebx, edx
je 0x4dea6e
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x4deaa7
cmp ebx, edx
jne 0x4dea62
mov ebx, dword [eax + 4]
mov dword [ebp - 4], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 4]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edi
mov dword [edx], eax
mov ebx, dword [ebp - 0x10]
mov eax, ecx
cmp ecx, esi
jne 0x4de9d2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 4], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x4dea91
push str.invalid_hash_bucket_count
call fcn.005bc943
int3
Function at 0x4deb50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x7ce4e4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x801de4], 0
jne 0x4dec99
mov eax, dword [0x801de0]
test eax, eax
je 0x4dec89
test byte [0x7d7b6c], 1
je 0x4dec99
cmp dword [eax + 0x14], 8
jb 0x4deb92
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x801de4], eax
cmp eax, 0xffffffff
je 0x4debba
test eax, eax
jne 0x4dec99
xor eax, eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4dec89
cmp eax, 0x104
ja 0x4dec89
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4debf1
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
mov ecx, dword [0x801de0]
push eax
call fcn.004a1c20
mov ecx, dword [0x801de0]
mov edx, ecx
mov eax, edx
cmp dword [eax + 0x14], 8
jb 0x4dec25
mov edx, dword [ecx]
mov eax, dword [eax + 0x10]
cmp word [edx + eax*2 - 2], 0x5c
je 0x4dec42
push 1
push 0x785c68
call fcn.004a4280
mov ecx, dword [0x801de0]
push 9
push str.debug.log
call fcn.004a4280
mov eax, dword [0x801de0]
cmp dword [eax + 0x14], 8
jb 0x4dec5b
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x801de4], eax
cmp eax, 0xffffffff
je 0x4dec7f
test eax, eax
jne 0x4dec99
mov dword [0x801de4], 0
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005be209
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.005be209
mov esp, ebp
pop ebp
ret
Function at 0x4e1350
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x4e1382
jl 0x4e1375
test ecx, ecx
jne 0x4e1382
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x4e1442
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.004ba160
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x4e13ee
jg 0x4e13ad
test esi, esi
je 0x4e13ee
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x4e13c5
mov eax, dword [esp + 0x10]
jl 0x4e13bf
cmp eax, esi
jae 0x4e13c5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.005c0660
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x4e140f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x4e142b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x4e1394
jl 0x4e142b
test ecx, ecx
jne 0x4e1394
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x4e1486
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x4e1486
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.005c0660
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x4e14f7
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x4e14ac
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x4e14e2
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.005cb2c3
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x4e14f7
cmp edi, eax
ja 0x4e14c0
test edi, edi
je 0x4e14f7
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.005cb2c3
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4e6000
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, dword [0x7fa188]
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x10], edi
test esi, esi
jne 0x4e6030
mov dword [edi], esi
mov eax, edi
mov dword [edi + 8], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [0x7d7fe8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp byte [ebp + 0x18], 0
je 0x4e6066
mov ebx, eax
test ebx, ebx
je 0x4e605b
mov ecx, dword [esi + 0x10]
mov eax, dword [ebx + ecx*8 + 4]
cmp eax, dword [esi + 0x14]
jne 0x4e605b
mov ebx, dword [ebx + ecx*8]
test ebx, ebx
jne 0x4e6084
mov ecx, esi
call fcn.004e62f0
mov ebx, eax
jmp 0x4e6084
mov ecx, eax
test ecx, ecx
jne 0x4e6070
xor ebx, ebx
jmp 0x4e6084
mov eax, dword [esi + 0x10]
lea ebx, [ecx + eax*8]
mov eax, dword [ebx + 4]
cmp eax, dword [esi + 0x14]
je 0x4e6082
xor ebx, ebx
jmp 0x4e6084
mov ebx, dword [ebx]
mov dword [edi], ebx
test ebx, ebx
je 0x4e6116
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x38]
mov dword [esp + 0x10], eax
lea ecx, [eax + 1]
mov dword [esp + 0x14], ecx
cmp eax, dword [ebx + 0xc]
jb 0x4e60a9
mov eax, dword [ebx + 4]
jmp 0x4e610c
mov esi, eax
lea eax, [esp + 0x18]
shl esi, 7
add esi, dword [ebx + 8]
push eax
call dword [0x7d128c]
add esp, 4
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov al, byte [ebp + 0x10]
mov byte [esi + 0x70], al
mov eax, dword [ebp + 0x14]
mov dword [esi], ecx
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], eax
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x14]
mov dword [eax + 0x38], ecx
mov eax, dword [esp + 0x10]
mov dword [edi + 4], eax
mov dword [edi + 8], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4ed110
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6edcbd
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
mov eax, dword [0x7ce4e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
sub esp, 8
mov edx, esp
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x4ed149
mov ecx, dword [eax]
mov dword [edx], ecx
lea ecx, [ebp - 0x40]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.004e2d40
mov esi, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004e2d40
add esp, 0x10
cmp dword [esi + 0x14], 8
jb 0x4ed17b
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x4ed183
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, dword [ebp - 0x14]
test eax, eax
setne bl
cmp ecx, 8
jb 0x4ed1c6
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4ed1bc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ed225
push ecx
push edx
call fcn.005be247
add esp, 8
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x4ed210
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4ed206
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ed225
push ecx
push edx
call fcn.005be247
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.005c44be
int3