joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402ce2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
mov dword [ebp - 8], edx
push esi
push edi
xor esi, esi
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], esi
mov edi, dword [eax + ebx + 0x78]
add edi, ebx
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
add eax, ebx
mov dword [ebp - 0x14], eax
add ecx, ebx
mov eax, dword [edi + 0x24]
add eax, ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
mov eax, esi
cmp dword [edi + 0x18], esi
jbe 0x402d6e
mov ecx, dword [ecx + eax*4]
add ecx, ebx
call fcn.00402abd
xor eax, 0x47ef3b18
cmp eax, dword [ebp - 8]
mov eax, dword [ebp - 4]
je 0x402d45
mov ecx, dword [ebp - 0xc]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [edi + 0x18]
jb 0x402d20
jmp 0x402d6e
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
movzx eax, word [ecx + eax*2]
mov esi, dword [esi + eax*4]
add esi, ebx
cmp esi, edi
jb 0x402d6e
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx + 0x7c]
add eax, edi
cmp esi, eax
jae 0x402d6e
mov ecx, esi
call fcn.00402dae
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402d77
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push ebx
push esi
push edi
mov edi, dword [eax + 0xc]
mov ebx, ecx
add edi, 0xc
mov esi, dword [edi]
jmp 0x402d9f
mov ecx, dword [esi + 0x30]
call fcn.00402bc2
xor eax, 0x1f0a1d4
cmp eax, ebx
je 0x402da9
mov esi, dword [esi]
cmp esi, edi
jne 0x402d8c
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi + 0x18]
jmp 0x402da5

Function at 0x402f51
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, ecx
mov dword [ebp - 4], eax
push edi
cmp edx, 0x40
jb 0x40304b
call fcn.00403052
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x40304b
push esi
push 0x40
push 0x3000
push dword [edi + 0x50]
mov edx, 0x7e3e9d52
mov ecx, 0x8e8e47a6
push 0
push 0x2c4
call fcn.00402e3a
pop ecx
call eax
mov esi, eax
test esi, esi
je 0x403046
movzx ecx, word [edi + 0x14]
lea eax, [edi + 0x18]
mov edx, dword [ebp - 4]
add eax, ecx
movzx ecx, word [edi + 6]
push ebx
push dword [edi + 0x54]
imul ebx, ecx, 0x28
mov ecx, esi
mov dword [ebp - 8], eax
add ebx, eax
call fcn.00402ecf
pop ecx
mov ecx, dword [ebp - 8]
cmp ecx, ebx
jae 0x403012
sub ebx, ecx
mov edi, dword [ebp - 4]
lea eax, [ecx + 0x10]
xor edx, edx
mov dword [ebp - 0xc], eax
push 0x28
lea eax, [ebx - 1]
mov ebx, dword [ebp - 0xc]
pop ecx
div ecx
inc eax
mov dword [ebp - 8], eax
mov ecx, dword [ebx]
cmp dword [ebx - 8], ecx
mov edx, dword [ebx + 4]
cmovb ecx, dword [ebx - 8]
add edx, edi
push ecx
mov ecx, dword [ebx - 4]
add ecx, esi
call fcn.00402ecf
dec dword [ebp - 8]
lea ebx, [ebx + 0x28]
pop ecx
jne 0x402fed
mov edi, dword [ebp - 0x10]
mov edx, edi
mov ecx, esi
call fcn.00403130
mov edx, edi
mov ecx, esi
call fcn.0040307b
pop ebx
test eax, eax
jne 0x403046
push 0x8000
push eax
push esi
push 5
mov edx, 0xbd1de44f
mov ecx, 0x8e8e47a6
call fcn.00402e3a
pop ecx
call eax
xor esi, esi
mov eax, esi
pop esi
jmp 0x40304d
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x403052
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x40305f
xor eax, eax
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40305c
mov edx, 0x10b
xor ecx, ecx
cmp word [eax + 0x18], dx
cmovne eax, ecx
ret
Function at 0x4012f3
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push esi
push 0xf0000000
xor eax, eax
push 0x18
push eax
mov esi, ecx
push eax
push esi
mov dword [esi], eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov eax, esi
pop esi
ret

