joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4506a0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
call fcn.004509e0
push 0
push 0
push 0
push 0
push 0x4000
lea ecx, [esi + 0x28]
call fcn.004529c0
cmp eax, 1
je 0x4506c6
xor eax, eax
pop esi
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x14], 1
call edi
mov dword [esi + 0xc], eax
call edi
push 0
push 0
push esi
push 0x4500c0
push 0
push 0
mov dword [esi + 0x10], eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
xor ecx, ecx
add esp, 0x18
cmp ecx, eax
mov dword [esi], eax
sbb eax, eax
pop edi
neg eax
pop esi
ret

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

Disassembly:
sub esp, 0x260
push ebx
mov ebx, ecx
push esi
mov dword [esp + 0xc], ebx
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4509c6
mov esi, dword [ebx + 0x8c]
mov eax, dword [esp + 0x26c]
inc esi
mov dword [ebx + 0x8c], esi
mov ecx, dword [eax]
cmp ecx, 0xd
jae 0x45089e
push eax
mov ecx, ebx
call fcn.00452120
jmp 0x4508c4
cmp ecx, 0x6b
jae 0x4508ad
push eax
mov ecx, ebx
call fcn.00452410
jmp 0x4508c4
cmp ecx, 0xd9
push eax
mov ecx, ebx
jae 0x4508bf
call fcn.004525e0
jmp 0x4508c4
call fcn.004528c0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [ebx + 0x10]
cmp eax, 0x64
jbe 0x4509c6
push ebp
push edi
call esi
mov dword [ebx + 0x10], eax
call esi
mov ecx, dword [ebx + 0xc]
add ecx, 0x3e8
cmp ecx, eax
sbb edi, edi
neg edi
mov dword [esp + 0x18], edi
je 0x4508fc
mov edx, dword [ebx + 0x10]
mov dword [ebx + 0xc], edx
mov eax, dword [ebx + 0x1c]
xor ebp, ebp
mov dword [esp + 0x10], ebp
mov esi, dword [eax]
cmp esi, eax
je 0x4509a1
jmp 0x450915
mov edi, dword [esp + 0x18]
mov ebx, dword [esi + 0x10]
push edi
mov ecx, ebx
call fcn.00469520
mov ecx, 0x95
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call fcn.00468f20
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov edi, dword [esp + 0x10]
lea edx, [eax + ecx]
mov ecx, dword [0x4c8970]
shr eax, 0xa
shr edx, 0xa
add edi, eax
mov eax, dword [esi + 8]
add ebp, edx
cmp eax, ecx
mov dword [esp + 0x10], edi
je 0x450975
mov esi, eax
mov eax, dword [esi]
cmp eax, ecx
je 0x45098e
mov esi, eax
mov eax, dword [esi]
cmp eax, ecx
jne 0x45096b
jmp 0x45098e
mov eax, dword [esi + 4]
cmp esi, dword [eax + 8]
jne 0x450987
mov esi, eax
mov eax, dword [eax + 4]
cmp esi, dword [eax + 8]
je 0x45097d
cmp dword [esi + 8], eax
je 0x45098e
mov esi, eax
mov eax, dword [esp + 0x14]
cmp esi, dword [eax + 0x1c]
jne 0x450911
mov edi, dword [esp + 0x18]
mov ebx, eax
mov ecx, dword [esp + 0x10]
push ecx
push ebp
call fcn.00458b40
add esp, 8
test edi, edi
pop edi
pop ebp
je 0x4509c6
mov ecx, ebx
call fcn.004513e0
mov ecx, 0x4c7808
call fcn.0044d290
pop esi
pop ebx
add esp, 0x260
ret 4
Function at 0x4541c0
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push ebp
mov ebp, ecx
push esi
lea eax, [esp + 0x14]
push edi
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push ecx
lea ecx, [ebp + 4]
mov dword [esp + 0x20], edi
call fcn.00456930
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
cmp eax, ecx
je 0x454351
mov eax, dword [eax + 0x10]
xor esi, esi
cmp eax, esi
je 0x454351
cmp dword [eax + 0x44], esi
je 0x454351
push 0x10
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
cmp ebx, esi
je 0x454351
mov dl, byte [esp + 0x18]
push edi
mov ecx, ebp
mov byte [ebx], dl
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], esi
call fcn.004550c0
mov esi, eax
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov edi, ecx
mov ecx, ebx
push edi
mov dword [esp + 0x20], edi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x454271
mov ecx, edi
mov edi, dword [ebx + 4]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], eax
mov byte [eax + ecx], 0
mov eax, dword [ebp + 0x74]
test eax, eax
jne 0x4542cc
push 0
push 0
push 0
push 0
push 0x4000
lea ecx, [ebp + 0x14]
call fcn.00456460
cmp eax, 1
jne 0x454351
push 0
push 0
push 0
push 0
mov dword [ebp + 0x7c], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push ebp
push 0x454360
push 0
push 0
mov dword [ebp + 0x78], eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [ebp + 0x74], eax
test eax, eax
je 0x454351
push 0xffffffffffffffff
lea edx, [ebp + 0x48]
push 1
push edx
push 3
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 3
jae 0x454351
mov ecx, dword [ebp + 0x70]
test ecx, ecx
je 0x4542f7
mov eax, dword [ecx]
lea edx, [esp + 0x18]
push edx
push 1
call dword [eax]
mov eax, dword [ebp + 0x6c]
test eax, eax
jne 0x454326
mov eax, dword [ebp + 0x44]
mov ecx, dword [ebp + 0x30]
mov edx, dword [esp + 0x18]
mov dword [ecx + eax*4], edx
mov ecx, dword [ebp + 0x44]
mov edi, dword [ebp + 0x3c]
inc ecx
mov eax, ecx
sub eax, edi
neg eax
sbb eax, eax
and eax, ecx
mov dword [ebp + 0x44], eax
mov eax, dword [ebp + 0x38]
inc eax
mov dword [ebp + 0x38], eax
mov ecx, dword [ebp + 0x70]
test ecx, ecx
je 0x454339
mov eax, dword [ecx]
lea edx, [esp + 0x18]
push edx
push 1
call dword [eax + 4]
mov eax, dword [ebp + 0x20]
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x4560e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
xor ebp, ebp
push esi
cmp eax, ebp
push edi
mov esi, ecx
je 0x456104
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
add ecx, eax
mov dword [esi], ecx
mov eax, dword [esi + 4]
adc eax, ebp
mov dword [esi + 4], eax
jmp 0x456118
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 8]
add edx, ecx
mov dword [esi + 8], edx
mov eax, dword [esi + 0xc]
adc eax, ebp
mov dword [esi + 0xc], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov edx, eax
mov eax, 0x10624dd3
mul edx
mov eax, dword [esi + 0x10]
mov ecx, 0xa
shr edx, 6
add eax, edx
xor edx, edx
div ecx
mov edi, edx
call ebx
lea edx, [edi + edi*2 + 6]
mov ecx, eax
mov ebx, dword [esi + edx*4]
lea edx, [esi + edx*4]
sub ecx, ebx
cmp ecx, 0x1f40
jbe 0x456162
lea ecx, [edi + edi*2]
lea ecx, [esi + ecx*4]
mov dword [ecx + 0x1c], ebp
mov dword [ecx + 0x20], ebp
mov dword [edx], ebp
lea ecx, [esi + 0x18]
mov ebx, 0xa
mov ebp, eax
sub ebp, dword [ecx]
cmp ebp, 0x2af8
jbe 0x456180
xor ebp, ebp
mov dword [ecx + 4], ebp
mov dword [ecx + 8], ebp
mov dword [ecx], ebp
add ecx, 0xc
dec ebx
jne 0x45616a
mov ecx, dword [esp + 0x18]
test ecx, ecx
lea ecx, [edi + edi*2]
je 0x456197
lea ecx, [esi + ecx*4 + 0x1c]
jmp 0x45619b
lea ecx, [esi + ecx*4 + 0x20]
mov esi, dword [esp + 0x14]
mov edi, dword [ecx]
add edi, esi
mov dword [ecx], edi
mov ecx, dword [edx]
pop edi
pop esi
pop ebp
pop ebx
test ecx, ecx
jne 0x4561b1
mov dword [edx], eax
ret 8

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

