joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405320
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43a83b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3ac
lea ecx, [esp + 0x108]
call fcn.00417600
lea ecx, [esp + 0x108]
mov dword [esp + 0x3b4], 0
call fcn.00417650
test al, al
je 0x405385
lea eax, [esp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0x3c0]
call fcn.00404850
jmp 0x4053db
lea edx, [esp + 0x1a0]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4053c7
lea eax, [esp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x4053b4
mov byte [esp], al
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0x3c0]
call fcn.00404850
jmp 0x4053db
mov ecx, dword [esp + 0x3bc]
lea edx, [esp + 0x1a0]
push edx
call fcn.00404910
lea ecx, [esp + 0x108]
mov dword [esp + 0x3b4], 0xffffffff
call fcn.00417640
mov ecx, dword [esp + 0x3ac]
mov dword fs:[0], ecx
add esp, 0x3b8
ret

Function at 0x405be0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x43a926
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf4
lea ecx, [esp]
call fcn.00404670
mov eax, dword [esp + 0x104]
lea ecx, [esp]
push eax
mov dword [esp + 0x100], 0
call fcn.004051a0
push 0x5c
push 0x2f
lea ecx, [esp + 8]
call fcn.00405200
lea ecx, [esp + 0x5c]
call fcn.00417600
lea ecx, [esp + 0x5c]
mov byte [esp + 0xfc], 1
call fcn.00417650
test al, al
je 0x405c65
mov ecx, dword [esp + 0x108]
push ecx
lea ecx, [esp + 4]
call fcn.00404ce0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x405c7d
mov edx, dword [esp + 0x108]
lea ecx, [esp]
push edx
call fcn.00404980
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
push ebx
lea ecx, [esp + 0x60]
setne bl
mov byte [esp + 0x100], 0
call fcn.00417640
lea ecx, [esp + 4]
mov dword [esp + 0x100], 0xffffffff
call fcn.00404730
mov ecx, dword [esp + 0xf8]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x100
ret

Function at 0x405cc0
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x43a946
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf4
lea ecx, [esp]
call fcn.00404670
mov eax, dword [esp + 0x104]
lea ecx, [esp]
push eax
mov dword [esp + 0x100], 0
call fcn.004051a0
push 0x5c
push 0x2f
lea ecx, [esp + 8]
call fcn.00405200
lea ecx, [esp + 0x5c]
call fcn.00417600
lea ecx, [esp + 0x5c]
mov byte [esp + 0xfc], 1
call fcn.00417650
test al, al
lea ecx, [esp]
je 0x405d3d
call fcn.00404ce0
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp 0x405d49
call fcn.00404980
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
push ebx
lea ecx, [esp + 0x60]
setne bl
mov byte [esp + 0x100], 0
call fcn.00417640
lea ecx, [esp + 4]
mov dword [esp + 0x100], 0xffffffff
call fcn.00404730
mov ecx, dword [esp + 0xf8]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x100
ret
Function at 0x405d90
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x43a966
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf4
lea ecx, [esp]
call fcn.00404670
mov eax, dword [esp + 0x104]
lea ecx, [esp]
push eax
mov dword [esp + 0x100], 0
call fcn.004051a0
push 0x5c
push 0x2f
lea ecx, [esp + 8]
call fcn.00405200
lea ecx, [esp + 0x5c]
call fcn.00417600
lea ecx, [esp + 0x5c]
mov byte [esp + 0xfc], 1
call fcn.00417650
test al, al
je 0x405e15
mov ecx, dword [esp + 0x108]
push ecx
lea ecx, [esp + 4]
call fcn.00404ce0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x405e2d
mov edx, dword [esp + 0x108]
lea ecx, [esp]
push edx
call fcn.00404980
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
push ebx
lea ecx, [esp + 0x60]
setne bl
mov byte [esp + 0x100], 0
call fcn.00417640
lea ecx, [esp + 4]
mov dword [esp + 0x100], 0xffffffff
call fcn.00404730
mov ecx, dword [esp + 0xf8]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x100
ret

