joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405ab0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
push 0x7f04
mov esi, ecx
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
mov eax, dword [esi + 4]
push 0x170
push 0x12f
push eax
call ebx
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
call edi
mov ecx, dword [esi + 4]
push 0x131
push ecx
call ebx
mov ebp, eax
test ebp, ebp
je 0x405b5a
push 0
push 0
push 0x31
push ebp
call edi
mov edx, eax
test edx, edx
je 0x405b5a
mov ecx, 0x16
xor eax, eax
lea edi, [esp + 0x34]
mov dword [esp + 0x30], 0
rep stosd dword es:[edi], eax
lea eax, [esp + 0x30]
push eax
push 0x5c
push edx
call dword [sym.imp.GDI32.dll_GetObjectW]
lea ecx, [esp + 0x30]
mov dword [esp + 0x40], 0x2bc
push ecx
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0x1a
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push 0
push eax
push 0x30
push ebp
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 8]
test eax, eax
jne 0x405c78
mov ecx, dword [esi + 4]
xor edx, edx
lea eax, [esp + 0x20]
mov dword [esp + 0x24], edx
push eax
mov dword [esp + 0x2c], edx
push 0x3f0
push ecx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x38], edx
call ebx
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
push eax
call edi
mov ecx, dword [esi + 4]
xor edx, edx
lea eax, [esp + 0x10]
mov dword [esp + 0x14], edx
push eax
mov dword [esp + 0x1c], edx
push 1
push ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], edx
call ebx
push eax
call edi
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_ScreenToClient]
lea edx, [esp + 0x20]
push edx
push eax
call edi
mov edx, dword [esi + 4]
lea ecx, [esp + 0x28]
push ecx
push edx
call edi
mov ecx, dword [esi + 4]
lea eax, [esp + 0x10]
push eax
push ecx
call edi
mov eax, dword [esi + 4]
lea edx, [esp + 0x18]
push edx
push eax
call edi
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x10]
mov edx, 0x3c
push 1
sub edi, edx
add ecx, edx
add eax, edx
sub ebp, edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x2c], eax
sub edi, edx
sub eax, ecx
push edi
push eax
push edx
mov dword [esp + 0x30], ecx
push ecx
mov ecx, dword [esi + 4]
push 0x3f0
push ecx
mov dword [esp + 0x2c], ebp
call ebx
mov edi, dword [sym.imp.USER32.dll_MoveWindow]
push eax
call edi
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
push 1
sub edx, eax
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x20]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 4]
push ecx
push 1
push eax
call ebx
push eax
call edi
mov ecx, dword [esi + 4]
push 0
push 0x3f1
push ecx
call ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret
Function at 0x406a80
Capabilities:
Check if file exists
Read .ini file

