joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422636
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x4226aa
mov eax, dword [ebp + 8]
and dword [esi + 0x48], 0
mov dword [esi + 0x40], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [esi + 0x44], eax
lea eax, [esi + 0x2c]
push 1
push eax
push dword [esi + 8]
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x4226a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4226aa
push dword [ebp + 0x14]
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push 0
push eax
xor eax, eax
mov dword [ebp - 4], ecx
test ecx, ecx
setne al
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x4226aa
cmp dword [esi + 0x44], eax
je 0x4226aa
mov eax, dword [esi + 0x44]
mov dword [esi + 0x48], eax
jmp 0x4226ac
xor eax, eax
pop esi
leave
ret 0x10

Function at 0x42278a
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov esi, ecx
xor edi, edi
inc edi
cmp dword [esi + 0x8c], edi
jne 0x4227b8
call fcn.005d979d
test eax, eax
jne 0x4227b8
mov eax, dword [esi + 0x6c]
mov dword [esi + 0x70], eax
call ebx
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x78]
test eax, eax
je 0x4227c4
mov ecx, dword [esi + 0x74]
jmp 0x4227cf
mov eax, dword [esi + 0x74]
mov dword [ebp - 4], eax
call ebx
mov ecx, dword [ebp - 4]
sub eax, ecx
cmp eax, edi
jb 0x4227e7
mov edi, dword [esi + 0x78]
test edi, edi
je 0x4227e0
sub edi, ecx
jmp 0x4227e7
call ebx
mov edi, eax
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x4227f7
sub eax, dword [esi + 0x70]
xor edx, edx
div edi
jmp 0x4227f9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x427c42
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor eax, eax
mov edi, ecx
push eax
push eax
push 3
push eax
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x427c6b
xor eax, eax
jmp 0x427cd0
push ebx
push 0x100000
call fcn.004db1a4
mov ecx, edi
mov ebx, eax
call fcn.00428415
and dword [ebp + 8], 0
jmp 0x427c96
cmp dword [ebp + 8], 0
je 0x427cad
push dword [ebp + 8]
mov ecx, edi
push ebx
call fcn.0042843c
push 0
lea eax, [ebp + 8]
push eax
push 0x100000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x427c85
push ebx
call fcn.004da631
pop ecx
mov ecx, edi
call fcn.004284e6
push dword [ebp + 0xc]
mov ecx, edi
call fcn.0042859c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x42e713
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push 0x40
push 0x64a418
call fcn.004dbb30
mov dword [ebp - 0x20], edx
mov edi, ecx
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebp - 0x4c]
mov dword [ebp - 0x24], esi
and dword [edi], 0
push 4
push 0x2000
mov eax, esi
shl eax, 0xa
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x42e7c3
mov dword [ebp - 0x28], esi
push 4
push 0x1000
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x42e7c3
and dword [ebp - 4], 0
push dword [ebp + 8]
push 0
push dword [ebp - 0x20]
push 0xffffffffffffffff
push esi
call fcn.0042e6cb
add esp, 0x14
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0xfffffffe
mov dword [edi], esi
jmp 0x42e7c5
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42f755
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ebp + 8]
push ebx
push esi
mov esi, dword [0x6714c8]
push edi
push 0xf1
push eax
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x42f8c8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42f8c8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x42f8c8
movzx edi, word [ebx + 6]
imul eax, edi, 0x14
mov dword [ebp - 0x10], edi
call fcn.0053eb10
xor ecx, ecx
mov eax, esp
mov dword [ebp - 0xc], eax
mov esi, ecx
mov edx, ecx
test edi, edi
je 0x42f813
lea ecx, [eax + 8]
xor eax, eax
cmp word [ebx + edx*2 + 8], ax
je 0x42f7e8
mov dword [ecx - 8], esi
mov ah, 4
movzx edi, word [ebx + edx*2 + 8]
inc esi
jmp 0x42f7f5
xor ah, ah
mov dword [ecx - 8], 8
mov al, 1
xor edi, edi
mov dword [ecx - 4], edi
mov byte [ecx], ah
mov byte [ecx + 1], al
xor eax, eax
mov dword [ecx + 4], eax
inc edx
mov dword [ecx + 8], eax
add ecx, 0x14
movzx eax, word [ebx + 6]
cmp edx, eax
jl 0x42f7d2
xor ecx, ecx
mov edi, dword [ebp - 8]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push ecx
push 0x14
push 0x41e
push dword [edi + 4]
call esi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0x444
push dword [edi + 4]
call esi
movzx eax, word [ebx + 4]
lea ecx, [edi + 4]
push eax
movzx eax, word [ebx + 2]
push eax
call fcn.00434897
movzx eax, word [ebx + 4]
lea ecx, [edi + 4]
add eax, 7
push eax
movzx eax, word [ebx + 2]
add eax, 7
push eax
call fcn.004348bb
movzx eax, word [ebx + 4]
push ecx
push dword [ebp - 0x14]
push eax
movzx eax, word [ebx + 2]
push eax
call fcn.0042f913
push eax
push 0
mov ebx, edi
push 0x430
push dword [edi + 4]
mov dword [ebx + 0x68], eax
call esi
push dword [0x6714c8]
mov ecx, ebx
call fcn.0042f961
xor eax, eax
push eax
push eax
push 0x439
push dword [edi + 4]
call esi
shr eax, 0xc
mov ecx, ebx
and eax, 1
push eax
call fcn.0042fc72
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
push ecx
lea ecx, [ebx + 0x24]
call fcn.00434484
xor eax, eax
inc eax
jmp 0x42f8ca
xor eax, eax
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004da623
leave
ret 0x14
Function at 0x42fc72
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x667710]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov edi, ecx
lea eax, [esp + 0x18]
push eax
mov ebx, dword [edi + 0x74]
mov esi, dword [edi + 0x78]
call fcn.0042fde5
push esi
push ebx
lea ecx, [edi + 4]
call fcn.004348df
xor ecx, ecx
xor esi, esi
cmp dword [ebp + 8], 1
mov edx, 0x1000
mov eax, edx
cmovne eax, ecx
lea ecx, [edi + 4]
push esi
push eax
mov eax, dword [ebp + 8]
dec eax
neg eax
sbb eax, eax
and eax, edx
push eax
call fcn.00403c91
push esi
push esi
push 0x418
push dword [edi + 4]
mov dword [esp + 0x30], 0x20
mov dword [esp + 0x34], reloc.wspcomm.dll_Ordinal_72
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x18], eax
test eax, eax
jle 0x42fdd1
lea eax, [esp + 0x40]
push eax
push esi
push 0x417
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov al, byte [esp + 0x49]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x14], ecx
test al, 1
jne 0x42fdc6
test ecx, ecx
je 0x42fdc6
cmp dword [ebp + 8], 1
jne 0x42fd53
lea eax, [esp + 0x14]
mov ecx, edi
push eax
add ecx, 0x3c
call fcn.00429aa6
mov dword [esp + 0x50], eax
test eax, eax
je 0x42fd4c
or byte [esp + 0x49], 0x10
jmp 0x42fd5e
and byte [esp + 0x49], 0xef
jmp 0x42fd5e
and dword [esp + 0x50], 0
and al, 0xef
mov byte [esp + 0x49], al
lea eax, [esp + 0x40]
mov ecx, edi
push eax
push esi
call fcn.0042fae6
cmp dword [ebp + 8], 1
jne 0x42fdc6
cmp dword [esp + 0x50], 0
jne 0x42fdc6
lea eax, [esp + 0x20]
push eax
push esi
push 0x43f
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov cl, byte [esp + 0x31]
mov word [esp + 0x32], bx
test cl, cl
jns 0x42fd9e
lea eax, [ebx + 7]
jmp 0x42fda6
test cl, 8
je 0x42fdab
lea eax, [ebx + 0x11]
mov word [esp + 0x32], ax
lea eax, [esp + 0x20]
and cl, 0xef
push eax
push esi
push 0x440
push dword [edi + 4]
mov byte [esp + 0x41], cl
call dword [sym.imp.USER32.dll_SendMessageW]
inc esi
cmp esi, dword [esp + 0x18]
jl 0x42fcf8
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004da623
mov esp, ebp
pop ebp
ret 4

