joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d730
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push ebp
push esi
lea eax, [esp + 0x10]
push edi
xor edi, edi
push eax
push 0xf003f
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, edi
jne 0x40d84a
lea ecx, [esp + 0x10]
call fcn.00402460
mov ecx, dword [esp + 0x14]
cmp eax, edi
mov dword [esp + 0x10], ecx
jne 0x40d84a
push str.jfproc
push ecx
call esi
mov ecx, dword [esp + 0x10]
push str.funshion
push ecx
call esi
mov edx, dword [esp + 0x10]
push str.kugou
push edx
call esi
mov eax, dword [esp + 0x10]
push str.UUSEE
push eax
call esi
mov ecx, dword [esp + 0x10]
push str.mecox32
push ecx
call esi
mov edx, dword [esp + 0x10]
push 0x434668
push edx
call esi
mov eax, dword [esp + 0x10]
push str.FlashGet_3
push eax
call esi
mov ecx, dword [esp + 0x10]
push str.SrLoader
push ecx
call esi
mov edx, dword [esp + 0x10]
push str.LeyuBoxData
push edx
call esi
mov eax, dword [esp + 0x10]
push str.KingSoft_PowerWord_PE
push eax
call esi
mov ecx, dword [esp + 0x10]
push str.YoubakMSN
push ecx
call esi
mov edx, dword [esp + 0x10]
push str.UUSeeMediaCenter
push edx
call esi
mov eax, dword [esp + 0x10]
push str.IMJPMIG8.1
push eax
call esi
mov ecx, dword [esp + 0x10]
push str.PHIME2002ASync
push ecx
call esi
mov edx, dword [esp + 0x10]
push str.PPAP
push edx
call esi
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x40d84a
push eax
call ebp
mov dword [esp + 0x10], edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], edi
push eax
push 0xf003f
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call ebx
cmp eax, edi
jne 0x40d949
lea ecx, [esp + 0x10]
call fcn.00402460
mov ecx, dword [esp + 0x14]
cmp eax, edi
mov dword [esp + 0x10], ecx
jne 0x40d94d
push str.jfproc
push ecx
call esi
mov ecx, dword [esp + 0x10]
push str.funshion
push ecx
call esi
mov edx, dword [esp + 0x10]
push str.kugou
push edx
call esi
mov eax, dword [esp + 0x10]
push str.UUSEE
push eax
call esi
mov ecx, dword [esp + 0x10]
push str.mecox32
push ecx
call esi
mov edx, dword [esp + 0x10]
push 0x434668
push edx
call esi
mov eax, dword [esp + 0x10]
push str.FlashGet_3
push eax
call esi
mov ecx, dword [esp + 0x10]
push str.SrLoader
push ecx
call esi
mov edx, dword [esp + 0x10]
push str.LeyuBoxData
push edx
call esi
mov eax, dword [esp + 0x10]
push str.KingSoft_PowerWord_PE
push eax
call esi
mov ecx, dword [esp + 0x10]
push str.YoubakMSN
push ecx
call esi
mov edx, dword [esp + 0x10]
push str.UUSeeMediaCenter
push edx
call esi
mov eax, dword [esp + 0x10]
push str.IMJPMIG8.1
push eax
call esi
mov ecx, dword [esp + 0x10]
push str.PHIME2002ASync
push ecx
call esi
mov edx, dword [esp + 0x10]
push str.PPAP
push edx
call esi
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x40d954
push eax
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x10]
cmp ecx, edi
je 0x40d954
push ecx
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x40d960
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x42900b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push edi
xor eax, eax
mov ecx, 0x49
lea edi, [esp + 0x10]
mov dword [esp + 0xc], 0x128
push eax
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
or edi, 0xffffffff
cmp ebx, edi
je 0x40da87
lea eax, [esp + 0xc]
push eax
push ebx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40da80
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x14]
call fcn.0041efc1
lea ecx, [esp + 0x10]
mov dword [esp + 0x144], 0
call fcn.0041f42c
push str.jlingquick.exe
lea ecx, [esp + 0x14]
call fcn.0041e178
cmp eax, edi
jne 0x40da44
push str.kkjie.exe
lea ecx, [esp + 0x14]
call fcn.0041e178
cmp eax, edi
jne 0x40da44
push str.jlingquick.dll
lea ecx, [esp + 0x14]
call fcn.0041e178
cmp eax, edi
jne 0x40da44
push str.kkjie_safe.exe
lea ecx, [esp + 0x14]
call fcn.0041e178
cmp eax, edi
jne 0x40da44
push str.jlinginit.dll
lea ecx, [esp + 0x14]
call fcn.0041e178
cmp eax, edi
je 0x40da5b
mov edx, dword [esp + 0x1c]
push edx
push 0
push 0x1f0fff
call esi
test eax, eax
je 0x40da5b
push 0
push eax
call ebp
lea ecx, [esp + 0x10]
mov dword [esp + 0x144], edi
call fcn.0041ef53
lea eax, [esp + 0x14]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40d9c8
pop esi
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x134]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x138
ret
Function at 0x40daa0
Capabilities:
Copy file
Delete file

