joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002e804
Capabilities:
Delete file
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov ebx, 0x20a
lea eax, [ebp - 0x210]
push ebx
push 0
push eax
call fcn.1008dc90
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
push str._AppData_TencentQQ_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0x214]
call fcn.1001b7ca
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [eax]
lea eax, [ebp - 0x210]
push eax
call edi
mov ecx, dword [ebp - 0x214]
lea ecx, [ecx - 0x10]
call fcn.100018f3
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.1008dc90
add esp, 0xc
lea eax, [ebp - 0x210]
push 1
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.TencentQQ_
lea eax, [ebp - 0x210]
push eax
call edi
lea ecx, [ebp - 0x214]
call fcn.1001b7ca
push dword [eax]
lea eax, [ebp - 0x210]
push eax
call edi
mov ecx, dword [ebp - 0x214]
lea ecx, [ecx - 0x10]
call fcn.100018f3
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1008a777
mov esp, ebp
pop ebp
ret

Function at 0x1002e9a9
Capabilities:
Check if file exists

Disassembly:
push 0x20
mov eax, 0x100bfa53
call fcn.1008b481
and dword [ebp - 0x14], 0
lea ecx, [ebp - 0x2c]
call fcn.1001b5ff
and dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x1002e9cd
mov eax, dword [eax]
push str.QQPCTray.exe
mov edx, eax
lea ecx, [ebp - 0x14]
call fcn.1002b41f
pop ecx
push 0
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.10001f53
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002ea0e
push ecx
push 1
push ecx
mov ecx, dword [ebp - 0x14]
mov edx, str._showui__setup
call fcn.1001b4a1
add esp, 0xc
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.100018f3
call fcn.1008b42b
ret
Function at 0x1002fc30
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push ebx
push esi
push 0x1002f650
push ebx
push ebx
call fcn.10096108
add esp, 0x18
test eax, eax
je 0x1002fc54
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.10018b84
add eax, 4
push ebx
push str.target
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov edi, eax
call fcn.1001c2c8
add eax, 4
push eax
mov ecx, dword [eax]
call dword [ecx + 0x70]
test eax, eax
je 0x1002fc89
mov ecx, esi
call fcn.1002fc11
push 1
mov ecx, esi
jmp 0x1002fcbc
cmp dword [esi + 0x1ac], ebx
jne 0x1002fcc3
cmp edi, 1
jne 0x1002fcc3
mov ecx, esi
call fcn.1002fc11
call fcn.10018b84
add eax, 4
push ebx
push 0x100f5928
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov ecx, esi
cmp eax, 3
jne 0x1002fcbb
push edi
jmp 0x1002fcbc
push ebx
call fcn.10031211
jmp 0x1002fcd1
push ebx
mov ecx, esi
call fcn.10031211
mov dword [esi + 0x1c0], ebx
pop edi
pop esi
pop ebx
ret

Function at 0x1002fe82
Capabilities:
Create process on windows

Disassembly:
push 0x244
mov eax, 0x100bfc1b
call fcn.1008b481
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x220], ebx
call fcn.10018b84
add eax, 4
push ebx
push str.bShowPacketInstallProgross
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edi, eax
call fcn.1001c2c8
add eax, 4
lea edx, [ebp - 0x220]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov ecx, dword [ebp - 0x220]
cmp ecx, 1
jne 0x10030007
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], ebx
mov word [ebp - 0x238], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x23c], ecx
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], ax
push 0x20a
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 1
push ebx
push eax
call fcn.1008dc90
lea eax, [ebp - 0x21c]
mov edx, str.InstallDir
push eax
mov ecx, str.SOFTWARETencentQQPCMgr
call fcn.1001ae46
add esp, 0x10
test eax, eax
je 0x1002ffe5
call fcn.10018b84
add eax, 4
lea edx, [ebp - 0x238]
mov ebx, 0x100d0a54
push ebx
push edx
mov ecx, dword [eax]
push str.NewVersionRunExe
push eax
call dword [ecx + 8]
call fcn.10018b84
add eax, 4
lea edx, [ebp - 0x250]
push ebx
push edx
push str.NewVersionRunExeParam
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x228], 0
je 0x1002ffe3
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push eax
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.10095d66
add esp, 0xc
lea eax, [ebp - 0x250]
cmp dword [ebp - 0x23c], 8
cmovae eax, dword [ebp - 0x250]
xor ebx, ebx
push 1
push ebx
push eax
lea eax, [ebp - 0x21c]
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x1002ffe5
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0x250]
call fcn.10001f53
push ebx
push 1
lea ecx, [ebp - 0x238]
call fcn.10001f53
mov ecx, dword [ebp - 0x220]
cmp dword [esi + 0x1ac], ebx
jne 0x10030029
cmp dword [esi + 0x1d8], ebx
jne 0x10030029
test edi, edi
je 0x10030020
cmp ecx, 1
jne 0x10030029
push 1
mov ecx, esi
call fcn.10031211
call fcn.1008b42b
ret
Function at 0x1003002f
Capabilities:
Get disk size

