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

Disassembly:
mov eax, dword [ecx + 0x1058]
test eax, eax
je 0x421536
push edx
push esi
push eax
call fcn.00503e30
add esp, 0xc
ret
mov eax, dword [ecx + 0x34]
push 0
push edx
push esi
push eax
call dword [sym.imp.WS2_32.dll_send]
ret

Function at 0x421550
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [ecx + 0x1058]
test eax, eax
je 0x421566
push edx
push esi
push eax
call fcn.00503da0
add esp, 0xc
ret
mov eax, dword [ecx + 0x34]
push 0
push edx
push esi
push eax
call dword [sym.imp.WS2_32.dll_recv]
ret

Function at 0x4218d0
Capabilities:
Access peb ldr_data
Get local ipv4 addresses
Get process heap force flags
Get socket information

Disassembly:
push 0xffffffffffffffff
push 0x531028
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
mov eax, dword [ecx + 0x34]
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x20], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
call fcn.0051ffd3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], 0
movzx eax, byte [esp + 0x1f]
movzx ecx, byte [esp + 0x1e]
movzx edx, byte [esp + 0x1d]
push eax
movzx eax, byte [esp + 0x20]
push ecx
push edx
push eax
lea ecx, [esp + 0x20]
push str._d._d._d._d
push ecx
call fcn.0044c220
mov esi, dword [esp + 0x28]
mov edi, dword [esi - 0xc]
add esp, 0x18
push 0
push 0
push edi
push esi
push 0
call dword [0x586c98]
push eax
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov ebx, eax
push ebx
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ebp, eax
test ebp, ebp
je 0x4219c4
push ebx
push ebp
push edi
push esi
push 0
call dword [0x586c98]
push eax
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
lea eax, [esi - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4219af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
jmp fcn.004013f0
Function at 0x421a00
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x531028
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
mov eax, dword [ecx + 0x34]
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x20], 0x10
call dword [sym.imp.WS2_32.dll_getpeername]
call fcn.0051ffd3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], 0
movzx eax, byte [esp + 0x1f]
movzx ecx, byte [esp + 0x1e]
movzx edx, byte [esp + 0x1d]
push eax
movzx eax, byte [esp + 0x20]
push ecx
push edx
push eax
lea ecx, [esp + 0x20]
push str._d._d._d._d
push ecx
call fcn.0044c220
mov esi, dword [esp + 0x28]
mov edi, dword [esi - 0xc]
add esp, 0x18
push 0
push 0
push edi
push esi
push 0
call dword [0x586c98]
push eax
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov ebx, eax
push ebx
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ebp, eax
test ebp, ebp
je 0x421af4
push ebx
push ebp
push edi
push esi
push 0
call dword [0x586c98]
push eax
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
lea eax, [esi - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x421adf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
jmp fcn.004013f0
Function at 0x421d30
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x531028
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x34]
or ebp, 0xffffffff
cmp edi, ebp
je 0x421d6a
push 2
push edi
mov dword [esi + 0x34], ebp
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, esi
call fcn.004225f0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, ebp
mov dword [esi + 0x34], eax
je 0x421e29
push ebx
push 4
lea ecx, [esp + 0x18]
push ecx
push 8
push 0xffff
push eax
mov dword [esp + 0x28], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edx, dword [esp + 0x38]
push edx
lea ecx, [esp + 0x14]
call fcn.00403380
lea ebx, [esp + 0x10]
mov dword [esp + 0x30], 0
call fcn.004230f0
mov edi, eax
call fcn.00423140
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
push ecx
mov dword [esp + 0x28], eax
mov word [esp + 0x1c], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, ebp
mov dword [esp + 0x1c], eax
pop ebx
jne 0x421e4a
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x421e3f
mov dword [esp + 0x2c], ebp
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421e29
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop esi
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 8
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi + 0x34]
push 0x10
lea ecx, [esp + 0x18]
push ecx
push edx
mov word [esp + 0x22], ax
call dword [sym.imp.WS2_32.dll_connect]
mov esi, eax
mov dword [esp + 0x2c], ebp
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x421e8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x24]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x421eb0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x531028
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x34]
cmp edi, 0xffffffff
je 0x421eeb
push 2
push edi
mov dword [esi + 0x34], 0xffffffff
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, esi
call fcn.004225f0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x34], eax
jne 0x421f1b
pop edi
or eax, eax
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 8
push ebx
push 4
lea ecx, [esp + 0x14]
push ecx
push 8
push 0xffff
push eax
mov dword [esp + 0x24], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edx, dword [esp + 0x34]
push edx
lea ecx, [esp + 0x10]
call fcn.00403380
lea ebx, [esp + 0xc]
mov dword [esp + 0x2c], 0
call fcn.004230f0
mov edi, eax
call fcn.00423140
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xc]
mov word [esp + 0x14], 2
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x421fce
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
or ebx, 0xffffffff
cmp eax, ebx
jne 0x421fc8
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421fb2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 8
mov dword [esp + 0x18], eax
jmp 0x421fd1
or ebx, 0xffffffff
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi + 0x34]
push 0x10
lea ecx, [esp + 0x18]
push ecx
push edx
mov word [esp + 0x22], ax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x421f91
mov eax, dword [esi + 0x1070]
test eax, eax
je 0x422013
push eax
call fcn.0051fe99
add esp, 4
mov dword [esi + 0x1070], 0
push 0x601c
call fcn.0051fe94
mov edi, eax
xor eax, eax
mov dword [esi + 0x1070], edi
add esp, 4
mov ecx, 0x1807
rep stosd dword es:[edi], eax
mov dword [esi + 0x1074], 0x1807
mov eax, dword [esi + 0x34]
push SysReAllocString
push eax
call dword [sym.imp.WS2_32.dll_listen]
mov esi, eax
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x42206b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x24]
pop ebx
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x422760
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [ecx + 0x34]
cmp eax, 0xffffffff
push edi
jne 0x42277f
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
mov edx, dword [ecx + 0x1038]
cmp edx, dword [ecx + 0x103c]
jge 0x422794
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x14], eax
xor eax, eax
xor edx, edx
mov dword [esp + 0x10], 1
mov ecx, 0x3f
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
push edx
push edx
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
call dword [sym.imp.WS2_32.dll_select]
xor edx, edx
test eax, eax
setl dl
pop edi
mov eax, edx
mov esp, ebp
pop ebp
ret

