joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x436004]
jne 0x401010
repz ret
jmp fcn.00401460

Function at 0x4082b5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004058a1
and dword [ebp - 4], 0
cmp dword [0x438798], 0
mov ebx, eax
jne 0x408366
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408417
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408417
push eax
call fcn.0040582f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x438798], eax
call esi
push eax
call fcn.0040582f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43879c], eax
call esi
push eax
call fcn.0040582f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4387a0], eax
call esi
push eax
call fcn.0040582f
pop ecx
mov dword [0x4387a8], eax
test eax, eax
je 0x408366
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040582f
pop ecx
mov dword [0x4387a4], eax
mov eax, dword [0x4387a4]
cmp eax, ebx
je 0x4083be
cmp dword [0x4387a8], ebx
je 0x4083be
push eax
call fcn.004058aa
push dword [0x4387a8]
mov esi, eax
call fcn.004058aa
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4083be
test edi, edi
je 0x4083be
call esi
test eax, eax
je 0x4083b5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4083b5
test byte [ebp - 0xc], 1
jne 0x4083be
or dword [ebp + 0x10], 0x200000
jmp 0x4083f7
mov eax, dword [0x43879c]
cmp eax, ebx
je 0x4083f7
push eax
call fcn.004058aa
pop ecx
test eax, eax
je 0x4083f7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4083f7
mov eax, dword [0x4387a0]
cmp eax, ebx
je 0x4083f7
push eax
call fcn.004058aa
pop ecx
test eax, eax
je 0x4083f7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x438798]
call fcn.004058aa
pop ecx
test eax, eax
je 0x408417
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408419
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x431c10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd000]
push edi
or ebp, 0xffffffff
jmp 0x431c32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x431c39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x431c28
mov eax, 1
add ebx, ebx
jne 0x431c4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x431c40
jne 0x431c5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x431c40
xor ecx, ecx
sub eax, 3
jb 0x431c70
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x431ce2
mov ebp, eax
add ebx, ebx
jne 0x431c7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x431c88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x431cac
inc ecx
add ebx, ebx
jne 0x431c98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x431c8d
jne 0x431ca9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x431c8d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x431ccc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x431cbd
jmp 0x431c2e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x431ccc
add edi, ecx
jmp 0x431c2e
pop esi
mov edi, esi
mov ecx, 0x1ef
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x431cea
cmp byte [edi], 0xa
jne 0x431cea
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 0x431cef
lea edi, [esi + 0x2f000]
mov eax, dword [edi]
or eax, eax
je 0x431d5e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x317e4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3185c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x431d1c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x31860]
or eax, eax
je 0x431d58
mov dword [ebx], eax
add ebx, 4
jmp 0x431d39
call dword [esi + 0x31870]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x431d8f
cmp al, 0xef
ja 0x431d82
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x431d64
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x431d71
mov ebp, dword [esi + 0x31864]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x431dc3
sub esp, 0xffffff80
jmp 0x401d76
Function at 0x402b60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x402b89
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402b9f
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402b96
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x402bd2
nop
cmp esi, ecx
jae 0x402b96
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x402bc0
cmp esi, ecx
jae 0x402b96
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4043c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x69cffc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x240]
mov edi, ecx
push eax
push edi
call fcn.005f1d5d
add esp, 8
test eax, eax
jne 0x4043ff
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058f0d5
mov esp, ebp
pop ebp
ret
mov ecx, edi
xor bl, bl
xor esi, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404410
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x4044e7
lea eax, [edi + esi*2]
push 0x5c
push eax
call fcn.005e7ed1
mov esi, eax
add esp, 8
sub esi, edi
sar esi, 1
add esi, 1
jns 0x404454
mov esi, edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x404445
sub esi, ecx
sar esi, 1
test edi, edi
je 0x4044e7
push esi
push edi
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.005ef597
lea eax, [esi + esi]
add esp, 0x10
cmp eax, 0x208
jae 0x4044fa
xor ecx, ecx
mov word [ebp + eax - 0x210], cx
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.005f1d5d
add esp, 8
test eax, eax
je 0x4044c6
push 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4044c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4044c4
xor bl, bl
jmp 0x4044c6
mov bl, 1
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4044d0
sub ecx, edx
sar ecx, 1
cmp esi, ecx
jl 0x404427
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058f0d5
mov esp, ebp
pop ebp
ret
call fcn.0058f236
int3
Function at 0x406010
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0045660f