Function at 0x40131e
Capabilities:
Encrypt data using aes via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x42ea70]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, str.D5phava6UBeph_X
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [ebp + 0xc]
movsb byte es:[edi], byte [esi]
mov esi, 0x4235c0
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor eax, eax
push 0x10
mov word [ebp - 0x46], ax
pop eax
movsd dword es:[edi], dword [esi]
push eax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x4c], ecx
movsb byte es:[edi], byte [esi]
mov byte [ebp - 0x48], 8
mov byte [ebp - 0x47], 2
mov dword [ebp - 0x44], 0x660e
call fcn.00414160
add esp, 0xc
push ebx
xor esi, esi
push esi
push esi
push 0x1c
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x4c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x4013af
push esi
lea eax, [ebp - 0x2c]
push eax
push 1
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x4013af
xor eax, eax
inc eax
jmp 0x4013b1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004144c5
leave
ret 8
Function at 0x4013c2
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push dword [ecx]
xor ebx, ebx
mov dword [ebp - 8], ebx
call fcn.0040131e
test eax, eax
je 0x4014b5
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 1
push ebx
push dword [ebp - 8]
call esi
test eax, eax
je 0x4014a8
push edi
push dword [ebp - 4]
call fcn.004144df
push dword [ebp - 4]
mov edi, eax
push ebx
push edi
mov dword [ebp - 0xc], edi
call fcn.004140e0
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call fcn.00414160
add esp, 0x1c
push dword [ebp - 4]
lea eax, [ebp + 0xc]
push eax
push edi
push ebx
push 1
push ebx
push dword [ebp - 8]
call esi
test eax, eax
je 0x40149e
push 2
push dword [ebp - 4]
call section..text
lea edi, [eax + 1]
push edi
mov dword [ebp + 8], eax
call fcn.004144df
mov esi, dword [ebp + 0x10]
push edi
push ebx
push eax
mov dword [esi], eax
call fcn.004140e0
push 2
lea eax, [ebp + 8]
push eax
push dword [esi]
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call fcn.00401191
add esp, 0x2c
test eax, eax
je 0x401494
mov ecx, dword [esi]
mov eax, dword [ebp + 8]
mov byte [eax + ecx], bl
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov dword [ebp + 8], 1
jmp 0x40149e
push dword [esi]
call fcn.004144d4
pop ecx
mov dword [esi], ebx
push dword [ebp - 0xc]
call fcn.004144d4
pop ecx
pop edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [ebp + 8]
pop esi
pop ebx
leave
ret 0x10

Function at 0x4014ba
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, ecx
cmp dword [ebx], 0
jne 0x4014cb
xor eax, eax
jmp 0x40153c
push esi
push edi
push dword [ebp + 8]
call fcn.004144f0
mov esi, eax
inc esi
push esi
mov dword [ebp - 4], esi
call fcn.004144df
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [ebp + 8]
call fcn.004010a3
add esp, 0x18
test eax, eax
jne 0x4014ff
push edi
call fcn.004144d4
pop ecx
lea eax, [ebp - 8]
push eax
push dword [ebx]
mov ecx, ebx
call fcn.0040131e
test eax, eax
je 0x40153a
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
push eax
push edi
push 0
push 1
push 0
push dword [ebp - 8]
mov dword [eax], ecx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov eax, dword [ebp + 0xc]
push dword [ebp - 8]
mov dword [eax], edi
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x401a83
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8
Function at 0x401ad4
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x401ae5
push 0xd
pop eax
jmp 0x401b12
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x401ae8
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x4025f3
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x42ea70]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.00401a42
mov ebx, eax
cmp ebx, esi
je 0x402663
lea ecx, [ebp - 0x70]
call fcn.004019cd
mov eax, ebx
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004144c5
add ebp, 0x19c
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40267b
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x70]
call fcn.004025f3
cmp eax, esi
jne 0x4026ad
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call ebx
test eax, eax
je 0x40266b
lea ecx, [ebp - 0x70]
call fcn.004019cd
push dword [ebp - 0x78]
mov ecx, edi
call fcn.00401972
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.004019cd
mov eax, esi
jmp 0x402649