Function at 0x422930
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov ecx, dword [ebp + 0x34]
push edi
or eax, 0xffffffff
xor edi, edi
cmp ecx, eax
je 0x422a5c
test ebx, ebx
push esi
jle 0x422a59
mov al, byte [ebp + 0x1040]
test al, al
je 0x422985
lea esi, [ebp + 0x38]
mov edx, 0x1000
mov ecx, ebp
call fcn.00421550
test eax, eax
mov dword [ebp + 0x103c], eax
je 0x422a21
cmp eax, 0xffffffff
je 0x422a21
mov dword [ebp + 0x1038], edi
mov ecx, dword [ebp + 0x1038]
mov eax, dword [ebp + 0x103c]
cmp ecx, eax
jge 0x4229ea
mov dl, byte [ebp + 0x1040]
test dl, dl
je 0x4229bc
movsx esi, byte [ecx + ebp + 0x38]
movsx edx, dl
add esi, edx
cmp esi, 0x17
jne 0x4229b5
inc ecx
mov dword [ebp + 0x1038], ecx
mov byte [ebp + 0x1040], 0
mov edx, dword [ebp + 0x1038]
sub eax, edx
cmp eax, ebx
jle 0x4229ca
mov eax, ebx
mov edi, dword [esp + 0x14]
mov ecx, eax
lea esi, [edx + ebp + 0x38]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add dword [ebp + 0x1038], eax
mov edi, eax
cmp edi, ebx
jge 0x422a59
mov esi, dword [sym.imp.WS2_32.dll_recv]
mov eax, ebx
sub eax, edi
cmp eax, 0x400
jle 0x422a04
mov eax, 0x400
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0x1058]
add ecx, edi
test edx, edx
je 0x422a31
push eax
push ecx
push edx
call fcn.00503da0
add esp, 0xc
jmp 0x422a3b
mov ecx, ebp
call fcn.00422730
pop esi
pop edi
or eax, 0xffffffff
pop ebp
ret 8
mov edx, dword [ebp + 0x34]
push 0
push eax
push ecx
push edx
call esi
test eax, eax
je 0x422a52
cmp eax, 0xffffffff
je 0x422a52
add edi, eax
cmp edi, ebx
jl 0x4229f4
pop esi
mov eax, edi
pop edi
pop ebp
ret 8
mov ecx, ebp
call fcn.00422730
mov eax, edi
pop esi
pop edi
pop ebp
ret 8
Function at 0x422b00
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov ecx, dword [edi + 0x34]
or eax, 0xffffffff
cmp ecx, eax
je 0x422ce4
mov ecx, dword [esp + 4]
push ebx
push esi
call fcn.00403100
mov al, byte [edi + 0x1040]
xor ebx, ebx
cmp al, bl
je 0x422ba9
cmp dword [edi + 0x103c], ebx
jne 0x422b83
mov eax, dword [edi + 0x1058]
cmp eax, ebx
lea esi, [edi + 0x38]
je 0x422b4f
push 0x1000
push esi
push eax
call fcn.00503da0
add esp, 0xc
jmp 0x422b60
mov eax, dword [edi + 0x34]
push ebx
push 0x1000
push esi
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, ebx
mov dword [edi + 0x103c], eax
je 0x422bdc
cmp eax, 0xffffffff
je 0x422bdc
cmp dword [edi + 0x2c], ebx
je 0x422b7d
mov edx, eax
mov ecx, edi
call fcn.00421520
mov dword [edi + 0x1038], ebx
mov eax, dword [edi + 0x1038]
movsx ecx, byte [eax + edi + 0x38]
movsx edx, byte [edi + 0x1040]
add ecx, edx
cmp ecx, 0x17
jne 0x422ba3
inc eax
mov dword [edi + 0x1038], eax
mov byte [edi + 0x1040], bl
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_send]
mov eax, dword [edi + 0x1038]
cmp eax, dword [edi + 0x103c]
jne 0x422c3d
mov eax, dword [edi + 0x1058]
cmp eax, ebx
lea esi, [edi + 0x38]
je 0x422bea
push 0x1000
push esi
push eax
call fcn.00503da0
add esp, 0xc
jmp 0x422bfb
mov ecx, edi
call fcn.00422730
pop esi
xor eax, eax
pop ebx
ret 4
mov ecx, dword [edi + 0x34]
push ebx
push 0x1000
push esi
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, ebx
mov dword [edi + 0x103c], eax
je 0x422ce7
cmp eax, 0xffffffff
je 0x422ce7
cmp dword [edi + 0x2c], ebx
je 0x422c37
mov ecx, dword [edi + 0x1058]
cmp ecx, ebx
je 0x422c2e
push eax
push esi
push ecx
call fcn.00503e30
add esp, 0xc
jmp 0x422c37
mov edx, dword [edi + 0x34]
push ebx
push eax
push esi
push edx
call ebp
mov dword [edi + 0x1038], ebx
mov esi, dword [edi + 0x1038]
cmp esi, dword [edi + 0x103c]
jge 0x422c67
jmp 0x422c50
mov al, byte [edi + esi + 0x38]
cmp al, 0xd
je 0x422c67
cmp al, 0xa
je 0x422c67
mov eax, dword [edi + 0x103c]
inc esi
cmp esi, eax
jl 0x422c50
mov eax, dword [edi + 0x1038]
mov ecx, esi
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [eax + edi + 0x38]
push edx
call fcn.00404200
cmp esi, dword [edi + 0x103c]
mov dword [edi + 0x1038], esi
jge 0x422bb0
mov al, byte [esi + edi + 0x38]
cmp al, 0xd
je 0x422ca2
cmp al, 0xa
jne 0x422bb0
mov al, byte [esi + edi + 0x38]
mov ecx, dword [edi + 0x103c]
mov byte [edi + 0x1040], al
lea eax, [esi + 1]
cmp eax, ecx
mov dword [edi + 0x1038], eax
jge 0x422cdf
movsx ecx, byte [eax + edi + 0x38]
movsx edx, byte [edi + 0x1040]
add ecx, edx
cmp ecx, 0x17
jne 0x422cd9
inc eax
mov dword [edi + 0x1038], eax
mov byte [edi + 0x1040], bl
pop ebp
pop esi
xor eax, eax
pop ebx
ret 4
mov esi, dword [edi + 0x34]
cmp esi, 0xffffffff
je 0x422d06
push 2
push esi
mov dword [edi + 0x34], 0xffffffff
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, edi
call fcn.004225f0
pop ebp
pop esi
xor eax, eax
pop ebx
ret 4
Function at 0x422e00
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
push esi
push edi
mov esi, ecx
mov ecx, dword [ebx + 0x34]
mov edi, eax
xor ebp, ebp
xor eax, eax
cmp ecx, 0xffffffff
je 0x422e5f
test edi, edi
jle 0x422e5f
cmp eax, 0xffffffff
je 0x422e5f
cmp edi, 0x400
mov eax, edi
jle 0x422e2b
mov eax, 0x400
mov ecx, dword [ebx + 0x1058]
test ecx, ecx
je 0x422e42
push eax
push esi
push ecx
call fcn.00503e30
add esp, 0xc
jmp 0x422e50
push 0
push eax
mov eax, dword [ebx + 0x34]
push esi
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x422e65
sub edi, eax
add esi, eax
add ebp, eax
test edi, edi
jg 0x422e17
pop edi
pop esi
mov eax, ebp
pop ebp
ret
mov ecx, ebx
call fcn.00422730
pop edi
pop esi
or eax, 0xffffffff
pop ebp
ret
Function at 0x429aa0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x531f38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x28], 0
mov eax, dword [0x58ada8]
mov ecx, 0x58ada8
call dword [eax + 0xc]
lea ecx, [esp + 0x30]
add eax, 0x10
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
call fcn.0040f010
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.0047d150
mov edi, eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
or ebp, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x429b15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test edi, edi
je 0x429b57
mov eax, dword [esp + 0x34]
add edi, 8
mov dword [eax], edi
mov dword [esp + 0x28], ebp
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x429b41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
mov eax, dword [esp + 0x38]
test eax, eax
je 0x429bf5
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [esp + 0x28], 1
mov edx, dword [0x58ada8]
mov ecx, 0x58ada8
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x38], eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x3c]
call fcn.0040f010
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x3c]
push edx
mov ecx, esi
mov byte [esp + 0x30], 2
call fcn.0042cfd0
mov edi, eax
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x429bd0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x38]
push eax
lea ecx, [esi + 0x18]
mov dword [esp + 0x3c], edi
call fcn.004464e0
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x10]
add edi, 8
push edx
mov dword [ecx], edi
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov dword [esp + 0x28], ebp
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x429c14
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
Function at 0x42fcc0
Capabilities:
Resume thread

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0xd4]
test eax, eax
push edi
je 0x42fcee
mov ecx, dword [esi + 0xc4]
test ecx, ecx
jne 0x42fcee
mov dword [esi + 0xc4], 1
mov eax, dword [eax + 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
mov eax, dword [esi + 0xc0]
mov ecx, dword [eax + 0x34]
cmp ecx, 0xffffffff
mov ebp, dword [sym.imp.WS2_32.dll_closesocket]
je 0x42fd0c
push ecx
mov dword [eax + 0x34], 0xffffffff
call ebp
mov edi, dword [esi + 0xc0]
mov ebx, dword [edi + 0x34]
cmp ebx, 0xffffffff
je 0x42fd2d
push 2
push ebx
mov dword [edi + 0x34], 0xffffffff
call dword [sym.imp.WS2_32.dll_shutdown]
push ebx
call ebp
mov eax, edi
call fcn.004225f0
mov eax, dword [esi + 0xd4]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
je 0x42fd52
push 1
call edi
mov eax, dword [esi + 0xd4]
test eax, eax
jne 0x42fd44
mov ecx, esi
call fcn.004197c0
mov ecx, dword [esi + 0xc0]
mov eax, dword [ecx + 4]
mov ebx, 1
cmp eax, ebx
jle 0x42fd7e
jmp 0x42fd70
push ebx
call edi
mov edx, dword [esi + 0xc0]
cmp dword [edx + 4], ebx
jg 0x42fd70
mov eax, dword [esi + 0xd8]
test eax, eax
je 0x42fdaf
mov eax, dword [eax + 0x28]
push esi
push eax
push 0x42f900
call dword [sym.imp.KERNEL32.DLL_QueueUserAPC]
mov eax, dword [esi + 0xd8]
test eax, eax
je 0x42fdaf
push ebx
call edi
mov eax, dword [esi + 0xd8]
test eax, eax
jne 0x42fda2
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x430220
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x530f00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push edi
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemTime]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x28]
xor ebx, ebx
push edx
mov word [esp + 0x3a], bx
call dword [sym.imp.KERNEL32.DLL_SystemTimeToFileTime]
mov ebp, dword [esp + 0x44]
mov eax, dword [ebp + 0x60]
add ebp, 0x60
cmp eax, ebx
jne 0x4302e4
push ebx
mov edi, ebp
call fcn.00430470
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x14]
mov dword [eax + 0xc], edx
movzx eax, word [esp + 0x30]
movzx ecx, word [esp + 0x2e]
movzx edx, word [esp + 0x2c]
push eax
movzx eax, word [esp + 0x28]
push ecx
movzx ecx, word [esp + 0x2e]
push edx
push eax
movzx eax, word [esp + 0x3a]
lea edx, [ecx*4 + 0x586df0]
movzx ecx, word [esp + 0x38]
push edx
push eax
mov eax, dword [ebp]
lea edx, [ecx*4 + 0x586dd8]
push edx
add eax, 0x10
push str._s___02d__s__d__02d:_02d:_02d_GMT
push eax
call fcn.0044c220
add esp, 0x24
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 4
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.00419160
mov eax, dword [ebp]
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x18]
add esp, 8
cmp ecx, edx
jne 0x430311
mov edx, dword [eax + 0xc]
cmp edx, dword [esp + 0x14]
je 0x430398
push esi
mov dword [esp + 0x10], ebx
push ebx
lea edi, [esp + 0x14]
mov dword [esp + 0x44], ebx
call fcn.00430470
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x18]
lea edx, [esi + 0x10]
push edx
lea eax, [esp + 0x2c]
mov dword [esi + 0xc], ecx
call fcn.004368d0
mov eax, dword [esp + 0x4c]
add esp, 4
push 1
add eax, 0x40
push eax
lea ecx, [esp + 0x24]
call fcn.004b93b1
mov ecx, edi
push ecx
mov edi, ebp
mov byte [esp + 0x44], 1
call fcn.0040e6c0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], bl
call fcn.004b938f
lea eax, [esi + 4]
mov dword [esp + 0x40], 0xffffffff
cmp dword [eax], ebx
je 0x430397
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jne 0x430397
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
pop esi
mov ecx, dword [esp + 0x34]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 4

Function at 0x4312d0
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrlenA]
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x4312e2
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x431310
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x118
mov edx, dword [esp + 0x11c]
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
push edx
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 8]
mov esi, eax
test esi, esi
jne 0x43136e
test ecx, ecx
je 0x431360
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x10]
mov esi, eax
mov dword [esp + 8], ecx
je 0x43138a
test ecx, ecx
je 0x43142d
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
add esp, 0x118
ret 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push ecx
mov dword [esp + 0x2c], pe_nt_image_headers32
call esi
test eax, eax
jne 0x4313f4
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0xc]
call fcn.00431310
mov edi, eax
test edi, edi
jne 0x43143a
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0xc]
push eax
push eax
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
push edi
push edx
mov dword [esp + 0x2c], pe_nt_image_headers32
call esi
test eax, eax
je 0x4313b6
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 8]
test eax, eax
je 0x43140b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], 0
mov eax, dword [esp + 0x124]
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x43142d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
add esp, 0x118
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x431449
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
add esp, 0x118
ret 4