joyce8/EMBER2024-capa huggingface dataset:
Function at 0x471c50
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x62aabc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov dword [ebp - 0x210], eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov esi, dword [esi]
add esp, 4
cmp dword [ebp + 0x18], 0
mov dword [ebp - 0x220], edx
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x108], 0
je 0x471cc0
mov dword [ebp - 0x208], esi
mov dword [ebp - 0x20c], 1
jmp 0x471cd0
mov dword [ebp - 0x104], esi
mov dword [ebp - 0x108], 1
mov eax, dword [ebx]
lea edi, [esi + 1]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], 0
cmp dword [ebx], 0
mov eax, dword [sym.imp.WS2_32.dll_select]
jge 0x471cf3
push 0
jmp 0x471cfa
lea ecx, [ebp - 0x21c]
push ecx
push 0
lea ecx, [ebp - 0x108]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
push edi
call eax
test eax, eax
je 0x471dca
cmp eax, 0xffffffff
jne 0x471d27
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 4
jne 0x471d45
jmp 0x471ce5
cmp dword [ebp + 0x18], 0
je 0x471d5b
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x210]
push esi
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jns 0x471d9d
pop edi
pop esi
mov eax, 0xffffff30
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054f742
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x10]
xor edi, edi
test esi, esi
je 0x471d41
mov eax, dword [ebp - 0x210]
push 4
push esi
add eax, edi
push eax
push dword [ebp - 0x220]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x471d89
add edi, eax
sub esi, eax
jne 0x471d64
jmp 0x471d41
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054f742
mov esp, ebp
pop ebp
ret
cmp dword [ebx], 0
je 0x471db7
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov ecx, dword [ebp - 0x214]
add esp, 4
sub ecx, eax
add dword [ebx], ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054f742
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xffffff31
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054f742
mov esp, ebp
pop ebp
ret
Function at 0x472720
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x62aabc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x150], eax
mov edi, 0xffffff98
mov eax, dword [ebp + 0x10]
push 0x80
mov dword [ebp - 0x148], eax
lea eax, [ebp - 0x144]
push 0
push eax
mov dword [ebp - 0x14c], esi
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [ebp + 0x1c]
add esp, 0xc
mov eax, ebx
sub eax, 2
je 0x4727d2
sub eax, 0x15
jne 0x472804
mov eax, 0x17
mov word [ebp - 0x144], ax
lea eax, [ebp - 0x13c]
push eax
push esi
call fcn.00473610
add esp, 4
mov edx, str.FF02::C
test eax, eax
mov ecx, str.FF05::C
cmove ecx, edx
push ecx
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
push 0x76c
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x142], ax
mov eax, dword [0x627664]
mov dword [ebp - 0x12c], eax
jmp 0x472804
mov eax, 2
mov word [ebp - 0x144], ax
lea eax, [ebp - 0x140]
push eax
push str.239.255.255.250
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
push 0x76c
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x142], ax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0
test esi, esi
je 0x47288f
push dword [ebp - 0x148]
lea eax, [ebp - 0xb8]
push str._s::upnp:rootdevice
push 0xb4
push eax
call fcn.00401490
add esp, 0x10
test eax, eax
js 0x472969
cmp eax, 0xb4
jae 0x472969
mov eax, dword [ebp + 0x28]
push eax
mov eax, dword [ebp + 0x24]
push eax
mov eax, dword [ebp + 0x20]
push eax
push ebx
lea eax, [ebp - 0xc4]
push eax
mov eax, dword [ebp + 0x18]
push eax
push dword [ebp - 0x14c]
lea eax, [ebp - 0xb8]
push eax
push str.upnp:rootdevice
push 1
call fcn.004724b0
add esp, 0x28
push dword [ebp + 0x28]
lea eax, [ebp - 0xc0]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push ebx
push eax
push dword [ebp + 0x18]
mov eax, dword [ebp - 0x148]
push dword [ebp - 0x14c]
push eax
push eax
push 1
call fcn.004724b0
push dword [ebp - 0x150]
lea eax, [ebp - 0xb8]
push dword [ebp - 0x148]
push str._s::_s
push 0xb4
push eax
call fcn.00401490
add esp, 0x3c
test eax, eax
js 0x472969
cmp eax, 0xb4
jae 0x472969
mov eax, dword [ebp + 0x28]
push eax
mov eax, dword [ebp + 0x24]
push eax
mov eax, dword [ebp + 0x20]
push eax
push ebx
lea eax, [ebp - 0xbc]
push eax
mov eax, dword [ebp + 0x18]
push eax
push dword [ebp - 0x14c]
lea eax, [ebp - 0xb8]
push eax
push dword [ebp - 0x150]
push 1
call fcn.004724b0
add esp, 0x28
test esi, esi
je 0x47292e
cmp dword [ebp - 0xc4], 0
je 0x472969
cmp dword [ebp - 0xc0], 0
je 0x472969
cmp dword [ebp - 0xbc], 0
je 0x472969
test esi, esi
je 0x47294f
lea eax, [ebp - 0xc4]
push eax
push 3
jmp 0x472958
lea eax, [ebp - 0xc0]
push eax
push 2
lea eax, [ebp - 0x144]
push eax
call fcn.00472eb0
mov edi, eax
add esp, 0xc
push dword [ebp - 0xc4]
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call esi
push dword [ebp - 0xc0]
call esi
push dword [ebp - 0xbc]
call esi
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0054f742
mov esp, ebp
pop ebp
ret
Function at 0x472c30
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x62aabc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x150], eax
mov edi, 0xffffff98
mov eax, dword [ebp + 0x10]
push 0x80
mov dword [ebp - 0x148], eax
lea eax, [ebp - 0x144]
push 0
push eax
mov dword [ebp - 0x14c], esi
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [ebp + 0x1c]
add esp, 0xc
mov eax, ebx
sub eax, 2
je 0x472d00
sub eax, 0x15
jne 0x472d32
mov eax, 0x17
mov word [ebp - 0x144], ax
lea eax, [ebp - 0x13c]
push eax
push esi
call fcn.00473610
add esp, 4
mov edx, str.FF02::C
test eax, eax
mov ecx, str.FF05::C
cmove ecx, edx
push ecx
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
push 0x76c
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x142], ax
mov eax, dword [0x627664]
mov dword [ebp - 0x12c], eax
jmp 0x472d32
mov eax, 2
mov word [ebp - 0x144], ax
lea eax, [ebp - 0x140]
push eax
push str.239.255.255.250
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
push 0x76c
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x142], ax
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x472d9f
push dword [ebp - 0x148]
lea eax, [ebp - 0xb8]
push str._s::upnp:rootdevice
push 0xb4
push eax
call fcn.00401490
add esp, 0x10
test eax, eax
js 0x472e79
cmp eax, 0xb4
jae 0x472e79
mov eax, dword [ebp + 0x28]
push eax
mov eax, dword [ebp + 0x24]
push eax
mov eax, dword [ebp + 0x20]
push eax
push ebx
lea eax, [ebp - 0xc4]
push eax
mov eax, dword [ebp + 0x18]
push eax
push dword [ebp - 0x14c]
lea eax, [ebp - 0xb8]
push eax
push str.upnp:rootdevice
push 0
call fcn.004724b0
add esp, 0x28
push dword [ebp + 0x28]
lea eax, [ebp - 0xc0]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push ebx
push eax
push dword [ebp + 0x18]
mov eax, dword [ebp - 0x148]
push dword [ebp - 0x14c]
push eax
push eax
push 0
call fcn.004724b0
push dword [ebp - 0x150]
lea eax, [ebp - 0xb8]
push dword [ebp - 0x148]
push str._s::_s
push 0xb4
push eax
call fcn.00401490
add esp, 0x3c
test eax, eax
js 0x472e79
cmp eax, 0xb4
jae 0x472e79
mov eax, dword [ebp + 0x28]
push eax
mov eax, dword [ebp + 0x24]
push eax
mov eax, dword [ebp + 0x20]
push eax
push ebx
lea eax, [ebp - 0xbc]
push eax
mov eax, dword [ebp + 0x18]
push eax
push dword [ebp - 0x14c]
lea eax, [ebp - 0xb8]
push eax
push dword [ebp - 0x150]
push 0
call fcn.004724b0
add esp, 0x28
test esi, esi
je 0x472e3e
cmp dword [ebp - 0xc4], 0
je 0x472e79
cmp dword [ebp - 0xc0], 0
je 0x472e79
cmp dword [ebp - 0xbc], 0
je 0x472e79
test esi, esi
je 0x472e5f
lea eax, [ebp - 0xc4]
push eax
push 3
jmp 0x472e68
lea eax, [ebp - 0xc0]
push eax
push 2
lea eax, [ebp - 0x144]
push eax
call fcn.00472eb0
mov edi, eax
add esp, 0xc
push dword [ebp - 0xc4]
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call esi
push dword [ebp - 0xc0]
call esi
push dword [ebp - 0xbc]
call esi
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0054f742
mov esp, ebp
pop ebp
ret
Function at 0x472eb0
Capabilities:
Convert ip address from string
Create udp socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x62aabc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, 0x62d164
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x154], 4
lea edx, [ecx + 1]
mov dword [ebp - 0x14c], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x472ef0
sub ecx, edx
je 0x472f27
lea eax, [ebp - 0x150]
push eax
push 0x62d164
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jne 0x472f27
mov eax, 0xffffff9b
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054f742
mov esp, ebp
pop ebp
ret
movzx eax, word [ebx]
push edi
push 0
push 2
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x472f6f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
lea eax, [ebp - 0x148]
push 0x100
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror_s]
add esp, 0xc
mov eax, 0xffffff33
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054f742
mov esp, ebp
pop ebp
ret
movzx eax, word [ebx]
sub eax, 2
je 0x472f86
mov dword [ebp - 0x14c], 0xffffff38
jmp 0x473075
push esi
push 0x41
lea eax, [ebp - 0x48]
push eax
lea eax, [ebx + 4]
push eax
push 2
call sub.WS2_32.dll_inet_ntop
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x150]
push 4
push eax
push 9
push 0
push edi
call esi
push 4
lea eax, [ebp - 0x154]
push eax
push 0xa
push 0
push edi
call esi
xor esi, esi
cmp dword [ebp + 0xc], esi
jle 0x473074
nop dword [eax]
mov eax, dword [ebp - 0x158]
lea ecx, [ebp - 0x48]
push dword [eax + esi*4]
push ecx
push str.____SSDP_SEND_to__s_____n_s_n
push 0x127
push str.D:UsersphiliDropboxDevelopmentlibpupnppupnpupnp_src_ssdp_ssdp_device.c
push 0
push 2
call fcn.00417540
mov edx, dword [eax + esi*4]
add esp, 0x1c
mov eax, edx
lea ecx, [eax + 1]
mov dword [ebp - 0x15c], ecx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x473006
sub eax, dword [ebp - 0x15c]
push 0x10
push ebx
push 0
push eax
push edx
push edi
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x47302e
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x472fd0
jmp 0x473074
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
lea eax, [ebp - 0x148]
push 0x100
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror_s]
lea eax, [ebp - 0x148]
push eax
push str.SSDP_LIB:_New_Request_Handler:Error_in_socket__:__s_n
push 0x136
push str.D:UsersphiliDropboxDevelopmentlibpupnppupnpupnp_src_ssdp_ssdp_device.c
push 0
push 2
call fcn.00417540
add esp, 0x24
mov dword [ebp - 0x14c], 0xffffff37
pop esi
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14c]
xor ecx, ebp
pop edi
pop ebx
call fcn.0054f742
mov esp, ebp
pop ebp
ret
Function at 0x4731d0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x62aabc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x144], eax
mov edi, 0xffffff98
mov eax, dword [ebp + 0x10]
push 0x80
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x138]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp + 0x18]
xor esi, esi
add esp, 0xc
mov dword [ebp - 0x13c], esi
sub eax, 2
je 0x473287
sub eax, 0x15
jne 0x4732b9
mov eax, 0x17
mov word [ebp - 0x138], ax
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x140]
call fcn.00473610
add esp, 4
mov edx, str.FF02::C
test eax, eax
mov ecx, str.FF05::C
cmove ecx, edx
push ecx
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
push 0x76c
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x136], ax
mov eax, dword [0x627664]
mov dword [ebp - 0x120], eax
jmp 0x4732b9
mov eax, 2
mov word [ebp - 0x138], ax
lea eax, [ebp - 0x134]
push eax
push str.239.255.255.250
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
push 0x76c
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x136], ax
push ebx
push dword [ebp - 0x144]
lea eax, [ebp - 0xb8]
push str._s::_s
push 0xb4
push eax
call fcn.00401490
add esp, 0x14
test eax, eax
js 0x47333c
cmp eax, 0xb4
jae 0x47333c
push dword [ebp + 0x24]
lea eax, [ebp - 0x13c]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0xb8]
push dword [ebp - 0x140]
push eax
push ebx
push 1
call fcn.004724b0
mov esi, dword [ebp - 0x13c]
add esp, 0x28
test esi, esi
je 0x47333c
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x138]
push 1
push eax
call fcn.00472eb0
mov esi, dword [ebp - 0x13c]
add esp, 0xc
mov edi, eax
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0054f742
mov esp, ebp
pop ebp
ret
Function at 0x473440
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x62aabc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x144], eax
mov edi, 0xffffff98
mov eax, dword [ebp + 0x10]
push 0x80
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x138]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp + 0x18]
xor esi, esi
add esp, 0xc
mov dword [ebp - 0x13c], esi
sub eax, 2
je 0x4734f7
sub eax, 0x15
jne 0x473529
mov eax, 0x17
mov word [ebp - 0x138], ax
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x140]
call fcn.00473610
add esp, 4
mov edx, str.FF02::C
test eax, eax
mov ecx, str.FF05::C
cmove ecx, edx
push ecx
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
push 0x76c
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x136], ax
mov eax, dword [0x627664]
mov dword [ebp - 0x120], eax
jmp 0x473529
mov eax, 2
mov word [ebp - 0x138], ax
lea eax, [ebp - 0x134]
push eax
push str.239.255.255.250
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
push 0x76c
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x136], ax
push ebx
push dword [ebp - 0x144]
lea eax, [ebp - 0xb8]
push str._s::_s
push 0xb4
push eax
call fcn.00401490
add esp, 0x14
test eax, eax
js 0x4735ac
cmp eax, 0xb4
jae 0x4735ac
push dword [ebp + 0x24]
lea eax, [ebp - 0x13c]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0xb8]
push dword [ebp - 0x140]
push eax
push ebx
push 0
call fcn.004724b0
mov esi, dword [ebp - 0x13c]
add esp, 0x28
test esi, esi
je 0x4735ac
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x138]
push 1
push eax
call fcn.00472eb0
mov esi, dword [ebp - 0x13c]
add esp, 0xc
mov edi, eax
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0054f742
mov esp, ebp
pop ebp
ret