Function at 0x405e70
Capabilities:
Access peb ldr_data
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x43a978
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov ecx, dword [esp + 0x30]
lea eax, [esp]
push edi
xor edi, edi
push eax
push ecx
mov dword [esp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x405f08
push esi
mov esi, dword [esp + 0x3c]
cmp esi, edi
je 0x405ef1
lea ecx, [esp + 0xc]
call fcn.00402a10
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], edi
call fcn.00403170
mov edi, dword [esi]
lea ecx, [esp + 0xc]
call fcn.00419a90
push eax
mov ecx, esi
call dword [edi + 0x10]
mov edx, dword [esi]
push str.Failed_to_get_file_size__64_
mov ecx, esi
call dword [edx + 0x10]
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.00402a80
or eax, 0xffffffff
pop esi
or edx, 0xffffffff
pop edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov ecx, dword [esp + 4]
push ecx
push eax
call fcn.004176e0
mov ecx, dword [esp + 0x2c]
add esp, 8
mov dword fs:[0], ecx
pop edi
add esp, 0x2c
ret
Function at 0x406330
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x43aa30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [esp + 0x48]
push esi
push edi
push eax
lea ecx, [esp + 0xc]
call fcn.00402940
push 0x5c
push 0x2f
lea ecx, [esp + 0x10]
mov dword [esp + 0x50], 0
call fcn.004024d0
lea ecx, [esp + 8]
call fcn.00419a90
mov edi, eax
test edi, edi
je 0x406457
cmp byte [edi], 0
je 0x406457
mov esi, dword [esp + 0x54]
push esi
push edi
call fcn.00406060
add esp, 8
test al, al
jne 0x4063c1
test esi, esi
je 0x406469
mov edx, dword [esi]
push edi
push str.delete_filename
mov ecx, esi
call dword [edx + 0x28]
mov eax, dword [esi]
push str.Cannot_delete_file__file_does_not_exist
mov ecx, esi
call dword [eax + 0x14]
jmp 0x406469
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x406433
test esi, esi
je 0x406469
lea ecx, [esp + 0x24]
call fcn.00402a10
push str.DeleteFile:
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 1
call fcn.004026e0
lea ecx, [esp + 0x24]
call fcn.00403170
mov edx, dword [esi]
push str.Cannot_delete_file
mov ecx, esi
call dword [edx + 0x14]
mov eax, dword [esi]
push edi
push str.delete_filename
mov ecx, esi
call dword [eax + 0x28]
mov edi, dword [esi]
lea ecx, [esp + 0x24]
call fcn.00419a90
push eax
mov ecx, esi
call dword [edi + 0x14]
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 0
call fcn.00402a80
jmp 0x406469
lea ecx, [esp + 8]
mov dword [esp + 0x48], 0xffffffff
call fcn.00402a80
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
add esp, 0x44
ret
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x406469
mov edx, dword [ecx]
push str.Cannot_delete_file__filename_is_null_or_empty
call dword [edx + 0x10]
lea ecx, [esp + 8]
mov dword [esp + 0x48], 0xffffffff
call fcn.00402a80
mov ecx, dword [esp + 0x40]
pop edi
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x44
ret
Function at 0x4072a0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43ab9e
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp byte [esi + 4], 0xdb
je 0x4072d4
xor ebp, ebp
push ebp
call fcn.00402430
add esp, 4
jmp 0x4072d6
xor ebp, ebp
mov eax, dword [esi + 8]
cmp eax, ebp
je 0x4072f0
mov cl, byte [esi + 5]
test cl, cl
jne 0x4072ed
push eax
call fcn.0041a4bb
add esp, 4
mov dword [esi + 8], ebp
lea ecx, [esp + 0x34]
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebp
mov byte [esi + 5], 0
call fcn.00404670
mov eax, dword [esp + 0xa0]
lea ecx, [esp + 0x34]
push eax
mov dword [esp + 0x9c], ebp
call fcn.00404910
mov edi, dword [esp + 0xa4]
lea ecx, [esp + 0x34]
push edi
push ecx
call fcn.004057b0
mov ebx, eax
add esp, 8
cmp ebx, 0xffffffff
jne 0x40734e
lea ecx, [esp + 0x34]
mov dword [esp + 0x98], eax
call fcn.00404730
xor al, al
jmp 0x4074c5
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4073c3
test edi, edi
je 0x40739d
lea ecx, [esp + 0x18]
call fcn.00402a10
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 1
call fcn.00403170
mov esi, dword [edi]
lea ecx, [esp + 0x18]
call fcn.00419a90
push eax
mov ecx, edi
call dword [esi + 0x10]
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 0
call fcn.00402a80
push 0
push ebx
call fcn.00412e70
add esp, 8
lea ecx, [esp + 0x34]
mov dword [esp + 0x98], 0xffffffff
call fcn.00404730
xor al, al
jmp 0x4074c5
test ebp, ebp
jne 0x4073ec
push ebp
push ebx
call fcn.00412e70
add esp, 8
lea ecx, [esp + 0x34]
mov dword [esp + 0x98], 0xffffffff
call fcn.00404730
mov al, 1
jmp 0x4074c5
lea edi, [ebp + 4]
push edi
call fcn.0041a873
mov edx, eax
mov ecx, edi
mov dword [esi + 8], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esi + 8]
lea eax, [esp + 0x14]
push 0
push eax
push ebp
push ecx
push ebx
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebp
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [esp + 0xa4]
mov byte [esp + 0x13], 1
test eax, eax
jne 0x407487
test esi, esi
je 0x407482
lea ecx, [esp + 0x18]
call fcn.00402a10
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 2
call fcn.00403170
mov edi, dword [esi]
lea ecx, [esp + 0x18]
call fcn.00419a90
push eax
mov ecx, esi
call dword [edi + 0x10]
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 0
call fcn.00402a80
mov byte [esp + 0x13], 0
cmp dword [esp + 0x14], ebp
je 0x4074a2
test esi, esi
je 0x40749d
mov edx, dword [esi]
push str.Failed_to_read_the_entire_file
mov ecx, esi
call dword [edx + 0x10]
mov byte [esp + 0x13], 0
push 0
push ebx
call fcn.00412e70
add esp, 8
lea ecx, [esp + 0x34]
mov dword [esp + 0x98], 0xffffffff
call fcn.00404730
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x8c
ret 8
Function at 0x413540
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
mov ebx, ecx
push edi
mov ecx, esi
call fcn.00419a90
cmp eax, 0x10
jae 0x41356a
mov edi, 0x10
push 0
mov ecx, esi
call fcn.00407aa0
dec edi
jne 0x41355e
mov al, byte [esp + 0x34]
test al, al
jne 0x413581
mov ecx, esi
call fcn.004199e0
push eax
mov ecx, ebx
call fcn.00413330
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x413597
pop edi
pop esi
pop ebp
mov eax, 0xfffffffb
pop ebx
add esp, 0x10
ret 0x14
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x4135ad
pop edi
pop esi
pop ebp
mov eax, 0xfffffffa
pop ebx
add esp, 0x10
ret 0x14
mov esi, dword [esp + 0x24]
test esi, esi
je 0x4136ce
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x4136ce
cdq
and edx, 0x7f
add eax, edx
mov ebp, eax
mov eax, dword [ebx + 0x3c]
sar ebp, 7
sub eax, 0
je 0x413699
dec eax
je 0x4135ec
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x10
ret 0x14
mov eax, dword [ebx + 0x44]
mov ecx, dword [esi]
mov edx, dword [esi + 8]
mov edi, dword [ebx + 0x4c]
xor eax, ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x48]
xor ecx, eax
mov eax, dword [esi + 0xc]
xor edx, edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov edx, dword [ebx + 0x50]
lea ecx, [esp + 0x10]
push edi
xor eax, edx
push ecx
mov ecx, ebx
mov dword [esp + 0x24], eax
call fcn.00414270
lea eax, [ebp - 1]
add esi, 0x10
test eax, eax
jle 0x4136bf
mov dword [esp + 0x34], eax
mov edx, dword [esi]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
xor edx, eax
mov eax, dword [esi + 4]
mov dword [esp + 0x10], edx
mov edx, dword [edi + 8]
xor eax, ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0xc]
xor ecx, edx
mov edx, dword [esi + 0xc]
add edi, 0x10
xor edx, eax
lea eax, [esp + 0x10]
mov dword [esp + 0x18], ecx
push edi
push eax
mov ecx, ebx
mov dword [esp + 0x24], edx
call fcn.00414270
mov eax, dword [esp + 0x34]
add esi, 0x10
dec eax
mov dword [esp + 0x34], eax
jne 0x41363e
pop edi
mov eax, ebp
pop esi
pop ebp
shl eax, 7
pop ebx
add esp, 0x10
ret 0x14
test ebp, ebp
jle 0x4136bf
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x34], ebp
push edi
push esi
mov ecx, ebx
call fcn.00414270
mov eax, dword [esp + 0x34]
add esi, 0x10
add edi, 0x10
dec eax
mov dword [esp + 0x34], eax
jne 0x4136a5
pop edi
mov eax, ebp
pop esi
pop ebp
shl eax, 7
pop ebx
add esp, 0x10
ret 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 0x14
Function at 0x413d80
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
mov eax, dword [edi + 0x38]
test eax, eax
je 0x413da3
pop edi
pop esi
pop ebp
mov eax, 0xfffffffb
pop ebx
add esp, 0x24
ret 0x14
mov ebx, dword [edi + 0x3c]
cmp ebx, 2
je 0x413dc1
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x413dc1
pop edi
pop esi
pop ebp
mov eax, 0xfffffffa
pop ebx
add esp, 0x24
ret 0x14
mov esi, dword [esp + 0x38]
test esi, esi
je 0x413f17
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x413f17
cdq
and edx, 0x7f
add eax, edx
mov ecx, eax
mov eax, ebx
sar ecx, 7
sub eax, 0
mov dword [esp + 0x38], ecx
je 0x413ee8
dec eax
je 0x413e03
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x24
ret 0x14
mov al, byte [esp + 0x48]
test al, al
je 0x413e25
mov eax, dword [edi + 0x4c]
mov edx, dword [edi + 0x50]
mov ebx, dword [edi + 0x44]
mov ebp, dword [edi + 0x48]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x30], edx
jmp 0x413e3c
mov eax, dword [esp + 0x44]
mov edx, dword [eax + 8]
mov ebx, dword [eax]
mov ebp, dword [eax + 4]
mov dword [esp + 0x2c], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x30], edx
test ecx, ecx
jle 0x413ec6
mov edi, dword [esp + 0x40]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push esi
call fcn.00414720
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
xor eax, ebx
mov ebx, dword [esp + 0x2c]
xor ecx, ebp
mov ebp, dword [esp + 0x20]
xor edx, ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x18], ecx
xor ebp, ebx
mov ebx, dword [esi]
mov dword [esp + 0x20], ebp
mov dword [edi], eax
mov ebp, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], edx
mov dword [edi + 8], edx
mov edx, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x48]
add esi, 0x10
add edi, 0x10
dec eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x48], eax
jne 0x413e4c
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
mov dword [eax], ebx
mov dword [eax + 4], ebp
mov dword [eax + 8], edx
mov edx, dword [esp + 0x30]
pop edi
mov dword [eax + 0xc], edx
mov eax, ecx
pop esi
pop ebp
shl eax, 7
pop ebx
add esp, 0x24
ret 0x14
test ecx, ecx
jle 0x413f08
mov ebx, dword [esp + 0x40]
mov ebp, ecx
push ebx
push esi
mov ecx, edi
call fcn.00414720
add esi, 0x10
add ebx, 0x10
dec ebp
jne 0x413ef2
mov ecx, dword [esp + 0x38]
pop edi
mov eax, ecx
pop esi
pop ebp
shl eax, 7
pop ebx
add esp, 0x24
ret 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret 0x14
Function at 0x414160
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
mov edx, 1
cmp dword [esi + 0x54], edx
jle 0x41426b
push ebx
push edi
lea eax, [esi + 0x6a]
xor ebx, ebx
xor ecx, ecx
mov bl, byte [eax - 1]
mov cl, byte [eax + 1]
add eax, 0x10
mov edi, dword [ebx*4 + 0x44c218]
mov ecx, dword [ecx*4 + 0x44ca18]
xor ebx, ebx
xor ecx, edi
mov bl, byte [eax - 0x10]
mov edi, dword [ebx*4 + 0x44c618]
xor ebx, ebx
mov bl, byte [eax - 0x12]
xor ecx, edi
mov edi, dword [ebx*4 + 0x44be18]
xor ebx, ebx
xor ecx, edi
mov dword [eax - 0x12], ecx
mov bl, byte [eax - 0xc]
xor ecx, ecx
mov cl, byte [eax - 0xb]
mov edi, dword [ebx*4 + 0x44c618]
xor ebx, ebx
mov ecx, dword [ecx*4 + 0x44ca18]
mov bl, byte [eax - 0xd]
xor ecx, edi
mov edi, dword [ebx*4 + 0x44c218]
xor ebx, ebx
mov bl, byte [eax - 0xe]
xor ecx, edi
mov edi, dword [ebx*4 + 0x44be18]
xor ebx, ebx
xor ecx, edi
mov dword [eax - 0xe], ecx
mov bl, byte [eax - 8]
xor ecx, ecx
mov cl, byte [eax - 7]
mov edi, dword [ebx*4 + 0x44c618]
xor ebx, ebx
mov ecx, dword [ecx*4 + 0x44ca18]
mov bl, byte [eax - 9]
xor ecx, edi
mov edi, dword [ebx*4 + 0x44c218]
xor ebx, ebx
mov bl, byte [eax - 0xa]
xor ecx, edi
mov edi, dword [ebx*4 + 0x44be18]
xor ebx, ebx
xor ecx, edi
mov dword [eax - 0xa], ecx
mov bl, byte [eax - 4]
xor ecx, ecx
mov cl, byte [eax - 3]
mov edi, dword [ebx*4 + 0x44c618]
xor ebx, ebx
mov ecx, dword [ecx*4 + 0x44ca18]
mov bl, byte [eax - 5]
xor ecx, edi
mov edi, dword [ebx*4 + 0x44c218]
xor ebx, ebx
mov bl, byte [eax - 6]
xor ecx, edi
mov edi, dword [ebx*4 + 0x44be18]
xor ecx, edi
inc edx
mov dword [eax - 6], ecx
mov ecx, dword [esi + 0x54]
cmp edx, ecx
jl 0x414176
pop edi
pop ebx
pop esi
ret
Function at 0x415d50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43be10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004131d0
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x40], 0
call fcn.00413210
lea ecx, [esp + 8]
call fcn.004197a0
push 0
lea edx, [esp + 0x14]
push 0x10
push edx
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 1
call fcn.004198d0
xor edx, edx
lea ecx, [esp + 8]
div dword [esi + 4]
mov byte [esp + 0x38], 0
mov esi, edx
call fcn.00419770
lea ecx, [esp + 4]
mov dword [esp + 0x38], 0xffffffff
call fcn.00413200
mov ecx, dword [esp + 0x30]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 4