Disassembly:
push 0x44c
mov eax, 0x100bfadc
call fcn.1008b481
mov ebx, ecx
mov esi, 0x20a
lea eax, [ebp - 0x428]
push esi
xor edi, edi
push edi
push eax
call fcn.1008dc90
push esi
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.1008dc90
add esp, 0x18
jmp 0x1002f380
lea ecx, [ebp - 0x21c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1002f4d9
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x42c], edi
push eax
lea ecx, [ebp - 0x42c]
call fcn.1000564f
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x42c]
cmp dword [eax - 0xc], 2
jl 0x1002f354
push 2
lea eax, [ebp - 0x430]
mov dword [ebp - 0x430], edi
push eax
lea ecx, [ebp - 0x42c]
call fcn.1000559a
mov esi, dword [ebp - 0x430]
lea eax, [ebp - 0x438]
push edi
push edi
push eax
push esi
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x434], edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp dword [ebp - 0x434], edi
ja 0x1002f3e2
jb 0x1002f34c
cmp dword [ebp - 0x438], 0x6400000
jae 0x1002f3e2
lea ecx, [esi - 0x10]
call fcn.100018f3
push 0x40
push 0x100f4240
push 0x100f58dc
mov ecx, ebx
call fcn.10051d00
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x42c]
lea ecx, [ecx - 0x10]
call fcn.100018f3
push 7
mov dword [ebp - 0x458], edi
xor eax, eax
pop ecx
lea edi, [ebp - 0x454]
rep stosd dword es:[edi], eax
mov ecx, ebx
call fcn.10051d00
mov dword [ebp - 0x458], eax
xor edi, edi
lea eax, [ebp - 0x428]
mov dword [ebp - 0x454], edi
mov dword [ebp - 0x450], eax
lea eax, [ebp - 0x458]
push eax
mov dword [ebp - 0x44c], 0x100f58cc
mov dword [ebp - 0x448], 0x43
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
test eax, eax
jne 0x1002f2b5
jmp 0x1002f4d9
lea ecx, [esi - 0x10]
call fcn.100018f3
mov dword [ebp - 0x430], edi
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 1
call fcn.1001b8c1
push eax
lea ecx, [ebp - 0x42c]
call fcn.10005601
push edi
push str.qqpcmgr
lea ecx, [ebp - 0x42c]
call fcn.1000b090
cmp eax, 0xffffffff
lea eax, [ebp - 0x21c]
push eax
jne 0x1002f471
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x1002f437
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x42c]
call fcn.10005c3c
push 7
push str.QQPCMgr
lea ecx, [ebp - 0x42c]
call fcn.10003991
push dword [ebp - 0x42c]
lea ecx, [ebp - 0x430]
call fcn.1003066e
call fcn.1001c2c8
push dword [ebp - 0x430]
add eax, 4
push eax
mov edx, dword [eax]
call dword [edx + 0x2c]
push edi
push 0x1010d610
push 0x1010d3dc
push edi
push 0x6a
mov ecx, ebx
call fcn.10051d10
push eax
call fcn.100ba82d
add esp, 0x14
test eax, eax
je 0x1002f4bf
push dword [ebp - 0x430]
mov ecx, eax
call fcn.10054200
push dword [ebp - 0x430]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0x42c]
lea ecx, [ecx - 0x10]
call fcn.100018f3
call fcn.1008b42b
ret
mov dword [ecx + 0x1d8], 1
jmp 0x1002f279
Function at 0x100328b2
Capabilities:
Terminate process

Disassembly:
push 0x24
mov eax, 0x100c0082
call fcn.1008b481
mov esi, 0x1010fbf0
mov dword [ebp - 0x28], 3
mov ebx, 0x1010bc84
push 0x40
call fcn.1008aaf7
pop ecx
mov dword [ebp - 0x30], eax
and dword [ebp - 4], 0
mov ecx, eax
push dword [ebx + 4]
push dword [ebx]
push dword [ebx - 4]
call fcn.1003b3fc
or dword [ebp - 4], 0xffffffff
mov edi, eax
mov ecx, dword [esi]
cmp edi, ecx
je 0x10032905
test ecx, ecx
je 0x10032903
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi], edi
and dword [ebp - 0x24], 0
lea edi, [ebp - 0x20]
mov ecx, dword [esi]
lea edx, [ebp - 0x24]
xor eax, eax
stosd dword es:[edi], eax
push edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ecx]
call dword [eax + 0xc]
test al, al
je 0x10032959
mov ecx, dword [esi]
lea eax, [ebp - 0x2c]
push eax
call fcn.10032799
mov dword [ebp - 4], 1
lea ecx, [esi + 0x10]
push dword [eax]
call fcn.10032a9e
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x10032953
lea ecx, [eax + 4]
call fcn.10008132
or dword [ebp - 4], 0xffffffff
jmp 0x10032968
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
add ebx, 0xc
add esi, 4
sub dword [ebp - 0x28], 1
jne 0x100328cf
xor eax, eax
inc eax
call fcn.1008b42b
ret
Function at 0x10036220
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 4
push eax
push str.DebugBeacon
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
xor eax, eax
cmp eax, dword [ebp - 4]
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret
Function at 0x100366e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1010ff4c]
test eax, eax
jne 0x10036870
push 0x114
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.1008dc90
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x108]
cmp eax, 2
jne 0x10036841
call fcn.10036660
test eax, eax
je 0x1003675c
mov eax, 9
mov dword [0x1010ff4c], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008a777
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x114]
cmp eax, 5
jne 0x100367c3
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x10036789
mov eax, 2
mov dword [0x1010ff4c], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008a777
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x100367a6
mov eax, 3
mov dword [0x1010ff4c], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008a777
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x10036829
mov eax, 4
mov dword [0x1010ff4c], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008a777
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x10036829
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x100367ea
mov eax, 5
mov dword [0x1010ff4c], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008a777
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x10036807
mov eax, 6
mov dword [0x1010ff4c], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008a777
mov esp, ebp
pop ebp
ret
cmp eax, 2
je 0x10036811
cmp eax, 3
jne 0x10036829
mov eax, 7
mov dword [0x1010ff4c], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008a777
mov esp, ebp
pop ebp
ret
mov eax, 0x14
mov dword [0x1010ff4c], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008a777
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x1003686b
cmp dword [ebp - 0x114], 4
jne 0x10036829
cmp dword [ebp - 0x110], 0
jne 0x10036829
mov dword [0x1010ff4c], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008a777
mov esp, ebp
pop ebp
ret
mov eax, dword [0x1010ff4c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008a777
mov esp, ebp
pop ebp
ret
Function at 0x10039fcf
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bca18
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1010b070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esi], vtable.qmbase::MessageLoop.0
xor edi, edi
mov ecx, esi
call fcn.1003a0f4
mov ecx, esi
call fcn.1003a439
mov ecx, esi
call fcn.1003a0f4
test al, al
je 0x1003a01c
inc edi
cmp edi, 0x64
jl 0x10039ffd
mov ecx, esi
call fcn.1003a0c1
call fcn.10039dec
cmp dword [eax + 4], 0xffffffff
je 0x1003a039
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call fcn.10039dec
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x1003a073
test edi, edi
je 0x1003a06c
cmp dword [edi + 4], 0xffffffff
je 0x1003a062
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_TlsFree]
or dword [edi + 4], 0xffffffff
push 8
push edi
call fcn.1008a788
pop ecx
pop ecx
and dword [0x1010fac4], 0
lea ecx, [esi + 0x70]
call fcn.1003af13
and dword [ebp - 4], 0
mov ecx, dword [esi + 0x6c]
test ecx, ecx
je 0x1003a08e
add ecx, 4
call fcn.10008132
lea ecx, [esi + 0x44]
call fcn.1003ae5b
lea eax, [esi + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [esi + 0x18]
call fcn.1003af13
lea ecx, [esi + 4]
call fcn.1003af13
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1003aa88
Capabilities:
Set thread local storage value

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x88]
mov dword [esi], vtable.qmbase::MessageLoopForIO.0
test eax, eax
je 0x1003aaa9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x88], 0
lea ecx, [esi + 0x94]
call fcn.1003ace8
lea ecx, [esi + 0x8c]
call fcn.1003ad25
mov ecx, esi
pop esi
jmp fcn.10039fcf
Function at 0x1003b510
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor eax, eax
mov edi, ecx
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, dword [ebp + 8]
mov dword [edi + 0x38], eax
test esi, esi
je 0x1003b536
xor ecx, ecx
test eax, eax
sete cl
mov dword [esi], ecx
push ebx
lea ebx, [edi + 0x10]
test ebx, ebx
je 0x1003b55b
xor eax, eax
push eax
push eax
push edi
push 0x1003b384
push eax
push eax
call fcn.10096108
add esp, 0x18
mov dword [ebx], eax
test eax, eax
setne al
jmp 0x1003b55d
xor al, al
pop ebx
test al, al
jne 0x1003b591
test esi, esi
je 0x1003b580
mov dword [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xc], eax
call fcn.100954d4
mov eax, dword [eax]
mov dword [esi + 0x10], eax
push dword [edi + 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi + 0x38], 0
xor al, al
jmp 0x1003b5c8
test esi, esi
je 0x1003b599
and dword [esi + 4], 0
push 0xffffffffffffffff
push dword [edi + 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test esi, esi
je 0x1003b5b2
xor ecx, ecx
test eax, eax
setne cl
mov dword [esi + 8], ecx
push dword [edi + 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi + 0x38], 0
mov al, 1
mov dword [edi + 4], 1
pop edi
pop esi
pop ebp
ret 4

Function at 0x1003ffa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, ecx
mov dword [ebp - 0x18], edx
push edi
mov dword [ebp - 0x20], eax
push dword [esi]
call ebx
push dword [esi + 4]
mov dword [ebp - 0x1c], eax
call ebx
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x14]
xor esi, esi
sub edi, eax
nop dword [eax]
lea eax, [edi + esi*4]
push dword [ebp + eax - 0x14]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + esi*4 - 0x14], eax
inc esi
cmp esi, 4
jl 0x1003ffe0
mov edi, dword [ebp - 0x1c]
xor edx, edx
lea esi, [edx + 0x10]
nop
mov ecx, ebx
lea edx, [edx - 0x61c88647]
shl ecx, 4
mov eax, ebx
add ecx, dword [ebp - 0x14]
shr eax, 5
add eax, dword [ebp - 0x10]
xor ecx, eax
lea eax, [edx + ebx]
xor ecx, eax
add edi, ecx
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 8]
shl eax, 4
add eax, dword [ebp - 0xc]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
add ebx, ecx
sub esi, 1
jne 0x10040000
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push edi
call esi
mov edi, dword [ebp - 0x20]
push ebx
mov dword [edi], eax
call esi
mov ecx, dword [ebp - 4]
mov dword [edi + 4], eax
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1008a777
mov esp, ebp
pop ebp
ret
Function at 0x10040070
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, ecx
mov dword [ebp - 0x18], edx
push edi
mov dword [ebp - 0x20], eax
push dword [esi]
call ebx
push dword [esi + 4]
mov edi, eax
call ebx
mov ebx, dword [ebp - 0x18]
xor esi, esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
sub ebx, eax
nop dword [eax]
lea eax, [ebx + esi*4]
push dword [ebp + eax - 0x14]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + esi*4 - 0x14], eax
inc esi
cmp esi, 4
jl 0x100400b0
mov ebx, dword [ebp - 0x1c]
mov edx, 0xe3779b90
mov esi, 0x10
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 8]
shl eax, 4
add eax, dword [ebp - 0xc]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
sub ebx, ecx
mov ecx, ebx
mov eax, ebx
shl ecx, 4
add ecx, dword [ebp - 0x14]
shr eax, 5
add eax, dword [ebp - 0x10]
xor ecx, eax
lea eax, [edx + ebx]
xor ecx, eax
lea edx, [edx + 0x61c88647]
sub edi, ecx
sub esi, 1
jne 0x100400d4
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push edi
call esi
mov edi, dword [ebp - 0x20]
push ebx
mov dword [edi], eax
call esi
mov ecx, dword [ebp - 4]
mov dword [edi + 4], eax
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1008a777
mov esp, ebp
pop ebp
ret

