joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42161f
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x86c
and dword [ebp - 0x254], 0
push ebx
push esi
push edi
mov ecx, 0x93
xor eax, eax
lea edi, [ebp - 0x250]
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
rep stosd dword es:[edi], eax
mov ax, word [0x443154]
mov ecx, 0x81
mov word [ebp - 0x86c], ax
xor eax, eax
lea edi, [ebp - 0x86a]
push 0x44083c
push dword [ebp + 8]
mov ebx, 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x43bb44
lea eax, [ebp - 0x86c]
push ebx
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x86c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x4216a7
xor eax, eax
jmp 0x4217a4
mov edi, dword [sym.imp.MSVCRT.dll_wcscmp]
lea eax, [ebp - 0x228]
push 0x43be74
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x42176f
lea eax, [ebp - 0x228]
push 0x44081c
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x42176f
test byte [ebp - 0x254], 0x10
mov ax, word [0x443154]
je 0x42172e
mov word [ebp - 0x45c], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x45a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x45c]
push dword [ebp + 8]
push 0x43bb44
push ebx
push eax
call esi
lea eax, [ebp - 0x45c]
push eax
call fcn.0042161f
add esp, 0x18
jmp 0x42176f
mov word [ebp - 0x664], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x662]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x664]
push dword [ebp + 8]
push 0x43bb44
push ebx
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x664]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4216a7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x20
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4217a9
Capabilities:
Copy file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x260
push ebx
push ebp
push esi
push edi
push dword [esp + 0x278]
mov dword [esp + 0x1c], 1
call fcn.00421506
mov ebp, 0x208
push ebp
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
pop ecx
mov ebx, 0x104
push dword [esp + 0x274]
mov dword [esp + 0x18], eax
push 0x4416bc
push ebx
push eax
call esi
and dword [esp + 0x30], 0
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x34]
add esp, 0x10
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x4218e7
mov edi, dword [sym.imp.MSVCRT.dll__wcsicmp]
lea eax, [esp + 0x4c]
push 0x43be74
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x4218d0
lea eax, [esp + 0x4c]
push 0x44081c
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x4218d0
push ebp
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
pop ecx
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x278]
push 0x43bb44
push ebx
push edi
call esi
push ebp
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0x18
lea ecx, [esp + 0x4c]
mov dword [esp + 0x10], eax
push ecx
push dword [esp + 0x27c]
push 0x43bb44
push ebx
push eax
call esi
add esp, 0x14
test byte [esp + 0x20], 0x10
je 0x4218aa
push dword [esp + 0x10]
push edi
call fcn.004217a9
pop ecx
pop ecx
jmp 0x4218b7
push 0
push dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4218bf
and dword [esp + 0x18], eax
push edi
call fcn.0042f3fe
push dword [esp + 0x14]
call fcn.0042f3fe
pop ecx
pop ecx
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x421824
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [esp + 0x14]
call fcn.0042f3fe
mov eax, dword [esp + 0x1c]
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x260
ret

Function at 0x42190a
Capabilities:
Move file