Disassembly:
mov eax, 0x26a8
call fcn.004473e0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x4637b0]
mov ecx, 0x81
mov dword [esp + 0x20c], eax
xor eax, eax
lea edi, [esp + 0x210]
rep stosd dword es:[edi], eax
lea ecx, [esp + 4]
push ecx
call fcn.00414850
add esp, 4
lea edx, [esp + 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406b17
lea eax, [esp + 4]
lea ecx, [esp + 0x20c]
push eax
push 0x103
push ecx
push 0x4637b0
push str.State
push str.InstallState
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 4]
push edx
push 0
push str.State
push str.InstallState
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x1666]
mov word [esp + 0x1664], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x61e]
mov word [esp + 0x61c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x61c]
push 0x823
push eax
call fcn.00412c80
add esp, 8
lea ecx, [esp + 0x20c]
lea edx, [esp + 0x61c]
lea eax, [esp + 0x1664]
push ecx
push edx
push str.http:__seapp.stat.360safe.com_ver.html_namefugaiver_sfa_s_0_0_0_0_0_0_0_0_0fb0_0_0_0_0_0_0_0_0_0fc0_0_0_0_0_0_0_0_0_0mid0
push 0x823
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov cx, word [0x4d6e34]
xor eax, eax
mov word [esp + 0x428], cx
mov ecx, 0x81
lea edi, [esp + 0x42a]
lea edx, [esp + 0x428]
rep stosd dword es:[edi], eax
push edx
push 0
push 0
push 0x1388
stosw word es:[edi], ax
push 1
push 1
lea eax, [esp + 0x1690]
push 0x463e38
push eax
call fcn.0040f410
add esp, 0x34
pop edi
add esp, 0x26a8
ret
Function at 0x4087e0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x44d23b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push ebx
lea eax, [esp + 8]
push esi
push eax
xor esi, esi
call fcn.00411770
add esp, 4
push str.360selogin.ini
lea ecx, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x22c], esi
call fcn.00409a80
mov eax, dword [esp + 0xc]
mov ecx, dword [0x463294]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x408854
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x408854
mov eax, dword [esp + 0xc]
add eax, 0xfffffff4
push eax
call fcn.0044737a
add esp, 4
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4088a9
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov edx, dword [esp + 0xc]
mov word [esp + 0x14], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
lea eax, [esp + 0x18]
push 0x104
push eax
push 0x4d6e34
push str.NowUser
push str.NowLogin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [esp + 0x14], si
pop edi
je 0x4088a9
mov esi, 1
mov eax, dword [esp + 8]
mov edx, dword [0x463294]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4088d4
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x4088d4
mov edx, dword [esp + 8]
add edx, 0xfffffff4
push edx
call fcn.0044737a
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x408c80
Capabilities:
Check if file exists

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44d28b
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x20c
push ebp
xor ebp, ebp
test eax, eax
push esi
je 0x408d35
cmp word [eax], bp
je 0x408d35
mov ecx, dword [0x463290]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x22c]
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 0x228]
push ecx
push eax
push edx
mov dword [esp + 0x22c], ebp
call fcn.00410ec0
mov eax, dword [esp + 0x18]
add esp, 0x10
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x408d02
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408cfe
mov ebp, 1
mov eax, dword [esp + 8]
mov edx, dword [0x463294]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x408d2d
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x408d2d
mov edx, dword [esp + 8]
add edx, 0xfffffff4
push edx
call fcn.0044737a
add esp, 4
test ebp, ebp
jne 0x408de9
mov edx, dword [esp + 0x230]
test edx, edx
je 0x408de9
cmp word [edx], 0
je 0x408de9
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_s
lea eax, [esp + 0x18]
push 0x103
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0x10
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push 0x20019
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov eax, dword [esp + 0xc]
pop edi
test eax, eax
je 0x408dbb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x408deb
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call esi
mov eax, dword [esp + 8]
test eax, eax
je 0x408de9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x408deb
mov eax, ebp
mov ecx, dword [esp + 0x214]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x218
ret 0x10
Function at 0x408ec0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x418
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x22]
mov word [esp + 0x20], bx
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x43c]
push ecx
mov ecx, dword [esp + 0x43c]
push edx
mov edx, dword [esp + 0x43c]
push eax
push ecx
push edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], 0x103
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ebp, dword [esp + 0x42c]
mov eax, dword [0x463290]
lea ecx, [esp + 0x20]
test ecx, ecx
mov dword [ebp], eax
je 0x4090c6
lea edx, [esp + 0x20]
shr edx, 0x10
jne 0x409091
mov edx, dword [0x4d5dd4]
xor edi, edi
lea eax, [esp + 0x20]
lea ecx, [esp + 0x228]
mov di, ax
push 0x100
push ecx
push edi
push edx
mov dword [esp + 0x20], edi
call dword [sym.imp.USER32.dll_LoadStringW]
cmp eax, ebx
jne 0x408f7d
mov word [esp + 0x228], bx
mov ecx, 0x100
sub ecx, eax
cmp ecx, 1
jle 0x408fc5
lea edx, [esp + 0x228]
test edx, edx
jne 0x408f98
xor eax, eax
jmp 0x408fa6
lea eax, [esp + 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x228]
push ecx
push eax
mov ecx, ebp
call fcn.00404f60
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x418
ret 0x10
mov ebx, 0xff
jmp 0x408fd3
mov ebp, dword [esp + 0x42c]
mov eax, dword [ebp]
add ebx, 0x100
mov ecx, ebx
mov edx, dword [eax - 0xc]
lea ebp, [eax - 0xc]
cmp edx, 1
jg 0x408fee
cmp ebx, dword [eax - 4]
jle 0x40903f
mov esi, dword [eax - 8]
cmp ebx, esi
mov dword [esp + 0x14], esi
jge 0x408ffb
mov ecx, esi
mov edi, dword [esp + 0x42c]
push ecx
mov ecx, edi
call fcn.00402e70
test eax, eax
je 0x409079
mov edi, dword [edi]
lea ecx, [esi + esi + 2]
mov edx, ecx
lea esi, [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x42c]
mov ecx, edx
mov edx, dword [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax]
push ebp
mov dword [ecx - 8], edx
call fcn.00409a30
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x42c]
mov ebp, dword [eax]
test ebp, ebp
je 0x409072
mov ecx, dword [0x4d5dd4]
lea esi, [ebx + 1]
push esi
push ebp
push edi
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x409067
mov word [ebp], ax
sub esi, eax
cmp esi, 1
jle 0x408fcc
mov edi, dword [esp + 0x42c]
push 0xffffffffffffffff
mov ecx, edi
call fcn.004031c0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x418
ret 0x10
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
cmp esi, ebx
je 0x4090c6
push esi
mov ecx, ebp
call fcn.00402e70
test eax, eax
je 0x4090c6
mov edi, dword [ebp]
lea ecx, [esi + esi]
mov eax, ecx
lea esi, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x418
ret 0x10
Function at 0x40a660
Capabilities:
Parse url

