joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010c3
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, eax
mov eax, dword [ebp + 0x18]
and dword [esi], 0
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x40113b
cmp word [ebx + 8], 2
jne 0x401118
cmp word [ebx + 0xa], 4
jne 0x401118
mov edi, dword [ebx + 0xc]
jmp 0x401112
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00401060
test eax, eax
mov dword [esi], eax
je 0x401136
lea esi, [eax + 0x1c]
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x4010f6
mov esi, dword [ebp + 0x18]
push 0x400
push dword [ebx]
push esi
call fcn.0040f590
add esp, 0xc
mov byte [esi + 0x400], 0
xor eax, eax
jmp 0x401161
push 8
pop eax
jmp 0x401161
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x401161
dec ecx
je 0x40115c
dec ecx
je 0x401155
dec ecx
jmp 0x401161
mov eax, 0x2afb
jmp 0x401161
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x40170f
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x1b0]
sub esp, 0x230
cmp dword [0x42a8a0], 0
mov eax, dword [0x4280c8]
mov dword [ebp + 0x1ac], eax
mov dword [ebp - 0x80], str.getaddrinfo
mov dword [ebp - 0x7c], 0x4012ea
mov dword [ebp - 0x78], str.getnameinfo
mov dword [ebp - 0x74], 0x401564
mov dword [ebp - 0x70], str.freeaddrinfo
mov dword [ebp - 0x6c], fcn.004012b1
jne 0x401864
push 0x104
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40185a
push ebx
push esi
push edi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0xa0]
push eax
call fcn.0040f420
lea eax, [ebp + 0xa0]
push str.ws2_32
push eax
call fcn.0040f430
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x10
lea eax, [ebp + 0xa0]
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4017d1
push str.getaddrinfo
push esi
call edi
test eax, eax
jne 0x4017cd
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
jne 0x40181d
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0xa0]
push eax
call fcn.0040f420
lea eax, [ebp + 0xa0]
push str.wship6
push eax
call fcn.0040f430
add esp, 0x10
lea eax, [ebp + 0xa0]
push eax
call ebx
mov esi, eax
test esi, esi
je 0x401857
push str.getaddrinfo
push esi
call edi
test eax, eax
jne 0x401819
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
je 0x401857
xor ebx, ebx
push dword [ebp + ebx*8 - 0x80]
push esi
call edi
test eax, eax
mov dword [ebp + ebx*8 - 0x7c], eax
je 0x401836
inc ebx
cmp ebx, 3
jl 0x40181f
jmp 0x40183f
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
je 0x401857
xor eax, eax
mov ecx, dword [ebp + eax - 0x7c]
mov dword [eax + 0x42904c], ecx
add eax, 8
cmp eax, 0x18
jl 0x401845
pop edi
pop esi
pop ebx
mov dword [0x42a8a0], 1
movzx eax, word [ebp + 0x1b8]
mov ecx, dword [ebp + 0x1ac]
mov eax, dword [eax*8 + 0x42904c]
call fcn.004120cb
add ebp, 0x1b0
leave
ret 4
Function at 0x4022e6
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x1b4]
sub esp, 0x234
mov eax, dword [0x4280c8]
and dword [ebp - 0x7c], 0
push edi
mov dword [ebp + 0x1b0], eax
xor eax, eax
mov ecx, 0x8a
lea edi, [ebp - 0x78]
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 2
mov edi, eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0x80], eax
je 0x402384
lea ecx, [ebp - 0x7c]
push ecx
push eax
mov dword [ebp - 0x7c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x402384
push esi
cmp dword [ebp - 0x74], edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40235c
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40233f
jmp 0x40237e
push dword [ebp - 0x64]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40237b
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call esi
push dword [ebp - 0x80]
call esi
pop esi
mov ecx, dword [ebp + 0x1b0]
pop edi
call fcn.004120cb
add ebp, 0x1b4
leave
ret

Function at 0x402558
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, eax
push 3
xor edx, edx
lea eax, [esi + 2]
pop edi
div edi
shl eax, 2
cmp dword [ebp + 8], 0
je 0x402611
cmp dword [ebp + 0xc], eax
jae 0x402582
xor eax, eax
jmp 0x402611
mov eax, dword [ebp + 8]
push ebx
lea ebx, [ecx + esi]
jmp 0x4025e9
movzx esi, byte [ecx]
mov edi, esi
shr esi, 2
mov dl, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ccccccccccccccccccccccccccccccccccccccccccc_ccc_456789:__ccccccc]
and edi, 3
shl edi, 4
mov byte [eax], dl
inc eax
inc ecx
cmp ecx, ebx
jae 0x4025ef
movzx edx, byte [ecx]
mov esi, edx
and edx, 0xf
shr esi, 4
shl edx, 2
or esi, edi
mov dword [ebp + 0xc], edx
mov dl, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ccccccccccccccccccccccccccccccccccccccccccc_ccc_456789:__ccccccc]
mov byte [eax], dl
inc eax
inc ecx
cmp ecx, ebx
jae 0x4025fd
movzx esi, byte [ecx]
mov edi, esi
shr edi, 6
or edi, dword [ebp + 0xc]
and esi, 0x3f
mov dl, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ccccccccccccccccccccccccccccccccccccccccccc_ccc_456789:__ccccccc]
mov byte [eax], dl
mov dl, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ccccccccccccccccccccccccccccccccccccccccccc_ccc_456789:__ccccccc]
inc eax
mov byte [eax], dl
inc eax
inc ecx
cmp ecx, ebx
jb 0x40258b
jmp 0x40260d
mov cl, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ccccccccccccccccccccccccccccccccccccccccccc_ccc_456789:__ccccccc]
mov byte [eax], cl
inc eax
mov byte [eax], 0x3d
jmp 0x402608
mov ecx, dword [ebp + 0xc]
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ccccccccccccccccccccccccccccccccccccccccccc_ccc_456789:__ccccccc]
mov byte [eax], cl
inc eax
mov byte [eax], 0x3d
inc eax
sub eax, dword [ebp + 8]
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x402c31
Capabilities:
Resume thread