Disassembly:
sub esp, 8
push ebx
push esi
push edi
push 1
mov esi, ecx
push 0
call fcn.004560e0
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x4562e1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov eax, dword [esi + 0x14]
sub edi, eax
jne 0x4562b7
xor eax, eax
pop edi
pop esi
mov dword [esp + 8], eax
pop ebx
add esp, 8
ret 4
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push 0
push 0x3e8
push eax
push ecx
call fcn.00499c50
push 0
push edi
push edx
push eax
call fcn.00499be0
pop edi
pop esi
mov dword [esp + 8], edx
pop ebx
add esp, 8
ret 4
cmp edi, 0xa
jbe 0x4562eb
mov edi, 0xa
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov edx, eax
mov eax, dword [esi + 0x14]
sub edx, eax
mov eax, 0x10624dd3
mul edx
shr edx, 6
cmp edx, edi
ja 0x45634c
call ebx
mov edi, eax
mov eax, dword [esi + 0x14]
sub edi, eax
jne 0x456322
xor eax, eax
pop edi
pop esi
mov dword [esp + 8], eax
pop ebx
add esp, 8
ret 4
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push 0
push 0x3e8
push eax
push ecx
call fcn.00499c50
push 0
push edi
push edx
push eax
call fcn.00499be0
pop edi
pop esi
mov dword [esp + 8], edx
pop ebx
add esp, 8
ret 4
push 1
push edi
mov ecx, esi
call fcn.004561c0
xor edx, edx
div edi
pop edi
pop esi
pop ebx
add esp, 8
ret 4
Function at 0x456370
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 8
push ebx
push esi
push edi
push 0
mov esi, ecx
push 0
call fcn.004560e0
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x4563d2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov eax, dword [esi + 0x14]
sub edi, eax
jne 0x4563a7
xor eax, eax
pop edi
pop esi
mov dword [esp + 8], eax
pop ebx
add esp, 8
ret 4
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push 0
push 0x3e8
push eax
push ecx
call fcn.00499c50
push 0
push edi
push edx
push eax
call fcn.00499be0
pop edi
pop esi
mov dword [esp + 8], edx
pop ebx
add esp, 8
ret 4
cmp edi, 0xa
jbe 0x4563dc
mov edi, 0xa
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov edx, eax
mov eax, dword [esi + 0x14]
sub edx, eax
mov eax, 0x10624dd3
mul edx
shr edx, 6
cmp edx, edi
ja 0x45643e
call ebx
mov edi, eax
mov eax, dword [esi + 0x14]
sub edi, eax
jne 0x456413
xor eax, eax
pop edi
pop esi
mov dword [esp + 8], eax
pop ebx
add esp, 8
ret 4
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push 0
push 0x3e8
push eax
push ecx
call fcn.00499c50
push 0
push edi
push edx
push eax
call fcn.00499be0
pop edi
pop esi
mov dword [esp + 8], edx
pop ebx
add esp, 8
ret 4
push 0
push edi
mov ecx, esi
call fcn.004561c0
xor edx, edx
div edi
pop edi
pop esi
pop ebx
add esp, 8
ret 4
Function at 0x4582e0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4a3816
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x14], ebx
je 0x458317
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov eax, dword [0x4bdf48]
push ebp
or ebp, 0xffffffff
cmp eax, ebx
push edi
jne 0x4583dc
mov ax, word [0x4be174]
mov word [0x4c8be0], ax
push 0x34
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov dword [esp + 0x1c], ebx
je 0x458354
mov ecx, eax
call fcn.00474820
jmp 0x458356
xor eax, eax
mov dword [esi + 0x14], eax
mov cx, word [0x4c8be0]
push ecx
push esi
mov ecx, eax
mov dword [esp + 0x24], ebp
call fcn.00474890
mov edi, eax
cmp edi, ebx
jne 0x4583ca
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x4583a8
mov edx, dword [eax + 0x10]
push edx
push str._TcpListening__Err:__d
push 0x4c89f8
call fcn.00453b40
mov ecx, dword [esi + 0x14]
add esp, 0xc
call fcn.00474d10
mov ecx, dword [esi + 0x14]
cmp ecx, ebx
je 0x4583a5
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x14], ebx
call fcn.00459670
mov word [0x4c8be0], ax
mov eax, dword [esi + 0xc4]
cmp eax, ebx
lea ecx, [eax - 1]
mov dword [esi + 0xc4], ecx
jne 0x458335
cmp edi, ebx
mov dword [esi + 0xc4], 5
jne 0x4584b0
mov edx, dword [0x4c8f04]
shr edx, 0x18
add edx, 0x2710
mov word [0x4c8be0], dx
push 0x34
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov dword [esp + 0x1c], 1
je 0x458415
mov ecx, eax
call fcn.00474820
jmp 0x458417
xor eax, eax
mov dword [esi + 0x14], eax
mov cx, word [0x4c8be0]
push ecx
push esi
mov ecx, eax
mov dword [esp + 0x24], ebp
call fcn.00474890
mov edi, eax
cmp edi, ebx
jne 0x45848f
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x458469
mov edx, dword [eax + 0x10]
push edx
push str._TcpListening__Err:__d
push 0x4c89f8
call fcn.00453b40
mov ecx, dword [esi + 0x14]
add esp, 0xc
call fcn.00474d10
mov ecx, dword [esi + 0x14]
cmp ecx, ebx
je 0x458466
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x14], ebx
call fcn.00459670
mov word [0x4c8be0], ax
mov eax, dword [esi + 0xc4]
cmp eax, ebx
lea ecx, [eax - 1]
mov dword [esi + 0xc4], ecx
jne 0x4583f2
cmp edi, ebx
je 0x4584b0
cmp dword [0x4ca734], ebx
je 0x4584b0
push ebx
push ebx
push esi
push 0x458740
push ebx
push ebx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0xc8], eax
mov edx, dword [0x4bdf48]
xor eax, eax
mov ax, word [0x4c8be0]
push edx
push eax
push str._TcpListening__Port__u__NatType__d
push 0x4c89f8
call fcn.00453b40
add esp, 0x10
cmp edi, ebx
jne 0x4584f2
mov ecx, dword [esi + 0x14]
cmp ecx, ebx
je 0x4584f2
call fcn.00474d10
mov ecx, dword [esi + 0x14]
cmp ecx, ebx
je 0x4584ef
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [esi + 0x14], ebx
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x459120
Capabilities:
Get mac address on windows

