joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461180
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
cmp dword [edi], 0
mov esi, ecx
jg 0x46119a
mov dword [edi], 0
pop edi
xor eax, eax
pop esi
ret 8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edx, dword [esi + 0x1028]
mov ecx, dword [edi]
sub eax, edx
cmp ecx, eax
jle 0x4611be
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
sub eax, dword [esi + 0x1028]
mov dword [edi], eax
mov eax, dword [esi + 0x1028]
test eax, eax
jne 0x4611d3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov word [esi + 0x14], ax
mov ecx, dword [edi]
mov edx, dword [esi + 0x1028]
push 0
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esi + edx + 0xc]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x46120d
mov dword [edi], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
pop edi
sbb eax, eax
pop esi
ret 8
mov dword [edi], eax
mov edx, dword [esi + 0x1028]
add edx, eax
mov dword [esi + 0x1028], edx
mov edi, edx
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
cmp edi, eax
jl 0x461234
pop edi
mov eax, 1
pop esi
ret 8
mov eax, edi
neg eax
sbb eax, eax
pop edi
and eax, 2
pop esi
ret 8

Function at 0x4623a0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x1c
mov eax, dword [0x4cbba0]
xor eax, esp
push ebx
mov ebx, dword [esp + 0x24]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0xc]
push eax
call fcn.0046ada0
add esp, 4
push 0
push 1
push 2
mov dword [edi + 0xc], 0xffffffff
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x462459
xor ecx, ecx
test ebx, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov word [esp + 0x14], 2
mov dword [esp + 0x18], 0xffffffff
je 0x462426
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x462407
sub eax, edx
mov dword [esp + 0x10], eax
je 0x462426
push ebx
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x462432
push 0
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x18], eax
push 0x50
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0x18]
push edx
push esi
mov word [esp + 0x22], ax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x46246f
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004a17d1
add esp, 0x1c
ret 4
push 4
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push esi
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
push esi
push 4
call fcn.0046b0b0
mov ecx, dword [esp + 0x2c]
add esp, 8
mov dword [edi + 0xc], esi
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004a17d1
add esp, 0x1c
ret 4
Function at 0x4624c0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x1c
mov eax, dword [0x4cbba0]
xor eax, esp
push ebx
mov ebx, dword [esp + 0x24]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x10]
push eax
call fcn.0046ada0
add esp, 4
push 0
push 1
push 2
mov dword [edi + 0x10], 0xffffffff
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x46257c
xor ecx, ecx
test ebx, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov word [esp + 0x14], 2
mov dword [esp + 0x18], 0xffffffff
je 0x462546
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x462527
sub eax, edx
mov dword [esp + 0x10], eax
je 0x462546
push ebx
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x462552
push 0
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x18], eax
push 0x1bb
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0x18]
push edx
push esi
mov word [esp + 0x22], ax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x462592
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004a17d1
add esp, 0x1c
ret 4
push 4
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push esi
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
push esi
push 4
call fcn.0046b0b0
mov ecx, dword [esp + 0x2c]
add esp, 8
mov dword [edi + 0x10], esi
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004a17d1
add esp, 0x1c
ret 4
Function at 0x4625e0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x1c
mov eax, dword [0x4cbba0]
xor eax, esp
push ebx
mov ebx, dword [esp + 0x24]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x14]
push eax
call fcn.0046ada0
add esp, 4
push 0
push 1
push 2
mov dword [edi + 0x14], 0xffffffff
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x462699
xor ecx, ecx
test ebx, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov word [esp + 0x14], 2
mov dword [esp + 0x18], 0xffffffff
je 0x462666
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x462647
sub eax, edx
mov dword [esp + 0x10], eax
je 0x462666
push ebx
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x462672
push 0
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x18], eax
push 0x6e
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0x18]
push edx
push esi
mov word [esp + 0x22], ax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x4626af
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004a17d1
add esp, 0x1c
ret 4
push 4
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push esi
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
push esi
push 4
call fcn.0046b0b0
mov ecx, dword [esp + 0x2c]
add esp, 8
mov dword [edi + 0x14], esi
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004a17d1
add esp, 0x1c
ret 4
Function at 0x462700
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x1c
mov eax, dword [0x4cbba0]
xor eax, esp
push ebx
mov ebx, dword [esp + 0x24]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x18]
push eax
call fcn.0046ada0
add esp, 4
push 0
push 1
push 2
mov dword [edi + 0x18], 0xffffffff
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x4627bc
xor ecx, ecx
test ebx, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov word [esp + 0x14], 2
mov dword [esp + 0x18], 0xffffffff
je 0x462786
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x462767
sub eax, edx
mov dword [esp + 0x10], eax
je 0x462786
push ebx
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x462792
push 0
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x18], eax
push 0x1f90
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0x18]
push edx
push esi
mov word [esp + 0x22], ax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x4627d2
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004a17d1
add esp, 0x1c
ret 4
push 4
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push esi
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
push esi
push 4
call fcn.0046b0b0
mov ecx, dword [esp + 0x2c]
add esp, 8
mov dword [edi + 0x18], esi
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004a17d1
add esp, 0x1c
ret 4
Function at 0x462a00
Capabilities:
Connect socket