Function at 0x473610
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x62aabc]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
xor eax, eax
push esi
xor esi, esi
mov cl, byte [edx]
cmp cl, 0x5b
je 0x47363e
nop
test cl, cl
je 0x47363e
mov cl, byte [eax + edx + 1]
inc eax
cmp cl, 0x5b
jne 0x473630
cmp byte [eax + edx], 0
je 0x4736a5
mov cl, byte [eax + edx + 1]
inc eax
test cl, cl
je 0x473662
nop dword [eax]
cmp cl, 0x5d
je 0x473662
inc eax
mov byte [ebp + esi - 0x48], cl
inc esi
mov cl, byte [eax + edx]
test cl, cl
jne 0x473650
mov al, byte [eax + edx]
test al, al
je 0x4736a5
cmp al, 0x5d
jne 0x4736a5
mov byte [ebp + esi - 0x48], 0
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp byte [ebp - 0x58], 0xfe
jne 0x473691
mov al, byte [ebp - 0x57]
and al, 0xc0
cmp al, 0x80
je 0x4736a5
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054f742
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0054f742
mov esp, ebp
pop ebp
ret
Function at 0x474240
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, 0xb
mov dword [ebp - 8], 0
mov dword [eax + 4], 0
call fcn.00475990
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4743d3
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x47427a
mov ebx, dword [ebx]
jmp 0x47427c
xor ebx, ebx
call fcn.00475b40
mov esi, eax
mov dword [ebp - 4], edx
test esi, esi
je 0x4743dc
mov eax, dword [esi + 0x88]
push 0x10
mov dword [ebp - 0xc], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
je 0x4743dc
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax], esi
mov dword [eax + 8], ecx
mov eax, dword [ebp + 0x14]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x9c]
mov dword [esi + 0x9c], eax
test ebx, ebx
je 0x474346
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
call fcn.00475af0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00475ad0
add esp, 0xc
test eax, eax
jne 0x474303
mov eax, dword [ebx + 0x1c]
mov dword [esi + 0x9c], eax
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov dword [esi + 0x84], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x1c], ecx
test eax, eax
je 0x474332
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov ecx, dword [ebp - 0x1c]
add esp, 4
mov dword [esi + 0xa0], eax
cmp dword [ebx + 0x14], 0
jne 0x474348
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x88]
mov dword [ebp - 0xc], eax
jmp 0x474348
xor ecx, ecx
lea eax, [esi + 0x98]
mov dword [esi + 0x18], 3
push eax
push 4
push edi
push 0x475ce0
push ecx
push 0
mov dword [esi + 0x30], 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov edi, eax
add esp, 0x18
mov dword [ebp - 0x1c], edi
mov dword [esi + 8], edi
test edi, edi
je 0x4743a8
test ebx, ebx
je 0x474392
push dword [ebp - 0xc]
push 0
push dword [ebp - 4]
push esi
call fcn.00475c30
add esp, 0x10
push dword [esi + 0x9c]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
mov edi, 0xb
cmp dword [ebp - 0x1c], eax
cmovne edi, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 8], eax
test edi, edi
jne 0x4743dc
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov dword [ecx + 4], eax
mov eax, edi
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 4], esi
mov esi, dword [ebp - 0x20]
push dword [ebp - 4]
push esi
call fcn.00475b00
mov eax, dword [ebp - 8]
add esp, 8
test eax, eax
je 0x4743f9
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x476950
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x62da08]
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
push edi
cmp esi, eax
je 0x476974
call fcn.00475990
mov edi, eax
mov dword [ebp - 4], edx
test edi, edi
je 0x476988
jmp 0x4769a6
push eax
call fcn.00476a50
add esp, 4
test eax, eax
jne 0x47699d
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x476993
pop edi
mov eax, 2
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov dword [ebp - 4], eax
jmp 0x4769a9
mov edi, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
test esi, esi
je 0x476a24
test edi, edi
je 0x476a0f
cmp dword [esi + 4], ebx
je 0x476a0f
test ecx, ecx
je 0x476a0f
lea eax, [ebp - 0x20]
push eax
lea eax, [esi + 8]
push eax
call fcn.00476020
lea eax, [ebp - 0x10]
push eax
lea eax, [edi + 0x1c]
push eax
call fcn.00476020
mov eax, dword [edi + 0x30]
add esp, 0x10
test eax, eax
je 0x4769ed
cmp dword [eax + 4], esi
je 0x476a2d
mov eax, dword [eax + 8]
test eax, eax
jne 0x4769e1
push esi
push edi
call fcn.00477040
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
call fcn.004760b0
lea eax, [ebp - 0x20]
push eax
call fcn.004760b0
add esp, 0x10
test ebx, ebx
jne 0x476a24
push dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
mov ecx, 0xb
cmove ebx, ecx
mov eax, ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
call fcn.004760b0
lea eax, [ebp - 0x20]
push eax
call fcn.004760b0
add esp, 8
jmp 0x476a0f

Function at 0x476b70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x62aabc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call fcn.00477110
mov esi, eax
mov dword [0x62da24], 1
push 0x400
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x476bdf
push 0xc
push str.QUSEREX.DLL
lea eax, [ebp - 0x404]
push 0x400
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcat_s]
add esp, 0x10
test eax, eax
jne 0x476bdf
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x62da40], eax
jmp 0x476be4
mov eax, dword [0x62da40]
test eax, eax
je 0x476c03
push str.QueueUserAPCEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov eax, dword [0x62da40]
mov dword [0x62da00], ecx
jmp 0x476c09
mov ecx, dword [0x62da00]
test ecx, ecx
jne 0x476c1e
mov dword [0x62da00], 0x4770a0
test eax, eax
je 0x476c6b
push eax
jmp 0x476c65
push str.QueueUserAPCEx_Init
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x476c55
call eax
test eax, eax
je 0x476c55
cmp dword [0x62da40], 0
mov eax, esi
je 0x476c77
or dword [0x62da24], 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054f742
mov esp, ebp
pop ebp
ret
push dword [0x62da40]
mov dword [0x62da00], 0x4770a0
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
mov dword [0x62da40], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0054f742
mov esp, ebp
pop ebp
ret