Disassembly:
push esi
push edi
mov esi, eax
call fcn.00402c0c
mov edi, eax
test edi, edi
jne 0x402c70
mov eax, dword [esp + 0xc]
and dword [esi + 8], edi
mov dword [esi + 4], eax
lea eax, [esi + 0x10]
push eax
push 4
push esi
push 0x402b50
push edi
push edi
call fcn.004104ba
mov edi, eax
add esp, 0x18
test edi, edi
je 0x402c70
push edi
mov dword [esi + 0xc], edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, edi
pop edi
pop esi
ret 4

Function at 0x40355b
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, eax
test esi, esi
mov eax, dword [ecx]
jbe 0x403580
push ebx
push edi
movzx ebx, byte [edx]
mov edi, eax
shl eax, 8
shr edi, 0x18
or eax, ebx
xor eax, dword [edi*4 + 0x41ff58]
inc edx
dec esi
jne 0x403566
pop edi
pop ebx
mov dword [ecx], eax
pop esi
ret

Function at 0x4035d3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
mov edi, ecx
cmp edi, esi
mov dword [eax + 0x14], esi
je 0x403634
cmp word [edi], si
je 0x403634
push eax
push edi
call fcn.0041077c
test eax, eax
pop ecx
pop ecx
jne 0x403634
push esi
push 0x8000000
push 3
push esi
push 3
push connect
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0xc], ebx
je 0x403634
mov edi, 0x1000
push edi
call fcn.0041061c
cmp eax, esi
pop ecx
mov dword [ebp - 4], eax
jne 0x40363d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
mov ecx, dword [ebp + 8]
push esi
mov dword [ecx], esi
lea ecx, [ebp - 8]
push ecx
push edi
push eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x403670
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x403676
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
call fcn.0040355b
push esi
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 4]
push dword [ebp - 0xc]
call ebx
test eax, eax
jne 0x403652
push dword [ebp - 4]
call fcn.0040f518
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp + 8]
call fcn.00403584
jmp 0x403636
Function at 0x405131
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405148
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x40515a
xor eax, eax
jmp 0x40518b
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x40517d
cmp edi, eax
jae 0x405156
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x40516f
cmp edi, eax
jae 0x405156
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x4051fa
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
mov eax, 0x41d4fd
call fcn.004128c4
sub esp, 0x1c8
mov eax, dword [0x4280c8]
and dword [ebp - 0x1c8], 0
push ebx
mov dword [ebp - 0x10], eax
push str.140330012008
lea eax, [ebp - 0x1c4]
push eax
call fcn.00404afa
and dword [ebp - 4], 0
push str.iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4052f9
push str.SendARP
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [ebp - 0x1c8], eax
je 0x4052f2
push edi
lea eax, [ebp - 0x1c0]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x20
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edi, dword [eax]
push 8
lea eax, [ebp - 0x1d4]
push 0xff
push eax
call fcn.0040f270
add esp, 0xc
lea eax, [ebp - 0x1cc]
push eax
lea eax, [ebp - 0x1d4]
push eax
push 0
push edi
mov dword [ebp - 0x1cc], 6
call dword [ebp - 0x1c8]
test eax, eax
pop edi
jne 0x4052ec
movzx eax, word [ebp - 0x1d0]
push eax
push dword [ebp - 0x1d4]
lea eax, [ebp - 0x1c4]
push str._08x_04x
push eax
call fcn.004023ad
add esp, 0x10
call dword [sym.imp.WS2_32.dll_WSACleanup]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x1c4]
add eax, 0xfffffff0
call fcn.00404f0d
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x1c4]
add eax, 0xfffffff0
call fcn.00402528
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esi
pop ebx
call fcn.004120cb
leave
ret
Function at 0x405331
Capabilities:
Get disk information