Function at 0x402f89
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
cmp eax, edi
jne 0x402fa5
xor eax, eax
jmp 0x402fcc
push ebx
lea eax, [esp + 0xc]
push eax
push edi
push esi
push 0x402927
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp ebx, edi
jne 0x402fc9
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop edi
pop esi
pop ecx
ret
Function at 0x404862
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x138
mov eax, dword [0x42ea70]
xor eax, ebp
mov dword [ebp + 0x70], eax
movzx eax, word [ebp + 0x7c]
push esi
mov esi, dword [0x430984]
push 0xf0
push eax
push esi
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x98], 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4049d8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4049d8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4049d8
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push edi
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x4049d6
inc esi
inc esi
movzx edi, ax
movzx eax, word [esi]
inc esi
inc esi
mov ecx, dword [esi]
mov dword [ebp - 0xa0], ecx
mov ecx, 0x403
add esi, 4
cmp cx, ax
jne 0x404951
push esi
lea ecx, [ebp - 0x94]
call fcn.004047ea
push dword [ebp - 0x94]
movzx eax, di
push 0
push 0x143
push eax
mov eax, dword [ebp - 0x9c]
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x404931
and dword [ebp - 0x98], 0
lea eax, [ebp - 0x90]
cmp dword [ebp - 0x94], eax
je 0x4049c3
push dword [ebp - 0x94]
call fcn.0041457b
pop ecx
jmp 0x4049c3
mov ecx, 0x1234
cmp cx, ax
jne 0x4049c3
or dword [ebp - 0xc0], 0xffffffff
push esi
lea ecx, [ebp - 0x94]
mov dword [ebp - 0xc4], 1
call fcn.004047ea
mov eax, dword [eax]
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x90]
cmp dword [ebp - 0x94], eax
je 0x40499a
push dword [ebp - 0x94]
call fcn.0041457b
pop ecx
lea eax, [ebp - 0xc4]
push eax
push 0
movzx eax, di
push 0x40b
push eax
mov eax, dword [ebp - 0x9c]
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x4049c3
and dword [ebp - 0x98], 0
add esi, dword [ebp - 0xa0]
cmp dword [ebp - 0x98], 0
jne 0x4048d0
pop edi
pop ebx
mov ecx, dword [ebp + 0x70]
mov eax, dword [ebp - 0x98]
xor ecx, ebp
pop esi
call fcn.004144c5
add ebp, 0x74
leave
ret 4
Function at 0x40aaf9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
call fcn.0040a987
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 5
push dword [esp + 0x24]
xor ebp, ebp
push esi
mov dword [esp + 0x1c], ebp
call edi
mov dword [esp + 0x14], eax
cmp eax, ebp
je 0x40abc9
push ebx
push 0xf0
push dword [esp + 0x28]
push esi
call edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebp
je 0x40ab4f
push eax
push esi
call edi
push eax
call ebx
mov ebp, eax
push dword [esp + 0x18]
and dword [esp + 0x14], 0
push esi
call edi
test eax, eax
je 0x40abad
push eax
call ebx
mov edi, eax
test edi, edi
je 0x40abad
push ebp
push edi
call fcn.00402251
pop ecx
pop ecx
push dword [esp + 0x30]
mov ebx, eax
push dword [esp + 0x30]
push dword [esp + 0x30]
push ebx
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x40ab99
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp ebx, edi
je 0x40abb7
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x40abb7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
pop ebx
je 0x40abc9
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x40b64b
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1f8c]
mov eax, 0x200c
call fcn.00416300
mov eax, dword [0x42ea70]
xor eax, ebp
mov dword [ebp + 0x1f88], eax
and dword [ebp - 0x7c], 0
push ebx
mov ebx, dword [ebp + 0x1f98]
push esi
mov esi, dword [ebp + 0x1f94]
mov dword [0x430520], 2
lea eax, [ebp - 0x7c]
push eax
push 0x2000
lea eax, [ebp - 0x78]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40b6d5
xor ecx, ecx
cmp dword [ebp - 0x7c], ecx
je 0x40b6e1
push ecx
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b6fb
mov eax, dword [ebp - 0x7c]
cmp eax, dword [ebp - 0x80]
jne 0x40b6fb
add dword [0x430548], eax
cmp dword [0x430520], 2
je 0x40b686
jmp 0x40b705
mov dword [0x430520], 0xa
jmp 0x40b705
mov eax, dword [0x430958]
cmp eax, 0xffffffff
je 0x40b6f3
cmp dword [0x430548], eax
jb 0x40b6d5
mov dword [0x430520], ecx
jmp 0x40b705
mov dword [0x430520], 0xc
mov ecx, dword [ebp + 0x1f88]
pop esi
xor ecx, ebp
pop ebx
call fcn.004144c5
add ebp, 0x1f8c
leave
ret