Disassembly:
sub esp, 0x3c
push esi
mov esi, dword [esp + 0x48]
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov ecx, 0x912
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [esi + 8]
lea edx, [esi + 0x48]
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0x48]
mov eax, 0x800
mov dword [esp + 0x34], edx
lea ecx, [esi + 0x2148]
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
lea edx, [esi + 0x2348]
mov eax, 0x80
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], edx
lea ecx, [esi + 0x1048]
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x50]
lea edx, [esp + 8]
mov dword [esp + 0x3c], ecx
push edx
lea ecx, [esi + 0x2048]
push eax
push edi
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x1c], 0x20
mov dword [esp + 0x28], 0x100
mov dword [esp + 0x38], ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
push eax
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x40a734
mov eax, dword [esp + 0x14]
cmp eax, 3
je 0x40a71e
cmp eax, 4
je 0x40a71e
cmp eax, 1
jne 0x40a734
mov cx, word [esp + 0x20]
mov dword [esi + 4], eax
mov word [esi], cx
pop edi
mov eax, 1
pop esi
add esp, 0x3c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x3c
ret

Function at 0x40a740
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40a750
xor eax, eax
pop esi
pop ecx
ret
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
mov dword [esi + 0x2458], eax
je 0x40a797
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push esi
push 0x40aa90
push 0
push 0
mov dword [esi + 0x5cf08], 8
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0xc], eax
mov eax, 1
pop esi
pop ecx
ret
Function at 0x40b6e0
Capabilities:
Send data

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0xc]
mov eax, dword [edi + 0x26c8]
mov esi, dword [eax + ecx*4]
mov edx, dword [esi + 0x1c]
mov dword [esi + 0x20], 2
cmp dword [edx + 4], 1
je 0x40b76d
mov eax, dword [edi + 0x2470]
test eax, eax
je 0x40b79b
mov eax, dword [esi + 8]
mov dword [esp + 0xc], 0
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [edi + 0x2474]
mov eax, dword [edi + 0x2470]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 0x18]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x40b756
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
mov eax, 1
pop esi
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40b7a5
pop edi
mov eax, 1
pop esi
ret 4
cmp dword [esi], 0
jne 0x40b786
mov eax, dword [esi + 4]
test eax, eax
je 0x40b786
mov dword [esi + 0x14], eax
pop edi
mov eax, 1
pop esi
ret 4
push 1
push ecx
mov ecx, edi
mov dword [esi + 0x20], 0
call fcn.0040cab0
test eax, eax
je 0x40b7a5
pop edi
mov eax, 1
pop esi
ret 4
pop edi
xor eax, eax
pop esi
ret 4
Function at 0x40c120
Capabilities:
Read data from internet
Receive data

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x10]
push ebp
mov eax, dword [ebx + 0x26c8]
push esi
push edi
mov esi, dword [eax + ecx*4]
mov ecx, 0xa
xor eax, eax
lea ebp, [esi + 0x803c]
lea edx, [esi + 0x38]
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, 0x2000
mov edi, edx
mov dword [ebp], 0x28
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x8038]
lea edi, [esi + 0x8054]
test eax, eax
mov dword [esi + 0x8050], edx
mov dword [edi], 0x8000
je 0x40c1b0
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0x18]
sub edx, ecx
mov ecx, dword [eax + 0x14]
sbb ecx, dword [eax + 0x1c]
sub edx, dword [eax + 8]
sbb ecx, dword [eax + 0xc]
mov eax, edx
add eax, 1
adc ecx, 0
ja 0x40c19b
cmp eax, 0x8000
jbe 0x40c1aa
mov eax, 0x8000
mov dword [esp + 0x14], 0
jmp 0x40c1f1
mov dword [esp + 0x14], ecx
jmp 0x40c1f1
mov eax, dword [ebx + 0x5cf10]
mov ecx, dword [ebx + 0x5cf14]
cmp eax, 0xffffffff
jne 0x40c1c5
cmp ecx, eax
je 0x40c1f3
mov edx, dword [ebx + 0x5cf18]
sub eax, edx
mov edx, dword [ebx + 0x5cf1c]
sbb ecx, edx
ja 0x40c1de
cmp eax, 0x8000
jbe 0x40c1ed
mov eax, 0x8000
mov dword [esp + 0x14], 0
jmp 0x40c1f1
mov dword [esp + 0x14], ecx
mov dword [edi], eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0x20], 9
cmp dword [ecx + 4], 1
je 0x40c238
mov edx, dword [esi + 0x18]
push esi
push 1
push ebp
push edx
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
je 0x40c26a
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 4
mov ecx, dword [edi]
mov edx, dword [esi + 0x8050]
mov eax, dword [esi + 0x18]
push edi
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40c26a
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40c286
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 4
mov edx, dword [esp + 0x1c]
mov ecx, ebx
push edx
call fcn.0040c650
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
Function at 0x40c790
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0x10000000
push 0
push 0
push 0
mov dword [ebp - 4], ecx
push 0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, dword [ebp + 8]
test eax, eax
mov dword [esi + 0x10], eax
je 0x40c92c
mov eax, dword [esi + 0x1c]
xor edi, edi
add eax, 0x2348
xor ebx, ebx
push eax
mov dword [ebp + 8], 3
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x40c7e7
mov edi, dword [esi + 0x1c]
add edi, 0x2348
mov ecx, dword [esi + 0x1c]
add ecx, 0x2048
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x40c807
mov ebx, dword [esi + 0x1c]
add ebx, 0x2048
test edi, edi
jne 0x40c82b
mov edx, dword [ebp - 4]
lea eax, [edx + 0x60408]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x40c82b
mov eax, dword [ebp - 4]
lea edi, [eax + 0x60408]
test ebx, ebx
jne 0x40c84f
mov ecx, dword [ebp - 4]
lea eax, [ecx + 0x60508]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x40c84f
mov edx, dword [ebp - 4]
lea ebx, [edx + 0x60508]
mov ecx, dword [esi + 0x1c]
mov eax, 1
cmp dword [ecx + 4], eax
jne 0x40c85f
mov dword [ebp + 8], eax
mov edx, dword [esi + 0x10]
push 0x40ab60
push edx
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x1c]
push esi
add eax, 0x2148
mov edx, dword [ecx + 0x26c0]
mov ecx, dword [ebp + 8]
push edx
mov dx, word [eax - 0x2148]
push ecx
push ebx
push edi
push edx
push eax
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
mov dword [esi + 0x14], eax
je 0x40c92c
mov ecx, dword [ebp - 4]
lea ebx, [ecx + 0x60608]
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x40c91b
test ebx, ebx
mov dword [ebp - 0x10], 3
jne 0x40c8cc
mov dword [ebp - 0xc], ebx
jmp 0x40c902
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp + 8], eax
add eax, 3
and al, 0xfc
call fcn.004473e0
mov edx, dword [ebp + 8]
mov edi, esp
push 0
push 0
push edx
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0xc], edi
mov ecx, dword [esi + 0x10]
lea eax, [ebp - 0x10]
push 0xc
push eax
push 0x26
push ecx
mov dword [ebp - 8], 0x4d6e30
call dword [sym.imp.WININET.dll_InternetSetOptionA]
mov eax, 1
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea esp, [ebp - 0x1c]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40c940
Capabilities:
Send data
Send http request