Disassembly:
push 0xffffffffffffffff
push 0x4a7cab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x4cbba0]
xor eax, esp
push esi
mov esi, dword [esp + 0x30]
mov ecx, esi
mov dword [esp + 0x1c], eax
call fcn.00420170
test esi, esi
je 0x462a38
lea eax, [esi + 4]
jmp 0x462a3a
xor eax, eax
push 0
push eax
push 1
call fcn.0046aff0
mov dword [esi + 0x84], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x48]
add esp, 0xc
test eax, eax
mov word [esp + 0xc], 2
jne 0x462b22
mov eax, dword [0x4ccb50]
mov ecx, dword [eax + 0x548]
shr ecx, 0xb
and cl, 1
mov byte [esp + 7], cl
je 0x462b22
mov cl, byte [eax + 0x744]
test cl, cl
jne 0x462b22
mov ecx, dword [esi + 0x98]
test ecx, ecx
jne 0x462ae5
push 0x58
call sub.MFC71.DLL_operator_new_1
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov dword [esp + 0x28], 0
je 0x462aca
push 2
mov ecx, eax
call fcn.0046a260
jmp 0x462acc
xor eax, eax
mov dword [esi + 0x98], eax
lea ecx, [esi + 0x10]
mov dword [eax + 0x54], ecx
mov eax, dword [0x4ccb50]
mov dword [esp + 0x28], 0xffffffff
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push edx
push ecx
mov ecx, dword [esi + 0x98]
add eax, 0x748
push eax
call fcn.00469d60
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1c]
pop esi
xor ecx, esp
call fcn.004a17d1
add esp, 0x28
ret 0x10
mov edx, dword [esp + 0x34]
push edx
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi + 0x84]
push 0x10
lea ecx, [esp + 0x10]
push ecx
push edx
mov word [esp + 0x1a], ax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x462b66
mov eax, dword [esi + 4]
lea ecx, [esi + 4]
push 1
call dword [eax + 4]
jmp 0x462b00
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x462b00
xor eax, eax
jmp 0x462b05
Function at 0x463150
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov ebp, ecx
lea esp, [esp]
push 0x41c
call sub.MFC71.DLL_operator_new_1
mov esi, eax
xor edi, edi
add esp, 4
cmp esi, edi
je 0x4631ad
mov dword [esi], 0x4b6fbc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x418], eax
mov eax, 1
mov dword [esi + 0x408], edi
mov dword [esi + 0x40c], eax
mov dword [esi + 0x414], edi
mov dword [esi + 0x410], eax
mov dword [esi + 4], 0xffffffff
jmp 0x4631af
xor esi, esi
mov eax, dword [esp + 0x20]
push esi
push eax
call fcn.0046b200
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
mov dword [esi + 4], edi
je 0x4631fe
mov edi, dword [ebp + 0x2c]
mov edx, dword [edi + 4]
mov dword [esp + 0x10], esi
lea esi, [ebp + 0x28]
lea ecx, [esp + 0x10]
push ecx
push edx
push edi
mov ecx, esi
call fcn.004727d0
push 1
mov ecx, esi
mov ebx, eax
call fcn.0042b780
mov dword [edi + 4], ebx
mov eax, dword [ebx + 4]
mov dword [eax], ebx
jmp 0x463160
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 0x10]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
mov eax, dword [ebp + 0x2c]
mov esi, dword [eax]
cmp esi, eax
mov dword [esp + 0x14], ebx
je 0x4632c0
mov edi, dword [esi + 8]
mov edx, dword [edi + 0x418]
mov eax, dword [esi]
mov ecx, ebx
sub ecx, edx
cmp ecx, 0x1d4c0
mov dword [esp + 0x18], eax
jbe 0x4632b1
mov eax, dword [edi + 4]
test eax, eax
je 0x463250
cmp eax, 0xffffffff
je 0x463250
push eax
call fcn.0046ada0
add esp, 4
mov dword [edi + 4], 0xffffffff
cmp esi, dword [ebp + 0x2c]
je 0x46327b
mov edx, dword [esi + 4]
mov eax, dword [esi]
mov dword [edx], eax
mov ecx, dword [esi]
mov edx, dword [esi + 4]
push esi
mov dword [ecx + 4], edx
call sub.MFC71.DLL_operator_delete_1
mov eax, dword [ebp + 0x30]
add esp, 4
dec eax
mov dword [ebp + 0x30], eax
lea esi, [ebp + 0x34]
mov dword [esp + 0x20], edi
mov edi, dword [esi + 4]
mov ecx, dword [edi + 4]
lea eax, [esp + 0x20]
push eax
push ecx
push edi
mov ecx, esi
call fcn.004727d0
push 1
mov ecx, esi
mov ebx, eax
call fcn.0042b780
mov eax, dword [esp + 0x18]
mov dword [edi + 4], ebx
mov edx, dword [ebx + 4]
mov dword [edx], ebx
mov ebx, dword [esp + 0x14]
cmp eax, dword [ebp + 0x2c]
mov esi, eax
jne 0x463220
mov edi, dword [esp + 0x10]
mov ecx, dword [ebp + 0x38]
mov eax, dword [ecx]
cmp eax, ecx
je 0x463327
lea esp, [esp]
mov edi, dword [eax + 8]
mov edx, dword [edi + 0x418]
mov esi, dword [eax]
mov ecx, ebx
sub ecx, edx
cmp ecx, 0x493e0
jbe 0x463312
cmp eax, dword [ebp + 0x38]
je 0x463309
mov edx, dword [eax + 4]
mov dword [edx], esi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push eax
mov dword [ecx + 4], edx
call sub.MFC71.DLL_operator_delete_1
mov eax, dword [ebp + 0x3c]
add esp, 4
dec eax
mov dword [ebp + 0x3c], eax
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 0x10]
cmp esi, dword [ebp + 0x38]
mov eax, esi
jne 0x4632d0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x465050
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a7e18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebp
xor ebp, ebp
mov dword [esp + 0xc], ecx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov ecx, dword [esp + 0x54]
push 0x2c
push 0xffffffffffffffff
lea eax, [esp + 0x30]
push eax
push ecx
mov dword [esp + 0x50], ebp
call fcn.0049c640
mov eax, dword [esp + 0x3c]
add esp, 0x10
cmp eax, ebp
je 0x4651d4
mov ecx, dword [esp + 0x30]
sub ecx, eax
sar ecx, 2
cmp ecx, 8
jb 0x4651cb
mov edx, dword [eax]
push ebx
push esi
mov esi, dword [sym.imp.MSVCR71.dll_atoi]
push edi
push edx
call esi
mov ebx, eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 4]
push ecx
call esi
mov edx, dword [esp + 0x40]
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 8]
push eax
call esi
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx + 0xc]
push edx
mov dword [esp + 0x40], eax
call esi
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x10]
push ecx
call esi
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x38], eax
mov eax, dword [edx + 0x14]
push eax
call esi
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx + 0x18]
push edx
mov dword [esp + 0x44], eax
call esi
mov ecx, dword [esp + 0x54]
mov esi, dword [0x4ccb50]
mov dword [esp + 0x3c], eax
mov eax, dword [ecx + 0x1c]
add esi, 0x854
add esp, 0x1c
xor edi, edi
cmp ecx, ebp
mov dword [esp + 0x1c], eax
mov edx, esi
je 0x46517a
mov eax, dword [esp + 0x3c]
sub eax, ecx
sar eax, 2
cmp eax, 9
mov dword [esp + 0x60], eax
jb 0x465172
mov edx, dword [ecx + 0x20]
mov ebp, edx
lea eax, [ebp + 1]
mov dword [esp + 0x10], eax
mov al, byte [ebp]
inc ebp
test al, al
jne 0x465157
sub ebp, dword [esp + 0x10]
cmp ebp, 8
mov eax, dword [esp + 0x60]
jbe 0x465170
mov edi, edx
mov edx, esi
xor ebp, ebp
cmp eax, 0xa
jb 0x46517a
mov edi, dword [ecx + 0x24]
mov esi, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push ebx
push edi
push edx
mov edx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x40]
xor ecx, ecx
push edx
mov edx, dword [esp + 0x48]
cmp esi, 2
mov esi, dword [eax]
setge cl
push edx
mov edx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x80]
push ecx
push edx
mov ecx, eax
call dword [esi + 0x3c]
mov eax, dword [esp + 0x38]
cmp eax, ebp
pop edi
pop esi
pop ebx
je 0x4651d4
push eax
call sub.MFC71.DLL_operator_delete_1
add esp, 4
mov ecx, dword [esp + 0x38]
pop ebp
mov dword fs:[0], ecx
add esp, 0x40
ret 0x10
Function at 0x4651f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a7e18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
xor ebp, ebp
push edi
mov edi, ecx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
mov ecx, dword [esp + 0x34]
push 0x2c
push 0xffffffffffffffff
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x30], ebp
call fcn.0049c640
mov eax, dword [esp + 0x1c]
add esp, 0x10
cmp eax, ebp
je 0x4652e4
mov ecx, dword [esp + 0x10]
sub ecx, eax
sar ecx, 2
cmp ecx, 2
jae 0x46526a
push eax
call sub.MFC71.DLL_operator_delete_1
add esp, 4
pop edi
pop ebp
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
mov edx, dword [eax + 4]
push ebx
push esi
mov esi, dword [eax]
push edx
call dword [sym.imp.MSVCR71.dll_atoi]
add esp, 4
mov ebx, eax
mov eax, dword [esp + 0x30]
push esi
push eax
mov ecx, edi
call fcn.00462d00
mov esi, eax
cmp esi, ebp
je 0x4652d1
cmp word [esi + 0x82], 5
jae 0x4652d1
cmp word [esi + 8], 3
jne 0x4652d1
mov ecx, esi
call fcn.0047b350
lea ecx, [esp + 0x10]
mov byte [esi + 0x4c], 1
mov word [esi + 0x80], bx
call fcn.0047b130
pop esi
pop ebx
pop edi
pop ebp
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4652e2
push eax
call sub.MFC71.DLL_operator_delete_1
add esp, 4
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x465bf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a7e18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push esi
xor esi, esi
mov ebp, ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x30]
push 0x2c
push 0xffffffffffffffff
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x30], esi
call fcn.0049c640
mov eax, dword [esp + 0x1c]
add esp, 0x10
cmp eax, esi
je 0x465d2b
mov ecx, dword [esp + 0x10]
sub ecx, eax
sar ecx, 2
cmp ecx, 8
jae 0x465c6a
push eax
call sub.MFC71.DLL_operator_delete_1
add esp, 4
pop esi
pop ebp
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
mov edx, dword [eax]
mov esi, dword [sym.imp.MSVCR71.dll_atoi]
push ebx
push edi
push edx
call esi
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
push ecx
call esi
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 8]
push eax
call esi
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0xc]
push edx
call esi
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x10]
push ecx
call esi
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 0x18]
mov edi, dword [eax + 0x14]
push edx
call esi
mov ebx, eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x1c]
push ecx
call esi
mov edx, dword [esp + 0x4c]
add esp, 0x1c
push edi
push edx
mov ecx, ebp
mov dword [esp + 0x40], eax
call fcn.00462d00
mov esi, eax
test esi, esi
je 0x465d18
mov ax, word [esp + 0x38]
mov ecx, dword [esi + 0x88]
mov word [esi + 0x90], ax
mov dword [esi + 0x8c], ebx
mov word [esi + 8], 5
mov byte [ecx + 0x21], 0
mov eax, dword [esi + 0x8c]
xor edx, edx
mov dx, word [esi + 0x90]
push 0
mov ecx, ebp
push edx
push eax
push esi
call fcn.00462a00
mov word [esi + 0x82], 1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x465d29
push eax
call sub.MFC71.DLL_operator_delete_1
add esp, 4
pop edi
pop ebx
mov ecx, dword [esp + 0x18]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
Function at 0x466430
Capabilities:
Get file version info

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4cbba0]
xor eax, esp
push ebx
push esi
mov dword [esp + 0x210], eax
xor ebx, ebx
push 0x200
mov esi, ecx
lea eax, [esp + 0x14]
push eax
push ebx
mov byte [esi + 0x13], bl
mov byte [esi + 0x12], bl
mov byte [esi + 0x11], bl
mov byte [esi + 0x10], bl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebx
mov dword [esp + 8], eax
je 0x4664de
push edi
push eax
call sub.MFC71.DLL_operator_new
add esp, 4
mov edi, eax
mov eax, dword [esp + 0xc]
push edi
push eax
push ebx
lea ecx, [esp + 0x20]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4664d4
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push 0x4ad6f0
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4664d4
mov eax, dword [esp + 0x10]
mov cl, byte [eax + 0xa]
mov byte [esi + 0x10], cl
mov dl, byte [eax + 8]
mov byte [esi + 0x11], dl
mov cl, byte [eax + 0xe]
mov byte [esi + 0x12], cl
mov dl, byte [eax + 0xc]
mov byte [esi + 0x13], dl
push edi
call sub.MFC71.DLL_operator_delete
add esp, 4
pop edi
xor eax, eax
mov ah, byte [esi + 0x10]
xor ecx, ecx
mov ch, byte [esi + 0x12]
mov al, byte [esi + 0x11]
movzx edx, cx
movzx ecx, byte [esi + 0x13]
shl eax, 0x10
or eax, edx
or eax, ecx
mov ecx, dword [esp + 0x210]
mov dword [esi + 0x14], eax
pop esi
pop ebx
xor ecx, esp
call fcn.004a17d1
add esp, 0x20c
ret
Function at 0x466520
Capabilities:
Get mac address on windows