Disassembly:
mov eax, 0x41d612
call fcn.004128c4
sub esp, 0x20
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov eax, dword [0x4291ac]
mov esi, 0x4291ac
push edi
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov eax, dword [0x4291ac]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
mov eax, dword [0x4291ac]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
lea eax, [ebp - 0x14]
je 0x4053b7
push dword [ebp - 0x1c]
push str._08x
push eax
call fcn.004023ad
add esp, 0xc
jmp 0x4053c2
push str.12281359
push eax
call fcn.00405080
lea esi, [ebp - 0x20]
call fcn.004051fa
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00404d7f
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00402528
lea esi, [ebp - 0x10]
call fcn.00405040
xor esi, esi
lea eax, [ebp - 0x20]
push eax
push 3
pop ecx
mov edx, ebx
lea eax, [ebp - 0x18]
call fcn.00405d35
mov byte [ebp - 4], 4
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x10]
call fcn.00404fef
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00402528
lea eax, [ebp - 0x24]
push eax
push 2
pop ecx
mov edx, esi
lea eax, [ebp - 0x14]
call fcn.00405d35
mov byte [ebp - 4], 5
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x10]
call fcn.00404fef
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00402528
add ebx, 3
inc esi
inc esi
cmp ebx, 0xc
jl 0x4053ef
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
mov eax, esi
call fcn.00404f0d
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00402528
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00402528
mov eax, esi
call fcn.00402528
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4054a0
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
mov eax, 0x41d4e8
call fcn.004128c4
sub esp, 0x210
mov eax, dword [0x4280c8]
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x21c], ebx
lea eax, [ebp - 0x218]
je 0x4054ef
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 8]
call fcn.00404afa
mov eax, dword [ebp + 8]
jmp 0x4055ef
push esi
push edi
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.00410545
pop ecx
pop ecx
mov edi, eax
push str.acctdata_
lea eax, [edi + 2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
lea eax, [ebp - 0x218]
push eax
call esi
push str.update_
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
call edi
lea eax, [ebp - 0x218]
push eax
push str.GetDownloadPath_:_s_n
call fcn.0040b1f8
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00404afa
push str.write.test
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 4], ebx
call edi
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x10000000
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4055d2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00404f0d
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00402528
mov eax, esi
jmp 0x4055ed
push 0x420b70
push dword [ebp + 8]
call fcn.00404afa
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00402528
mov eax, dword [ebp + 8]
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004120cb
leave
ret
Function at 0x4062fd
Capabilities:
Terminate thread