Function at 0x4060e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61623d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x69cffc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x20], edi
call fcn.0044a657
mov ecx, eax
test ecx, ecx
je 0x406267
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesServiceId
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406204
mov dword [ebp - 0x18], 1
mov ecx, 1
mov dword [ebp - 0x14], 0x400
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x400
or eax, ecx
jge 0x406182
push 0x400
lea ecx, [ebp - 0x10]
call fcn.00403180
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0
push str.uuid
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4061d8
push dword [esi - 8]
push esi
call fcn.005f3644
add esp, 8
test eax, eax
js 0x406271
cmp eax, dword [esi - 8]
jg 0x406271
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
add esi, 0xfffffff0
push esi
call fcn.004027b0
add esp, 4
add eax, 0x10
mov dword [edi], eax
jmp 0x406238
push str.Failed_to_read_registry_value._n
call fcn.004084a0
add esp, 4
call fcn.0044a657
mov ecx, eax
test ecx, ecx
je 0x40627b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 1
jmp 0x40622a
push str.Failed_to_open_registry_key._n
call fcn.004084a0
add esp, 4
call fcn.0044a657
mov ecx, eax
test ecx, ecx
je 0x406285
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 2
push 0
push 0
mov ecx, edi
call fcn.00402df0
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x406254
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403270
push 0x80070057
call fcn.00403270
push 0x80004005
call fcn.00403270
push 0x80004005
call fcn.00403270
int3
Function at 0x408e00
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x616490
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x69cffc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x188], ecx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18c], edi
mov dword [ebp - 0x184], eax
test eax, eax
je 0x408f9d
mov esi, dword [esi]
xor ebx, ebx
cmp esi, 0xffffffff
je 0x408eb3
test edi, edi
je 0x408eb0
push 0xfc
lea eax, [ebp - 0x178]
push ebx
push eax
call fcn.005e8c40
add esp, 0xc
mov dword [ebp - 0x17c], esi
mov dword [ebp - 0x180], 1
push ebx
push dword [ebp - 0x184]
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
cmp esi, 0xffffffff
jne 0x408ea6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
or ebx, 0xffffffff
test esi, esi
cmovns ebx, esi
jmp 0x408eb3
or ebx, 0xffffffff
mov esi, dword [ebp - 0x188]
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x20]
mov edi, eax
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x24]
push 0x64
mov esi, eax
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.005e8c40
add esp, 0xc
lea ecx, [ebp - 0x78]
call fcn.0043a240
mov eax, dword [ebp - 0x18c]
push dword [ebp - 0x184]
mov ecx, dword [ebp - 0x188]
movzx eax, byte [eax]
push eax
lea eax, [ebp - 0x78]
push eax
mov eax, dword [ecx]
call dword [eax + 0x34]
push eax
push esi
push edi
push ecx
mov esi, esp
mov dword [ebp - 0x184], esi
call fcn.0044a657
mov ecx, eax
test ecx, ecx
je 0x408fbb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov eax, str.__s:_s___s::SendData___s____0x_X__dbytes
mov dword [ebp - 4], 0
mov ecx, esi
test eax, 0xffff0000
jne 0x408f47
movzx eax, ax
push eax
call fcn.00402c80
jmp 0x408f53
push 0x29
push str.__s:_s___s::SendData___s____0x_X__dbytes
call fcn.00402df0
push 0
lea eax, [ebp - 0x18c]
mov dword [ebp - 4], 0xffffffff
push eax
push 0x6aa3bc
call fcn.00409fa0
mov esi, dword [ebp - 0x18c]
add esp, 0x28
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x408f8e
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x188]
mov dword [eax + 0x24], 1
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058f0d5
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00403270
int3
Function at 0x409040
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x616490
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x69cffc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x188], ecx
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18c], edi
mov dword [ebp - 0x184], eax
test eax, eax
je 0x4091dd
mov esi, dword [esi]
xor ebx, ebx
cmp esi, 0xffffffff
je 0x4090f3
test edi, edi
je 0x4090f0
push 0xfc
lea eax, [ebp - 0x178]
push ebx
push eax
call fcn.005e8c40
add esp, 0xc
mov dword [ebp - 0x17c], esi
mov dword [ebp - 0x180], 1
push ebx
push dword [ebp - 0x184]
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4090e6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
or ebx, 0xffffffff
test esi, esi
cmovns ebx, esi
jmp 0x4090f3
or ebx, 0xffffffff
mov esi, dword [ebp - 0x188]
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x20]
mov edi, eax
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x24]
push 0x64
mov esi, eax
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.005e8c40
add esp, 0xc
lea ecx, [ebp - 0x78]
call fcn.0043a240
mov eax, dword [ebp - 0x18c]
push dword [ebp - 0x184]
mov ecx, dword [ebp - 0x188]
movzx eax, byte [eax]
push eax
lea eax, [ebp - 0x78]
push eax
mov eax, dword [ecx]
call dword [eax + 0x34]
push eax
push esi
push edi
push ecx
mov esi, esp
mov dword [ebp - 0x184], esi
call fcn.0044a657
mov ecx, eax
test ecx, ecx
je 0x4091fb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov eax, str.__s:_s___s::SendData___s____0x_X__dbytes
mov dword [ebp - 4], 0
mov ecx, esi
test eax, 0xffff0000
jne 0x409187
movzx eax, ax
push eax
call fcn.00402c80
jmp 0x409193
push 0x29
push str.__s:_s___s::SendData___s____0x_X__dbytes
call fcn.00402df0
push 0
lea eax, [ebp - 0x18c]
mov dword [ebp - 4], 0xffffffff
push eax
push 0x6aa3bc
call fcn.00409fa0
mov esi, dword [ebp - 0x18c]
add esp, 0x28
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4091ce
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x188]
mov dword [eax + 0x24], 1
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058f0d5
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00403270
int3
Function at 0x4098b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, ecx
cmp dword [esi + 8], 0xffffffff
push edi
lea edi, [esi + 8]
je 0x4098d0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
sub esp, 8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
mov ecx, edi
call fcn.0043a030
mov bl, al
test bl, bl
je 0x40992f
push 0
push 0
push esi
push 0x409940
push 0
push 0
call fcn.005f95cb
add esp, 0x18
mov dword [esi + 4], eax
test eax, eax
jne 0x40992f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [edi], 0xffffffff
mov ebx, eax
je 0x409926
or esi, 0xffffffff
xchg dword [edi], esi
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x40a420
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
mov eax, dword [0x69cffc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x174], eax
mov eax, dword [ebp + 0x10]
lea edi, [esi + 1]
mov dword [ebp - 0x178], ecx
push edi
mov dword [ebp - 0x170], eax
call fcn.00447f05
mov cl, byte [ebp + 0xc]
mov ebx, eax
add esp, 4
mov byte [ebx], cl
test esi, esi
je 0x40a47b
push esi
push dword [ebp - 0x170]
lea ecx, [ebx + 1]
push ecx
call fcn.005e86c0
add esp, 0xc
mov esi, dword [ebp - 0x174]
mov esi, dword [esi]
cmp esi, 0xffffffff
je 0x40a4d7
push 0xfc
lea eax, [ebp - 0x164]
push 0
push eax
call fcn.005e8c40
add esp, 0xc
mov dword [ebp - 0x168], esi
mov dword [ebp - 0x16c], 1
push 0
push edi
push ebx
push esi
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40a4cd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
or esi, 0xffffffff
test edi, edi
cmovns esi, edi
jmp 0x40a4da
or esi, 0xffffffff
push ebx
call fcn.00447f00
mov ebx, dword [ebp - 0x178]
add esp, 4
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 0x18]
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x1c]
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.005e8c40
add esp, 0xc
lea ecx, [ebp - 0x68]
call fcn.0043a240
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058f0d5
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40a530
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
call dword [eax + 0x30]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov edx, dword [esi]
mov ecx, esi
mov ebx, eax
call dword [edx + 0x1c]
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0xc], eax
call dword [edx + 0x28]
test eax, eax
je 0x40a5f3
cmp dword [esi + 0x18], 0xffffffff
lea ecx, [esi + 0x18]
jne 0x40a5de
add esi, 0x10
cmp dword [esi + 8], 0xffffffff
lea edi, [esi + 8]
jne 0x40a5f3
sub esp, 8
push dword [esp + 0x14]
push ebx
push ecx
mov ecx, edi
call fcn.0043a030
test al, al
je 0x40a5f3
push 0
push 0
push esi
push 0x40a6f0
push 0
push 0
call fcn.005f95cb
add esp, 0x18
mov dword [esi + 4], eax
test eax, eax
jne 0x40a5f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [edi], 0xffffffff
mov ebx, eax
je 0x40a5cc
or esi, 0xffffffff
xchg dword [edi], esi
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
or esi, 0xffffffff
xchg dword [ecx], esi
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40a640
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61669d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x69cffc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
call fcn.00447eb9
add esp, 4
test eax, eax
je 0x40a681
mov dword [eax], esi
mov dword [eax + 4], 0x40a630
jmp 0x40a683
xor eax, eax
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x409c20
push 0
push 0
call fcn.005f95cb
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x40a6cd
cmp dword [esi + 0x20], 0
jne 0x40a6db
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 6
mov dword [ebp - 0x14], 0
call fcn.00593335
call fcn.005f8fa5
int3