Disassembly:
mov ecx, 0x4ccbf0
jmp 0x46c020
sub esp, 0x78
mov eax, dword [0x4cbba0]
xor eax, esp
push ebx
push ebp
mov ebp, dword [esp + 0x84]
mov dword [esp + 0x7c], eax
xor ebx, ebx
lea eax, [esp + 0xc]
push eax
push ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov byte [ebp], bl
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
je 0x46c098
cmp eax, 0xe8
je 0x46c1b5
cmp eax, 0x32
je 0x46c1b5
cmp eax, 0x6f
jne 0x46c1b5
mov ecx, dword [esp + 0xc]
push ecx
call sub.MFC71.DLL_operator_new
add esp, 4
lea edx, [esp + 0xc]
push edx
push eax
mov dword [esp + 0x10], eax
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x46c1a4
mov ebx, dword [esp + 8]
test ebx, ebx
mov dword [esp + 0x10], 0xa
je 0x46c18c
push esi
push edi
lea ebx, [ebx]
movzx eax, byte [ebx + 0x199]
movzx ecx, byte [ebx + 0x198]
movzx edx, byte [ebx + 0x197]
push eax
movzx eax, byte [ebx + 0x196]
push ecx
movzx ecx, byte [ebx + 0x195]
push edx
movzx edx, byte [ebx + 0x194]
push eax
push ecx
push edx
lea eax, [esp + 0x38]
push str._02x_02x_02x_02x_02x_02x
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0x20
mov edi, str.005345000000
lea esi, [esp + 0x20]
mov ecx, 0xd
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x46c173
mov eax, ebp
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46c110
sub eax, edx
mov dword [esp + 0x1c], eax
je 0x46c133
mov edi, ebp
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46c122
mov ax, word [0x4aec44]
mov word [edi], ax
lea eax, [esp + 0x20]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46c140
mov edi, ebp
sub eax, edx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x46c150
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x18]
and ecx, 3
dec eax
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x18], eax
js 0x46c17d
mov ebx, dword [ebx]
test ebx, ebx
jne 0x46c0b0
mov ecx, dword [esp + 0x10]
push ecx
call sub.MFC71.DLL_operator_delete_1
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.004a17d1
add esp, 0x78
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x46c1b5
push eax
call sub.MFC71.DLL_operator_delete_1
add esp, 4
mov ecx, dword [esp + 0x7c]
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004a17d1
add esp, 0x78
ret 4