Disassembly:
mov eax, 0x190c
call fcn.004999f0
push ebp
mov ebp, dword [esp + 0x1914]
test ebp, ebp
push esi
je 0x459188
lea eax, [esp + 8]
lea ecx, [esp + 0x14]
push eax
push ecx
lea esi, [esp + 0x1c]
mov dword [esp + 0x10], 0x1900
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x459188
lea edx, [esp + 0x14]
test edx, edx
je 0x459188
mov eax, dword [esi + 0x190]
xor ecx, ecx
cmp eax, 6
jne 0x459182
xor eax, eax
xor edx, edx
mov dl, byte [esi + eax + 0x194]
add ecx, edx
inc eax
cmp eax, 6
jb 0x45916d
test ecx, ecx
jne 0x459193
mov esi, dword [esi]
test esi, esi
jne 0x45915e
pop esi
xor al, al
pop ebp
add esp, 0x190c
ret
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x16]
add eax, ecx
add word [esi + 0x194], ax
mov byte [ebp], 0
xor edi, edi
xor edx, edx
mov dl, byte [esi + edi + 0x194]
push edx
push ebp
push str._s_02X
push ebp
call ebx
add esp, 0x10
inc edi
cmp edi, 6
jb 0x4591b8
pop edi
pop ebx
pop esi
mov al, 1
pop ebp
add esp, 0x190c
ret