Disassembly:
sub esp, 0x228
push ebx
push ebp
push esi
push edi
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x10]
mov ebx, dword [esp + 0x23c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [esp + 0x30]
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, ebp
lea ebp, [esp + 0x134]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0x10], edx
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebx
mov ebx, dword [esp + 0x240]
mov dword [esp + 0x2a], edx
mov byte [esp + ecx + 0x30], dl
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebx
mov dword [esp + 0x26], edx
mov dword [esp + 0x14], 2
mov byte [esp + ecx + 0x31], dl
lea ecx, [esp + 0x30]
mov dword [esp + 0x18], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov word [esp + 0x20], 0x214
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebx
mov byte [esp + ecx + 0x134], dl
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + ecx + 0x135], dl
lea edx, [esp + 0x10]
lea ecx, [esp + 0x134]
push edx
mov dword [esp + 0x20], ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x228
ret 8

Function at 0x4253d0
Capabilities:
Create http request

Disassembly:
mov eax, 0x429318
call fcn.00410054
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x425408
call fcn.00427169
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x42542d
push eax
push dword [esi + 4]
call fcn.00426010
jmp 0x425439
push esi
push eax
mov ecx, 0x438438
call fcn.0042544a
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x4256fb
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x429377
call fcn.00410054
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0041fcf2
mov eax, dword [ebp + 0x18]
lea ebx, [esi + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [0x4346e4]
xor edi, edi
mov dword [ebx], eax
mov dword [ebp - 4], edi
push dword [ebp + 0x10]
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
mov dword [esi], vtable.CInternetFile.0
call fcn.0041f0dc
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.0041f0dc
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0xf58058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00f581a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xf5807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xf5806a
add dl, dl
jne 0xf58089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xf580dc
xor eax, eax
add dl, dl
jne 0xf58096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xf5817d
add dl, dl
jne 0xf580a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf580b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf580bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf580c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xf580d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xf58075
mov eax, 1
add dl, dl
jne 0xf580ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf580f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xf580e1
sub eax, ebx
mov ebx, 1
jne 0xf58128
mov ecx, 1
add dl, dl
jne 0xf5810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xf58119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xf58105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xf58075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xf5813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xf5814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xf58136
cmp eax, 0x7d00
jae 0xf5816d
cmp eax, 0x500
jb 0xf58168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xf58075
cmp eax, 0x7f
ja 0xf58170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xf58075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xf5819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xf58075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x10001f50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
je 0x10001f62
jmp 0x10001f8c
push 1
push str._MINTY_AI_:_SetupEverything__thread_creation_
call dword [0x1007c7d0]
add esp, 8
push 0
push 0
push 0
push 0x10001ef0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x1007c7c8], eax
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1000e300
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.100061a0
add esp, 4
push eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.100137d0
add esp, 8
push eax
lea ecx, [ebp - 8]
call fcn.10003a10
lea ecx, [ebp - 0xc]
call fcn.1001b290
mov dword [ebp - 0x10], 0x1000b720
mov edx, dword [ebp - 4]
add edx, 4
push edx
push 0
lea ecx, [ebp - 8]
call fcn.1000b110
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0
call fcn.1004afb5
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0
je 0x1000e373
lea ecx, [ebp - 8]
call fcn.10039620
jmp 0x1000e384
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0
push 6
call fcn.1003e571
lea ecx, [ebp - 8]
call fcn.1001b290
mov esp, ebp
pop ebp
ret 4
Function at 0x10019440
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x10079100]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x198], ecx
mov eax, dword [ebp - 0x198]
mov byte [eax], 0
lea ecx, [ebp - 0x194]
push ecx
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1001947e
mov edx, dword [ebp - 0x198]
mov byte [edx], 1
mov eax, dword [ebp - 0x198]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10040910
mov esp, ebp
pop ebp
ret

Function at 0x1001d500
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
push 0
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [edx]
add eax, 1
push eax
call dword [sym.imp.WS2_32.dll_select]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov esp, ebp
pop ebp
ret

Function at 0x1001e010
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [edx]
add eax, 1
push eax
call dword [sym.imp.WS2_32.dll_select]
mov esp, ebp
pop ebp
ret