Disassembly:
push 1
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
ret
Function at 0x421b06
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor esi, esi
push edi
movzx edi, word [ebp + 0xc]
lea eax, [ebp - 0x1c]
push esi
push eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call fcn.0042ef36
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
je 0x421bed
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, esi
je 0x421bed
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, esi
je 0x421bed
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x421bed
push ebx
push edi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], esi
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x421bed
push esi
push dword [ebp + 0xc]
call fcn.00421d26
pop ecx
mov edi, eax
mov eax, dword [ebp + 0xc]
pop ecx
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp edi, esi
je 0x421bed
mov eax, dword [edi + 8]
mov dword [edi + 8], esi
cmp eax, esi
jne 0x421be5
lea eax, [ebp - 0xc]
push esi
push eax
push dword [edi + 4]
call fcn.0042ef5a
cmp eax, esi
je 0x421be5
mov dword [edi + 8], eax
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
push dword [ebp - 8]
call fcn.0042ef48
cmp dword [ebp - 4], esi
pop edi
pop esi
pop ebx
je 0x421c06
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x421c0b
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push edi
je 0x421c9e
cmp dword [ebp + 0xc], ebx
je 0x421c9e
cmp dword [ebp + 0x10], ebx
je 0x421c9e
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
je 0x421c9e
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x421c9e
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x421c94
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, ebx
je 0x421c94
lea eax, [ebp + 8]
push ebx
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
mov al, bl
pop edi
pop ebx
pop ebp
ret
Function at 0x425387
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x40
push dword [ebp + 0xc]
mov edi, 0x445aa8
push edi
call fcn.00425640
push 0x40
push 0x433e50
push edi
push edi
call fcn.0042559c
add esp, 0x1c
cmp byte [ebp + 0x14], 0
jne 0x42540b
mov ebx, dword [ebp + 0x10]
mov dword [ebp + 0x14], 0x10
mov esi, 0x445a88
push 0x20
push dword [0x441740]
push esi
call sub.MSVCRT.dll_memcpy
push ebx
push dword [0x441740]
call fcn.00425504
push 0x20
push dword [0x44173c]
push dword [0x441740]
call fcn.004255e4
push 0x20
push esi
push dword [0x44173c]
call sub.MSVCRT.dll_memcpy
add esp, 0x2c
add ebx, 0x30
dec dword [ebp + 0x14]
jne 0x4253c3
jmp 0x425466
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x14], 0x10
mov esi, 0x445a88
lea ebx, [eax + 0x2d0]
push 0x20
push dword [0x44173c]
push esi
call sub.MSVCRT.dll_memcpy
push ebx
push dword [0x44173c]
call fcn.00425504
push 0x20
push dword [0x441740]
push dword [0x44173c]
call fcn.004255e4
push 0x20
push esi
push dword [0x441740]
call sub.MSVCRT.dll_memcpy
add esp, 0x2c
sub ebx, 0x30
dec dword [ebp + 0x14]
jne 0x425420
push 0x40
push 0x433e90
push edi
push edi
call fcn.0042559c
push 0x40
push edi
push dword [ebp + 8]
call fcn.0042566f
add esp, 0x1c
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x425487
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x40
push dword [ebp + 0xc]
mov esi, 0x445a48
push esi
call fcn.00425640
push 0x38
push str.91__
push esi
push esi
call fcn.0042559c
mov eax, dword [ebp + 8]
add esp, 0x1c
xor ebx, ebx
mov dword [ebp + 0xc], eax
movsx eax, byte [ebx + 0x433f88]
lea edi, [ebx + 0x433f88]
push eax
push 0x1c
push dword [0x441744]
call fcn.00425602
movsx eax, byte [edi]
push eax
push 0x1c
push dword [0x441748]
call fcn.00425602
push 0x30
push 0x433f58
push esi
push dword [ebp + 0xc]
call fcn.0042559c
add dword [ebp + 0xc], 0x30
add esp, 0x28
inc ebx
cmp ebx, 0x10
jl 0x4254b6
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x425504
Capabilities:
Encrypt data using des

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 0x30
push 0x433ed0
mov esi, 0x445a18
push edi
push esi
call fcn.0042559c
push 0x30
push dword [esp + 0x24]
push esi
call fcn.004255e4
push esi
push edi
call fcn.00425544
push 0x20
push 0x433f00
push edi
push edi
call fcn.0042559c
add esp, 0x34
pop edi
pop esi
ret

Function at 0x4255e4
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jle 0x425600
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
sub ecx, eax
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec esi
jne 0x4255f7
pop esi
ret

Function at 0x425769
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push edi
xor edi, edi
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0xc], edi
jle 0x42579a
push esi
mov eax, dword [ebp + 8]
lea esi, [edi + eax]
lea eax, [ebp + 0x10]
push eax
call fcn.004256af
add al, 0x11
pop ecx
xor al, byte [esi]
xor al, 2
inc edi
cmp edi, dword [ebp + 0xc]
mov byte [esi], al
jl 0x42577b
pop esi
pop edi
pop ebp
ret
Function at 0x426119
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [ebp + 0xc]
push 0x2454
push 0
push esi
call sub.MSVCRT.dll_memset
lea eax, [esi + 8]
add esp, 0x18
mov dword [ebp - 0x38], eax
lea eax, [esi + 0x2148]
mov dword [ebp - 0x2c], eax
lea eax, [esi + 0x48]
mov dword [ebp - 0x10], eax
mov eax, 0x800
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
lea eax, [esi + 0x2348]
lea ecx, [esi + 0x1048]
mov dword [ebp - 0x20], eax
mov eax, 0x80
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 8], ecx
push eax
lea ecx, [esi + 0x2048]
push dword [ebp + 0x10]
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x34], 0x20
mov dword [ebp - 0x28], 0x100
push dword [ebp + 8]
mov dword [ebp - 0x18], ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x4261f0
mov eax, dword [ebp - 0x30]
cmp eax, 3
je 0x4261cc
cmp eax, 4
je 0x4261cc
cmp eax, 1
jne 0x4261f0
mov cx, word [ebp - 0x24]
and dword [esi + 0x2448], 0
and dword [esi + 0x244c], 0
or dword [esi + 0x2450], 0xffffffff
push 1
mov dword [esi + 4], eax
mov word [esi], cx
pop eax
jmp 0x4261f2
xor eax, eax
pop esi
leave
ret