Function at 0x4591f0
Capabilities:
Hash data with md5

Disassembly:
push 0xffffffffffffffff
push 0x4a3848
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push esi
lea eax, [esp + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [0x4bdf4c]
push ecx
push edx
push eax
lea ecx, [esp + 0x20]
push str.360P_04d_012I64X
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov ecx, 5
lea esi, [esp + 0x28]
mov edi, 0x4c8f08
add esp, 0x14
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x54]
mov dword [esp + 8], 0x67452301
lea esi, [eax + edx]
call fcn.00474bd0
push 0x432aff97
push 5
push esi
push 0x10325476
push 0x98badcfe
lea ecx, [esp + 0x1c]
push 0xefcdab89
push ecx
lea ecx, [esp + 0x70]
mov dword [esp + 0xd4], 0
call fcn.00474ab0
push 0x2441453
push 0x14
push esi
push 0x10325476
push 0x98badcfe
lea edx, [esp + 0x1c]
push 0xefcdab89
push edx
lea ecx, [esp + 0x70]
call fcn.00474b00
push 0xf57c0faf
push 0x10
push esi
push 0x10325476
push 0x98badcfe
lea eax, [esp + 0x1c]
push 0xefcdab89
push eax
lea ecx, [esp + 0x70]
call fcn.00474b50
push 0x4bdecfa9
push 0x16
push esi
push 0x10325476
push 0x98badcfe
lea ecx, [esp + 0x1c]
push 0xefcdab89
push ecx
lea ecx, [esp + 0x70]
call fcn.00474b90
mov ecx, dword [esp + 8]
pop edi
mov eax, ecx
pop esi
shr eax, 0x10
xor eax, ecx
mov cx, ax
shr cx, 0xc
cmp cl, 9
jbe 0x459324
add cl, 0x37
jmp 0x459327
add cl, 0x30
mov byte [0x4c8f10], cl
xor ecx, ecx
mov cl, ah
and cl, 0xf
cmp cl, 9
jbe 0x45933e
add cl, 0x37
jmp 0x459341
add cl, 0x30
mov byte [0x4c8f11], cl
mov cl, al
shr cl, 4
and cl, 0xf
cmp cl, 9
jbe 0x459359
add cl, 0x37
jmp 0x45935c
add cl, 0x30
and al, 0xf
mov byte [0x4c8f12], cl
cmp al, 9
jbe 0x45936c
add al, 0x37
jmp 0x45936e
add al, 0x30
mov ecx, dword [esp + 0xa8]
mov byte [0x4c8f13], al
mov dword fs:[0], ecx
add esp, 0xb4
ret
Function at 0x459430
Capabilities:
Resolve dns