Disassembly:
mov eax, 0x30c4
call fcn.004473e0
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov ebx, 0x463670
mov eax, dword [ebp + 0x2470]
test eax, eax
je 0x40c964
mov ebx, str.POST
mov ax, word [0x4d6e34]
mov esi, dword [esp + 0x30d8]
mov word [esp + 0x44], ax
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x46]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x44]
mov dword [esp + 0x14], 0x464cd4
mov dword [esp + 0x18], 0
lea ecx, [eax + 0x1048]
add eax, 0x48
push ecx
push eax
push 0x4634d4
push 0x7ff
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ecx, dword [esi + 0x1c]
add esp, 0x14
mov eax, 0x8400c300
cmp dword [ecx + 4], 4
jne 0x40c9ce
mov eax, 0x8480f300
mov ecx, dword [esi + 0x14]
push esi
lea edx, [esp + 0x18]
push eax
push edx
push 0
lea eax, [esp + 0x54]
push str.HTTP_1.1
push eax
push ebx
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
test eax, eax
mov dword [esi + 0x18], eax
je 0x40ca9c
mov dx, word [0x4d6e34]
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, 0x823
lea edi, [esp + 0x1046]
mov word [esp + 0x1044], dx
push 0x1048
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x1048]
mov ecx, ebp
push eax
push esi
mov dword [esp + 0x28], 0x28
call fcn.0040cbb0
lea edx, [esp + 0x1044]
lea ecx, [esp + 0x1044]
push edx
mov dword [esp + 0x28], ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ecx, dword [esi + 0x18]
add esp, 4
mov dword [esp + 0x28], eax
lea eax, [esp + 0x10]
push 4
push eax
push 2
push ecx
mov dword [esp + 0x20], 0x3a98
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [esi + 0x18]
push esi
push 1
lea edx, [esp + 0x24]
push 0
push edx
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30c4
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30c4
ret 4
Function at 0x40d540
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x210
mov ax, word [0x4d6e34]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov word [esp + 0x18], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
rep stosd dword es:[edi], eax
xor ebp, ebp
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edx, dword [esi + 8]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 4
shl edi, 1
mov ecx, edi
push 2
neg ecx
push ebp
push ecx
push edx
call ebx
mov edx, dword [esi + 8]
lea eax, [esp + 0x10]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
lea ecx, [esp + 0x20]
push edi
push ecx
push edx
call ebp
cmp edi, dword [esp + 0x10]
jne 0x40d615
lea eax, [esp + 0x18]
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x40d615
mov edx, dword [esp + 0x10]
mov ecx, 0xfffffffc
push 1
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push edx
call ebx
mov edx, dword [esi + 8]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x1c]
push 4
push ecx
push edx
call ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 8]
add eax, ecx
push 1
push 0
neg eax
push eax
push edx
call ebx
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret

Function at 0x40d620
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x26d8]
mov dword [esp + 0xc], edi
cmp eax, edi
jne 0x40d63d
mov dword [esp + 8], edi
jmp 0x40d64c
mov ecx, dword [esi + 0x26dc]
sub ecx, eax
sar ecx, 2
mov dword [esp + 8], ecx
mov edx, dword [esi + 8]
push 2
push edi
push edi
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 8], edi
je 0x40d6f3
mov edx, dword [esi + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
lea eax, [esp + 0x14]
push edi
push eax
lea ecx, [esp + 0x18]
push 4
push ecx
push edx
call ebx
mov ebp, 4
mov eax, dword [esi + 0x26d8]
test eax, eax
je 0x40d6b6
mov ecx, dword [esi + 0x26dc]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jae 0x40d6b6
mov ecx, dword [eax + edi*4]
lea edx, [esp + 0x14]
push 0
push edx
mov edx, dword [esi + 8]
push 0x20
push ecx
push edx
call ebx
add ebp, 0x20
inc edi
jmp 0x40d684
mov edx, dword [esi + 8]
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x18]
push 4
push ecx
push edx
mov dword [esp + 0x24], ebp
call ebx
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edx, dword [esi + 8]
add esp, 4
lea ecx, [esp + 0x14]
shl eax, 1
push 0
push ecx
push eax
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
push edx
call ebx
pop ebp
pop ebx
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
add esp, 8
ret