joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4116fa
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0x68c
mov eax, 0x5b4bfc
call fcn.0056fe77
mov edi, ecx
test edi, edi
je 0x4116f2
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00586790
add esp, 0xc
mov dword [ebp - 0x644], 0x104
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x640]
call fcn.00409872
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x640]
cmp dword [ebp - 0x62c], 8
mov esi, str.se_breakpad::ReportThreadFunc
cmovae eax, dword [ebp - 0x640]
push eax
push 0x31a
push esi
push str.__s__d___seVerPath:_s
call fcn.00408e0e
add esp, 0x10
cmp dword [ebp - 0x630], ebx
je 0x4116e7
cmp dword [ebp - 0x62c], 8
lea eax, [ebp - 0x640]
cmovae eax, dword [ebp - 0x640]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4116d4
cmp dword [ebp - 0x62c], 8
lea ecx, [ebp - 0x640]
cmovae ecx, dword [ebp - 0x640]
call fcn.0041eac2
test eax, eax
je 0x4116d4
mov ax, word [0x5fa498]
push 0x40e
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push ebx
push eax
call fcn.00586790
add esp, 0xc
lea esi, [ebp - 0x640]
cmp dword [ebp - 0x62c], 8
cmovae esi, dword [ebp - 0x640]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push esi
push str.__s____crash_d___crashcfg__s_
lea eax, [ebp - 0x628]
push 0x207
push eax
call fcn.004117ac
push 0x44
pop esi
push esi
lea eax, [ebp - 0x698]
push ebx
push eax
call fcn.00586790
xor eax, eax
mov dword [ebp - 0x698], esi
add esp, 0x24
mov dword [ebp - 0x66c], 0x80
lea edi, [ebp - 0x654]
stosd dword es:[edi], eax
push 5
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop eax
mov word [ebp - 0x668], ax
lea eax, [ebp - 0x654]
push eax
lea eax, [ebp - 0x698]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x628]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4116e7
push dword [ebp - 0x650]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x654]
call esi
jmp 0x4116e7
push 0x335
push esi
push str.__s__d___PathFileExists_error
call fcn.00408e0e
add esp, 0xc
lea ecx, [ebp - 0x640]
call fcn.00409db5
xor eax, eax
call fcn.0056fe21
ret
push ebx
push esi
push edi
mov edi, ecx
push edi
call fcn.0059771b
mov ebx, eax
xor ecx, ecx
push 2
pop edx
lea eax, [ebx + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056f127
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41174e
lea ecx, [ebx*2 + 2]
push ecx
push 0
push esi
call fcn.00586790
push edi
lea eax, [ebx + 1]
push eax
push esi
call fcn.00409d4d
add esp, 0x18
mov ecx, esi
pop edi
pop esi
pop ebx
jmp 0x411524
pop edi
pop esi
pop ebx
ret
Function at 0x4126fc
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
mov eax, dword [0x649ffc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
xor edx, edx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0xfc], ecx
mov dword [ebp - 0xf8], ebx
movzx ecx, byte [edx + str.80_]
mov eax, ecx
and ecx, 7
shr eax, 3
mov al, byte [eax + esi]
test byte [ecx*2 + 0x5f4cf0], al
setne al
mov byte [ebp + edx - 0x3c], al
inc edx
cmp edx, 0x38
jl 0x412726
push 0x1e
xor edi, edi
pop esi
cmp ebx, 1
lea eax, [edi + edi]
mov edx, esi
cmovne edx, eax
movzx eax, byte [edi + 0x5f46a0]
and dword [ebp + edx*4 - 0xf0], 0
and dword [ebp + edx*4 - 0xf4], 0
xor ecx, ecx
cmp eax, 0x1c
jge 0x412780
mov bl, byte [ebp + eax - 0x3c]
jmp 0x412784
mov bl, byte [ebp + eax - 0x58]
mov byte [ebp + ecx - 0x74], bl
inc ecx
inc eax
cmp ecx, 0x1c
jl 0x412775
movzx eax, byte [edi + 0x5f46a0]
push 0x1c
pop ecx
add eax, ecx
cmp eax, 0x38
jge 0x4127a6
mov bl, byte [ebp + eax - 0x3c]
jmp 0x4127aa
mov bl, byte [ebp + eax - 0x58]
mov byte [ebp + ecx - 0x74], bl
inc ecx
inc eax
cmp ecx, 0x38
jl 0x41279b
xor ecx, ecx
movzx eax, byte [ecx + 0x5f4410]
cmp byte [ebp + eax - 0x74], 0
je 0x4127d3
mov eax, dword [ecx*4 + 0x5f4640]
or dword [ebp + edx*4 - 0xf4], eax
movzx eax, byte [ecx + 0x5f4428]
cmp byte [ebp + eax - 0x74], 0
je 0x4127ef
mov eax, dword [ecx*4 + 0x5f4640]
or dword [ebp + edx*4 - 0xf0], eax
inc ecx
cmp ecx, 0x18
jl 0x4127b7
mov ebx, dword [ebp - 0xf8]
sub esi, 2
inc edi
cmp esi, 0xfffffffe
jg 0x412751
mov ecx, dword [ebp - 0xfc]
lea eax, [ebp - 0xf4]
push eax
call fcn.0041282b
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056e987
leave
ret 8
Function at 0x4129c2
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, edx
shr eax, 4
xor eax, ecx
mov dword [ebp - 4], 8
and eax, 0xf0f0f0f
xor ecx, eax
shl eax, 4
xor edx, eax
mov eax, edx
shr eax, 0x10
xor eax, ecx
movzx eax, ax
xor ecx, eax
shl eax, 0x10
xor edx, eax
mov eax, ecx
shr eax, 2
xor eax, edx
and eax, 0x33333333
xor edx, eax
shl eax, 2
xor ecx, eax
mov edi, ecx
shr edi, 8
xor edi, edx
and edi, 0xff00ff
xor edx, edi
shl edi, 8
xor edi, ecx
rol edi, 1
mov ebx, edi
xor ebx, edx
and ebx, 0xaaaaaaaa
xor edi, ebx
xor ebx, edx
rol ebx, 1
mov eax, dword [ebp + 0xc]
mov edx, edi
ror edx, 4
xor edx, dword [eax]
add eax, 4
mov dword [ebp + 0xc], eax
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
and ecx, 0x3f
and eax, 0x3f
mov esi, dword [ecx*4 + 0x5f46b0]
or esi, dword [eax*4 + 0x5f48f0]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
or esi, dword [eax*4 + 0x5f4540]
or esi, dword [edx*4 + 0x5f4bf0]
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
add eax, 4
mov dword [ebp + 0xc], eax
xor edx, edi
mov ecx, edx
mov eax, edx
shr eax, 0x10
shr ecx, 0x18
and eax, 0x3f
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x5f49f0]
or ecx, dword [eax*4 + 0x5f4d00]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
or ecx, dword [eax*4 + 0x5f4440]
or ecx, dword [edx*4 + 0x5f4af0]
mov eax, dword [ebp + 0xc]
or ecx, esi
xor ebx, ecx
mov edx, ebx
ror edx, 4
xor edx, dword [eax]
add eax, 4
mov dword [ebp + 0xc], eax
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
and ecx, 0x3f
and eax, 0x3f
mov esi, dword [ecx*4 + 0x5f46b0]
or esi, dword [eax*4 + 0x5f48f0]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
or esi, dword [eax*4 + 0x5f4540]
mov eax, dword [ebp + 0xc]
or esi, dword [edx*4 + 0x5f4bf0]
mov edx, dword [eax]
add eax, 4
xor edx, ebx
mov dword [ebp + 0xc], eax
mov ecx, edx
mov eax, edx
shr ecx, 0x18
and ecx, 0x3f
shr eax, 0x10
and eax, 0x3f
mov ecx, dword [ecx*4 + 0x5f49f0]
or ecx, dword [eax*4 + 0x5f4d00]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
or ecx, dword [eax*4 + 0x5f4440]
or ecx, dword [edx*4 + 0x5f4af0]
or ecx, esi
xor edi, ecx
sub dword [ebp - 4], 1
jne 0x412a35
ror edi, 1
mov edx, edi
mov esi, dword [ebp + 8]
xor edx, ebx
and edx, 0xaaaaaaaa
xor edi, edx
xor edx, ebx
ror edx, 1
mov eax, edx
shr eax, 8
xor eax, edi
and eax, 0xff00ff
xor edi, eax
shl eax, 8
xor edx, eax
mov eax, edx
shr eax, 2
xor eax, edi
and eax, 0x33333333
xor edi, eax
shl eax, 2
xor edx, eax
mov eax, edi
shr eax, 0x10
xor eax, edx
movzx eax, ax
xor edx, eax
shl eax, 0x10
xor edi, eax
mov ecx, edi
shr ecx, 4
xor ecx, edx
and ecx, 0xf0f0f0f
mov eax, ecx
shl eax, 4
xor eax, edi
xor ecx, edx
pop edi
mov dword [esi], eax
mov dword [esi + 4], ecx
pop esi
pop ebx
leave
ret 8
Function at 0x413286
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.00586790
push 0x2454
push 0
push edi
call fcn.00586790
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.0059771b
pop ecx
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x413359
mov edx, dword [ebp - 0x30]
xor eax, eax
inc eax
cmp edx, 3
je 0x413338
cmp edx, 4
je 0x413338
cmp edx, eax
jne 0x413359
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 0x41335b
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x41335f
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 0x4133f7
push edi
lea eax, [esi + 0x5d530]
push str.MetalinkFile
push eax
call fcn.005875cb
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4133ac
xor eax, eax
push str.MetalinkFile
mov word [edi], ax
call fcn.0059771b
lea eax, [edi + eax*2]
push eax
call fcn.00597115
pop ecx
pop ecx
mov dword [esi + 0x2694], eax
mov ecx, esi
call fcn.00416839
pop edi
test eax, eax
je 0x4133f7
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x2464], eax
test eax, eax
je 0x4133f2
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push ebx
push esi
push 0x4136ad
push ebx
push ebx
mov dword [esi + 0x5d0f8], 8
call fcn.0059788a
add esp, 0x18
mov dword [esi + 0xc], eax
xor eax, eax
inc eax
jmp 0x4133f9
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x4140aa
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 0x41411f
cmp dword [edi + 0x2480], 0
je 0x41410c
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 0x414110
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, ebx
jmp 0x414143
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x414141
jmp 0x41410c
cmp dword [esi], 0
jne 0x414130
mov eax, dword [esi + 4]
test eax, eax
je 0x414130
mov dword [esi + 0x18], eax
jmp 0x41410c
and dword [esi + 0x28], 0
push ebx
push ecx
mov ecx, edi
call fcn.004153a2
test eax, eax
jne 0x41410c
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4147d6
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 0x414849
cmp dword [edi + 0x2480], 0
je 0x414875
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 0x414838
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x414875
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x414875
xor eax, eax
jmp 0x414878
cmp dword [esi], 0
jne 0x41485a
mov eax, dword [esi + 4]
test eax, eax
je 0x41485a
mov dword [esi + 0x18], eax
jmp 0x414875
push 1
push ebx
mov dword [esi + 0x28], 4
call fcn.004153a2
test eax, eax
jne 0x414875
push ebx
mov ecx, edi
call fcn.00414f53
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x414b51
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.00586790
mov dword [ebx], esi
mov ebx, 0x8000
push ebx
lea esi, [edi + 0x40]
push 0
push esi
call fcn.00586790
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 0x414bd8
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 0x414bd3
ja 0x414bcd
cmp eax, ebx
jbe 0x414bd3
and dword [ebp - 8], 0
jmp 0x414c11
mov dword [ebp - 8], ecx
jmp 0x414c0f
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x5d100]
mov ecx, dword [edx + 0x5d104]
cmp eax, 0xffffffff
jne 0x414bf0
cmp ecx, eax
je 0x414c13
sub eax, dword [edx + 0x5d110]
sbb ecx, dword [edx + 0x5d114]
test ecx, ecx
jb 0x414c0c
ja 0x414c06
cmp eax, ebx
jbe 0x414c0c
and dword [ebp - 8], 0
jmp 0x414c11
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 0x414c42
push edi
push ebx
lea ecx, [edi + 0x8044]
push ecx
push dword [edi + 0x1c]
call dword [sym.imp.WININET.dll_InternetReadFileExA]
jmp 0x414c54
push esi
push dword [esi]
push dword [edi + 0x8058]
push dword [edi + 0x1c]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x414c65
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, ebx
jmp 0x414c7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x414c61
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00414f53
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41505c
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x649ffc]
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 0x4151ce
mov eax, dword [ebx + 0x20]
mov esi, edi
add eax, 0x2348
mov dword [ebp - 8], edi
push eax
call fcn.0059771b
pop ecx
mov ecx, dword [ebx + 0x20]
test eax, eax
je 0x4150c6
lea esi, [ecx + 0x2348]
mov dword [ebp - 8], esi
lea eax, [ecx + 0x2048]
push eax
call fcn.0059771b
pop ecx
test eax, eax
je 0x4150e0
mov edi, dword [ebx + 0x20]
add edi, 0x2048
test esi, esi
jne 0x4150ff
mov esi, dword [ebp - 0xc]
add esi, 0x60608
push esi
call fcn.0059771b
pop ecx
mov ecx, dword [ebp - 8]
test eax, eax
cmovne ecx, esi
mov dword [ebp - 8], ecx
test edi, edi
jne 0x415118
mov esi, dword [ebp - 0xc]
add esi, 0x60708
push esi
call fcn.0059771b
test eax, eax
pop ecx
cmovne edi, esi
mov eax, dword [ebx + 0x20]
push 0x413781
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 0x4151ce
mov edi, dword [ebp - 0xc]
add edi, 0x60808
push edi
call fcn.0059771b
pop ecx
test eax, eax
je 0x4151c9
mov dword [ebp - 0x18], 3
test edi, edi
je 0x4151ad
push edi
call fcn.0059771b
inc eax
pop ecx
cmp eax, 0x3fffffff
jg 0x4151ad
lea esi, [eax + eax]
mov eax, esi
call fcn.0056fde0
mov ecx, esp
mov edx, edi
push 3
push esi
call fcn.004108ac
mov dword [ebp - 0x14], eax
jmp 0x4151b1
and dword [ebp - 0x14], 0
push 0xc
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], 0x5f3886
push ecx
push 0x26
push dword [ebx + 0x14]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
xor eax, eax
inc eax
jmp 0x4151d0
xor eax, eax
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056e987
leave
ret 4
Function at 0x4151e4
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1050
call fcn.0056f680
mov eax, dword [0x649ffc]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
push edi
mov dword [ebp - 0x1010], eax
xor edi, edi
mov esi, dword [eax + 0x2480]
mov ax, word [0x5fa498]
push 0xffe
mov word [ebp - 0x100c], ax
lea eax, [ebp - 0x100a]
push edi
push eax
mov dword [ebp - 0x1024], 0x5fc738
mov dword [ebp - 0x1020], edi
call fcn.00586790
mov ecx, dword [ebx + 0x20]
add esp, 0xc
lea eax, [ecx + 0x1048]
push eax
lea eax, [ecx + 0x48]
push eax
push 0x5fc740
lea eax, [ebp - 0x100c]
push 0x7ff
push eax
call fcn.0041696f
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, 0x5fc724
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 0x41538f
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.00586790
add esp, 0xc
mov dword [ebp - 0x104c], esi
push 0xa2d0
call fcn.0056f127
mov esi, eax
pop ecx
test esi, esi
je 0x41536e
push 0xa2d0
push edi
push esi
call fcn.00586790
add esp, 0xc
push dword [ebp - 0x101c]
push ecx
mov ecx, dword [ebp - 0x1010]
push esi
push ebx
call fcn.00415474
push esi
mov dword [ebp - 0x1044], esi
call fcn.0059771b
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 0x41538f
push esi
call fcn.0056ebf4
pop ecx
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056e987
leave
ret 4
Function at 0x415a2c
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x649ffc]
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 0x415b9b
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 0x415bc3
mov ecx, dword [esi + 0x5d100]
mov eax, dword [esi + 0x5d104]
cmp ecx, 0xffffffff
jne 0x415aa9
cmp eax, ecx
je 0x415ac4
cmp dword [ebp - 0x1c], eax
ja 0x415ac4
jb 0x415ab5
cmp dword [ebp - 0x20], ecx
ja 0x415ac4
mov dword [esi + 0x2470], 2
jmp 0x415bc3
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 0x415bad
cmp dword [esi + 0x26f0], ebx
je 0x415b9b
lea edi, [esi + 0x26e4]
mov ecx, esi
mov eax, dword [edi]
mov dword [edi + 4], eax
call fcn.00415e3a
test eax, eax
jne 0x415b9b
mov eax, dword [esi + 0x2468]
test eax, eax
jne 0x415b1d
push 5
pop eax
mov dword [esi + 0x2468], eax
push 0xa
pop ecx
cmp eax, ecx
jbe 0x415b2a
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.0040b59b
mov eax, dword [esi + 0x5d100]
mov cl, 0x20
mov edx, dword [esi + 0x5d104]
call fcn.005b39a0
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.0056e987
leave
ret
mov dword [esi + 0x2470], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x2474], eax
xor eax, eax
jmp 0x415b9e
Function at 0x415c64
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x649ffc]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [0x5fa498]
push ebx
push esi
push edi
xor ebx, ebx
mov word [ebp - 0x20c], ax
push 0x206
lea eax, [ebp - 0x20a]
mov dword [ebp - 0x210], ebx
push ebx
push eax
mov edi, ecx
mov dword [ebp - 0x214], ebx
call fcn.00586790
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
call fcn.0059771b
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 0x415d54
lea eax, [ebp - 0x20c]
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
push eax
call fcn.00599314
pop ecx
pop ecx
test eax, eax
jne 0x415d54
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.0056e987
leave
ret

Function at 0x415d63
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 0x415e2d
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 0x415dfd
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 0x415dca
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.0059771b
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