Disassembly:
push ebp
push 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebp, eax
test ebp, ebp
jne 0x459441
pop ebp
ret
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
mov ecx, dword [eax]
push edi
test ecx, ecx
je 0x45948a
mov eax, dword [eax + ebx*4]
mov ecx, dword [eax]
push ecx
call fcn.004594c0
add esp, 4
test al, al
je 0x45946d
mov eax, dword [ebp + 0xc]
inc ebx
cmp dword [eax + ebx*4], 0
jne 0x45944f
jmp 0x45948a
movsx ecx, word [ebp + 0xa]
mov edx, dword [ebp + 0xc]
mov eax, ecx
mov edi, 0x4c8f04
mov esi, dword [edx + ebx*4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0xc]
cmp dword [eax + ebx*4], 0
jne 0x4594ac
movsx ecx, word [ebp + 0xa]
mov esi, dword [eax]
mov edx, ecx
mov edi, 0x4c8f04
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
mov eax, 1
pop ebp
ret

Function at 0x459b60
Capabilities:
Get file version info

Disassembly:
mov eax, 0x480c
call fcn.004999f0
mov eax, dword [esp + 0x4818]
push esi
cmp eax, 0x60
push edi
jb 0x459c57
mov ax, word [0x4c712c]
mov ecx, 0xfff
mov word [esp + 0x814], ax
xor eax, eax
lea edi, [esp + 0x816]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x4c8c3c]
test eax, eax
jne 0x459baa
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
mov esi, dword [esp + 0x4818]
mov edi, dword [sym.imp.MSVCRT.dll_swprintf]
push esi
push eax
lea ecx, [esp + 0x1c]
push str._s_s
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x459c57
cmp eax, 0x2000
ja 0x459c57
lea ecx, [esp + 0x814]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x459c57
lea edx, [esp + 0xc]
lea eax, [esp + 8]
push edx
push eax
lea ecx, [esp + 0x81c]
push 0x4b7dcc
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x459c57
mov eax, dword [esp + 8]
xor edx, edx
mov dx, word [eax + 0xc]
mov ecx, dword [eax + 0xc]
push edx
xor edx, edx
mov dx, word [eax + 8]
mov eax, dword [eax + 8]
shr ecx, 0x10
push ecx
mov ecx, dword [esp + 0x4824]
shr eax, 0x10
push edx
push eax
push 0x4b81e4
push ecx
call edi
add esp, 0x18
mov eax, 1
pop edi
pop esi
add esp, 0x480c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x480c
ret
Function at 0x459c70
Capabilities:
Get networking parameters

