joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4863c5
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x6a439e
call fcn.006426c4
sub esp, 0x218
and dword [ebp - 4], 0
and dword [ebp - 0x1c], 0
push ebx
push esi
push edi
mov ebx, 0x104
mov edi, ecx
push 0x208
mov dword [ebp - 0x14], ebx
call fcn.00642a25
pop ecx
mov esi, eax
mov dword [ebp - 0x10], ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea eax, [ebp - 0x10]
push eax
push esi
push 0
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x224]
push eax
push dword [ebp + 0xc]
push dword [edi]
call ebx
mov dword [ebp - 0x18], eax
cmp eax, 0xea
jne 0x486468
push esi
call fcn.006426f2
mov eax, dword [ebp - 0x10]
xor ecx, ecx
inc eax
push 2
pop edx
mov dword [ebp - 0x10], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00642a25
pop ecx
pop ecx
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x224]
push eax
push dword [ebp + 0xc]
push dword [edi]
call ebx
mov dword [ebp - 0x18], eax
mov edi, dword [ebp + 8]
mov ecx, edi
push 0x6c4198
call fcn.00429d77
push 0x6c4198
lea ecx, [edi + 0x18]
mov dword [ebp - 4], 1
call fcn.00429d77
and dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 1
jne 0x4864cf
lea eax, [ebp - 0x224]
push eax
call fcn.00428864
pop ecx
push eax
lea eax, [ebp - 0x224]
mov ecx, edi
push eax
call fcn.00439135
cmp dword [ebp - 0x10], 0
je 0x4864cf
push esi
call fcn.00428864
pop ecx
push eax
push esi
lea ecx, [edi + 0x18]
call fcn.00439135
push esi
call fcn.006426f2
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x4865f5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebp - 4], eax
xor esi, esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
lea eax, [ebp + 0x14]
push eax
push esi
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov eax, dword [ebp + 0x10]
jne 0x486626
cmp dword [ebp + 0x14], eax
jne 0x486626
inc esi
cmp eax, 1
jne 0x486636
xor eax, eax
cmp dword [ebp + 0x14], 2
sete al
or esi, eax
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x486642
mov eax, dword [ebp - 4]
mov dword [ecx], eax
test esi, esi
pop esi
setne al
mov esp, ebp
pop ebp
ret 0x14

Function at 0x486b39
Capabilities:
Set registry value

Disassembly:
cmp byte [0x7b4ee6], 0
je 0x486b46
xor al, al
jmp 0x486b82
push esi
push 4
lea eax, [esp + 0x10]
push eax
push 4
push 0
push dword [esp + 0x18]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x486b7a
push esi
push dword [esp + 0x10]
push dword [esp + 0x10]
push str.RegKey:_Could_not_write_DWORD_valuename__s_value__d__Error__d_n
call fcn.0047d5f0
add esp, 0x10
xor eax, eax
test esi, esi
pop esi
sete al
ret 8
Function at 0x486b85
Capabilities:
Set registry value

Disassembly:
cmp byte [0x7b4ee6], 0
je 0x486b93
or eax, 0xffffffff
jmp 0x486bad
push dword [esp + 0x10]
push dword [esp + 0xc]
push dword [esp + 0x14]
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 0x10

Function at 0x488bfc
Capabilities:
Check mutex on windows

Disassembly:
mov eax, 0x6a482e
call fcn.006426c4
push ecx
cmp byte [0x7b518d], 0
je 0x488c17
mov al, 1
jmp 0x488ca3
push esi
push edi
xor edi, edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp byte [0x7b518d], 0
jne 0x488c9f
push 0x10
mov dword [0x7b5188], esi
call fcn.00642424
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
test eax, eax
je 0x488c59
mov ecx, eax
call fcn.00488589
jmp 0x488c5b
mov eax, edi
or dword [ebp - 4], 0xffffffff
cmp dword [0x7b5180], 0
mov dword [0x7b517c], eax
je 0x488c71
xor al, al
jmp 0x488ca1
add eax, 8
push eax
push edi
push edi
push 0x4885d4
push edi
push edi
push str.BenchThread::BenchThreadRunner
call fcn.0046b922
mov ecx, dword [0x7b517c]
push esi
mov byte [0x7b518d], 1
mov dword [ecx + 0xc], eax
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x48df8b
Capabilities:
Create directory