Function at 0x4261f5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xc], 0
jne 0x426248
push ebx
mov ebx, str.MetalinkFile
lea eax, [esi + 0x5d538]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll_wcsstr]
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x42623c
and word [edi], 0
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
lea edi, [edi + eax*2]
push edi
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [esi + 0x2694], eax
pop ecx
mov ecx, esi
call fcn.00429a51
test eax, eax
pop ebx
jne 0x42624c
xor eax, eax
jmp 0x42628c
xor edi, edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, edi
mov dword [esi + 0x2464], eax
je 0x426289
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push edi
push esi
push 0x426548
push edi
push edi
mov dword [esi + 0x5d100], 8
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0xc], eax
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0x426ea6
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
push 1
mov eax, dword [edi + 0x26e0]
pop ebx
mov esi, dword [eax + ecx*4]
mov eax, dword [esi + 0x20]
mov dword [esi + 0x28], 2
cmp dword [eax + 4], ebx
je 0x426f19
cmp dword [edi + 0x2480], 0
je 0x426f3b
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 0x426f0a
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x426f3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x426f3f
jmp 0x426f3b
cmp dword [esi], 0
jne 0x426f2a
mov eax, dword [esi + 4]
test eax, eax
je 0x426f2a
mov dword [esi + 0x18], eax
jmp 0x426f3b
and dword [esi + 0x28], 0
push ebx
push ecx
mov ecx, edi
call fcn.0042824f
test eax, eax
je 0x426f3f
mov eax, ebx
jmp 0x426f41
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x427597
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 + 0x26e0]
mov esi, dword [eax + ebx*4]
mov eax, dword [esi + 0x20]
mov dword [esi + 0x28], 6
cmp dword [eax + 4], 1
je 0x42760b
cmp dword [edi + 0x2480], 0
je 0x427639
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 0x4275f9
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x427639
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x3e5
neg eax
sbb eax, eax
inc eax
jmp 0x42763c
cmp dword [esi], 0
jne 0x42761c
mov eax, dword [esi + 4]
test eax, eax
je 0x42761c
mov dword [esi + 0x18], eax
jmp 0x427639
push 1
push ebx
mov ecx, edi
mov dword [esi + 0x28], 4
call fcn.0042824f
test eax, eax
jne 0x427639
push ebx
mov ecx, edi
call fcn.00427d7b
push 1
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ecx + 0x26e0]
push ebx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
push esi
push edi
mov esi, dword [eax + ecx*4]
push 0x28
pop ebx
lea edi, [esi + 0x8044]
push ebx
push 0
push edi
call sub.MSVCRT.dll_memset
mov dword [edi], ebx
mov edi, 0x8000
lea ebx, [esi + 0x40]
push edi
push 0
push ebx
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 0x8040]
mov dword [esi + 0x8058], ebx
lea ebx, [esi + 0x805c]
add esp, 0x18
test eax, eax
mov dword [ebx], edi
je 0x427990
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
sub ecx, dword [eax + 0x18]
sbb edx, dword [eax + 0x1c]
sub ecx, dword [eax + 8]
sbb edx, dword [eax + 0xc]
add ecx, 1
mov eax, edx
adc eax, 0
ja 0x427983
cmp ecx, edi
jbe 0x427989
and dword [ebp - 8], 0
jmp 0x4279c5
mov edi, ecx
mov dword [ebp - 8], eax
jmp 0x4279c5
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x5d108]
mov edx, dword [eax + 0x5d10c]
cmp ecx, 0xffffffff
jne 0x4279a8
cmp edx, ecx
je 0x4279c7
sub ecx, dword [eax + 0x5d118]
sbb edx, dword [eax + 0x5d11c]
ja 0x4279ba
cmp ecx, edi
jbe 0x4279c0
and dword [ebp - 8], 0
jmp 0x4279c5
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [ebx], edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 0x20]
push 1
pop edi
mov dword [esi + 0x28], 9
cmp dword [eax + 4], edi
je 0x427a03
push esi
lea eax, [esi + 0x8044]
push edi
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
je 0x427a17
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x427a24
push ebx
push dword [ebx]
push dword [esi + 0x8058]
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x4279f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x427a28
mov eax, edi
jmp 0x427a35
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00427d7b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4280d5
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x103c
call fcn.0042f4a0
push ebx
mov ebx, ecx
xor eax, eax
push esi
cmp dword [ebx + 0x2480], eax
push edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], 0x4418f4
je 0x428102
mov dword [ebp - 4], str.POST
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
mov ax, word [0x443154]
mov esi, dword [ebp + 8]
mov word [ebp - 0x103c], ax
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x103a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x14], 0x4418e0
lea ecx, [eax + 0x1048]
add eax, 0x48
push ecx
push eax
push 0x43f208
lea eax, [ebp - 0x103c]
push 0x7ff
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
cmp dword [ebx + 0x62ab4], 0
mov eax, 0x8400c300
je 0x42816b
mov eax, 0x8408c300
mov ecx, dword [esi + 0x20]
cmp dword [ecx + 4], 4
jne 0x428179
or eax, 0x803000
push esi
push eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x103c]
push str.HTTP_1.1
push eax
push dword [ebp - 4]
push dword [esi + 0x18]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
test eax, eax
mov dword [esi + 0x1c], eax
je 0x428245
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
lea ecx, [ebp + 8]
push 4
push ecx
push 2
push eax
mov dword [ebp + 8], 0x3a98
call edi
lea eax, [ebp - 4]
push 4
push eax
push 0x41
push dword [esi + 0x1c]
mov dword [ebp - 4], 1
call edi
push 0x28
mov dword [ebp - 8], eax
pop edi
lea eax, [ebp - 0x3c]
push edi
push 0
push eax
call sub.MSVCRT.dll_memset
mov dword [ebp - 0x3c], edi
mov edi, 0xa2d0
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x428225
push edi
push 0
push ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0xc]
push dword [ebp - 8]
push 0xa2cf
push ebx
push esi
call fcn.0042831c
push ebx
mov dword [ebp - 0x34], ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
mov dword [ebp - 0x30], eax
push esi
push 1
lea eax, [ebp - 0x3c]
push 0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test ebx, ebx
mov dword [ebp - 8], eax
je 0x428245
push ebx
call fcn.0042f3fe
pop ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4288dd
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 8], edi
jne 0x428a48
lea ebx, [esi + 0x5d128]
mov dword [ebp - 0x18], edi
push ebx
mov dword [ebp - 0x14], edi
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
add eax, 0x41
push edi
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x18]
push edi
push eax
lea eax, [ebp - 0x10]
mov word [ebp - 0xe], 0x3a
push eax
mov word [ebp - 0xc], 0x5c
mov word [ebp - 0xa], di
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x428a63
mov ecx, dword [esi + 0x5d108]
mov eax, dword [esi + 0x5d10c]
cmp ecx, 0xffffffff
jne 0x42894a
cmp eax, ecx
je 0x428969
mov edx, dword [ebp - 0x14]
cmp edx, eax
ja 0x428969
jb 0x42895a
mov eax, dword [ebp - 0x18]
cmp eax, ecx
ja 0x428969
mov dword [esi + 0x2470], 2
jmp 0x428a63
push edi
push 0x20
push 4
push edi
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
je 0x428a4d
cmp dword [esi + 0x26fc], edi
je 0x428a48
push dword [esi + 0x26f4]
lea ebx, [esi + 0x26ec]
mov ecx, ebx
push dword [ebx + 4]
call fcn.00429f16
mov ecx, esi
call fcn.00428cd9
test eax, eax
jne 0x428a48
cmp dword [esi + 0x2468], edi
lea eax, [esi + 0x2468]
ja 0x4289ce
mov dword [eax], 5
push 0xa
pop ecx
cmp dword [eax], ecx
jbe 0x4289d7
mov dword [eax], ecx
mov eax, dword [esi + 0x5d108]
mov ecx, dword [esi + 0x5d10c]
sub eax, 1
mov dword [esi + 0x5cfc8], edi
mov dword [esi + 0x5cfd0], eax
lea eax, [esi + 0x5cfc0]
sbb ecx, edi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
mov dword [esi + 0x5cfd4], ecx
push eax
mov ecx, ebx
mov dword [esi + 0x5cfcc], edi
call fcn.00429dc6
mov eax, dword [esi + 0x5d108]
mov edx, dword [esi + 0x5d10c]
push 0x20
pop ecx
call fcn.0042f9b0
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push edi
push eax
push dword [esi + 0x5d108]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 1
pop eax
jmp 0x428a65
mov dword [esi + 0x2470], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x2474], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret