joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4183a2
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x26d8]
mov esi, dword [eax + ebx*4]
mov eax, dword [esi + 0x20]
mov dword [esi + 0x28], 6
cmp dword [eax + 4], 1
je 0x418415
cmp dword [edi + 0x2480], 0
je 0x418441
push dword [esi + 0xc]
and dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp + 8]
push eax
push dword [edi + 0x2484]
push dword [edi + 0x2480]
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x418404
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x418441
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x418441
xor eax, eax
jmp 0x418444
cmp dword [esi], 0
jne 0x418426
mov eax, dword [esi + 4]
test eax, eax
je 0x418426
mov dword [esi + 0x18], eax
jmp 0x418441
push 1
push ebx
mov dword [esi + 0x28], 4
call fcn.00418f61
test eax, eax
jne 0x418441
push ebx
mov ecx, edi
call fcn.00418b1f
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x41871d
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ecx
mov dword [ebp - 4], eax
push 0x28
pop esi
mov eax, dword [eax + 0x26d8]
push esi
push 0
mov edi, dword [eax + edi*4]
lea ebx, [edi + 0x8044]
push ebx
call fcn.005aa3d0
mov dword [ebx], esi
mov ebx, 0x8000
push ebx
lea esi, [edi + 0x40]
push 0
push esi
call fcn.005aa3d0
mov edx, dword [edi + 0x8040]
add esp, 0x18
mov dword [edi + 0x8058], esi
lea esi, [edi + 0x805c]
mov dword [esi], ebx
test edx, edx
je 0x4187a4
mov eax, dword [edx + 0x10]
sub eax, dword [edx + 0x18]
mov ecx, dword [edx + 0x14]
sbb ecx, dword [edx + 0x1c]
sub eax, dword [edx + 8]
sbb ecx, dword [edx + 0xc]
add eax, 1
adc ecx, 0
test ecx, ecx
jb 0x41879f
ja 0x418799
cmp eax, ebx
jbe 0x41879f
and dword [ebp - 8], 0
jmp 0x4187dd
mov dword [ebp - 8], ecx
jmp 0x4187db
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x5d100]
mov ecx, dword [edx + 0x5d104]
cmp eax, 0xffffffff
jne 0x4187bc
cmp ecx, eax
je 0x4187df
sub eax, dword [edx + 0x5d110]
sbb ecx, dword [edx + 0x5d114]
test ecx, ecx
jb 0x4187d8
ja 0x4187d2
cmp eax, ebx
jbe 0x4187d8
and dword [ebp - 8], 0
jmp 0x4187dd
mov dword [ebp - 8], ecx
mov ebx, eax
mov dword [esi], ebx
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [edi + 0x20]
xor ebx, ebx
inc ebx
mov dword [edi + 0x28], 9
cmp dword [eax + 4], ebx
je 0x41880e
push edi
push ebx
lea ecx, [edi + 0x8044]
push ecx
push dword [edi + 0x1c]
call dword [sym.imp.WININET.dll_InternetReadFileExA]
jmp 0x418820
push esi
push dword [esi]
push dword [edi + 0x8058]
push dword [edi + 0x1c]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x418831
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, ebx
jmp 0x41884b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x41882d
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00418b1f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x418c28
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6c75ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, ecx
xor edi, edi
mov dword [ebp - 0xc], eax
xor edx, edx
add eax, 0x61850
xor ecx, ecx
push 0x10000000
push edi
push edi
cmp dx, word [eax]
push edi
cmove eax, ecx
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x14], eax
test eax, eax
je 0x418d9a
mov eax, dword [ebx + 0x20]
mov esi, edi
add eax, 0x2348
mov dword [ebp - 8], edi
push eax
call fcn.005baec0
pop ecx
mov ecx, dword [ebx + 0x20]
test eax, eax
je 0x418c92
lea esi, [ecx + 0x2348]
mov dword [ebp - 8], esi
lea eax, [ecx + 0x2048]
push eax
call fcn.005baec0
pop ecx
test eax, eax
je 0x418cac
mov edi, dword [ebx + 0x20]
add edi, 0x2048
test esi, esi
jne 0x418ccb
mov esi, dword [ebp - 0xc]
add esi, 0x60608
push esi
call fcn.005baec0
pop ecx
mov ecx, dword [ebp - 8]
test eax, eax
cmovne ecx, esi
mov dword [ebp - 8], ecx
test edi, edi
jne 0x418ce4
mov esi, dword [ebp - 0xc]
add esi, 0x60708
push esi
call fcn.005baec0
test eax, eax
pop ecx
cmovne edi, esi
mov eax, dword [ebx + 0x20]
push 0x417381
push dword [ebx + 0x14]
mov esi, dword [eax + 4]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebx + 0x20]
push ebx
push dword [eax + 0x26d4]
xor eax, eax
push 3
inc eax
pop edx
cmp esi, eax
cmovne eax, edx
push eax
movzx eax, word [ecx]
push edi
push dword [ebp - 8]
push eax
lea eax, [ecx + 0x2148]
push eax
push dword [ebx + 0x14]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebx + 0x18], eax
test eax, eax
je 0x418d9a
mov edi, dword [ebp - 0xc]
add edi, 0x60808
push edi
call fcn.005baec0
pop ecx
test eax, eax
je 0x418d95
mov dword [ebp - 0x18], 3
test edi, edi
je 0x418d79
push edi
call fcn.005baec0
inc eax
pop ecx
cmp eax, 0x3fffffff
jg 0x418d79
lea esi, [eax + eax]
mov eax, esi
call fcn.00593a70
mov ecx, esp
mov edx, edi
push 3
push esi
call fcn.004115f5
mov dword [ebp - 0x14], eax
jmp 0x418d7d
and dword [ebp - 0x14], 0
push 0xc
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], 0x61ee2e
push ecx
push 0x26
push dword [ebx + 0x14]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
xor eax, eax
inc eax
jmp 0x418d9c
xor eax, eax
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005926d8
leave
ret 4
Function at 0x418db0
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1050
call fcn.005933d0
mov eax, dword [0x6c75ac]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x1010], eax
mov esi, dword [eax + 0x2480]
lea eax, [ebp - 0x100c]
push 0x1000
push edi
push eax
mov dword [ebp - 0x1024], 0x62cd00
mov dword [ebp - 0x1020], edi
call fcn.005aa3d0
mov ecx, dword [ebx + 0x20]
add esp, 0xc
lea eax, [ecx + 0x1048]
push eax
lea eax, [ecx + 0x48]
push eax
push 0x62cd08
lea eax, [ebp - 0x100c]
push 0x7ff
push eax
call fcn.0041a4a2
mov eax, dword [ebp - 0x1010]
add esp, 0x14
mov ecx, 0x8400c300
mov edx, 0x8408c300
cmp dword [eax + 0x62cb4], edi
mov eax, dword [ebx + 0x20]
cmove edx, ecx
push ebx
mov ecx, edx
or ecx, 0x803000
cmp dword [eax + 4], 4
lea eax, [ebp - 0x1024]
cmovne ecx, edx
test esi, esi
push ecx
push eax
push edi
push str.HTTP_1.1
lea eax, [ebp - 0x100c]
mov ecx, str.POST
push eax
mov eax, 0x62ccec
cmovne eax, ecx
push eax
push dword [ebx + 0x18]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebx + 0x1c], eax
test eax, eax
je 0x418f4e
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
lea ecx, [ebp - 0x1014]
push 4
push ecx
push 2
push eax
mov dword [ebp - 0x1014], 0x3a98
call esi
push 4
lea eax, [ebp - 0x1018]
mov dword [ebp - 0x1018], 1
push eax
push 0x41
push dword [ebx + 0x1c]
call esi
push 0x28
pop esi
push esi
mov dword [ebp - 0x101c], eax
lea eax, [ebp - 0x104c]
push edi
push eax
call fcn.005aa3d0
add esp, 0xc
mov dword [ebp - 0x104c], esi
push 0xa2d0
call fcn.00592e78
mov esi, eax
pop ecx
test esi, esi
je 0x418f2d
push 0xa2d0
push edi
push esi
call fcn.005aa3d0
add esp, 0xc
push dword [ebp - 0x101c]
push ecx
mov ecx, dword [ebp - 0x1010]
push esi
push ebx
call fcn.00419033
push esi
mov dword [ebp - 0x1044], esi
call fcn.005baec0
pop ecx
mov dword [ebp - 0x1040], eax
push ebx
push 1
push edi
lea eax, [ebp - 0x104c]
push eax
push dword [ebx + 0x1c]
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
mov edi, eax
test esi, esi
je 0x418f4e
push esi
call fcn.00592945
pop ecx
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005926d8
leave
ret 4
Function at 0x4195b2
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6c75ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 8], ebx
jne 0x419721
xorps xmm0, xmm0
lea edi, [esi + 0x5d120]
push edi
movlpd qword [ebp - 0x20], xmm0
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
add eax, 0x41
push 0x3a
mov word [ebp - 0xc], ax
pop eax
push 0x5c
mov word [ebp - 0xa], ax
pop eax
mov word [ebp - 8], ax
xor eax, eax
push ebx
mov word [ebp - 6], ax
lea eax, [ebp - 0x20]
push ebx
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x419749
mov ecx, dword [esi + 0x5d100]
mov eax, dword [esi + 0x5d104]
cmp ecx, 0xffffffff
jne 0x41962f
cmp eax, ecx
je 0x41964a
cmp dword [ebp - 0x1c], eax
ja 0x41964a
jb 0x41963b
cmp dword [ebp - 0x20], ecx
ja 0x41964a
mov dword [esi + 0x2470], 2
jmp 0x419749
push ebx
push 0x20
push 4
push ebx
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x419733
cmp dword [esi + 0x26f0], ebx
je 0x419721
lea edi, [esi + 0x26e4]
mov ecx, esi
mov eax, dword [edi]
mov dword [edi + 4], eax
call fcn.004199b3
test eax, eax
jne 0x419721
mov eax, dword [esi + 0x2468]
test eax, eax
jne 0x4196a3
push 5
pop eax
mov dword [esi + 0x2468], eax
push 0xa
pop ecx
cmp eax, ecx
jbe 0x4196b0
mov dword [esi + 0x2468], ecx
mov dword [esi + 0x5cfc0], ebx
mov ecx, edi
mov dword [esi + 0x5cfc4], ebx
mov edx, dword [esi + 0x5d100]
mov eax, dword [esi + 0x5d104]
add edx, 0xffffffff
mov dword [esi + 0x5cfc8], edx
adc eax, 0xffffffff
mov dword [esi + 0x5cfcc], eax
lea eax, [esi + 0x5cfb8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040ddde
mov eax, dword [esi + 0x5d100]
mov cl, 0x20
mov edx, dword [esi + 0x5d104]
call fcn.005d89b0
push ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x5d100]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005926d8
leave
ret
mov dword [esi + 0x2470], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x2474], eax
xor eax, eax
jmp 0x419724
Function at 0x4197ea
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x6c75ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x20c]
push 0x208
push ebx
push eax
mov edi, ecx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x214], ebx
call fcn.005aa3d0
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
call fcn.005baec0
add esp, 0x10
mov esi, eax
add esi, esi
mov ecx, esi
neg ecx
push 2
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ecx
push dword [edi + 8]
call ebx
push 0
lea eax, [ebp - 0x210]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, dword [ebp - 0x210]
jne 0x4198cd
lea eax, [ebp - 0x20c]
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
push eax
call fcn.005bcc3e
pop ecx
pop ecx
test eax, eax
jne 0x4198cd
push 1
xor esi, esi
push esi
push 0xfffffffffffffffc
pop eax
sub eax, dword [ebp - 0x210]
push eax
push dword [edi + 8]
call ebx
push esi
lea eax, [ebp - 0x210]
push eax
push 4
lea eax, [ebp - 0x214]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x210]
add eax, dword [ebp - 0x214]
push 1
push esi
neg eax
push eax
push dword [edi + 8]
call ebx
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005926d8
leave
ret

Function at 0x4198dc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push 2
push ebx
push ebx
mov eax, dword [esi + 0x26e8]
sub eax, dword [esi + 0x26e4]
push dword [esi + 8]
sar eax, 2
mov dword [ebp - 8], ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 4], ebx
je 0x4199a6
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 8]
push ebx
push eax
push 4
lea eax, [ebp - 4]
push eax
push dword [esi + 8]
call edi
mov eax, dword [esi + 0x26e8]
sub eax, dword [esi + 0x26e4]
push 4
sar eax, 2
pop ecx
mov dword [ebp - 0xc], ecx
test eax, eax
je 0x419976
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0x26e4]
push 0x20
push dword [eax + ebx*4]
push dword [esi + 8]
call edi
mov ecx, dword [ebp - 0xc]
mov eax, dword [esi + 0x26e8]
add ecx, 0x20
sub eax, dword [esi + 0x26e4]
inc ebx
sar eax, 2
mov dword [ebp - 0xc], ecx
cmp ebx, eax
jb 0x419943
push 0
lea eax, [ebp - 8]
mov dword [ebp - 4], ecx
push eax
push 4
lea eax, [ebp - 4]
push eax
push dword [esi + 8]
call edi
mov ebx, str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
push ebx
call fcn.005baec0
pop ecx
push 0
lea ecx, [ebp - 8]
add eax, eax
push ecx
push eax
push ebx
push dword [esi + 8]
call edi
pop edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop esi
pop ebx
leave
ret
Function at 0x4199b3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x6c75ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x210]
push 0x208
push ebx
push eax
mov edi, ecx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x218], ebx
call fcn.005aa3d0
xorps xmm0, xmm0
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
movlpd qword [ebp - 0x228], xmm0
call fcn.005baec0
add esp, 0x10
mov esi, eax
add esi, esi
mov ecx, esi
neg ecx
push 2
push ebx
push ecx
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x214]
push eax
push esi
lea eax, [ebp - 0x210]
push eax
push dword [edi + 8]
call ebx
cmp esi, dword [ebp - 0x214]
jne 0x419b94
lea eax, [ebp - 0x210]
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
push eax
call fcn.005bcc3e
pop ecx
pop ecx
test eax, eax
jne 0x419b94
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push eax
push 0xfffffffffffffffc
pop eax
sub eax, dword [ebp - 0x214]
push eax
push dword [edi + 8]
call esi
push 0
lea eax, [ebp - 0x214]
push eax
push 4
lea eax, [ebp - 0x22c]
push eax
push dword [edi + 8]
call ebx
mov eax, dword [ebp - 0x22c]
add eax, dword [ebp - 0x214]
push 1
push 0
neg eax
push eax
push dword [edi + 8]
call esi
push 0
lea eax, [ebp - 0x214]
push eax
push 4
lea eax, [ebp - 0x218]
push eax
push dword [edi + 8]
call ebx
and dword [ebp - 0x230], 0
cmp dword [ebp - 0x218], 0
mov ebx, dword [ebp - 0x224]
mov eax, dword [ebp - 0x228]
jbe 0x419b67
lea esi, [edi + 0x5cfb8]
mov dword [ebp - 0x21c], eax
push 0
lea eax, [ebp - 0x214]
push eax
push 0x20
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi + 0x18]
xor edx, edx
add dword [esi + 8], eax
mov eax, dword [esi + 0x1c]
adc dword [esi + 0xc], eax
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 8]
mov eax, dword [esi + 0x14]
sbb eax, dword [esi + 0xc]
add ecx, 1
mov dword [esi], edx
adc eax, edx
mov dword [esi + 4], edx
add dword [ebp - 0x21c], ecx
lea ecx, [edi + 0x26e4]
mov dword [esi + 0x18], edx
adc ebx, eax
mov dword [esi + 0x1c], edx
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], esi
push eax
call fcn.0040ddde
mov eax, dword [ebp - 0x230]
add esi, 0x20
inc eax
mov dword [ebp - 0x230], eax
cmp eax, dword [ebp - 0x218]
jb 0x419aea
mov eax, dword [ebp - 0x21c]
mov edx, dword [edi + 0x5d100]
mov ecx, dword [edi + 0x5d104]
sub edx, eax
mov dword [edi + 0x5d118], edx
sbb ecx, ebx
mov dword [edi + 0x5d110], edx
xor eax, eax
mov dword [edi + 0x5d11c], ecx
mov dword [edi + 0x5d114], ecx
inc eax
jmp 0x419b96
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005926d8
leave
ret
Function at 0x419ba5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [edi + 0x20]
mov ebx, dword [edi + 0x805c]
cmp dword [eax + 4], 1
jne 0x419bc3
mov ebx, dword [edi]
xor eax, eax
cmp dword [esi + 0x26f0], eax
je 0x419c63
call fcn.004197ea
mov edx, dword [edi + 0x8040]
push 0
mov dword [ebp - 8], edx
mov ecx, dword [edx + 8]
add ecx, dword [edx + 0x18]
mov eax, dword [edx + 0xc]
adc eax, dword [edx + 0x1c]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ecx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x419c11
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x419c9c
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push 0
push eax
push ebx
lea eax, [edi + 0x40]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x419c9c
mov ecx, dword [ebp + 8]
cmp ecx, ebx
jne 0x419c9c
mov eax, dword [ebp - 8]
add dword [eax + 0x18], ecx
adc dword [eax + 0x1c], 0
mov ecx, dword [ebp + 8]
add dword [esi + 0x5d110], ecx
push ecx
adc dword [esi + 0x5d114], 0
mov ecx, esi
push edi
call fcn.00419ca5
mov ecx, esi
call fcn.004198dc
xor eax, eax
inc eax
jmp 0x419c9e
push eax
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [edi + 0x40]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x419c9c
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0x419c9c
add dword [esi + 0x5d110], eax
mov ecx, esi
push eax
adc dword [esi + 0x5d114], 0
push edi
call fcn.00419ca5
jmp 0x419c5e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41d5ae
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x6c75ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x54], eax
push 0x10
pop ecx
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov dword [ebp - 0x4c], ebx
lea edi, [ebp - 0x48]
mov eax, edx
rep movsd dword es:[edi], dword [esi]
push 3
pop ecx
cdq
idiv ecx
movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x54]
xor esi, esi
mov dword [ebp - 0x50], eax
mov ecx, edx
mov dword [ebp - 0x58], ecx
test eax, eax
jle 0x41d65f
mov eax, dword [ebp - 0x4c]
mov dl, byte [eax]
mov bh, byte [eax + 1]
mov bl, byte [eax + 2]
add eax, 3
mov dword [ebp - 0x4c], eax
movzx eax, dl
shr eax, 2
movzx ecx, bh
shr ecx, 4
mov al, byte [ebp + eax - 0x48]
mov byte [edi + esi], al
movzx eax, dl
shl eax, 4
or ecx, eax
movzx edx, bl
and ecx, 0x3f
mov al, byte [ebp + ecx - 0x48]
mov ecx, edx
mov byte [edi + esi + 1], al
and edx, 0x3f
shr ecx, 6
movzx eax, bh
shl eax, 2
or ecx, eax
and ecx, 0x3f
mov al, byte [ebp + ecx - 0x48]
mov byte [edi + esi + 2], al
mov al, byte [ebp + edx - 0x48]
mov byte [edi + esi + 3], al
add esi, 4
sub dword [ebp - 0x50], 1
jne 0x41d5f3
mov ebx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x58]
cmp ecx, 1
jne 0x41d689
movzx ecx, byte [ebx]
mov eax, ecx
and ecx, 3
shr eax, 2
add ecx, ecx
mov al, byte [ebp + eax - 0x48]
mov byte [edi + esi], al
mov al, byte [ebp + ecx*8 - 0x48]
mov byte [edi + esi + 1], al
mov word [edi + esi + 2], 0x3d3d
jmp 0x41d6c8
cmp ecx, 2
jne 0x41d6cb
movzx edx, byte [ebx]
mov cl, byte [ebx + 1]
mov eax, edx
shr eax, 2
and edx, 3
movzx ecx, cl
shl edx, 4
mov al, byte [ebp + eax - 0x48]
mov byte [edi + esi], al
mov eax, ecx
shr eax, 4
or eax, edx
and ecx, 0xf
mov al, byte [ebp + eax - 0x48]
mov cl, byte [ebp + ecx*4 - 0x48]
mov byte [edi + esi + 1], al
mov byte [edi + esi + 2], cl
mov byte [edi + esi + 3], 0x3d
add esi, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005926d8
leave
ret
Function at 0x41d741
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x6c75ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [0x6e659c]
xor eax, eax
mov dword [ebp - 0x240], ecx
cmp dword [0x6e65a0], 0x10
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
mov esi, edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, 0x6e658c
cmovae eax, dword [0x6e658c]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.005aa530
push 8
xor eax, eax
lea edi, [ebp - 0x34]
cmp dword [0x6e6584], 0x10
pop ecx
push dword [0x6e6580]
rep stosd dword es:[edi], eax
mov eax, 0x6e6570
cmovae eax, dword [0x6e6570]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.005aa530
call fcn.0041d6dc
push eax
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x238]
call fcn.0041c274
mov ebx, dword [esi + 0x10]
and ebx, 0xfffffff0
add ebx, 0x10
push ebx
call fcn.00592e78
add esp, 0x20
mov dword [ebp - 0x23c], eax
cmp dword [esi + 0x14], 0x10
jb 0x41d7ec
mov esi, dword [esi]
mov edx, esi
mov ecx, eax
call fcn.0041d6f6
xor edi, edi
test ebx, ebx
je 0x41d833
mov esi, dword [ebp - 0x23c]
xor ecx, ecx
lea eax, [esi - 0x10]
test edi, edi
lea edx, [ebp - 0x14]
cmovne edx, eax
mov al, byte [edx + ecx]
xor byte [esi + ecx], al
inc ecx
cmp ecx, 0x10
jl 0x41d80e
push esi
mov edx, esi
lea ecx, [ebp - 0x238]
call fcn.0041c6cb
add edi, 0x10
add esi, 0x10
pop ecx
cmp edi, ebx
jb 0x41d801
mov eax, ebx
push 3
cdq
pop ecx
idiv ecx
mov eax, ebx
test edx, edx
je 0x41d845
sub eax, edx
add eax, ecx
cdq
idiv ecx
mov edi, eax
shl edi, 2
push edi
call fcn.00592e78
mov esi, eax
mov edx, ebx
mov ebx, dword [ebp - 0x23c]
mov ecx, ebx
push esi
call fcn.0041d5ae
pop ecx
pop ecx
mov ecx, dword [ebp - 0x240]
push edi
push esi
call fcn.0040b5b4
push esi
call fcn.00592945
push ebx
call fcn.00592945
mov eax, dword [ebp - 0x240]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005926d8
leave
ret
Function at 0x41e238
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push ebx
push 0x80
push 3
push ebx
mov eax, edx
push 1
push accept
push ecx
mov dword [eax], ebx
mov dword [ebp - 4], eax
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41e2e4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi], eax
test eax, eax
je 0x41e2d9
cmp eax, 0xffffffff
je 0x41e2d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41e2d9
mov eax, dword [esi]
add eax, 8
push 0x6cec54
push eax
call fcn.00593051
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [ebp - 4]
mov dword [eax], ecx
test ecx, ecx
jne 0x41e2a9
mov dword [esi], ebx
jmp 0x41e2d9
mov eax, dword [esi]
add eax, 8
push eax
push ebx
push ecx
call fcn.005aa3d0
add esp, 0xc
mov dword [ebp + 8], ebx
lea eax, [ebp + 8]
push ebx
push eax
mov eax, dword [ebp - 4]
push dword [esi]
push dword [eax]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, dword [esi]
sete bl
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x41e2e6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41e2eb
Capabilities:
Delete file
Move file
Set file attributes
Write file on windows

Disassembly:
push 0x10
mov eax, 0x5da199
call fcn.00593ad3
mov ebx, edx
mov dword [ebp - 0x18], ebx
mov edi, ecx
test edi, edi
je 0x41e3b5
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x41e3b5
test ebx, ebx
je 0x41e3b5
mov eax, dword [0x6c7fd4]
mov dword [ebp - 0x10], eax
push edi
lea eax, [ebp - 0x10]
xor ebx, ebx
push 0x62cffc
push eax
mov dword [ebp - 4], ebx
call fcn.00414048
add esp, 0xc
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x41e3a9
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ebx
push ecx
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x14], ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x14], esi
push dword [ebp - 0x1c]
sete bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x41e3a9
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 1
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push dword [ebp - 0x10]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x10]
call fcn.0040a4ed
mov eax, ebx
jmp 0x41e3b7
xor eax, eax
call fcn.00593a9c
ret