Disassembly:
mov eax, 0x6a4c0d
call fcn.006426c4
sub esp, 0x20
push ebx
lea eax, [ebp - 0x2c]
push eax
call fcn.00484b1b
mov eax, dword [ebp - 0x2c]
xor ebx, ebx
cmp dword [ebp - 0x18], 8
mov dword [ebp - 4], ebx
jae 0x48dfb3
lea eax, [ebp - 0x2c]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
sub esp, 0x18
lea eax, [ebp - 0x2c]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00427fbe
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
mov ecx, 0x7b5c3c
call fcn.0042a98d
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00489b2e
push 0x7b58e4
call fcn.0048f91f
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004285f6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x495a92
Capabilities:
Get disk information

Disassembly:
mov eax, 0x6a5130
call fcn.006426c4
sub esp, 0x174
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
add esi, 4
xor ebx, ebx
mov edi, esi
mov dword [ebp - 0x10], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x495ac2
mov byte [eax], bl
push str.UuidCreateSequential
push str.rpcrt4.dll
call fcn.0046462c
mov ecx, eax
or eax, 0xffffffff
test ecx, ecx
je 0x495af3
lea eax, [ebp - 0x24]
push eax
call ecx
test eax, eax
jne 0x495af3
mov eax, dword [ebp - 0x1a]
mov dword [esi], eax
mov ax, word [ebp - 0x16]
mov word [esi + 4], ax
jmp 0x495b00
push eax
push str.Cant_create_UUID____d
call fcn.0047d579
pop ecx
pop ecx
mov esi, dword [ebp + 8]
lea eax, [ebp + 0xc]
push ebx
push ebx
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [esi + 0xa]
push eax
push ebx
push ebx
push 0x6d8a9c
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationA]
lea ecx, [ebp - 0x180]
call fcn.0046ac9f
push 0xe
push esi
lea ecx, [ebp - 0x180]
mov dword [ebp - 4], ebx
call fcn.0046ac3b
lea ecx, [ebp - 0x10c]
mov esi, eax
call fcn.0046ac9f
push 0xa
push esi
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], 1
call fcn.0046ac3b
mov edi, dword [ebp - 0x10]
cmp edi, eax
je 0x495b6a
push 5
pop ecx
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x10]
lea ecx, [ebp - 0x98]
call fcn.0046ac9f
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x98]
push 4
push eax
mov byte [ebp - 4], 2
call fcn.0046ac3b
mov ecx, dword [ebx + eax]
add dword [edi + ebx], ecx
add ebx, 4
cmp ebx, 0x14
jne 0x495b8a
lea ecx, [ebp - 0x98]
call fcn.0040e6e4
lea ecx, [ebp - 0x10c]
call fcn.0040e6e4
lea ecx, [ebp - 0x180]
call fcn.0040e6e4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x49c497
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, ecx
push 0x6c078965
push dword [esp + 0xc]
or dword [esi + 0x1384], 0xffffffff
call fcn.004bd09c
mov eax, esi
pop esi
ret 4
Function at 0x49cbdc
Capabilities:
Get process heap force flags

