joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41839f
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 0x418412
cmp dword [edi + 0x2480], 0
je 0x41843e
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 0x418401
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x41843e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x41843e
xor eax, eax
jmp 0x418441
cmp dword [esi], 0
jne 0x418423
mov eax, dword [esi + 4]
test eax, eax
je 0x418423
mov dword [esi + 0x18], eax
jmp 0x41843e
push 1
push ebx
mov dword [esi + 0x28], 4
call fcn.00418f5e
test eax, eax
jne 0x41843e
push ebx
mov ecx, edi
call fcn.00418b1c
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x41871a
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.005a88e0
mov dword [ebx], esi
mov ebx, 0x8000
push ebx
lea esi, [edi + 0x40]
push 0
push esi
call fcn.005a88e0
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 0x4187a1
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 0x41879c
ja 0x418796
cmp eax, ebx
jbe 0x41879c
and dword [ebp - 8], 0
jmp 0x4187da
mov dword [ebp - 8], ecx
jmp 0x4187d8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x5d100]
mov ecx, dword [edx + 0x5d104]
cmp eax, 0xffffffff
jne 0x4187b9
cmp ecx, eax
je 0x4187dc
sub eax, dword [edx + 0x5d110]
sbb ecx, dword [edx + 0x5d114]
test ecx, ecx
jb 0x4187d5
ja 0x4187cf
cmp eax, ebx
jbe 0x4187d5
and dword [ebp - 8], 0
jmp 0x4187da
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 0x41880b
push edi
push ebx
lea ecx, [edi + 0x8044]
push ecx
push dword [edi + 0x1c]
call dword [sym.imp.WININET.dll_InternetReadFileExA]
jmp 0x41881d
push esi
push dword [esi]
push dword [edi + 0x8058]
push dword [edi + 0x1c]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x41882e
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, ebx
jmp 0x418848
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x41882a
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00418b1c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x418c25
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6c45ac]
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 0x418d97
mov eax, dword [ebx + 0x20]
mov esi, edi
add eax, 0x2348
mov dword [ebp - 8], edi
push eax
call fcn.005b93d0
pop ecx
mov ecx, dword [ebx + 0x20]
test eax, eax
je 0x418c8f
lea esi, [ecx + 0x2348]
mov dword [ebp - 8], esi
lea eax, [ecx + 0x2048]
push eax
call fcn.005b93d0
pop ecx
test eax, eax
je 0x418ca9
mov edi, dword [ebx + 0x20]
add edi, 0x2048
test esi, esi
jne 0x418cc8
mov esi, dword [ebp - 0xc]
add esi, 0x60608
push esi
call fcn.005b93d0
pop ecx
mov ecx, dword [ebp - 8]
test eax, eax
cmovne ecx, esi
mov dword [ebp - 8], ecx
test edi, edi
jne 0x418ce1
mov esi, dword [ebp - 0xc]
add esi, 0x60708
push esi
call fcn.005b93d0
test eax, eax
pop ecx
cmovne edi, esi
mov eax, dword [ebx + 0x20]
push 0x41737e
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 0x418d97
mov edi, dword [ebp - 0xc]
add edi, 0x60808
push edi
call fcn.005b93d0
pop ecx
test eax, eax
je 0x418d92
mov dword [ebp - 0x18], 3
test edi, edi
je 0x418d76
push edi
call fcn.005b93d0
inc eax
pop ecx
cmp eax, 0x3fffffff
jg 0x418d76
lea esi, [eax + eax]
mov eax, esi
call fcn.00591f80
mov ecx, esp
mov edx, edi
push 3
push esi
call fcn.004115f2
mov dword [ebp - 0x14], eax
jmp 0x418d7a
and dword [ebp - 0x14], 0
push 0xc
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], 0x61ce3e
push ecx
push 0x26
push dword [ebx + 0x14]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
xor eax, eax
inc eax
jmp 0x418d99
xor eax, eax
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00590be8
leave
ret 4
Function at 0x418dad
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1050
call fcn.005918e0
mov eax, dword [0x6c45ac]
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], 0x62ad08
mov dword [ebp - 0x1020], edi
call fcn.005a88e0
mov ecx, dword [ebx + 0x20]
add esp, 0xc
lea eax, [ecx + 0x1048]
push eax
lea eax, [ecx + 0x48]
push eax
push 0x62ad10
lea eax, [ebp - 0x100c]
push 0x7ff
push eax
call fcn.0041a49f
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, 0x62acf4
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 0x418f4b
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.005a88e0
add esp, 0xc
mov dword [ebp - 0x104c], esi
push 0xa2d0
call fcn.00591388
mov esi, eax
pop ecx
test esi, esi
je 0x418f2a
push 0xa2d0
push edi
push esi
call fcn.005a88e0
add esp, 0xc
push dword [ebp - 0x101c]
push ecx
mov ecx, dword [ebp - 0x1010]
push esi
push ebx
call fcn.00419030
push esi
mov dword [ebp - 0x1044], esi
call fcn.005b93d0
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 0x418f4b
push esi
call fcn.00590e55
pop ecx
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00590be8
leave
ret 4
Function at 0x4195af
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6c45ac]
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 0x41971e
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 0x419746
mov ecx, dword [esi + 0x5d100]
mov eax, dword [esi + 0x5d104]
cmp ecx, 0xffffffff
jne 0x41962c
cmp eax, ecx
je 0x419647
cmp dword [ebp - 0x1c], eax
ja 0x419647
jb 0x419638
cmp dword [ebp - 0x20], ecx
ja 0x419647
mov dword [esi + 0x2470], 2
jmp 0x419746
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 0x419730
cmp dword [esi + 0x26f0], ebx
je 0x41971e
lea edi, [esi + 0x26e4]
mov ecx, esi
mov eax, dword [edi]
mov dword [edi + 4], eax
call fcn.004199b0
test eax, eax
jne 0x41971e
mov eax, dword [esi + 0x2468]
test eax, eax
jne 0x4196a0
push 5
pop eax
mov dword [esi + 0x2468], eax
push 0xa
pop ecx
cmp eax, ecx
jbe 0x4196ad
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.0040dddb
mov eax, dword [esi + 0x5d100]
mov cl, 0x20
mov edx, dword [esi + 0x5d104]
call fcn.005d6ec0
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.00590be8
leave
ret
mov dword [esi + 0x2470], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x2474], eax
xor eax, eax
jmp 0x419721
Function at 0x4197e7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x6c45ac]
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.005a88e0
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
call fcn.005b93d0
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 0x4198ca
lea eax, [ebp - 0x20c]
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
push eax
call fcn.005bb14e
pop ecx
pop ecx
test eax, eax
jne 0x4198ca
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.00590be8
leave
ret