Disassembly:
and dword [esi + 0x10], 0
mov eax, esi
mov dword [esi], 0x4217f8
call fcn.00406330
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [esi], 0x4217ec
mov eax, esi
jmp fcn.00402cb6

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
lea eax, [esi + 0x18]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esi + 0x38]
sub ebx, dword [esi + 0x3c]
push ebx
push str.CDownloadThread::DivideTask_nLen_ld_n
call fcn.0040b1f8
pop ecx
cmp ebx, 0x10000
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
pop ecx
jg 0x406391
call ebx
sub eax, dword [esi + 0x40]
cmp eax, 0x2710
jge 0x40638a
xor esi, esi
jmp 0x4063b4
mov eax, esi
call fcn.00406330
mov eax, dword [esi + 0x38]
mov dword [edi + 0x38], eax
mov eax, dword [esi + 0x38]
add eax, dword [esi + 0x3c]
cdq
sub eax, edx
sar eax, 1
mov dword [edi + 0x34], eax
mov dword [edi + 0x3c], eax
dec eax
mov dword [esi + 0x38], eax
call ebx
mov dword [esi + 0x40], eax
xor esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x406d2f
Capabilities:
Parse credit card information

Disassembly:
mov eax, 0x41d4d6
call fcn.004128c4
sub esp, 0xc
mov eax, dword [0x4291ac]
push ebx
push esi
mov ebx, 0x4291ac
push edi
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edi, dword [eax - 0xc]
lea edx, [edi + edi*2 + 3]
lea esi, [ebp - 0x18]
call fcn.00406038
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
xor edx, edx
push edx
push edx
lea eax, [edi + edi*2 + 3]
push eax
push dword [ebp - 0x10]
push edi
push ecx
push edx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x14], eax
mov eax, dword [0x4291ac]
mov ecx, ebx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp + 8], edi
mov esi, dword [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00405fd6
xor esi, esi
cmp dword [ebp - 0x14], esi
jle 0x406ec8
mov edx, dword [ebp - 0x10]
lea ebx, [esi + edx]
mov cl, byte [ebx]
cmp cl, 0x61
jl 0x406dce
cmp cl, 0x7a
jle 0x406eb5
cmp cl, 0x41
jl 0x406ddc
cmp cl, 0x5a
jle 0x406eb5
cmp cl, 0x30
jl 0x406dea
cmp cl, 0x39
jle 0x406eb5
cmp cl, 0x3a
je 0x406eb5
cmp cl, 0x2f
je 0x406eb5
cmp cl, 0x2e
je 0x406eb5
cmp cl, 0x5f
je 0x406eb5
cmp cl, 0x2d
je 0x406eb5
cmp cl, 0x3d
je 0x406eb5
cmp cl, 0x3f
je 0x406eb5
cmp cl, 0x26
je 0x406eb5
cmp cl, 0x25
jne 0x406e8f
mov al, byte [esi + edx + 1]
cmp al, 0x30
jl 0x406e4b
cmp al, 0x39
jle 0x406e5b
cmp al, 0x30
jl 0x406e4b
cmp al, 0x39
jle 0x406e5b
cmp al, 0x41
jl 0x406e53
cmp al, 0x46
jle 0x406e5b
cmp al, 0x61
jl 0x406e8f
cmp al, 0x66
jg 0x406e8f
mov al, byte [esi + edx + 2]
cmp al, 0x30
jl 0x406e6f
cmp al, 0x39
jle 0x406e7f
cmp al, 0x30
jl 0x406e6f
cmp al, 0x39
jle 0x406e7f
cmp al, 0x41
jl 0x406e77
cmp al, 0x46
jle 0x406e7f
cmp al, 0x61
jl 0x406e8f
cmp al, 0x66
jg 0x406e8f
mov eax, dword [ebp + 0xc]
push 3
push ebx
call fcn.00407298
add esi, 3
jmp 0x406ebf
movzx eax, cl
push eax
lea eax, [ebp + 8]
push str.___X
push eax
call fcn.00405c39
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
add esp, 0xc
push dword [edi - 0xc]
push edi
call fcn.00407298
jmp 0x406ebe
mov eax, dword [ebp + 0xc]
push ecx
call fcn.00407367
inc esi
cmp esi, dword [ebp - 0x14]
jl 0x406db8
lea eax, [edi - 0x10]
call fcn.00402528
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00402528
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x407391
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
lea eax, [esi + 0x3c]
mov dword [esi + 4], eax
lea eax, [esi + 0x4c]
mov dword [esi + 0x10], eax
lea eax, [esi + 0x14c]
mov dword [esi + 0x1c], eax
push 0x40
pop eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], eax
lea eax, [esi + 0x24c]
mov dword [esi + 0x2c], eax
lea ecx, [esi + 0x1cc]
lea eax, [esi + 0x44c]
mov dword [esi], 0x3c
mov dword [esi + 8], 8
mov dword [esi + 0x14], 0x80
mov dword [esi + 0x24], ecx
mov dword [esi + 0x30], 0x100
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], 0x1da
jge 0x407401
push dword [ebp + 8]
call fcn.0040ffbd
pop ecx
mov dword [ebp + 0xc], eax
push esi
push 0x90000000
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
pop ebp
ret 8

