joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006310
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x100064d4
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5000]
push edi
jmp 0x1000633a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10006341
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10006330
mov eax, 1
add ebx, ebx
jne 0x10006353
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10006348
jne 0x10006364
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10006348
xor ecx, ecx
sub eax, 3
jb 0x10006378
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x100063ea
mov ebp, eax
add ebx, ebx
jne 0x10006383
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10006390
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x100063b4
inc ecx
add ebx, ebx
jne 0x100063a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10006395
jne 0x100063b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10006395
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x100063d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x100063c5
jmp 0x10006336
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x100063d4
add edi, ecx
jmp 0x10006336
pop esi
mov edi, esi
mov ecx, 2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x100063f2
cmp byte [edi], 0
jne 0x100063f2
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 0x100063f7
lea edi, [esi + 0x4000]
mov eax, dword [edi]
or eax, eax
je 0x10006466
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6050]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10006424
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6054]
or eax, eax
je 0x10006460
mov dword [ebx], eax
add ebx, 4
jmp 0x10006441
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10006497
cmp al, 0xef
ja 0x1000648a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1000646c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10006479
mov ebp, dword [esi + 0x6058]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x100064cb
sub esp, 0xffffff80
jmp 0x100010ab
Function at 0x402a24
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40400c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402abc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402a9c
xor eax, eax
push ebp
push 0x402a95
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402ad8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402a9c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40400c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40400c], ax
mov esp, ebp
pop ebp
ret