Function at 0x40b71c
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1f90]
mov eax, 0x2010
call fcn.00416300
mov eax, dword [0x42ea70]
xor eax, ebp
mov dword [ebp + 0x1f8c], eax
mov eax, dword [ebp + 0x1f9c]
and dword [ebp - 0x78], 0
push ebx
mov ebx, dword [ebp + 0x1f98]
push esi
mov esi, dword [ebp + 0x1fa0]
mov dword [ebp - 0x7c], eax
mov dword [esi + 0xc], 2
cmp dword [0x430520], 3
je 0x40b7ff
mov eax, dword [esi + 8]
sub eax, dword [esi + 4]
cmp eax, 0x2000
jb 0x40b77c
mov eax, 0x2000
lea ecx, [ebp - 0x78]
push ecx
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40b7cb
cmp dword [ebp - 0x78], 0
je 0x40b7d4
push 0
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x78]
lea eax, [ebp - 0x74]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b7f8
mov eax, dword [ebp - 0x78]
cmp eax, dword [ebp - 0x80]
jne 0x40b7f8
add dword [esi + 4], eax
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
jae 0x40b7ff
cmp dword [esi + 0xc], 2
je 0x40b75d
jmp 0x40b7ff
mov dword [esi + 0xc], 0xa
jmp 0x40b7ff
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x40b7e6
cmp dword [esi + 4], eax
jae 0x40b7e6
push 0xa
pop eax
jmp 0x40b7e8
xor eax, eax
mov dword [esi + 0xc], eax
cmp eax, 0xa
jne 0x40b7ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40b7ff
mov dword [esi + 0xc], 0xc
mov ecx, dword [ebp + 0x1f8c]
pop esi
xor ecx, ebp
pop ebx
call fcn.004144c5
add ebp, 0x1f90
leave
ret
Function at 0x40bb93
Capabilities:
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
push ebp
lea ebp, [esp - 0x7cc]
sub esp, 0x84c
mov eax, dword [0x42ea70]
xor eax, ebp
mov dword [ebp + 0x7c8], eax
mov eax, dword [ebp + 0x7d8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x7d4]
push 0x3c
pop ebx
push ebx
mov dword [ebp - 0x44], eax
xor esi, esi
lea eax, [ebp - 0x80]
push esi
push eax
mov dword [ebp - 0x3c], 2
call fcn.004140e0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x70], eax
add esp, 0xc
lea eax, [ebp + 0x3c8]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push edi
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x50], 0x824
mov dword [ebp - 0x6c], 0x100
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
push esi
push esi
push esi
push esi
push str.Better_Installer_Mozilla_
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, esi
jne 0x40bc22
push 2
pop eax
jmp 0x40bcae
push esi
push esi
push 3
push esi
push esi
push dword [ebp - 0x68]
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x40], eax
cmp eax, esi
je 0x40bcab
cmp dword [ebp - 0x74], 4
jne 0x40bc4a
mov eax, 0x80c180
jmp 0x40bc4c
xor eax, eax
push esi
or eax, 0x80000000
push eax
push esi
push esi
push esi
lea eax, [ebp + 0x3c8]
push eax
push 0x424668
push dword [ebp - 0x40]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, eax
cmp edi, esi
je 0x40bca6
push esi
push esi
push esi
push esi
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
push esi
push 2
push esi
push esi
push edi
call dword [sym.imp.WININET.dll_InternetSetFilePointer]
cmp eax, esi
jle 0x40bc9c
mov ecx, dword [ebp - 0x44]
mov dword [ecx], eax
mov dword [ebp - 0x3c], esi
jmp 0x40bca3
mov dword [ebp - 0x3c], 1
push edi
call ebx
push dword [ebp - 0x40]
call ebx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp + 0x7c8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004144c5
add ebp, 0x7cc
leave
ret
Function at 0x40bcc6
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
lea ebp, [esp - 0x290]
sub esp, 0x310
mov eax, dword [0x42ea70]
xor eax, ebp
mov dword [ebp + 0x28c], eax
push ebx
mov ebx, ecx
cmp dword [ebx + 0xc], 0
jne 0x40beae
mov eax, dword [0x430520]
cmp eax, 3
je 0x40beae
test eax, eax
je 0x40beae
push esi
push edi
xor eax, eax
push 0xfe
push eax
mov word [ebp + 0x18c], ax
lea eax, [ebp + 0x18e]
push eax
call fcn.004140e0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0xc
call esi
sub eax, dword [0x430540]
mov edi, 0x3e8
xor edx, edx
mov ecx, edi
div ecx
mov dword [ebp - 0x78], eax
call esi
sub eax, dword [0x430544]
xor edx, edx
div edi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
mov dword [ebp - 0x80], eax
mov eax, dword [0x430520]
shl eax, 6
add eax, 0x42e040
push eax
push str.szCaption
lea eax, [ebp + 0x8c]
push str._s____s
push eax
call esi
mov eax, dword [0x430958]
mov edi, dword [sym.imp.KERNEL32.dll_MulDiv]
add esp, 0x10
test eax, eax
jle 0x40bdb4
cmp eax, 0xffffffff
je 0x40bdb4
cmp dword [0x430520], 2
jne 0x40bdb4
push eax
push dword [0x430548]
push 0x64
call edi
mov ecx, dword [0x430958]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebx + 0x24c]
mov dword [eax], ecx
jmp 0x40bdb8
and dword [ebp - 0x7c], 0
mov eax, dword [0x430548]
test eax, eax
jbe 0x40be09
lea ecx, [ebp - 0x74]
push ecx
push eax
call fcn.0040b29c
cmp dword [ebp - 0x78], 1
pop ecx
pop ecx
jbe 0x40be16
cmp dword [0x430520], 2
jne 0x40be16
lea eax, [ebp + 0x18c]
push eax
mov eax, dword [0x430548]
xor edx, edx
div dword [ebp - 0x78]
push eax
call fcn.0040b29c
pop ecx
pop ecx
push str._sec
lea eax, [ebp + 0x18c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x40be16
xor eax, eax
mov word [ebp + 0x18c], ax
mov word [ebp - 0x74], ax
mov eax, dword [ebp - 0x80]
push 0x3c
pop ecx
xor edx, edx
div ecx
push edx
xor edx, edx
div ecx
mov eax, dword [ebp - 0x80]
mov ecx, 0xe10
push edx
xor edx, edx
div ecx
push eax
lea eax, [ebp + 0x8c]
push str._d:_02d:_02d
push eax
call esi
mov eax, dword [0x430958]
add esp, 0x14
test eax, eax
jle 0x40be87
cmp eax, 0xffffffff
je 0x40be87
lea ecx, [ebp + 0x8c]
push ecx
push eax
call fcn.0040b29c
mov eax, dword [0x430548]
pop ecx
pop ecx
cmp eax, 0x1388
jbe 0x40be7e
mov ecx, dword [0x430958]
push eax
push dword [ebp - 0x78]
sub ecx, eax
push ecx
call edi
jmp 0x40be87
xor eax, eax
mov word [ebp + 0x8c], ax
mov eax, dword [ebx]
xor ecx, ecx
cmp dword [0x430958], 0xffffffff
setne cl
push ecx
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp + 0x18c]
push ecx
lea ecx, [ebx + 0x10]
push ecx
mov ecx, ebx
call dword [eax]
pop edi
pop esi
mov ecx, dword [ebp + 0x28c]
xor ecx, ebp
pop ebx
call fcn.004144c5
add ebp, 0x290
leave
ret
Function at 0x40bec7
Capabilities:
Suspend thread