Function at 0x407417
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
mov eax, 0x41d42b
call fcn.004128c4
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
lea esi, [edi + 0xc]
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
call fcn.00402398
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x40744c
push 0x4223cc
jmp 0x407467
push ebx
push ebx
push ebx
push ebx
push dword [0x428ff8]
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, ebx
mov dword [edi], eax
jne 0x407474
push str.InternetOpen
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
call fcn.0040782a
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40755b
Capabilities:
Check http status code
Read data from internet
Receive data

Disassembly:
push ebp
lea ebp, [esp - 0x390]
sub esp, 0x410
mov eax, dword [0x4280c8]
push ebx
xor ebx, ebx
cmp dword [esi + 8], ebx
mov dword [ebp + 0x38c], eax
jne 0x407583
xor eax, eax
jmp 0x407663
push edi
mov edi, dword [sym.imp.WININET.dll_HttpSendRequestW]
push dword [ebp + 0x3a4]
push dword [ebp + 0x3a0]
push dword [ebp + 0x39c]
push dword [ebp + 0x398]
push dword [esi + 8]
call edi
test eax, eax
jne 0x4075de
push 4
lea eax, [ebp - 0x80]
push eax
push 0x1f
push dword [esi + 8]
mov dword [ebp - 0x80], 0x8440f180
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push dword [ebp + 0x3a4]
push dword [ebp + 0x3a0]
push ebx
push ebx
push dword [esi + 8]
call edi
test eax, eax
je 0x407679
push ebx
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0x20000013
push dword [esi + 8]
mov dword [ebp - 0x78], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x40768f
cmp dword [ebp - 0x7c], 0x191
je 0x407616
cmp dword [ebp - 0x7c], 0x197
jne 0x407658
lea eax, [ebp - 0x78]
push eax
push 0x400
lea eax, [ebp - 0x74]
push eax
push dword [esi + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x407635
cmp dword [ebp - 0x78], ebx
jne 0x407616
push ebx
push 7
push 0x2eee
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
cmp eax, 0x2f00
je 0x40758a
mov ecx, esi
call fcn.004079a2
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp + 0x38c]
pop ebx
call fcn.004120cb
add ebp, 0x390
leave
ret 0x10
push str.HttpSendRequest
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
call fcn.0040782a
xor eax, eax
jmp 0x407662
push str.HttpQueryInfo
jmp 0x40767e