Disassembly:
mov eax, 0x6a5465
call fcn.006426c4
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push esi
mov dword [ebp - 0x10], edi
call fcn.00427fbe
and dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.00427fbe
mov eax, dword [esi + 0x30]
lea ecx, [edi + 0x5c]
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0x34]
mov dword [edi + 0x34], eax
mov eax, dword [esi + 0x38]
mov dword [edi + 0x38], eax
mov eax, dword [esi + 0x3c]
mov dword [edi + 0x3c], eax
mov eax, dword [esi + 0x40]
mov dword [edi + 0x40], eax
mov eax, dword [esi + 0x44]
mov dword [edi + 0x44], eax
mov eax, dword [esi + 0x48]
mov dword [edi + 0x48], eax
mov eax, dword [esi + 0x4c]
mov dword [edi + 0x4c], eax
mov eax, dword [esi + 0x50]
mov dword [edi + 0x50], eax
mov eax, dword [esi + 0x54]
mov dword [edi + 0x54], eax
mov al, byte [esi + 0x58]
mov byte [edi + 0x58], al
mov al, byte [esi + 0x59]
mov byte [edi + 0x59], al
mov al, byte [esi + 0x5a]
mov byte [edi + 0x5a], al
lea eax, [esi + 0x5c]
push eax
mov byte [ebp - 4], 1
call fcn.00427fbe
mov eax, dword [esi + 0x74]
mov dword [edi + 0x74], eax
mov eax, dword [esi + 0x78]
mov dword [edi + 0x78], eax
mov eax, dword [esi + 0x7c]
mov dword [edi + 0x7c], eax
mov eax, dword [esi + 0x80]
mov dword [edi + 0x80], eax
mov eax, dword [esi + 0x84]
mov dword [edi + 0x84], eax
mov al, byte [edi + 0x88]
xor al, byte [esi + 0x88]
and al, 1
mov byte [ebp - 4], 2
xor byte [edi + 0x88], al
mov al, byte [edi + 0x88]
mov cl, byte [esi + 0x88]
xor cl, al
and cl, 2
xor cl, al
mov byte [edi + 0x88], cl
mov al, byte [esi + 0x88]
xor al, cl
and al, 4
xor al, cl
mov byte [edi + 0x88], al
mov cl, byte [esi + 0x88]
xor cl, al
and cl, 8
xor cl, al
mov byte [edi + 0x88], cl
mov al, byte [esi + 0x88]
xor al, cl
and al, 0x10
xor al, cl
mov byte [edi + 0x88], al
lea ecx, [edi + 0xa0]
mov eax, dword [esi + 0x8c]
mov dword [edi + 0x8c], eax
mov eax, dword [esi + 0x90]
mov dword [edi + 0x90], eax
mov eax, dword [esi + 0x94]
mov dword [edi + 0x94], eax
mov eax, dword [esi + 0x98]
mov dword [edi + 0x98], eax
mov eax, dword [esi + 0x9c]
mov dword [edi + 0x9c], eax
lea eax, [esi + 0xa0]
push eax
call fcn.0040f8db
lea eax, [esi + 0xb8]
mov byte [ebp - 4], 3
push eax
lea ecx, [edi + 0xb8]
call fcn.0040f8db
mov al, byte [esi + 0xd0]
mov ecx, dword [ebp - 0xc]
mov byte [edi + 0xd0], al
mov eax, dword [esi + 0xd4]
mov dword [edi + 0xd4], eax
mov eax, dword [esi + 0xd8]
mov dword [edi + 0xd8], eax
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4b7e38
Capabilities:
Copy file
Delete file
Move file