Disassembly:
push esi
xor esi, esi
cmp dword [0x43095c], esi
je 0x40befb
cmp dword [ecx + 0xc], esi
jne 0x40bef4
mov dword [ecx + 0xc], 1
mov eax, dword [0x43095c]
push dword [esi + eax]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
add esi, 4
cmp esi, 0x20
jl 0x40bede
xor eax, eax
inc eax
pop esi
ret 4
cmp dword [ecx + 0xc], esi
jne 0x40bef4
mov eax, dword [ecx + 4]
cmp eax, esi
je 0x40bef4
push eax
mov dword [ecx + 0xc], 1
call dword [sym.imp.KERNEL32.dll_SuspendThread]
neg eax
sbb eax, eax
inc eax
jmp 0x40bef7

Function at 0x40bf1c
Capabilities:
Resume thread

Disassembly:
push ebx
xor ebx, ebx
push esi
mov esi, ecx
cmp dword [0x43095c], ebx
je 0x40bf53
cmp dword [esi + 0xc], ebx
je 0x40bf4c
push edi
xor edi, edi
mov eax, dword [0x43095c]
push dword [edi + eax]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
add edi, 4
cmp edi, 0x20
jl 0x40bf32
mov dword [esi + 0xc], ebx
pop edi
xor eax, eax
pop esi
pop ebx
ret 4
cmp dword [esi + 0xc], ebx
je 0x40bf4c
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x40bf4c
push eax
mov dword [esi + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
dec eax
neg eax
sbb eax, eax
inc eax
jmp 0x40bf4e

Function at 0x40bf71
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push 0xbb8
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40bf9e
push 1
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x430520], 6
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 4], 0
mov eax, dword [0x430520]
mov ecx, dword [esi + 0x24c]
neg eax
sbb eax, eax
not eax
and eax, dword [0x430958]
mov dword [ecx], eax
mov eax, dword [esi]
xor ecx, ecx
cmp dword [0x430520], ecx
sete cl
push ecx
push str.C:DOCUME1TommyLOCALS1TempJustin_Timberlake___Mirrors_2013_Pop__M4A_MP3___P2PDL_.8130409.TPB.torrent
lea ecx, [esi + 0x10]
push ecx
mov ecx, esi
call dword [eax + 4]
xor eax, eax
pop esi
ret