Function at 0x430828
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x65c]
test eax, eax
je 0x43085d
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [esi + 0x660]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x65c]
call fcn.0042f0a5
mov dword [esi + 0x664], 1
pop esi
ret
Function at 0x430b47
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push dword [esi + 0x660]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor ecx, ecx
lea eax, [ebp - 4]
push eax
push ecx
lea eax, [esi + 0x668]
mov dword [ebp - 4], ecx
push eax
push 0x430610
push ecx
push ecx
call fcn.00504891
add esp, 0x18
mov dword [esi + 0x65c], eax
xor eax, eax
pop esi
leave
ret 0x10

Function at 0x430b87
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
mov eax, dword [edi + 0x65c]
test eax, eax
jne 0x430ba7
movzx eax, word [ebp + 0xc]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x430c18
xor edx, edx
cmp dword [edi + 0x458], edx
je 0x430c18
push ebx
xor ebx, ebx
inc ebx
cmp word [edi + 0x45c], dx
je 0x430c10
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov esi, dword [edi + 0x458]
lea eax, [edi + 0x258]
and dword [edi + 0x458], 0
push 0x24
push eax
lea eax, [edi + 0x45c]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
xor ecx, ecx
mov dword [edi + 0x458], esi
cmp eax, 6
mov eax, dword [edi + 0x65c]
pop esi
cmovne ebx, ecx
test eax, eax
je 0x430c0c
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
test ebx, ebx
je 0x430c17
mov ecx, edi
call fcn.00430828
pop ebx
xor eax, eax
pop edi
pop ebp
ret 0x10