Disassembly:
sub esp, 0x28
push esi
push 0x80
push 5
push dword [esp + 0x38]
mov esi, ecx
call fcn.00461def
mov dword [esp + 8], eax
cmp eax, 0xffffffff
jne 0x4b7e5e
xor al, al
jmp 0x4b7f88
lea ecx, [esp + 0xc]
push ecx
push eax
call fcn.00461db5
test eax, eax
je 0x4b7e79
lea eax, [esp + 8]
push eax
call fcn.00461d7f
jmp 0x4b7e57
push ebp
push edi
push dword [esp + 0x18]
mov ecx, esi
push dword [esp + 0x18]
call fcn.004b73ef
mov eax, dword [esi + 0x238]
xor ebp, ebp
sub eax, dword [esi + 0x234]
mov edi, ebp
sar eax, 3
test eax, eax
je 0x4b7ebd
push edi
mov ecx, esi
call fcn.004b460a
mov eax, dword [esi + 0x238]
inc edi
sub eax, dword [esi + 0x234]
sar eax, 3
cmp edi, eax
jb 0x4b7ea1
mov ecx, dword [esi + 0x73c]
mov eax, dword [esi + 0x740]
add ecx, 0x3fff
adc eax, ebp
shrd ecx, eax, 0xe
shr eax, 0xe
lea eax, [esp + 0x10]
mov dword [esi + 0xf0], ecx
push eax
call fcn.00461d7f
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.004a8d64
cmp dword [eax + 0x14], 8
jb 0x4b7efc
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push ebp
push 1
lea ecx, [esp + 0x28]
call fcn.004285f6
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.004a8d64
cmp byte [esp + 0x40], 0
je 0x4b7f38
cmp dword [eax + 0x14], 8
jb 0x4b7f2b
mov eax, dword [eax]
push eax
push dword [esp + 0x40]
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
jmp 0x4b7f4d
cmp dword [eax + 0x14], 8
jb 0x4b7f40
mov eax, dword [eax]
push 1
push eax
push dword [esp + 0x44]
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
mov ebx, eax
lea ecx, [esp + 0x20]
push ebp
neg ebx
push 1
sbb bl, bl
call fcn.004285f6
add bl, 1
je 0x4b7f68
xor al, al
jmp 0x4b7f85
mov ecx, esi
mov byte [esp + 0x13], 1
call fcn.004a78a5
lea ecx, [esp + 0x13]
push dword [eax + 0x20]
push ecx
mov ecx, eax
call fcn.00507695
mov al, 1
pop ebx
pop edi
pop ebp
pop esi
add esp, 0x28
ret 8

