joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4170af
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
push 0x3c
lea eax, [ebp - 0x3c]
mov edi, edx
push 0
push eax
mov esi, ecx
call fcn.005b24a0
push 0x2454
push 0
push edi
call fcn.005b24a0
lea eax, [edi + 8]
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], eax
add esp, 0x18
lea eax, [edi + 0x2148]
mov dword [ebp - 0x34], 0x20
mov dword [ebp - 0x2c], eax
mov ecx, 0x800
lea eax, [edi + 0x48]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
lea eax, [edi + 0x1048]
mov dword [ebp - 8], eax
lea eax, [edi + 0x2348]
mov dword [ebp - 0x20], eax
lea eax, [edi + 0x2048]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ecx
mov ecx, 0x80
push esi
mov dword [ebp - 0x28], 0x100
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
call fcn.005c2f90
pop ecx
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x417182
mov edx, dword [ebp - 0x30]
xor eax, eax
inc eax
cmp edx, 3
je 0x417161
cmp edx, 4
je 0x417161
cmp edx, eax
jne 0x417182
mov cx, word [ebp - 0x24]
and dword [edi + 0x2448], 0
and dword [edi + 0x244c], 0
or dword [edi + 0x2450], 0xffffffff
mov word [edi], cx
mov dword [edi + 4], edx
jmp 0x417184
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x417188
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0xc], ebx
jne 0x417220
push edi
lea eax, [esi + 0x5d530]
push 0x635e24
push eax
call fcn.005b32db
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4171d5
xor eax, eax
push 0x635e24
mov word [edi], ax
call fcn.005c2f90
lea eax, [edi + eax*2]
push eax
call fcn.005c2955
pop ecx
pop ecx
mov dword [esi + 0x2694], eax
mov ecx, esi
call fcn.0041a5b4
pop edi
test eax, eax
je 0x417220
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x2464], eax
test eax, eax
je 0x41721b
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push ebx
push esi
push 0x4174d6
push ebx
push ebx
mov dword [esi + 0x5d0f8], 8
call fcn.005c30ff
add esp, 0x18
mov dword [esi + 0xc], eax
xor eax, eax
inc eax
jmp 0x417222
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x417eb9
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov ecx, dword [ebp + 8]
inc ebx
mov eax, dword [edi + 0x26d8]
mov esi, dword [eax + ecx*4]
mov eax, dword [esi + 0x20]
mov dword [esi + 0x28], 2
cmp dword [eax + 4], ebx
je 0x417f2e
cmp dword [edi + 0x2480], 0
je 0x417f1b
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 0x417f1f
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, ebx
jmp 0x417f52
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x417f50
jmp 0x417f1b
cmp dword [esi], 0
jne 0x417f3f
mov eax, dword [esi + 4]
test eax, eax
je 0x417f3f
mov dword [esi + 0x18], eax
jmp 0x417f1b
and dword [esi + 0x28], 0
push ebx
push ecx
mov ecx, edi
call fcn.0041918a
test eax, eax
jne 0x417f1b
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4185cb
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 0x41863e
cmp dword [edi + 0x2480], 0
je 0x41866a
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 0x41862d
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x41866a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x41866a
xor eax, eax
jmp 0x41866d
cmp dword [esi], 0
jne 0x41864f
mov eax, dword [esi + 4]
test eax, eax
je 0x41864f
mov dword [esi + 0x18], eax
jmp 0x41866a
push 1
push ebx
mov dword [esi + 0x28], 4
call fcn.0041918a
test eax, eax
jne 0x41866a
push ebx
mov ecx, edi
call fcn.00418d48
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x418946
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.005b24a0
mov dword [ebx], esi
mov ebx, 0x8000
push ebx
lea esi, [edi + 0x40]
push 0
push esi
call fcn.005b24a0
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 0x4189cd
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 0x4189c8
ja 0x4189c2
cmp eax, ebx
jbe 0x4189c8
and dword [ebp - 8], 0
jmp 0x418a06
mov dword [ebp - 8], ecx
jmp 0x418a04
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x5d100]
mov ecx, dword [edx + 0x5d104]
cmp eax, 0xffffffff
jne 0x4189e5
cmp ecx, eax
je 0x418a08
sub eax, dword [edx + 0x5d110]
sbb ecx, dword [edx + 0x5d114]
test ecx, ecx
jb 0x418a01
ja 0x4189fb
cmp eax, ebx
jbe 0x418a01
and dword [ebp - 8], 0
jmp 0x418a06
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 0x418a37
push edi
push ebx
lea ecx, [edi + 0x8044]
push ecx
push dword [edi + 0x1c]
call dword [sym.imp.WININET.dll_InternetReadFileExA]
jmp 0x418a49
push esi
push dword [esi]
push dword [edi + 0x8058]
push dword [edi + 0x1c]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x418a5a
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, ebx
jmp 0x418a74
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x418a56
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00418d48
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x418e51
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6d35ac]
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 0x418fc3
mov eax, dword [ebx + 0x20]
mov esi, edi
add eax, 0x2348
mov dword [ebp - 8], edi
push eax
call fcn.005c2f90
pop ecx
mov ecx, dword [ebx + 0x20]
test eax, eax
je 0x418ebb
lea esi, [ecx + 0x2348]
mov dword [ebp - 8], esi
lea eax, [ecx + 0x2048]
push eax
call fcn.005c2f90
pop ecx
test eax, eax
je 0x418ed5
mov edi, dword [ebx + 0x20]
add edi, 0x2048
test esi, esi
jne 0x418ef4
mov esi, dword [ebp - 0xc]
add esi, 0x60608
push esi
call fcn.005c2f90
pop ecx
mov ecx, dword [ebp - 8]
test eax, eax
cmovne ecx, esi
mov dword [ebp - 8], ecx
test edi, edi
jne 0x418f0d
mov esi, dword [ebp - 0xc]
add esi, 0x60708
push esi
call fcn.005c2f90
test eax, eax
pop ecx
cmovne edi, esi
mov eax, dword [ebx + 0x20]
push 0x4175aa
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 0x418fc3
mov edi, dword [ebp - 0xc]
add edi, 0x60808
push edi
call fcn.005c2f90
pop ecx
test eax, eax
je 0x418fbe
mov dword [ebp - 0x18], 3
test edi, edi
je 0x418fa2
push edi
call fcn.005c2f90
inc eax
pop ecx
cmp eax, 0x3fffffff
jg 0x418fa2
lea esi, [eax + eax]
mov eax, esi
call fcn.0059bb40
mov ecx, esp
mov edx, edi
push 3
push esi
call fcn.00411600
mov dword [ebp - 0x14], eax
jmp 0x418fa6
and dword [ebp - 0x14], 0
push 0xc
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], 0x627e3e
push ecx
push 0x26
push dword [ebx + 0x14]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
xor eax, eax
inc eax
jmp 0x418fc5
xor eax, eax
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059a7a2
leave
ret 4
Function at 0x418fd9
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1050
call fcn.0059b4a0
mov eax, dword [0x6d35ac]
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], 0x635ea0
mov dword [ebp - 0x1020], edi
call fcn.005b24a0
mov ecx, dword [ebx + 0x20]
add esp, 0xc
lea eax, [ecx + 0x1048]
push eax
lea eax, [ecx + 0x48]
push eax
push 0x635ea8
lea eax, [ebp - 0x100c]
push 0x7ff
push eax
call fcn.0041a6cb
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, 0x635e8c
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 0x419177
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.005b24a0
add esp, 0xc
mov dword [ebp - 0x104c], esi
push 0xa2d0
call fcn.0059af42
mov esi, eax
pop ecx
test esi, esi
je 0x419156
push 0xa2d0
push edi
push esi
call fcn.005b24a0
add esp, 0xc
push dword [ebp - 0x101c]
push ecx
mov ecx, dword [ebp - 0x1010]
push esi
push ebx
call fcn.0041925c
push esi
mov dword [ebp - 0x1044], esi
call fcn.005c2f90
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 0x419177
push esi
call fcn.0059aa0f
pop ecx
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0059a7a2
leave
ret 4
Function at 0x4197db
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6d35ac]
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 0x41994a
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 0x419972
mov ecx, dword [esi + 0x5d100]
mov eax, dword [esi + 0x5d104]
cmp ecx, 0xffffffff
jne 0x419858
cmp eax, ecx
je 0x419873
cmp dword [ebp - 0x1c], eax
ja 0x419873
jb 0x419864
cmp dword [ebp - 0x20], ecx
ja 0x419873
mov dword [esi + 0x2470], 2
jmp 0x419972
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 0x41995c
cmp dword [esi + 0x26f0], ebx
je 0x41994a
lea edi, [esi + 0x26e4]
mov ecx, esi
mov eax, dword [edi]
mov dword [edi + 4], eax
call fcn.00419bdc
test eax, eax
jne 0x41994a
mov eax, dword [esi + 0x2468]
test eax, eax
jne 0x4198cc
push 5
pop eax
mov dword [esi + 0x2468], eax
push 0xa
pop ecx
cmp eax, ecx
jbe 0x4198d9
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.0040dde9
mov eax, dword [esi + 0x5d100]
mov cl, 0x20
mov edx, dword [esi + 0x5d104]
call fcn.005e0a80
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.0059a7a2
leave
ret
mov dword [esi + 0x2470], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x2474], eax
xor eax, eax
jmp 0x41994d
Function at 0x419a13
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x6d35ac]
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.005b24a0
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
call fcn.005c2f90
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 0x419af6
lea eax, [ebp - 0x20c]
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
push eax
call fcn.005c4d0e
pop ecx
pop ecx
test eax, eax
jne 0x419af6
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.0059a7a2
leave
ret