Function at 0x40312c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x405034], 0
je 0x40318d
cmp word [0x405208], 0xd7b2
jne 0x403155
cmp dword [0x405210], 0
jbe 0x403155
mov eax, 0x405204
call dword [0x405220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x404054
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4031b4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x404018], 0
jne 0x4031a9
push 0
push 0x40404c
push 0x404054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403440
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4034a6
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403330
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402918
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x403490
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4034ad
lea eax, [ebp - 0x10]
call fcn.004032b0
ret
Function at 0x4038bc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
mov dword [ebp - 0x30], 0x30
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x28], 0x403a08
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [0x405650]
mov dword [ebp - 0x1c], eax
push 0x7f00
push 0
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x18], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x14], eax
push 0
call sub.gdi32.dll_GetStockObject
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, 0x4039f0
mov dword [ebp - 8], eax
push 0x7f00
push 0
call sub.user32.dll_LoadIconA
mov dword [ebp - 4], eax
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_RegisterClassExA
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0
push 0
mov eax, dword [0x405650]
push eax
push 0
mov edx, 0x4039f8
mov eax, 0x4039f0
mov ecx, 0xcf0000
call fcn.004037f4
mov dword [0x405668], eax
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0
push 0
mov eax, dword [0x405650]
push eax
push 0
mov edx, 0x403a00
mov eax, 0x4039f0
mov ecx, 0xcf0000
call fcn.004037f4
mov dword [0x40566c], eax
push 5
mov eax, dword [0x405668]
push eax
call sub.user32.dll_ShowWindow
push 5
mov eax, dword [0x40566c]
push eax
call sub.user32.dll_ShowWindow
jmp 0x4039d6
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_DispatchMessageA
push 0
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_GetMessageA
test eax, eax
jne 0x4039c4
mov esp, ebp
pop ebp
ret
Function at 0x4090f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40927b
sub esp, 0xc
mov eax, dword [esp + 0x14]
xor ebp, ebp
cmp eax, ebp
je 0x40926e
mov ebp, dword [eax]
cmp ebp, 0
je 0x40926e
movzx ebp, byte [eax + 4]
mov ebx, ebp
and ebx, 4
cmp bl, 0
je 0x409149
mov ebx, 0x5f6d23
mov dword [esp], ebx
mov dword [esp + 4], 0x21
call fcn.00429580
mov eax, dword [esp + 0x14]
movzx ebp, byte [eax + 5]
xchg ebp, eax
cmp al, 0
xchg ebp, eax
jne 0x4091cc
mov ecx, dword [eax + 0xc]
xor eax, eax
cmp eax, 8
jae 0x40917a
mov esi, eax
shl esi, 2
add esi, 8
mov ebx, ecx
add ebx, esi
mov ebx, dword [ebx]
mov ebp, dword [esp + 0x18]
cmp ebx, ebp
je 0x4091a0
inc eax
cmp eax, 8
jb 0x40915e
mov eax, dword [esp + 0x10]
movzx ebp, word [eax + 0x34]
mov eax, ebp
sub eax, 4
mov ebx, ecx
add ebx, eax
mov ecx, dword [ebx]
xor ebp, ebp
cmp ecx, ebp
jne 0x409157
mov ebx, 0x6d0680
mov dword [esp + 0x1c], ebx
add esp, 0xc
ret
mov ebx, ecx
add ebx, eax
movzx ebp, byte [ebx]
xchg ebp, eax
cmp al, 0
xchg ebp, eax
je 0x409174
mov ebx, dword [esp + 0x10]
movzx ebp, byte [ebx + 0x32]
mov ebx, ebp
imul ebx, eax
add ebx, 0x28
mov eax, ebx
mov ebx, ecx
add ebx, eax
mov dword [esp + 0x1c], ebx
add esp, 0xc
ret
lea ebx, [esp + 0x18]
xor ebx, 0
mov dword [esp], ebx
mov ebp, dword [eax + 8]
mov dword [esp + 4], ebp
mov ebx, dword [esp + 0x10]
mov ebp, dword [ebx + 0x20]
mov esi, dword [ebp + 0x10]
mov edx, dword [esi]
mov ebx, dword [edx]
call ebx
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 8]
movzx ecx, byte [edi + 5]
mov ebx, 1
cmp cl, 0x20
jae 0x40926a
shl ebx, cl
dec ebx
mov edx, ebx
mov eax, esi
and eax, ebx
mov ebx, dword [esp + 0x10]
movzx ebp, word [ebx + 0x34]
imul eax, ebp
mov ecx, dword [edi + 0xc]
add ecx, eax
mov eax, dword [edi + 0x10]
xor ebp, ebp
cmp eax, ebp
je 0x409157
shr edx, 1
and edx, esi
mov ebx, dword [esp + 0x10]
movzx ebp, word [ebx + 0x34]
mov ebx, ebp
mov ebp, edx
imul ebp, ebx
mov edx, eax
add edx, ebp
movzx ebp, byte [edx]
xchg ebp, eax
cmp al, 0
xchg ebp, eax
jbe 0x409266
xchg ebp, eax
cmp al, 4
xchg ebp, eax
jae 0x409266
mov eax, 1
cmp al, 0
jne 0x409157
mov ecx, edx
jmp 0x409157
xor eax, eax
jmp 0x409256
xor ebx, ebx
jmp 0x409203
mov ebx, 0x6d0680
mov dword [esp + 0x1c], ebx
add esp, 0xc
ret
call fcn.0044fe90
jmp fcn.004090f0
Function at 0x409290
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40942e
sub esp, 0xc
mov eax, dword [esp + 0x14]
xor ebp, ebp
cmp eax, ebp
je 0x40941c
mov ebp, dword [eax]
cmp ebp, 0
je 0x40941c
movzx ebp, byte [eax + 4]
mov ebx, ebp
and ebx, 4
cmp bl, 0
je 0x4092e9
mov ebx, 0x5f6d23
mov dword [esp], ebx
mov dword [esp + 4], 0x21
call fcn.00429580
mov eax, dword [esp + 0x14]
movzx ebp, byte [eax + 5]
xchg ebp, eax
cmp al, 0
xchg ebp, eax
jne 0x40937a
mov ecx, dword [eax + 0xc]
xor eax, eax
cmp eax, 8
jae 0x40931e
mov esi, eax
shl esi, 2
add esi, 8
mov ebx, ecx
add ebx, esi
mov ebx, dword [ebx]
mov ebp, dword [esp + 0x18]
cmp ebx, ebp
je 0x409349
inc eax
cmp eax, 8
jb 0x409302
mov eax, dword [esp + 0x10]
movzx ebp, word [eax + 0x34]
mov eax, ebp
sub eax, 4
mov ebx, ecx
add ebx, eax
mov ecx, dword [ebx]
xor ebp, ebp
cmp ecx, ebp
jne 0x4092fb
mov ebx, 0x6d0680
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x20], 0
add esp, 0xc
ret
mov ebx, ecx
add ebx, eax
movzx ebp, byte [ebx]
xchg ebp, eax
cmp al, 0
xchg ebp, eax
je 0x409318
mov ebx, dword [esp + 0x10]
movzx ebp, byte [ebx + 0x32]
mov ebx, ebp
imul ebx, eax
add ebx, 0x28
mov eax, ebx
mov ebx, ecx
add ebx, eax
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x20], 1
add esp, 0xc
ret
lea ebx, [esp + 0x18]
xor ebx, 0
mov dword [esp], ebx
mov ebp, dword [eax + 8]
mov dword [esp + 4], ebp
mov ebx, dword [esp + 0x10]
mov ebp, dword [ebx + 0x20]
mov esi, dword [ebp + 0x10]
mov edx, dword [esi]
mov ebx, dword [edx]
call ebx
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 8]
movzx ecx, byte [edi + 5]
mov ebx, 1
cmp cl, 0x20
jae 0x409418
shl ebx, cl
dec ebx
mov edx, ebx
mov eax, esi
and eax, ebx
mov ebx, dword [esp + 0x10]
movzx ebp, word [ebx + 0x34]
imul eax, ebp
mov ecx, dword [edi + 0xc]
add ecx, eax
mov eax, dword [edi + 0x10]
xor ebp, ebp
cmp eax, ebp
je 0x4092fb
shr edx, 1
and edx, esi
mov ebx, dword [esp + 0x10]
movzx ebp, word [ebx + 0x34]
mov ebx, ebp
mov ebp, edx
imul ebp, ebx
mov edx, eax
add edx, ebp
movzx ebp, byte [edx]
xchg ebp, eax
cmp al, 0
xchg ebp, eax
jbe 0x409414
xchg ebp, eax
cmp al, 4
xchg ebp, eax
jae 0x409414
mov eax, 1
cmp al, 0
jne 0x4092fb
mov ecx, edx
jmp 0x4092fb
xor eax, eax
jmp 0x409404
xor ebx, ebx
jmp 0x4093b1
mov ebx, 0x6d0680
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x20], 0
add esp, 0xc
ret
call fcn.0044fe90
jmp fcn.00409290
Function at 0x409440
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4095d2
sub esp, 0xc
mov eax, dword [esp + 0x14]
xor ebp, ebp
cmp eax, ebp
je 0x4095c5
mov ebp, dword [eax]
cmp ebp, 0
je 0x4095c5
movzx ebp, byte [eax + 4]
mov ebx, ebp
and ebx, 4
cmp bl, 0
je 0x409499
mov ebx, 0x5f6d23
mov dword [esp], ebx
mov dword [esp + 4], 0x21
call fcn.00429580
mov eax, dword [esp + 0x14]
movzx ebp, byte [eax + 5]
xchg ebp, eax
cmp al, 0
xchg ebp, eax
jne 0x409523
mov edx, dword [eax + 0xc]
xor ecx, ecx
cmp ecx, 8
jae 0x4094d1
mov esi, ecx
shl esi, 3
add esi, 8
mov ebx, edx
add ebx, esi
mov esi, dword [ebx]
mov eax, dword [ebx + 4]
cmp eax, dword [esp + 0x1c]
jne 0x4094cb
cmp esi, dword [esp + 0x18]
je 0x4094f7
inc ecx
cmp ecx, 8
jb 0x4094ae
mov eax, dword [esp + 0x10]
movzx ebp, word [eax + 0x34]
mov eax, ebp
sub eax, 4
mov ebx, edx
add ebx, eax
mov edx, dword [ebx]
xor ebp, ebp
cmp edx, ebp
jne 0x4094a7
mov ebx, 0x6d0680
mov dword [esp + 0x20], ebx
add esp, 0xc
ret
mov ebx, edx
add ebx, ecx
movzx ebp, byte [ebx]
xchg ebp, eax
cmp al, 0
xchg ebp, eax
je 0x4094cb
mov eax, edx
mov ebx, dword [esp + 0x10]
movzx ebp, byte [ebx + 0x32]
mov edx, ebp
imul edx, ecx
add edx, 0x48
mov ebx, eax
add ebx, edx
mov dword [esp + 0x20], ebx
add esp, 0xc
ret
lea ebx, [esp + 0x18]
xor ebx, 0
mov dword [esp], ebx
mov ebp, dword [eax + 8]
mov dword [esp + 4], ebp
mov ebx, dword [esp + 0x10]
mov ebp, dword [ebx + 0x20]
mov esi, dword [ebp + 0x10]
mov edx, dword [esi]
mov ebx, dword [edx]
call ebx
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 8]
movzx ecx, byte [edi + 5]
mov ebx, 1
cmp cl, 0x20
jae 0x4095c1
shl ebx, cl
dec ebx
mov ecx, ebx
mov eax, esi
and eax, ebx
mov ebx, dword [esp + 0x10]
movzx ebp, word [ebx + 0x34]
imul eax, ebp
mov edx, dword [edi + 0xc]
add edx, eax
mov eax, dword [edi + 0x10]
xor ebp, ebp
cmp eax, ebp
je 0x4094a7
shr ecx, 1
and ecx, esi
mov ebx, dword [esp + 0x10]
movzx ebp, word [ebx + 0x34]
mov ebx, ebp
mov ebp, ecx
imul ebp, ebx
mov ecx, eax
add ecx, ebp
movzx ebp, byte [ecx]
xchg ebp, eax
cmp al, 0
xchg ebp, eax
jbe 0x4095bd
xchg ebp, eax
cmp al, 4
xchg ebp, eax
jae 0x4095bd
mov eax, 1
cmp al, 0
jne 0x4094a7
mov edx, ecx
jmp 0x4094a7
xor eax, eax
jmp 0x4095ad
xor ebx, ebx
jmp 0x40955a
mov ebx, 0x6d0680
mov dword [esp + 0x20], ebx
add esp, 0xc
ret
call fcn.0044fe90
jmp fcn.00409440
Function at 0x441f10
Capabilities:
Check for software breakpoints

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4420ff
sub esp, 0x3c
mov edi, dword [esp + 0x40]
mov ecx, dword [edi + 4]
movzx ebp, byte [ecx]
xchg ebp, eax
cmp al, 0xe9
xchg ebp, eax
jne 0x441f57
mov ebp, dword [edi + 4]
add ebp, 5
mov dword [esp + 0xc], ebp
mov esi, ecx
inc esi
mov eax, dword [esi]
cdq
mov ebx, dword [esp + 0xc]
add ebx, eax
mov dword [edi + 4], ebx
add esp, 0x3c
ret
movzx ebp, byte [ecx]
xchg ebp, eax
cmp al, 0xeb
xchg ebp, eax
jne 0x441f82
mov ebp, dword [edi + 4]
add ebp, 2
mov dword [esp + 8], ebp
mov eax, ecx
inc eax
movzx eax, byte [eax]
movsx eax, al
cdq
mov ebx, dword [esp + 8]
add ebx, eax
mov dword [edi + 4], ebx
add esp, 0x3c
ret
movzx ebp, byte [ecx]
xchg ebp, eax
cmp al, 0xcc
xchg ebp, eax
jne 0x441f90
add esp, 0x3c
ret
movzx ebp, byte [ecx]
xor edx, edx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], edx
movzx ebp, byte [ecx + 1]
xor edx, edx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], edx
movzx ebp, byte [ecx + 2]
xor edx, edx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], edx
movzx ebp, byte [ecx + 3]
xor edx, edx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], edx
mov dword [esp + 0x38], ecx
movzx ebp, byte [ecx + 4]
xor ecx, ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ecx
call fcn.00429d60
mov ebx, 0x5f03d7
mov dword [esp], ebx
mov dword [esp + 4], 0xc
call fcn.0042a770
mov ebx, dword [esp + 0x38]
mov dword [esp], ebx
call fcn.0042a730
mov ebx, 0x5ee204
mov dword [esp], ebx
mov dword [esp + 4], 1
call fcn.0042a770
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
call fcn.0042a600
mov ebx, 0x5ee204
mov dword [esp], ebx
mov dword [esp + 4], 1
call fcn.0042a770
mov eax, dword [esp + 0x28]
mov dword [esp], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
call fcn.0042a600
mov ebx, 0x5ee204
mov dword [esp], ebx
mov dword [esp + 4], 1
call fcn.0042a770
mov eax, dword [esp + 0x20]
mov dword [esp], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
call fcn.0042a600
mov ebx, 0x5ee204
mov dword [esp], ebx
mov dword [esp + 4], 1
call fcn.0042a770
mov eax, dword [esp + 0x18]
mov dword [esp], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], eax
call fcn.0042a600
mov ebx, 0x5ee204
mov dword [esp], ebx
mov dword [esp + 4], 1
call fcn.0042a770
mov eax, dword [esp + 0x10]
mov dword [esp], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 4], eax
call fcn.0042a600
mov ebx, 0x5ee226
mov dword [esp], ebx
mov dword [esp + 4], 1
call fcn.0042a770
call fcn.00429de0
mov ebx, 0x5f742e
mov dword [esp], ebx
mov dword [esp + 4], 0x22
call fcn.00429580
add esp, 0x3c
ret
call fcn.0044fe90
jmp fcn.00441f10
Function at 0x4011d6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40123e
cmp dword [ebp + 0x10], 1
je 0x401217
cmp dword [ebp + 0x10], 2
je 0x401217
push 0xd
pop eax
jmp 0x40123e
test edi, edi
mov eax, dword [ebp - 4]
je 0x401238
test eax, eax
je 0x401234
test al, 1
jne 0x401212
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x401238
jmp 0x401212
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x403dbf
Capabilities:
Get hostname

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x449e30]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push esi
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x7b]
push 0
push eax
mov edi, ecx
mov byte [ebp - 0x7c], 0
call fcn.00421170
add esp, 0xc
push esi
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x403e0a
xor eax, eax
jmp 0x403e3d
lea eax, [ebp - 0x7c]
push 0x105
push eax
call fcn.00422005
pop ecx
pop ecx
mov byte [ebp - 0x80], al
push dword [ebp - 0x80]
lea esi, [edi + 0x190]
push 1
mov ecx, esi
call fcn.00403812
cmp dword [esi + 0x18], 0x10
jb 0x403e3a
mov eax, dword [esi + 4]
jmp 0x403e3d
lea eax, [esi + 4]
mov ecx, dword [ebp + 0x8c]
pop edi
xor ecx, ebp
pop esi
call fcn.004217ad
add ebp, 0x90
leave
ret
Function at 0x4040be
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
sub esp, 0x74
lea ebp, [esp - 4]
mov eax, dword [0x449e30]
xor eax, ebp
mov dword [ebp + 0x74], eax
push 0x24
mov eax, 0x432067
call fcn.004217ef
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
xor esi, esi
mov dword [ebp + 4], esi
push esi
push str.CGetAnyServerAux::StopAsyncNotification
lea ecx, [ebp + 0xc]
call fcn.004107dc
mov dword [ebp - 4], esi
add ebx, 0x124
cmp dword [ebx], esi
je 0x404223
mov byte [ebp - 4], 1
mov dword [ebp + 8], esi
mov byte [ebp - 4], 2
mov dword [ebp], esi
mov byte [ebp - 4], 3
lea ecx, [ebp + 8]
call fcn.00401e83
push eax
push 0x43b188
push 1
push esi
push 0x43b258
call dword [sym.imp.ole32.dll_CoCreateInstance]
push eax
call fcn.0040149e
pop ecx
lea ecx, [ebp + 8]
call fcn.004192ca
mov edi, eax
mov dword [ebp - 0x20], edi
push str.rootWMI
lea ecx, [ebp - 0x14]
call fcn.004020b3
mov byte [ebp - 4], 4
cmp dword [eax], esi
je 0x404165
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
jmp 0x404168
mov dword [ebp - 0x18], esi
mov edi, dword [edi]
lea ecx, [ebp]
call fcn.00401e83
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0x18]
push dword [ebp - 0x20]
call dword [edi + 0xc]
push eax
call fcn.0040149e
pop ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14]
cmp ecx, esi
je 0x40419c
call fcn.0040352c
mov dword [ebp - 0x14], esi
lea ecx, [ebp]
call fcn.004192ca
mov ecx, dword [ebx]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x10]
push esi
mov ecx, ebx
call fcn.004021b3
mov edi, dword [ebp - 0x1c]
mov eax, dword [edi + 0x128]
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4041e3
push str.Plugged_event_thread_stuck____
push esi
lea eax, [ebp + 0xc]
push eax
call fcn.00410918
add esp, 0xc
lea ecx, [edi + 0x12c]
call fcn.00401e43
mov byte [ebp - 4], 2
mov eax, dword [ebp]
cmp eax, esi
je 0x4041ff
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x404210
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], esi
push dword [ebp + 4]
push 0x4376ce
lea ecx, [ebp + 0xc]
call fcn.00410b8f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00410891
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.004217ad
add ebp, 0x78
leave
ret
Function at 0x407987
Capabilities:
Create raw socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
lea ebp, [esp - 0x118]
sub esp, 0x198
mov eax, dword [0x449e30]
xor eax, ebp
mov dword [ebp + 0x114], eax
push esi
xor eax, eax
mov esi, ecx
or dword [esi], 0xffffffff
push 0x18e
push eax
mov byte [esi + 4], al
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call fcn.00421170
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push 0x102
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x407a13
push 1
push 3
push 2
mov byte [esi + 4], 1
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x407a13
lea ecx, [ebp - 0x80]
push ecx
push 0x8004667e
push eax
mov dword [ebp - 0x80], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x407a13
push dword [esi]
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [esi], 0xffffffff
mov ecx, dword [ebp + 0x114]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004217ad
add ebp, 0x118
leave
ret

Function at 0x407b7f
Capabilities:
Set registry value

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push 3
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 0xc

Function at 0x407bd6
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov ebx, ecx
jne 0x407bec
push 0x80004005
call fcn.0040103e
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x407bef
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8