Function at 0x4ba592
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, 0xe3
push edi
mov ebp, SysReAllocString
lea edi, [esi + 0x9c4]
mov ecx, dword [edi + 4]
xor ecx, dword [edi]
and ecx, ebp
xor ecx, dword [edi]
lea edi, [edi + 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub ebx, 1
jne 0x4ba5a8
lea edi, [esi + 0xd50]
mov ebx, 0x18c
mov ecx, dword [edi + 4]
xor ecx, dword [edi]
and ecx, ebp
xor ecx, dword [edi]
lea edi, [edi + 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd50]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub ebx, 1
jne 0x4ba5e4
mov ecx, dword [esi + 0x1380]
xor ecx, dword [esi + 4]
and ecx, ebp
xor ecx, dword [esi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
and dword [esi], ebx
pop esi
pop ebp
pop ebx
ret
Function at 0x4ba64d
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
lea edx, [ecx + 8]
mov esi, 0x270
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x4ba656
pop esi
ret

Function at 0x4bd09c
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push ebx
push esi
xor esi, esi
mov dword [ecx + 4], edx
push edi
inc esi
lea edi, [ecx + 8]
mov ebx, 0x270
mov eax, edx
shr eax, 0x1e
xor edx, eax
imul edx, dword [esp + 0x14]
add edx, esi
inc esi
mov dword [edi], edx
lea edi, [edi + 4]
cmp esi, ebx
jl 0x4bd0b1
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
ret 8

Function at 0x4bdebc
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
cmp byte [0x7b4ee6], 0
je 0x4bdf62
push dword [ebp + 8]
lea eax, [ebp - 0x30]
push 0x6db038
push eax
call fcn.00465d7f
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4bdeeb
mov eax, dword [eax]
push esi
push eax
call fcn.00672f20
pop ecx
xor esi, esi
lea ecx, [ebp - 0x30]
push esi
push 1
call fcn.004285f6
push dword [ebp + 8]
lea eax, [ebp - 0x30]
push str.TEMP_s
push eax
call fcn.00465d7f
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4bdf1c
mov eax, dword [eax]
push eax
call fcn.00672f20
pop ecx
push esi
push 1
lea ecx, [ebp - 0x30]
call fcn.004285f6
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push 0x6db058
push eax
call fcn.00465d7f
mov eax, dword [ebp - 0x18]
add esp, 0xc
cmp dword [ebp - 4], 8
jae 0x4bdf4e
lea eax, [ebp - 0x18]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
push esi
push 1
lea ecx, [ebp - 0x18]
call fcn.004285f6
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4c6cc7
Capabilities:
Create thread

Disassembly:
push ecx
push esi
xor esi, esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
lea ecx, [esp + 4]
mov dword [0x7b793c], eax
push ecx
push esi
push eax
push 0x4c67ef
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
pop ecx
ret
Function at 0x4c76c5
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x6a74c8
call fcn.006426c4
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 8], 0x6cb5bc
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 1
mov dword [esi], 0x6dc1d8
mov dword [esi + 8], 0x6dc1f4
mov dword [esi + 0xc], ebx
call fcn.004cc3c3
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov byte [esi + 0x54], bl
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], 0xf
mov byte [esi + 0x58], bl
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4cd822
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x6a7ae7
call fcn.006426c4
sub esp, 0x2c
push ebx
push edi
xor edx, edx
mov byte [ebp - 0x38], 1
mov dword [ebp - 4], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 8]
mov bl, dl
push 0x10
pop edi
mov byte [ebp - 4], 1
cmp dword [ebp + 0x1c], edi
jae 0x4cd863
lea eax, [ebp + 8]
push edx
lea ecx, [ebp - 0x18]
push ecx
push edx
push edx
push edi
push eax
call sub.DNSAPI.dll_DnsQuery_UTF8
test eax, eax
jne 0x4cd8e3
push esi
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x4cd8d6
cmp word [esi + 8], di
jne 0x4cd8d0
xor edi, edi
test bl, bl
jne 0x4cd8cd
lea eax, [esi + 0x1c]
mov dword [ebp - 0x14], eax
cmp edi, dword [esi + 0x18]
jae 0x4cd8cd
mov edx, dword [eax]
push edx
push str.DEBUG:_Processing_TXT:__s_n
call fcn.0040e6e4
mov ecx, edx
add esp, 8
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4cd8a9
lea eax, [ebp - 0x38]
sub ecx, ebx
push eax
push ecx
push edx
call fcn.004dae40
mov bl, al
inc edi
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
test bl, bl
je 0x4cd88f
push 0x10
pop edi
mov esi, dword [esi]
test bl, bl
je 0x4cd879
push 1
push dword [ebp - 0x18]
call sub.DNSAPI.dll_DnsFree
pop esi
jmp 0x4cd8ed
cmp eax, 0x251d
je 0x4cd914
mov dword [ebp - 0x1c], eax
test bl, bl
je 0x4cd914
mov byte [ebp - 0xd], 1
call fcn.00479151
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp + 8]
push eax
call fcn.004dc35f
mov byte [ebp - 4], 3
call fcn.00479192
lea ecx, [ebp - 0x28]
call fcn.004dc90c
lea ecx, [ebp - 0x34]
call fcn.004dc90c
push 0
push 1
lea ecx, [ebp + 8]
call fcn.0040f95f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4cebc9
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
xor edi, edi
push 0x2cc
mov dword [ebp - 8], edi
call fcn.00460621
mov ebx, eax
push 0x6dbc68
push 0x6c4060
mov dword [ebp - 4], ebx
mov dword [ebx], 0x10007
call fcn.0046462c
test eax, eax
je 0x4cec41
push esi
push dword [ebp + 8]
push edi
push 0x1fffff
call eax
mov esi, eax
test esi, esi
je 0x4cec40
push esi
call dword [sym.imp.KERNEL32.DLL_SuspendThread]
cmp eax, 0xffffffff
je 0x4cec32
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_GetThreadContext]
test eax, eax
je 0x4cec32
lea eax, [ebp - 8]
push eax
call fcn.004ce867
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4d2dee
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x6a7f98
call fcn.006426c4
push ecx
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
push edi
mov dword [esi], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0x94], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa0], ebx
and byte [esi + 0xc0], 0xf8
lea edi, [esi + 0x64]
push 0xa
pop ecx
xor eax, eax
mov byte [ebp - 4], 1
push 0x58
rep stosd dword es:[edi], eax
lea eax, [esi + 4]
push ebx
push eax
call fcn.0065d010
push 4
mov dword [esi + 0xac], 0x186a0
call fcn.00642424
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 2
test edi, edi
je 0x4d2e96
push 0x4d2f2d
push 0x4d2f40
push 0xf
push 0x20
push 0x18
push 0x4f
call fcn.0053e002
mov dword [edi], eax
jmp 0x4d2e98
mov edi, ebx
mov ecx, dword [ebp - 0xc]
mov eax, 0x100000
mov dword [esi + 0xa8], edi
mov dword [esi + 0x28], 0x53e713
mov dword [esi + 0x2c], 0x53e733
mov dword [esi + 0x30], 0x53e6ff
mov dword [esi + 0x34], 0x53e69d
mov dword [esi + 0x38], 0x53e70a
mov dword [esi + 0xb0], eax
mov dword [esi + 0xb4], eax
mov eax, esi
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xbc], ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4e1020
Capabilities:
Set socket configuration