Function at 0x1001e040
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov esp, ebp
pop ebp
ret
Function at 0x1001f760
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x270
jne 0x1001f77e
mov ecx, dword [ebp - 8]
call fcn.10029a90
jmp 0x1001f791
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0x4e0
jb 0x1001f791
mov ecx, dword [ebp - 8]
call fcn.100298f0
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*4 + 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp - 8]
mov dword [edx], ecx
mov eax, dword [ebp - 4]
shr eax, 0xb
mov ecx, dword [ebp - 8]
and eax, dword [ecx + 0x1384]
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
shl edx, 7
and edx, 0x9d2c5680
xor edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
shl eax, 0xf
and eax, 0xefc60000
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shr ecx, 0x12
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x100298f0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], ecx
mov dword [ebp - 0x28], 0x26f
mov dword [ebp - 0x2c], 0xe3
mov dword [ebp - 8], 0
jmp 0x10029919
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xe3
jae 0x10029985
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
and edx, 1
je 0x1002995d
mov dword [ebp - 0x14], 0x9908b0df
jmp 0x10029964
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
shr eax, 1
xor eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
xor eax, dword [edx + ecx*4 + 0xff8]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4 + 4], eax
jmp 0x10029910
mov dword [ebp - 0xc], 0xe3
jmp 0x10029997
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x26f
jae 0x10029a03
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
and edx, 1
je 0x100299db
mov dword [ebp - 0x1c], 0x9908b0df
jmp 0x100299e2
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x18]
shr eax, 1
xor eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
xor eax, dword [edx + ecx*4 - 0x388]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4 + 4], eax
jmp 0x1002998e
mov dword [ebp - 0x30], 0x26f
mov eax, 4
imul ecx, eax, 0x4df
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx + 4]
and eax, 0x80000000
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + edx + 4]
and edx, 0x7fffffff
or eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
and eax, 1
je 0x10029a4c
mov dword [ebp - 0x24], 0x9908b0df
jmp 0x10029a53
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x20]
shr ecx, 1
xor ecx, dword [ebp - 0x24]
mov edx, 4
imul eax, edx, 0x18c
mov edx, dword [ebp - 4]
xor ecx, dword [edx + eax + 4]
mov eax, 4
imul edx, eax, 0x26f
mov eax, dword [ebp - 4]
mov dword [eax + edx + 4], ecx
mov ecx, dword [ebp - 4]
mov dword [ecx], 0
mov esp, ebp
pop ebp
ret
Function at 0x10029a90
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0x270
jmp 0x10029aab
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x4e0
jae 0x10029b17
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4 - 0x9bc]
and eax, 0x80000000
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + ecx*4 - 0x9b8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
and edx, 1
je 0x10029aef
mov dword [ebp - 0x10], 0x9908b0df
jmp 0x10029af6
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
shr eax, 1
xor eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
xor eax, dword [edx + ecx*4 - 0x388]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4 + 4], eax
jmp 0x10029aa2
mov esp, ebp
pop ebp
ret

Function at 0x1002d540
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x10079100]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x88], ecx
mov ecx, dword [ebp - 0x88]
add ecx, 0x75
call fcn.1001cd30
movzx eax, al
test eax, eax
je 0x1002d576
or eax, 0xffffffff
jmp 0x1002d67d
mov ecx, dword [ebp - 0x88]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x88]
mov eax, dword [edx + 4]
call eax
movzx ecx, al
test ecx, ecx
jne 0x1002d598
or eax, 0xffffffff
jmp 0x1002d67d
sub esp, 0x28
mov ecx, esp
mov edx, dword [ebp - 0x88]
add edx, 0x240
push edx
call fcn.10017f30
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x88]
call fcn.1002e4c0
push eax
mov ecx, dword [ebp - 0x88]
add ecx, 0x30
call fcn.1001c1e0
mov ecx, dword [ebp - 0x88]
add ecx, 0x30
call fcn.1001cd10
cmp eax, 0xffffffff
jne 0x1002d5f0
or eax, 0xffffffff
jmp 0x1002d67d
cmp dword [ebp + 0xc], 0
jne 0x1002d67a
mov dword [ebp - 0x8c], 0x80
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x84]
push ecx
mov ecx, dword [ebp - 0x88]
add ecx, 0x30
call fcn.1001cd10
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x1002d631
or eax, 0xffffffff
jmp 0x1002d67d
movzx edx, word [ebp - 0x84]
cmp edx, 2
jne 0x1002d652
movzx eax, word [ebp - 0x82]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
jmp 0x1002d67d
movzx ecx, word [ebp - 0x84]
cmp ecx, 0x17
jne 0x1002d673
movzx edx, word [ebp - 0x82]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
jmp 0x1002d67d
or eax, 0xffffffff
jmp 0x1002d67d
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10040910
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100331c0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x10079100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 2
jne 0x100331f6
mov edx, dword [ebp + 8]
movzx eax, word [edx + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
mov edx, dword [ebp + 0x14]
mov dword [edx], ecx
jmp 0x1003321d
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x17
jne 0x10033219
mov edx, dword [ebp + 8]
movzx eax, word [edx + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
mov edx, dword [ebp + 0x14]
mov dword [edx], ecx
jmp 0x1003321d
xor al, al
jmp 0x1003327d
push 0x401
push 0
lea eax, [ebp - 0x408]
push eax
call fcn.100434d0
add esp, 0xc
push 2
push 0
push 0
lea ecx, [ebp - 0x408]
call fcn.1003a6a0
push eax
lea ecx, [ebp - 0x408]
call fcn.100169f0
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
je 0x10033267
xor al, al
jmp 0x1003327d
lea ecx, [ebp - 0x408]
call fcn.100169f0
push eax
mov ecx, dword [ebp + 0x10]
call fcn.1001c330
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10040910
mov esp, ebp
pop ebp
ret

Function at 0x100332c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x10079100]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x88], 0x80
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x84]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x10033317
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x88]
push edx
lea eax, [ebp - 0x84]
push eax
call fcn.100331c0
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10040910
mov esp, ebp
pop ebp
ret