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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564838
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5d6c64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
mov dword [eax], vtable.common::RemoteConfig.0
push dword [ebp + 8]
mov ecx, dword [ebp - 0x30]
add ecx, 4
call fcn.00404b10
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x30]
add eax, 0x20
mov dword [ebp - 0x1c], eax
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
call fcn.0042eb9a
mov byte [ebp - 4], 1
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x30]
mov byte [eax + 0x34], 0
mov eax, dword [ebp - 0x30]
and dword [eax + 0x38], 0
mov eax, dword [ebp - 0x30]
and dword [eax + 0x3c], 0
mov eax, dword [ebp - 0x30]
add eax, 0x40
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x25]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 3
push 0
push 0
mov ecx, dword [ebp - 0x2c]
call fcn.00406430
mov byte [ebp - 4], 4
push 0
push 0
push dword [ebp - 0x30]
push 0x42eb55
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x30], eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret 8

Function at 0x42e781
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564894
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5d6c64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x40]
mov dword [eax], vtable.common::RemoteConfig.0
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x30], 0
je 0x42e7e3
push 0xffffffffffffffff
mov eax, dword [ebp - 0x40]
push dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 0x40]
push dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x40]
and dword [eax + 0x30], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x40]
add eax, 0x40
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
push 0
push 1
mov ecx, dword [ebp - 0x10]
call fcn.00406430
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x40]
add eax, 0x20
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 4
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x38]
call fcn.00418a9f
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 4]
mov dword [ebp - 0x34], eax
push dword [ebp - 0x34]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
pop ecx
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x40]
add eax, 4
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 6
push 0
push 1
mov ecx, dword [ebp - 0x3c]
call fcn.00406430
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret
Function at 0x43005b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x430064
xor eax, eax
jne 0x430064
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
shl eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
and dword [eax], 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
mov eax, dword [ebp - 0x10]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4300a5
mov eax, dword [ebp - 0xc]
jmp 0x4300fc
cmp dword [ebp - 4], 1
je 0x4300b6
cmp dword [ebp - 4], 2
je 0x4300b6
push 0xd
pop eax
jmp 0x4300fc
cmp dword [ebp + 0xc], 0
je 0x4300f0
cmp dword [ebp - 8], 0
je 0x4300e8
mov eax, dword [ebp - 8]
xor edx, edx
push 2
pop ecx
div ecx
test edx, edx
jne 0x4300e1
mov eax, dword [ebp - 8]
shr eax, 1
mov ecx, dword [ebp + 0xc]
movzx eax, word [ecx + eax*2 - 2]
test eax, eax
je 0x4300e6
push 0xd
pop eax
jmp 0x4300fc
jmp 0x4300f0
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov word [ecx], ax
mov eax, dword [ebp - 8]
shr eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
leave
ret 0xc

Function at 0x431829
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564c90
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x484
mov eax, dword [0x5d6c64]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x428], 0
lea ecx, [ebp - 0x490]
call fcn.0043196f
and dword [ebp - 4], 0
push 0x400
push 0
lea eax, [ebp - 0x420]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x571648
push dword [ebp + 8]
call dword [sym.imp.MSVCR100.dll__wfopen]
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x431943
push dword [ebp - 0x18]
push 0x400
push 1
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4318de
push dword [ebp - 0x14]
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x490]
call fcn.004319b2
jmp 0x4318a4
lea ecx, [ebp - 0x490]
call fcn.00431aa3
push dword [ebp - 0x18]
call dword [sym.imp.MSVCR100.dll_fclose]
pop ecx
lea eax, [ebp - 0x438]
push eax
call fcn.004316c8
pop ecx
mov dword [ebp - 0x494], eax
mov byte [0x5ea8f0], 0
cmp dword [ebp - 0x494], 0
je 0x43193c
push dword [ebp - 0x494]
push 0x104
push 0x5ea8f0
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
push dword [ebp - 0x494]
call dword [sym.imp.MSVCR100.dll_free]
pop ecx
mov eax, 0x5ea8f0
jmp 0x431955
jmp 0x43194f
or dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004610a0
leave
ret
Function at 0x43196f
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 8
push 0
mov eax, dword [ebp - 4]
add eax, 0x10
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
mov dword [eax], 0x67452301
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xefcdab89
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0x98badcfe
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0x10325476
leave
ret