Function at 0x10040880
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x100408cf
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x10000
push eax
push 0x1002
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10040ab0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, ecx
call fcn.10040a90
mov ecx, esi
call fcn.10040c00
test al, al
je 0x10040b38
call fcn.10040880
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x10040b2b
mov ecx, eax
call fcn.10040850
push dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.10040830
add esp, 4
mov eax, ecx
push 0x10
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x10040b1a
cmp eax, 0xffffffff
jne 0x10040b2b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10040b2b
push 1
mov ecx, esi
call fcn.10040c20
test al, al
je 0x10040b2b
mov byte [esi + 4], 1
cmp byte [esi + 4], 0
jne 0x10040b38
mov ecx, esi
call fcn.10040a90
mov ecx, dword [ebp - 8]
mov al, byte [esi + 4]
xor ecx, ebp
pop esi
call fcn.1008a777
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10040c20
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi], 0xffffffff
je 0x10040cd9
mov bl, byte [ebp + 8]
imul esi, dword [edi + 0xc], 0x3e8
test bl, bl
jne 0x10040c51
add esi, esi
test esi, esi
jle 0x10040cd9
mov edx, dword [sym.imp.WS2_32.dll_select]
nop
mov ecx, edi
call fcn.10040c00
test al, al
je 0x10040cd9
mov eax, dword [edi]
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x218], eax
inc eax
mov dword [ebp - 0x114], 1
mov dword [ebp - 0x21c], 1
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0xc350
push ecx
lea ecx, [ebp - 0x114]
test bl, bl
je 0x10040cbf
push ecx
push 0
jmp 0x10040cc2
push 0
push ecx
push eax
call edx
test eax, eax
jg 0x10040cee
mov edx, dword [sym.imp.WS2_32.dll_select]
sub esi, 0xc350
test esi, esi
jg 0x10040c60
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1008a777
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x114]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
mov ecx, dword [ebp - 8]
neg eax
pop edi
sbb eax, eax
xor ecx, ebp
pop esi
neg eax
pop ebx
call fcn.1008a777
mov esp, ebp
pop ebp
ret 4
Function at 0x10042560
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [esi + 0x14], 0x10
jb 0x10042581
mov ecx, dword [esi]
jmp 0x10042583
mov ecx, esi
call fcn.100424d0
test eax, eax
je 0x10042621
mov ecx, dword [eax + 0xc]
cmp dword [ecx], 0
je 0x10042621
mov dword [edi + 0x468], 0
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.10045b80
push eax
push ecx
push esi
lea ecx, [edi + 0x2c]
call fcn.100433b0
add esp, 4
mov ecx, eax
call fcn.100433e0
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x20]
call fcn.100408e0
mov eax, dword [ebp - 0xc]
cmp eax, 0x10
jb 0x10042663
mov ecx, dword [ebp - 0x20]
inc eax
cmp eax, 0x1000
jb 0x10042616
test cl, 0x1f
jne 0x10042678
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x1004267d
sub ecx, eax
cmp ecx, 4
jb 0x10042682
cmp ecx, 0x23
ja 0x10042687
mov ecx, eax
push ecx
call fcn.1008a772
add esp, 4
jmp 0x10042663
inc dword [edi + 0x468]
mov dword [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x38]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.10045ba0
push eax
push ecx
push esi
lea ecx, [edi + 0x2c]
call fcn.100433b0
add esp, 4
mov ecx, eax
call fcn.100433e0
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x24]
xor ecx, ebp
pop edi
pop esi
call fcn.1008a777
mov esp, ebp
pop ebp
ret 4
call fcn.100906d1
call fcn.100906d1
call fcn.100906d1
call fcn.100906d1
int3
Function at 0x10043960
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
lea ecx, [ebp - 4]
push ecx
push 0
mov dword [esi + 8], esi
lea eax, [esi + 8]
mov byte [esi + 0x18], 0
push eax
push 0x100443a0
push 0
push 0
mov dword [esi + 0xc], 0
call fcn.10096108
xor ecx, ecx
add esp, 0x18
cmp eax, 0xffffffff
cmove eax, ecx
mov dword [esi + 4], eax
test eax, eax
jne 0x100439ac
mov byte [esi + 0x18], 1
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4