Function at 0x419b05
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 0x419bcf
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 0x419b9f
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 0x419b6c
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.005c2f90
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 0x419bdc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x6d35ac]
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.005b24a0
xorps xmm0, xmm0
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
movlpd qword [ebp - 0x228], xmm0
call fcn.005c2f90
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 0x419dbd
lea eax, [ebp - 0x210]
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
push eax
call fcn.005c4d0e
pop ecx
pop ecx
test eax, eax
jne 0x419dbd
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 0x419d90
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.0040dde9
mov eax, dword [ebp - 0x230]
add esi, 0x20
inc eax
mov dword [ebp - 0x230], eax
cmp eax, dword [ebp - 0x218]
jb 0x419d13
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 0x419dbf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0059a7a2
leave
ret
Function at 0x419dce
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 0x419dec
mov ebx, dword [edi]
xor eax, eax
cmp dword [esi + 0x26f0], eax
je 0x419e8c
call fcn.00419a13
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 0x419e3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x419ec5
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 0x419ec5
mov ecx, dword [ebp + 8]
cmp ecx, ebx
jne 0x419ec5
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.00419ece
mov ecx, esi
call fcn.00419b05
xor eax, eax
inc eax
jmp 0x419ec7
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 0x419ec5
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0x419ec5
add dword [esi + 0x5d110], eax
mov ecx, esi
push eax
adc dword [esi + 0x5d114], 0
push edi
call fcn.00419ece
jmp 0x419e87
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41d7d7
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x6d35ac]
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 0x41d888
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 0x41d81c
mov ebx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x58]
cmp ecx, 1
jne 0x41d8b2
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 0x41d8f1
cmp ecx, 2
jne 0x41d8f4
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.0059a7a2
leave
ret