Function at 0x4198d9
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 0x4199a3
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 0x419973
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 0x419940
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.005b93d0
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 0x4199b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x6c45ac]
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.005a88e0
xorps xmm0, xmm0
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
movlpd qword [ebp - 0x228], xmm0
call fcn.005b93d0
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 0x419b91
lea eax, [ebp - 0x210]
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
push eax
call fcn.005bb14e
pop ecx
pop ecx
test eax, eax
jne 0x419b91
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 0x419b64
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.0040dddb
mov eax, dword [ebp - 0x230]
add esi, 0x20
inc eax
mov dword [ebp - 0x230], eax
cmp eax, dword [ebp - 0x218]
jb 0x419ae7
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 0x419b93
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00590be8
leave
ret
Function at 0x419ba2
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 0x419bc0
mov ebx, dword [edi]
xor eax, eax
cmp dword [esi + 0x26f0], eax
je 0x419c60
call fcn.004197e7
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 0x419c0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x419c99
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 0x419c99
mov ecx, dword [ebp + 8]
cmp ecx, ebx
jne 0x419c99
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.00419ca2
mov ecx, esi
call fcn.004198d9
xor eax, eax
inc eax
jmp 0x419c9b
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 0x419c99
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0x419c99
add dword [esi + 0x5d110], eax
mov ecx, esi
push eax
adc dword [esi + 0x5d114], 0
push edi
call fcn.00419ca2
jmp 0x419c5b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41d5ab
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x6c45ac]
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 0x41d65c
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 0x41d5f0
mov ebx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x58]
cmp ecx, 1
jne 0x41d686
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 0x41d6c5
cmp ecx, 2
jne 0x41d6c8
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.00590be8
leave
ret
Function at 0x41d73e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x6c45ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [0x6e353c]
xor eax, eax
mov dword [ebp - 0x240], ecx
cmp dword [0x6e3540], 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, 0x6e352c
cmovae eax, dword [0x6e352c]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.005a8a40
push 8
xor eax, eax
lea edi, [ebp - 0x34]
cmp dword [0x6e3524], 0x10
pop ecx
push dword [0x6e3520]
rep stosd dword es:[edi], eax
mov eax, 0x6e3510
cmovae eax, dword [0x6e3510]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.005a8a40
call fcn.0041d6d9
push eax
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x238]
call fcn.0041c271
mov ebx, dword [esi + 0x10]
and ebx, 0xfffffff0
add ebx, 0x10
push ebx
call fcn.00591388
add esp, 0x20
mov dword [ebp - 0x23c], eax
cmp dword [esi + 0x14], 0x10
jb 0x41d7e9
mov esi, dword [esi]
mov edx, esi
mov ecx, eax
call fcn.0041d6f3
xor edi, edi
test ebx, ebx
je 0x41d830
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 0x41d80b
push esi
mov edx, esi
lea ecx, [ebp - 0x238]
call fcn.0041c6c8
add edi, 0x10
add esi, 0x10
pop ecx
cmp edi, ebx
jb 0x41d7fe
mov eax, ebx
push 3
cdq
pop ecx
idiv ecx
mov eax, ebx
test edx, edx
je 0x41d842
sub eax, edx
add eax, ecx
cdq
idiv ecx
mov edi, eax
shl edi, 2
push edi
call fcn.00591388
mov esi, eax
mov edx, ebx
mov ebx, dword [ebp - 0x23c]
mov ecx, ebx
push esi
call fcn.0041d5ab
pop ecx
pop ecx
mov ecx, dword [ebp - 0x240]
push edi
push esi
call fcn.0040b5b4
push esi
call fcn.00590e55
push ebx
call fcn.00590e55
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.00590be8
leave
ret
Function at 0x41e235
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 0x41e2e1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi], eax
test eax, eax
je 0x41e2d6
cmp eax, 0xffffffff
je 0x41e2d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41e2d6
mov eax, dword [esi]
add eax, 8
push 0x6cbc04
push eax
call fcn.00591561
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [ebp - 4]
mov dword [eax], ecx
test ecx, ecx
jne 0x41e2a6
mov dword [esi], ebx
jmp 0x41e2d6
mov eax, dword [esi]
add eax, 8
push eax
push ebx
push ecx
call fcn.005a88e0
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 0x41e2e3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push 0x10
mov eax, 0x5d86a9
call fcn.00591fe3
mov ebx, edx
mov dword [ebp - 0x18], ebx
mov edi, ecx
test edi, edi
je 0x41e3b2
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x41e3b2
test ebx, ebx
je 0x41e3b2
mov eax, dword [0x6c4fd4]
mov dword [ebp - 0x10], eax
push edi
lea eax, [ebp - 0x10]
xor ebx, ebx
push 0x62b004
push eax
mov dword [ebp - 4], ebx
call fcn.00414045
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 0x41e3a6
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 0x41e3a6
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 0x41e3b4
xor eax, eax
call fcn.00591fac
ret