Function at 0x4339e4
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
mov eax, dword [0x5d6c64]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x334], ecx
mov eax, dword [ebp - 0x334]
cmp dword [eax + 0x3c], 0
je 0x433ac4
or dword [ebp - 8], 0xffffffff
and dword [ebp - 0x328], 0
and dword [ebp - 0x118], 0
and dword [ebp - 0x220], 0
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [ebp - 0x330], eax
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 0x3e8
div ecx
imul edx, edx, 0x3e8
mov dword [ebp - 0x32c], edx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x328]
push eax
mov eax, dword [ebp - 0x334]
push dword [eax + 0x3c]
call fcn.00469810
add esp, 0x14
cmp dword [ebp - 8], 0xffffffff
jne 0x433a8c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
jmp 0x433ac6
lea eax, [ebp - 0x330]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x328]
push eax
mov eax, dword [ebp - 8]
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x433ac0
xor al, al
jmp 0x433ac6
mov al, 1
jmp 0x433ac6
xor al, al
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004610a0
leave
ret 4

Function at 0x433b20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
jne 0x433b53
mov eax, dword [ebp - 4]
mov byte [eax + 0x34], 0
push 0
push 0
push dword [ebp - 4]
push 0x434176
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x44], eax
mov eax, dword [ebp - 4]
xor ecx, ecx
cmp dword [eax + 0x44], 0
setne cl
mov al, cl
leave
ret
Function at 0x433fd4
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564f47
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x5d6c64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
push 4
call fcn.0041b640
pop ecx
movzx eax, al
test eax, eax
je 0x43401d
push dword [ebp + 8]
push str._Qos_http_handler__WaitForStop_begin__timeout:_u_:
push 4
call fcn.0041b5a4
add esp, 0xc
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x44], 0
je 0x434148
cmp dword [ebp + 8], 0
jne 0x43404a
mov eax, dword [ebp - 0x20]
mov byte [eax + 0x34], 1
push 0xffffffffffffffff
mov eax, dword [ebp - 0x20]
push dword [eax + 0x44]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x4340e9
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
cmp dword [ebp - 0x1c], 0
je 0x43407b
xor eax, eax
jne 0x434070
mov ecx, dword [ebp - 0x1c]
call fcn.00428bc7
mov byte [ebp - 0x18], 1
jmp 0x43407b
mov ecx, dword [ebp - 0x1c]
call fcn.00428bf6
mov byte [ebp - 0x18], al
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x10], eax
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 0
je 0x4340a6
movzx eax, byte [ebp - 0x18]
test eax, eax
je 0x4340a6
mov byte [ebp - 0x18], 0
mov ecx, dword [ebp - 0x1c]
call fcn.00428be4
cmp dword [ebp - 0x10], 0
jbe 0x4340b7
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x38], ecx
push dword [ebp + 8]
mov eax, dword [ebp - 0x20]
push dword [eax + 0x44]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x102
jne 0x4340e9
push 0xffffffffffffffff
mov eax, dword [ebp - 0x20]
push dword [eax + 0x44]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 0x20]
push dword [eax + 0x44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
and dword [eax + 0x44], 0
push 4
call fcn.0041b640
pop ecx
movzx eax, al
test eax, eax
je 0x434138
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax + 0x35]
test eax, eax
je 0x43411f
mov dword [ebp - 0x24], 0x57191c
jmp 0x434126
mov dword [ebp - 0x24], 0x571924
push dword [ebp - 0x24]
push str._Qos_http_handler__WaitForStop_end__timeout_stopped:_s_:
push 4
call fcn.0041b5a4
add esp, 0xc
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax + 0x35]
neg eax
sbb eax, eax
inc eax
jmp 0x434167
push 4
call fcn.0041b640
pop ecx
movzx eax, al
test eax, eax
je 0x434165
push str._Qos_http_handler__WaitForStop_end_return_true:
push 4
call fcn.0041b5a4
pop ecx
pop ecx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret 4
Function at 0x434d20
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5d6c64]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
push dword [eax]
call sub.WS2_32.dll_ntohl
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push dword [eax + 4]
call sub.WS2_32.dll_ntohl
mov dword [ebp - 0x24], eax
and dword [ebp - 8], 0
jmp 0x434d58
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 4
jge 0x434d75
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push dword [ecx + eax*4]
call sub.WS2_32.dll_ntohl
mov ecx, dword [ebp - 8]
mov dword [ebp + ecx*4 - 0x1c], eax
jmp 0x434d51
and dword [ebp - 0x20], 0
and dword [ebp - 8], 0
jmp 0x434d86
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x10
jge 0x434ddd
mov eax, dword [ebp - 0x20]
sub eax, 0x61c88647
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
shl eax, 4
add eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x20]
xor eax, ecx
mov ecx, dword [ebp - 0x24]
shr ecx, 5
add ecx, dword [ebp - 0x18]
xor eax, ecx
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
shl eax, 4
add eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x20]
xor eax, ecx
mov ecx, dword [ebp - 4]
shr ecx, 5
add ecx, dword [ebp - 0x10]
xor eax, ecx
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x24], eax
jmp 0x434d7f
push dword [ebp - 4]
call sub.WS2_32.dll_htonl
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push dword [ebp - 0x24]
call sub.WS2_32.dll_htonl
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004610a0
leave
ret
Function at 0x434e04
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5d6c64]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
push dword [eax]
call sub.WS2_32.dll_ntohl
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push dword [eax + 4]
call sub.WS2_32.dll_ntohl
mov dword [ebp - 0x24], eax
and dword [ebp - 8], 0
jmp 0x434e3c
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 4
jge 0x434e59
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push dword [ecx + eax*4]
call sub.WS2_32.dll_ntohl
mov ecx, dword [ebp - 8]
mov dword [ebp + ecx*4 - 0x1c], eax
jmp 0x434e35
mov dword [ebp - 0x20], 0xe3779b90
and dword [ebp - 8], 0
jmp 0x434e6d
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x10
jge 0x434ec8
mov eax, dword [ebp - 4]
shl eax, 4
add eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x20]
xor eax, ecx
mov ecx, dword [ebp - 4]
shr ecx, 5
add ecx, dword [ebp - 0x10]
xor eax, ecx
mov ecx, dword [ebp - 0x24]
sub ecx, eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
shl eax, 4
add eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x20]
xor eax, ecx
mov ecx, dword [ebp - 0x24]
shr ecx, 5
add ecx, dword [ebp - 0x18]
xor eax, ecx
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x20]
add eax, 0x61c88647
mov dword [ebp - 0x20], eax
jmp 0x434e66
push dword [ebp - 4]
call sub.WS2_32.dll_htonl
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push dword [ebp - 0x24]
call sub.WS2_32.dll_htonl
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004610a0
leave
ret
Function at 0x438cd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565ad0
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x5d6c64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2b0], ecx
and dword [ebp - 0x274], 0
xor eax, eax
mov word [ebp - 0x254], ax
push 0x206
push 0
lea eax, [ebp - 0x252]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x438d65
push 0x5720b4
mov ecx, dword [ebp + 8]
call fcn.00404e60
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x274]
or eax, 1
mov dword [ebp - 0x274], eax
mov eax, dword [ebp + 8]
jmp 0x438e37
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404e60
mov dword [ebp - 0x2b4], eax
mov eax, dword [ebp - 0x2b4]
mov dword [ebp - 0x2b8], eax
mov dword [ebp - 4], 1
push 0x5720d8
push dword [ebp - 0x2b8]
lea eax, [ebp - 0x48]
push eax
call fcn.00412118
add esp, 0xc
mov dword [ebp - 0x2bc], eax
mov eax, dword [ebp - 0x2bc]
mov dword [ebp - 0x2c0], eax
mov byte [ebp - 4], 2
push str.tgp_config.ini
push dword [ebp - 0x2c0]
lea eax, [ebp - 0x270]
push eax
call fcn.00412118
add esp, 0xc
mov byte [ebp - 4], 5
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00406660
mov byte [ebp - 4], 4
mov byte [ebp - 4], 7
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00406660
mov byte [ebp - 4], 6
lea eax, [ebp - 0x270]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406f40
mov eax, dword [ebp - 0x274]
or eax, 1
mov dword [ebp - 0x274], eax
mov dword [ebp - 4], 8
push 0
push 1
lea ecx, [ebp - 0x270]
call fcn.00406660
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004610a0
leave
ret 4
Function at 0x439ad9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565d1c
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x5d6c64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x280], ecx
and dword [ebp - 0x258], 0
xor eax, eax
mov word [ebp - 0x234], ax
push 0x206
push 0
lea eax, [ebp - 0x232]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x234]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0
je 0x439b8b
push 4
call fcn.0041b640
pop ecx
movzx eax, al
test eax, eax
je 0x439b71
push str._ProcessStateMachine__Get_AppDataDir_Failed
push 4
call fcn.0041b5a4
pop ecx
pop ecx
push str.C:UsersAppData_
push 0x103
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404e60
mov dword [ebp - 0x284], eax
mov eax, dword [ebp - 0x284]
mov dword [ebp - 0x288], eax
mov dword [ebp - 4], 1
push str.TencentWeGameLauncherlauncher.ini
push dword [ebp - 0x288]
lea eax, [ebp - 0x250]
push eax
call fcn.00412118
add esp, 0xc
mov byte [ebp - 4], 4
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00406660
mov byte [ebp - 4], 3
lea eax, [ebp - 0x250]
push eax
call fcn.0042875c
pop ecx
lea eax, [ebp - 0x250]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406f40
mov eax, dword [ebp - 0x258]
or eax, 1
mov dword [ebp - 0x258], eax
mov dword [ebp - 4], 5
push 0
push 1
lea ecx, [ebp - 0x250]
call fcn.00406660
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004610a0
leave
ret 4
Function at 0x43ceae
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5664ab
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x5d6c64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xe8], ecx
mov eax, dword [ebp - 0xe8]
mov byte [eax], 1
xor eax, eax
mov word [ebp - 0x20], ax
xor eax, eax
lea edi, [ebp - 0x1e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 8
lea eax, [ebp - 0x20]
push eax
push str.LAUNCH_FROM_TCLS
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x43d090
lea eax, [ebp - 0xc4]
push eax
call fcn.00435f9d
mov ecx, eax
call fcn.00439ad9
and dword [ebp - 4], 0
cmp dword [ebp - 0xb0], 8
jb 0x43cf40
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xec], eax
jmp 0x43cf4c
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xec], eax
push 1
push dword [ebp - 0xec]
lea ecx, [ebp - 0xe0]
call fcn.0042b16f
mov byte [ebp - 4], 1
xor eax, eax
mov word [ebp - 0xa4], ax
push 0x7e
push 0
lea eax, [ebp - 0xa2]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
call fcn.00423aec
mov ecx, eax
call fcn.00423b64
mov eax, dword [eax + 4]
mov dword [ebp - 0xa8], eax
push dword [ebp - 0xa8]
push 0x572a84
push 0x40
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.MSVCR100.dll_swprintf_s]
add esp, 0x10
push 0
lea eax, [ebp - 0xa4]
push eax
push 0x570908
lea ecx, [ebp - 0xe0]
call fcn.0042b416
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x43d02d
push 0
call fcn.0041b640
pop ecx
movzx eax, al
test eax, eax
je 0x43cff0
push str._CheckWegameState__CheckNeedShowAnnouncement__announcement_has_show
push 0
call fcn.0041b5a4
pop ecx
pop ecx
mov byte [ebp - 0xe1], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xe0]
call fcn.0042b3c8
mov dword [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0xc4]
call fcn.00406660
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0xe1]
jmp 0x43d0af
mov byte [ebp - 0xe2], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xe0]
call fcn.0042b3c8
mov dword [ebp - 4], 3
push 0
push 1
lea ecx, [ebp - 0xc4]
call fcn.00406660
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0xe2]
jmp 0x43d0af
push 0
call fcn.0041b640
pop ecx
movzx eax, al
test eax, eax
je 0x43d0ad
push str._CheckWegameState__CheckNeedShowAnnouncement__not_start_from_tcls
push 0
call fcn.0041b5a4
pop ecx
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004610a0
leave
ret
Function at 0x43f0a2
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x566a5a
mov eax, dword fs:[0]
push eax
sub esp, 0x1f4
mov eax, dword [0x5d6c64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1f0], ecx
and dword [ebp - 4], 0
lea eax, [ebp - 0x1bc]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x1c0], eax
cmp dword [ebp - 0x1c0], 0
jne 0x43f239
cmp dword [ebp + 0x1c], 0x10
jb 0x43f10d
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1f4], eax
jmp 0x43f116
lea eax, [ebp + 8]
mov dword [ebp - 0x1f4], eax
push dword [ebp - 0x1f4]
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x1c4], eax
cmp dword [ebp - 0x1c4], 0
je 0x43f1cc
mov eax, dword [ebp - 0x1c4]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c8], eax
jmp 0x43f155
mov eax, dword [ebp - 0x1c8]
add eax, 4
mov dword [ebp - 0x1c8], eax
mov eax, dword [ebp - 0x1c8]
cmp dword [eax], 0
je 0x43f1ca
mov eax, dword [ebp - 0x1c8]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov dword [ebp - 0x1cc], eax
cmp dword [ebp - 0x1cc], 0
je 0x43f1c5
push dword [ebp - 0x1cc]
lea ecx, [ebp - 0x2c]
call fcn.00404b40
mov dword [ebp - 0x1f8], eax
mov eax, dword [ebp - 0x1f8]
mov dword [ebp - 0x1fc], eax
mov byte [ebp - 4], 1
push dword [ebp - 0x1fc]
mov ecx, dword [ebp + 0x24]
call fcn.00405cf0
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00406430
mov byte [ebp - 4], 0
jmp 0x43f146
jmp 0x43f237
push 4
call fcn.0041b640
pop ecx
movzx eax, al
test eax, eax
je 0x43f211
cmp dword [ebp + 0x1c], 0x10
jb 0x43f1ec
mov eax, dword [ebp + 8]
mov dword [ebp - 0x200], eax
jmp 0x43f1f5
lea eax, [ebp + 8]
mov dword [ebp - 0x200], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [ebp - 0x200]
push str._DownWegameState__Impl::GetIPStringList__gethost__s__failed:__d_
push 4
call fcn.0041b5a4
add esp, 0x10
mov byte [ebp - 0x1cd], 0
mov dword [ebp - 4], 3
push 0
push 1
lea ecx, [ebp + 8]
call fcn.00406430
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x1cd]
jmp 0x43f2a7
jmp 0x43f283
push 4
call fcn.0041b640
pop ecx
movzx eax, al
test eax, eax
je 0x43f25d
push dword [ebp - 0x1c0]
push str._DownWegameState__Impl::GetIPStringList__WSAStartup_failed:__d_
push 4
call fcn.0041b5a4
add esp, 0xc
mov byte [ebp - 0x1ce], 0
mov dword [ebp - 4], 4
push 0
push 1
lea ecx, [ebp + 8]
call fcn.00406430
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x1ce]
jmp 0x43f2a7
mov byte [ebp - 0x1cf], 1
mov dword [ebp - 4], 5
push 0
push 1
lea ecx, [ebp + 8]
call fcn.00406430
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x1cf]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004610a0
leave
ret 0x20