Function at 0x40af20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61669d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x69cffc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
call fcn.00447eb9
add esp, 4
test eax, eax
je 0x40af61
mov dword [eax], esi
mov dword [eax + 4], 0x40afc0
jmp 0x40af63
xor eax, eax
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x409c20
push 0
push 0
call fcn.005f95cb
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x40afac
cmp dword [esi + 4], 0
jne 0x40afba
mov eax, dword [ebp - 0x14]
mov dword [esi], ecx
mov dword [esi + 4], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 6
mov dword [ebp - 0x14], 0
call fcn.00593335
call fcn.005f8fa5
int3
Function at 0x40c170
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x616a9d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x69cffc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x20], edi
call fcn.0044a657
mov ecx, eax
test ecx, ecx
je 0x40c2f7
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesServiceId
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40c294
mov dword [ebp - 0x18], 1
mov ecx, 1
mov dword [ebp - 0x14], 0x400
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x400
or eax, ecx
jge 0x40c212
push 0x400
lea ecx, [ebp - 0x10]
call fcn.00403180
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0
push str.uuid
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c268
push dword [esi - 8]
push esi
call fcn.005f3644
add esp, 8
test eax, eax
js 0x40c301
cmp eax, dword [esi - 8]
jg 0x40c301
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
add esi, 0xfffffff0
push esi
call fcn.004027b0
add esp, 4
add eax, 0x10
mov dword [edi], eax
jmp 0x40c2c8
push str.Failed_to_read_registry_value._n
call fcn.004084a0
add esp, 4
call fcn.0044a657
mov ecx, eax
test ecx, ecx
je 0x40c30b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 1
jmp 0x40c2ba
push str.Failed_to_open_registry_key._n
call fcn.004084a0
add esp, 4
call fcn.0044a657
mov ecx, eax
test ecx, ecx
je 0x40c315
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 2
push 0
push 0
mov ecx, edi
call fcn.00402df0
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40c2e4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403270
push 0x80070057
call fcn.00403270
push 0x80004005
call fcn.00403270
push 0x80004005
call fcn.00403270
int3