Disassembly:
push ebx
mov ebx, ecx
push ebp
mov ebp, dword [esp + 0xc]
mov ecx, ebp
push edi
lea edi, [ebx + 0xac]
push edi
call fcn.004cc3f7
xor edx, edx
test al, al
je 0x4e1047
cmp word [ebp + 0x10], dx
jne 0x4e114c
cmp dword [ebx + 4], 0xffffffff
push esi
push 5
pop ecx
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
je 0x4e105f
push edx
mov ecx, ebx
call fcn.00479701
xor edx, edx
push edx
push edx
push 2
lea eax, [ebx + 0xac]
push eax
call fcn.004669ff
movzx eax, al
mov ecx, ebx
neg eax
sbb eax, eax
and eax, 0xffffffeb
add eax, 0x17
push eax
call fcn.0047ad2c
cmp dword [ebx + 4], 0xffffffff
je 0x4e114b
push ebp
mov ecx, ebx
call fcn.004792b1
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
jne 0x4e10bd
call edi
mov esi, eax
push esi
call fcn.00477a1c
push eax
push esi
push ebp
push str.UDP_port_bind_failed__A:___d___s
call fcn.0047d5f0
add esp, 0x10
jmp 0x4e10d3
xor eax, eax
cmp word [ebp + 0x10], ax
jne 0x4e10d3
mov ecx, ebx
call fcn.0047aaa5
mov word [ebx + 0xbc], ax
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [esp + 0x14]
push 4
push eax
push 0x1002
push 0xffff
push dword [ebx + 4]
mov ebp, 0x200000
mov dword [esp + 0x28], ebp
call esi
cmp eax, 0xffffffff
jne 0x4e1111
call edi
push eax
push dword [esp + 0x18]
push str.UDP_setsockopt_SO_RCVBUF___d__failed:__d
call fcn.0047d579
add esp, 0xc
push 4
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ebp
push eax
push 0x1001
push 0xffff
push dword [ebx + 4]
call esi
cmp eax, 0xffffffff
jne 0x4e1144
call edi
push eax
push dword [esp + 0x18]
push str.UDP_setsockopt_SO_SNDBUF___d__failed:__d
call fcn.0047d579
add esp, 0xc
mov ecx, ebx
call fcn.0047a49f
pop esi
pop edi
pop ebp
pop ebx
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x80
push eax
lea eax, [ebp - 0x98]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4e154a
push esi
push edi
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x18]
call fcn.004cc309
mov edi, dword [ebp + 0x18]
lea esi, [ebp - 0x18]
push 5
pop ecx
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x14