Disassembly:
mov eax, 0x1004
call fcn.004999f0
push edi
mov edi, dword [esp + 0x100c]
test edi, edi
jne 0x459c90
xor eax, eax
pop edi
add esp, 0x1004
ret
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
push ecx
mov byte [edi], 0
mov dword [esp + 0xc], 0x400
call sub.iphlpapi.dll_GetNetworkParams
test eax, eax
je 0x459cb8
xor eax, eax
pop edi
add esp, 0x1004
ret
lea edx, [esp + 0x114]
push esi
test edx, edx
lea esi, [esp + 0x118]
je 0x459ce9
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [esi + 4]
push eax
push edi
push str._s__s
push edi
call ebx
mov esi, dword [esi]
add esp, 0x10
test esi, esi
jne 0x459cd2
pop ebx
pop esi
mov eax, 1
pop edi
add esp, 0x1004
ret
Function at 0x45a5f0
Capabilities:
Connect socket
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header
Set socket configuration

Disassembly:
sub esp, 0x418
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, ebp
jge 0x45a61a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x418
ret
xor eax, eax
push 0x50
mov dword [esp + 0x1c], eax
mov word [esp + 0x1c], 2
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [0x4c8f00]
lea edx, [esp + 0x18]
push 0x10
push edx
push esi
mov word [esp + 0x26], ax
mov dword [esp + 0x28], ecx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jge 0x45a670
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x418
ret
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [esp + 0x14]
push 4
push eax
push 0x1006
push 0xffff
push esi
mov dword [esp + 0x28], 0x2710
call edi
lea ecx, [esp + 0x10]
push 4
push ecx
push 0x80
push 0xffff
push esi
mov word [esp + 0x24], bp
mov word [esp + 0x26], bp
call edi
mov edx, dword [esp + 0x42c]
lea eax, [esp + 0x34]
push edx
push str.Host:
push str.GET__index.html_HTTP_1.0_r_n
push str._s_s_s
push eax
mov word [esp + 0x3c], 0x2324
mov word [esp + 0x3e], bp
mov dword [esp + 0x40], ebp
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x48]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
xor edi, edi
mov dword [esp + 0x30], ecx
lea ebx, [ecx + 0xc]
cmp ebx, ebp
jle 0x45a71f
mov ecx, ebx
push ebp
sub ecx, edi
lea edx, [esp + edi + 0x2c]
push ecx
push edx
push esi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, ebp
jle 0x45a65c
add edi, eax
cmp edi, ebx
jl 0x45a6ff
mov edi, str.Server:
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.HTTP_1.0_200_OK_r_n
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
xor edi, edi
add ebp, ecx
lea ebx, [ebp + 0x2c]
test ebx, ebx
jle 0x45a769
mov eax, ebx
push 0
sub eax, edi
lea ecx, [esp + edi + 0x2c]
push eax
push ecx
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x45a65c
add edi, eax
cmp edi, ebx
jl 0x45a748
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esp + ebp + 0x34]
lea esi, [esp + ebp + 0x34]
test eax, eax
jne 0x45a789
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x418
ret
mov edi, dword [esp + 0x430]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x418
ret