Function at 0x4168e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43bee8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
call fcn.00412d30
xor ebx, ebx
lea ecx, [esi + 0xc]
mov dword [esp + 0x14], ebx
call fcn.00402a10
mov ecx, dword [esp + 0xc]
mov byte [esi + 0x29], bl
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov byte [esi + 0x50], bl
mov dword [esi], vtable.FileInfo.0
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x416cd0
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43bf68
push eax
mov dword fs:[0], esp
sub esp, 0x5c
xor edx, edx
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
xor ecx, ecx
lea eax, [esi + 0x3c]
mov byte [esi + 8], bl
push edi
lea edi, [esi + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], ecx
lea eax, [esi + 0x44]
mov dword [esi + 0x44], edx
mov dword [eax + 4], edx
lea eax, [esi + 0x34]
mov dword [esi + 0x34], ecx
mov dword [eax + 4], ecx
mov ecx, edi
mov dword [esi + 0x4c], ebx
mov byte [esi + 0x28], bl
mov dword [esi + 0x2c], ebx
call fcn.00402510
mov ebp, dword [esp + 0x7c]
mov byte [esi + 0x29], bl
cmp ebp, ebx
je 0x416e0f
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x416d77
mov edi, dword [esp + 0x80]
push edi
push ebp
call fcn.00406140
add esp, 8
test al, al
jne 0x416e0f
cmp edi, ebx
mov byte [esi + 8], 1
je 0x416e0f
mov edx, dword [edi]
push str.File_does_not_exist.
mov ecx, edi
call dword [edx + 0x10]
xor al, al
jmp 0x416e3a
mov dword [esi + 0x4c], eax
lea ecx, [esp + 0x10]
shr eax, 4
and al, 1
mov byte [esi + 0x28], al
call fcn.00404670
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x78], ebx
call fcn.00404910
lea ecx, [esp + 0x10]
call fcn.00404f90
push eax
mov ecx, edi
call fcn.00402f90
cmp byte [esi + 0x28], bl
je 0x416dc3
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.00405920
jmp 0x416dd5
mov edx, dword [esp + 0x80]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.004057b0
mov edi, eax
or ebp, 0xffffffff
add esp, 8
cmp edi, ebp
je 0x416e02
lea eax, [esi + 0x34]
push eax
lea eax, [esi + 0x44]
push eax
lea eax, [esi + 0x3c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp eax, ebx
jne 0x416e13
push ebx
push edi
call fcn.00412e70
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x74], ebp
call fcn.00404730
xor al, al
jmp 0x416e3a
lea ecx, [esi + 0x30]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push edi
mov dword [esi + 0x2c], eax
call fcn.00412e70
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x74], ebp
call fcn.00404730
mov al, 1
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x68
ret 8
Function at 0x417310
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
test ebx, ebx
push edi
je 0x4174b9
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x4174b9
push ebx
call fcn.004172e0
mov edi, dword [esp + 0x20]
push eax
mov ecx, edi
call fcn.00402630
mov eax, 0x55555556
xor esi, esi
imul ebx
mov eax, edx
shr eax, 0x1f
add edx, eax
test edx, edx
jle 0x417408
mov dword [esp + 0x20], edx
jmp 0x417361
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x18]
xor ebx, ebx
mov bl, byte [esi + ebp]
inc esi
xor ecx, ecx
xor edx, edx
mov cl, byte [esi + ebp]
mov dl, byte [esi + eax + 1]
inc esi
mov ebp, ecx
mov ecx, ebx
mov dword [esp + 0x10], edx
mov edx, dword [0x44d0ac]
inc esi
sar ecx, 2
and ecx, 0x3f
mov al, byte [ecx + edx]
mov ecx, edi
push eax
call fcn.00402540
mov edx, dword [0x44d0ac]
mov ecx, ebp
sar ecx, 4
and ebx, 3
and ecx, 0xf
shl ebx, 4
or ecx, ebx
mov al, byte [ecx + edx]
mov ecx, edi
push eax
call fcn.00402540
mov ebx, dword [esp + 0x10]
mov edx, dword [0x44d0ac]
mov ecx, ebx
and ebp, 0xf
sar ecx, 6
and ecx, 3
shl ebp, 2
or ecx, ebp
mov al, byte [ecx + edx]
mov ecx, edi
push eax
call fcn.00402540
mov ecx, dword [0x44d0ac]
and ebx, 0x3f
mov dl, byte [ebx + ecx]
mov ecx, edi
push edx
call fcn.00402540
mov eax, dword [esp + 0x20]
dec eax
mov dword [esp + 0x20], eax
jne 0x41735d
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov eax, ebx
mov ecx, 3
cdq
idiv ecx
dec edx
je 0x417471
dec edx
jne 0x4174b9
xor ebx, ebx
mov ecx, dword [0x44d0ac]
mov bl, byte [esi + ebp]
xor edx, edx
mov dl, byte [esi + ebp + 1]
mov eax, ebx
sar eax, 2
and eax, 0x3f
mov esi, edx
mov dl, byte [eax + ecx]
mov ecx, edi
push edx
call fcn.00402540
mov ecx, dword [0x44d0ac]
mov eax, esi
sar eax, 4
and ebx, 3
and eax, 0xf
shl ebx, 4
or eax, ebx
mov dl, byte [eax + ecx]
mov ecx, edi
push edx
call fcn.00402540
mov eax, dword [0x44d0ac]
and esi, 0xf
mov cl, byte [eax + esi*4]
push ecx
jmp 0x4174a9
xor edx, edx
mov ecx, dword [0x44d0ac]
mov dl, byte [esi + ebp]
mov esi, edx
mov eax, esi
sar eax, 2
and eax, 0x3f
mov dl, byte [eax + ecx]
mov ecx, edi
push edx
call fcn.00402540
mov eax, dword [0x44d0ac]
and esi, 3
shl esi, 4
mov cl, byte [esi + eax]
push ecx
mov ecx, edi
call fcn.00402540
push 0x3d
mov ecx, edi
call fcn.00402540
push 0x3d
mov ecx, edi
call fcn.00402540
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc

Function at 0x418b40
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
cmp eax, ecx
je 0x418b6b
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret 4