Function at 0x430d54
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, ecx
lea eax, [ebp - 4]
push eax
xor edi, edi
mov dword [ebp - 4], edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
or edx, 0xffffffff
cmp ecx, edx
jne 0x430d7a
mov eax, edx
jmp 0x430da7
mov edx, dword [ebp - 4]
xor eax, eax
or eax, ecx
or edx, edi
cmp dword [esi + 0x20], edi
je 0x430da7
cmp dword [esi + 0x14], edi
je 0x430da7
mov ecx, dword [esi + 0x1c]
add ecx, dword [esi + 8]
push 0
pop edi
adc edi, dword [esi + 0xc]
cmp edx, edi
ja 0x430da7
jb 0x430da3
cmp eax, ecx
ja 0x430da7
mov eax, ecx
mov edx, edi
pop edi
pop esi
leave
ret

Function at 0x430e6c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x430ec4
cmp dword [esi + 0x14], edi
je 0x430ec1
cmp dword [esi + 0x1c], edi
je 0x430ec1
push ecx
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.00430dab
and eax, edx
cmp eax, 0xffffffff
je 0x430ecb
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push dword [esi + 0x1c]
push dword [esi + 0x14]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x430ecb
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
mov dword [esi + 0x18], edi
adc dword [esi + 0xc], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
xor eax, eax
jmp 0x430ec7
Function at 0x430f09
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push ecx
push 3
push 1
push SysReAllocString
push dword [ebp + 8]
mov esi, ecx
call fcn.00430cc6
test eax, eax
je 0x430f87
push ebx
push edi
lea eax, [ebp + 8]
xor edi, edi
push eax
push dword [esi]
mov dword [ebp + 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov ebx, eax
push ebx
push dword [ebp + 8]
push 2
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 4], eax
test eax, eax
je 0x430f6a
push ebx
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push dword [ebp - 4]
mov dword [esi + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x430f7c
xor eax, eax
mov dword [esi + 0x30], ecx
mov dword [esi + 0x28], ebx
inc eax
jmp 0x430f85
mov ecx, esi
call fcn.00430f8c
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret 0x14

Function at 0x431c9c
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
xor edi, edi
mov edx, dword [ebx]
test edx, edx
je 0x431cb5
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov dword [ebx], edi
push edi
push 0x80
push 3
push edi
xor eax, eax
inc eax
push eax
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x431d36
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push edi
push edi
push 2
push edi
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push esi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
test eax, eax
je 0x431d36
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
mov ecx, ebx
push esi
call fcn.00431dba
push 1
test eax, eax
pop eax
push esi
cmovne edi, eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, edi
jmp 0x431d38
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4352dc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [0x6714c8]
lea eax, [ebp - 0x214]
push edi
mov ebx, ecx
push 0x104
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 8]
lea ecx, [ebx + 0x24]
call fcn.00431d3f
mov ecx, ebx
call fcn.00435342
mov ecx, dword [ebp - 8]
xor eax, eax
cmp dword [ebx + 0x24], eax
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.004da623
leave
ret 0xc
Function at 0x4387b7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edx, dword [esi + 0x14]
test edx, edx
jne 0x4387f5
push edx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4388d0
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
adc dword [esi + 0xc], 0
jmp 0x4388d0
mov eax, dword [esi + 0x1c]
sub eax, dword [esi + 0x18]
push ebx
push edi
mov edi, dword [ebp + 0xc]
cmp eax, edi
mov ebx, edi
cmovl ebx, eax
xor eax, eax
mov dword [ebp - 8], ebx
test ebx, ebx
mov dword [ebp + 0xc], ebx
mov ebx, dword [ebp + 8]
jle 0x438838
mov eax, dword [esi + 0x18]
push dword [ebp - 8]
add eax, edx
push eax
push ebx
call fcn.004dd610
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov ecx, dword [ebp - 4]
add dword [esi + 0x18], eax
add ecx, eax
mov dword [ebp - 4], ecx
mov eax, ecx
cmp eax, edi
jae 0x4388cc
cmp dword [esi + 0x20], 0
je 0x43884d
mov ecx, esi
call fcn.00430e6c
and dword [esi + 0x18], 0
mov ecx, esi
and dword [esi + 0x1c], 0
call fcn.00438736
mov ecx, dword [ebp - 4]
mov dword [esi + 8], eax
mov eax, edi
sub eax, ecx
mov dword [esi + 0xc], edx
push 0
cmp eax, dword [esi + 0x10]
jae 0x4388ad
lea eax, [esi + 0x1c]
push eax
push dword [esi + 0x10]
push dword [esi + 0x14]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 4]
sub edi, eax
cmp dword [esi + 0x1c], edi
cmovb edi, dword [esi + 0x1c]
add eax, ebx
push edi
push dword [esi + 0x14]
mov dword [ebp + 0xc], edi
push eax
call fcn.004dd610
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov ecx, dword [ebp - 4]
add dword [esi + 0x18], eax
add ecx, eax
jmp 0x4388cc
and dword [ebp + 0xc], 0
lea edx, [ebp + 0xc]
push edx
push eax
lea eax, [ecx + ebx]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
test eax, eax
je 0x4388cc
add ecx, dword [ebp + 0xc]
pop edi
mov eax, ecx
pop ebx
pop esi
leave
ret 8
Function at 0x438a7b
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
xor ecx, ecx
test esi, esi
je 0x438a95
cmp word [esi], cx
je 0x438a95
mov eax, ecx
jmp 0x438a98
xor eax, eax
inc eax
mov dword [ebx + 4], eax
cmp dword [0x6751d4], 0x18
jne 0x438b8b
push edi
push dword [0x6751dc]
lea ecx, [ebp - 4]
call fcn.0040d2ee
mov eax, dword [0x6751d8]
mov edi, dword [ebp - 4]
test eax, eax
jne 0x438acf
xor eax, eax
push eax
push eax
push eax
push 1
jmp 0x438b6f
xor ecx, ecx
cmp eax, 1
je 0x438b6b
cmp dword [edi - 8], ecx
je 0x438b6b
mov esi, dword [0x6751e4]
test esi, esi
jne 0x438af1
mov eax, ecx
jmp 0x438af8
push esi
call fcn.00505bb3
pop ecx
push esi
push eax
lea ecx, [ebx + 0x10]
call fcn.0040f513
mov esi, dword [0x6751e8]
test esi, esi
jne 0x438b10
xor eax, eax
jmp 0x438b17
push esi
call fcn.00505bb3
pop ecx
push esi
push eax
lea ecx, [ebx + 0x14]
call fcn.0040f513
push dword [0x6751e0]
mov eax, dword [0x668294]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push 0x6366ec
push eax
call fcn.0040cefd
mov esi, dword [ebp - 4]
add esp, 0x10
push 0
push str._local_
push esi
push 3
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetOpenW]
lea ecx, [esi - 0xc]
mov dword [ebx], eax
cmp ecx, 0x668010
je 0x438b78
call fcn.00407965
jmp 0x438b78
push ecx
push ecx
push ecx
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebx], eax
lea ecx, [edi - 0xc]
pop edi
cmp ecx, 0x668010
je 0x438b98
call fcn.00407965
jmp 0x438b98
push ecx
push ecx
push ecx
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebx], eax
xor eax, eax
cmp dword [ebx], eax
pop esi
setne al
pop ebx
leave
ret 8
Function at 0x43902e
Capabilities:
Get http content length
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.004db570
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
lea eax, [ebp - 0x100c]
mov dword [ebp - 0x100c], 4
push eax
lea eax, [ebp - 0x1010]
mov edi, edx
push eax
push 0x20000005
mov ebx, SysReAllocString
mov esi, ecx
push edi
mov dword [ebp - 0x1010], ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov edx, dword [ebp - 0x1010]
test eax, eax
mov eax, dword [0x668294]
mov ecx, 0x2000
cmove edx, ebx
mov dword [esi], eax
cmp edx, ebx
mov dword [ebp - 0x1010], edx
lea eax, [edx + 1]
cmovne ecx, eax
push ecx
mov ecx, esi
call fcn.0040cccd
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040cc99
and dword [ebp - 0x1014], 0
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x439104
mov eax, dword [ebp - 0x1014]
test eax, eax
je 0x43912e
cmp eax, 0x1001
jae 0x43913f
mov byte [ebp + eax - 0x1008], 0
lea eax, [ebp - 0x1008]
push eax
call fcn.00505070
pop ecx
lea ecx, [ebp - 0x1008]
push ecx
push eax
mov ecx, esi
call fcn.0042aaaa
mov eax, dword [esi]
mov eax, dword [eax - 8]
cmp eax, dword [ebp - 0x1010]
jge 0x43912e
mov ecx, 0x1000
lea eax, [ebp - 0x1014]
cmp dword [ebp - 0x100c], ecx
push eax
mov eax, ecx
cmovb eax, dword [ebp - 0x100c]
push eax
lea eax, [ebp - 0x1008]
push eax
push edi
call ebx
test eax, eax
jne 0x4390c2
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004da623
leave
ret
call fcn.004dafb4
int3
Function at 0x43bd3d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edx, dword [esi + 0x14]
test edx, edx
jne 0x43bd7c
push edx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43be66
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
adc dword [esi + 0xc], 0
jmp 0x43be66
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0x18]
push ebx
push edi
mov edi, dword [ebp + 0xc]
cmp eax, edi
mov ebx, edi
cmovl ebx, eax
and dword [ebp - 0x10], ecx
mov dword [ebp - 8], ebx
lea eax, [esi + 0x20]
mov dword [ebp + 0xc], ebx
lea ebx, [esi + 0x1c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], ecx
jle 0x43bde1
push dword [ebp - 8]
mov eax, dword [esi + 0x18]
push dword [ebp + 8]
add eax, edx
push eax
call fcn.004dd610
mov ecx, dword [esi + 0x18]
add esp, 0xc
add ecx, dword [ebp + 0xc]
mov eax, dword [ebx]
cmp eax, ecx
mov dword [esi + 0x18], ecx
cmovbe eax, ecx
mov ecx, dword [ebp - 4]
add ecx, dword [ebp + 0xc]
mov dword [ebx], eax
mov edx, ecx
lea eax, [esi + 0x20]
mov dword [ebp - 4], ecx
mov dword [eax], 1
jmp 0x43bde7
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
cmp edx, edi
jae 0x43be62
cmp dword [eax], 0
je 0x43bdfa
mov ecx, esi
call fcn.00430e6c
mov ecx, dword [ebp - 4]
xor eax, eax
sub edi, ecx
mov dword [esi + 0x18], eax
mov dword [ebx], eax
cmp edi, dword [esi + 0x10]
jae 0x43be31
mov eax, dword [ebp + 8]
push edi
add eax, ecx
mov dword [ebx], edi
push eax
push dword [esi + 0x14]
call fcn.004dd610
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov eax, dword [ebx]
add dword [esi + 0x18], eax
mov dword [ecx], 1
mov ecx, dword [ebp - 4]
add ecx, eax
jmp 0x43be62
push eax
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push edi
add eax, ecx
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43be52
mov eax, dword [ebp + 0xc]
add dword [ebp - 4], eax
mov ecx, esi
call fcn.00438736
mov ecx, dword [ebp - 4]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
pop edi
mov eax, ecx
pop ebx
pop esi
leave
ret 8