joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10024d2d
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, ecx
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x20]
push ebx
mov ebx, dword [edx + 0x20]
push esi
mov esi, dword [edx + 0x6c]
imul esi, dword [edx + 0x60]
add esi, ebx
cmp ebx, esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], esi
jae 0x10024e5e
mov eax, 0xf0f0
push edi
mov edi, dword [edx + 0x60]
mov edx, dword [edx + 0x68]
lea edx, [ebx + edx*2]
add edi, ebx
cmp ebx, edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x20], edx
jae 0x10024e3e
movzx ecx, word [edi]
movzx edx, word [edi + 2]
movzx esi, word [ebx + 2]
mov dword [ebp - 4], ecx
movzx ecx, word [ebx]
mov ebx, ecx
and bx, ax
mov edi, edx
and di, ax
mov dword [ebp - 0x1c], ecx
and ecx, 0xffff0f0f
add edi, ebx
mov ebx, dword [ebp - 4]
and bx, ax
add edi, ebx
mov ebx, esi
and bx, ax
lea edi, [edi + ebx + 0x2020]
mov ebx, edx
and ebx, 0xffff0f0f
add ebx, ecx
mov ecx, dword [ebp - 4]
and ecx, 0xffff0f0f
add ebx, ecx
mov ecx, esi
and ecx, 0xffff0f0f
lea ecx, [ebx + ecx + 0x202]
mov ebx, dword [ebp - 0xc]
shr ecx, 2
shr edi, 2
xor edi, ecx
mov ecx, dword [ebp - 0x1c]
and ecx, eax
and edx, eax
add edx, ecx
mov ecx, dword [ebp - 4]
and ecx, eax
add edx, ecx
and esi, eax
and edi, 0xffff0f0f
lea ecx, [edx + esi + 0x2020]
shr ecx, 2
xor edi, ecx
mov ecx, dword [ebp - 8]
add dword [ebp - 8], 2
mov word [ecx], di
mov edi, dword [ebp - 0x10]
add ebx, 4
add edi, 4
cmp ebx, dword [ebp - 0x20]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
jb 0x10024d86
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov edi, dword [edx + 4]
add ecx, dword [edi + 0x60]
mov edx, dword [edx]
mov edi, dword [edx + 0x60]
lea ebx, [ebx + edi*2]
cmp ebx, esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
jb 0x10024d67
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x10024e64
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, ecx
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x20]
push ebx
push edi
mov dword [ebp - 0x28], eax
mov eax, dword [eax]
mov edi, dword [eax + 0x6c]
imul edi, dword [eax + 0x60]
mov ebx, dword [eax + 0x20]
add edi, ebx
cmp ebx, edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], edi
jae 0x10024f7c
push esi
mov esi, 0xe3
mov edx, dword [eax + 0x60]
mov eax, dword [eax + 0x68]
add eax, ebx
add edx, ebx
cmp ebx, eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x20], eax
jae 0x10024f5c
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
movzx edi, byte [ebx + 1]
mov dword [ebp - 4], ecx
movzx ecx, byte [ebx]
mov ebx, ecx
and ebx, 0x1c
mov edx, eax
and edx, 0x1c
add edx, ebx
mov ebx, dword [ebp - 4]
and ebx, 0x1c
add edx, ebx
mov dword [ebp - 0x1c], ecx
and cx, si
mov ebx, edi
and ebx, 0x1c
lea edx, [edx + ebx + 8]
mov ebx, eax
and bx, si
shr edx, 2
and ax, si
add ebx, ecx
mov ecx, dword [ebp - 4]
and cx, si
add ebx, ecx
mov ecx, edi
and cx, si
and di, si
lea ecx, [ebx + ecx + 0x42]
shr ecx, 2
xor dl, cl
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0xc]
and cx, si
and dl, 0x1c
add eax, ecx
mov ecx, dword [ebp - 4]
and cx, si
add eax, ecx
lea eax, [eax + edi + 0x42]
shr eax, 2
xor dl, al
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [eax], dl
mov edx, dword [ebp - 0x10]
inc ebx
inc ebx
inc edx
inc edx
cmp ebx, dword [ebp - 0x20]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edx
jb 0x10024ebc
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 4]
add ecx, dword [edx + 0x60]
mov eax, dword [eax]
mov edx, dword [eax + 0x60]
lea ebx, [ebx + edx*2]
cmp ebx, edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
jb 0x10024e9e
pop esi
pop edi
xor eax, eax
pop ebx
leave
ret
Function at 0x1002500e
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov eax, ecx
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x20]
push esi
mov esi, dword [eax]
mov ebx, dword [esi + 0x20]
push edi
mov edi, dword [esi + 0x6c]
imul edi, dword [esi + 0x60]
add edi, ebx
cmp ebx, edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], edi
jae 0x10025135
mov eax, 0xff1c
mov edx, dword [esi + 0x60]
mov esi, dword [esi + 0x68]
lea esi, [ebx + esi*2]
add edx, ebx
cmp ebx, esi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x20], esi
jae 0x10025116
movzx esi, word [edx + 2]
movzx ecx, word [edx]
movzx edx, word [ebx]
movzx edi, word [ebx + 2]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov ebx, esi
mov ecx, 0xe3
and dx, cx
and bx, cx
add ebx, edx
mov edx, dword [ebp - 4]
and dx, cx
add ebx, edx
mov edx, edi
and dx, cx
mov ecx, esi
and cx, ax
and esi, eax
lea edx, [ebx + edx + 0x42]
mov ebx, dword [ebp - 0xc]
and bx, ax
shr edx, 2
add ecx, ebx
mov ebx, dword [ebp - 4]
and bx, ax
add ecx, ebx
mov ebx, edi
and bx, ax
and edi, eax
lea ecx, [ecx + ebx + 0x208]
mov ebx, dword [ebp - 0x10]
shr ecx, 2
xor dl, cl
mov ecx, dword [ebp - 0xc]
and ecx, eax
add esi, ecx
mov ecx, dword [ebp - 4]
and ecx, eax
add esi, ecx
and edx, 0xffff00e3
lea ecx, [esi + edi + 0x208]
shr ecx, 2
xor edx, ecx
mov ecx, dword [ebp - 8]
add dword [ebp - 8], 2
mov word [ecx], dx
mov edx, dword [ebp - 0x14]
add ebx, 4
add edx, 4
cmp ebx, dword [ebp - 0x20]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edx
jb 0x10025067
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, dword [edx + 4]
add ecx, dword [esi + 0x60]
mov esi, dword [edx]
mov edx, dword [esi + 0x60]
lea ebx, [ebx + edx*2]
cmp ebx, edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
jb 0x10025048
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x10025245
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov eax, ecx
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x20]
push esi
mov esi, dword [eax]
mov ebx, dword [esi + 0x20]
push edi
mov edi, dword [esi + 0x6c]
imul edi, dword [esi + 0x60]
add edi, ebx
cmp ebx, edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], edi
jae 0x1002536c
mov eax, 0xff00
mov edx, dword [esi + 0x60]
mov esi, dword [esi + 0x68]
lea esi, [ebx + esi*2]
add edx, ebx
cmp ebx, esi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x20], esi
jae 0x1002534d
movzx esi, word [edx + 2]
movzx ecx, word [edx]
movzx edx, word [ebx]
movzx edi, word [ebx + 2]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov ebx, esi
mov ecx, 0xff
and dx, cx
and bx, cx
add ebx, edx
mov edx, dword [ebp - 4]
and dx, cx
add ebx, edx
mov edx, edi
and dx, cx
mov ecx, esi
and cx, ax
and esi, eax
lea edx, [ebx + edx + 2]
mov ebx, dword [ebp - 0xc]
and bx, ax
shr edx, 2
add ecx, ebx
mov ebx, dword [ebp - 4]
and bx, ax
add ecx, ebx
mov ebx, edi
and bx, ax
and edi, eax
lea ecx, [ecx + ebx + 0x200]
mov ebx, dword [ebp - 0x10]
shr ecx, 2
xor dl, cl
mov ecx, dword [ebp - 0xc]
and ecx, eax
add esi, ecx
mov ecx, dword [ebp - 4]
and ecx, eax
add esi, ecx
and edx, 0xffff00ff
lea ecx, [esi + edi + 0x200]
shr ecx, 2
xor edx, ecx
mov ecx, dword [ebp - 8]
add dword [ebp - 8], 2
mov word [ecx], dx
mov edx, dword [ebp - 0x14]
add ebx, 4
add edx, 4
cmp ebx, dword [ebp - 0x20]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edx
jb 0x1002529e
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, dword [edx + 4]
add ecx, dword [esi + 0x60]
mov esi, dword [edx]
mov edx, dword [esi + 0x60]
lea ebx, [ebx + edx*2]
cmp ebx, edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
jb 0x1002527f
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x10025373
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, ecx
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x20]
push ebx
push edi
mov dword [ebp - 0x28], eax
mov eax, dword [eax]
mov edi, dword [eax + 0x6c]
imul edi, dword [eax + 0x60]
mov ebx, dword [eax + 0x20]
add edi, ebx
cmp ebx, edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], edi
jae 0x1002548b
push esi
mov esi, 0xf0
mov edx, dword [eax + 0x60]
mov eax, dword [eax + 0x68]
add eax, ebx
add edx, ebx
cmp ebx, eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x20], eax
jae 0x1002546b
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
movzx edi, byte [ebx + 1]
mov dword [ebp - 4], ecx
movzx ecx, byte [ebx]
mov ebx, ecx
and ebx, 0xf
mov edx, eax
and edx, 0xf
add edx, ebx
mov ebx, dword [ebp - 4]
and ebx, 0xf
add edx, ebx
mov dword [ebp - 0x1c], ecx
and cx, si
mov ebx, edi
and ebx, 0xf
lea edx, [edx + ebx + 2]
mov ebx, eax
and bx, si
shr edx, 2
and ax, si
add ebx, ecx
mov ecx, dword [ebp - 4]
and cx, si
add ebx, ecx
mov ecx, edi
and cx, si
and di, si
lea ecx, [ebx + ecx + 0x20]
shr ecx, 2
xor dl, cl
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0xc]
and cx, si
and dl, 0xf
add eax, ecx
mov ecx, dword [ebp - 4]
and cx, si
add eax, ecx
lea eax, [eax + edi + 0x20]
shr eax, 2
xor dl, al
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [eax], dl
mov edx, dword [ebp - 0x10]
inc ebx
inc ebx
inc edx
inc edx
cmp ebx, dword [ebp - 0x20]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edx
jb 0x100253cb
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 4]
add ecx, dword [edx + 0x60]
mov eax, dword [eax]
mov edx, dword [eax + 0x60]
lea ebx, [ebx + edx*2]
cmp ebx, edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
jb 0x100253ad
pop esi
pop edi
xor eax, eax
pop ebx
leave
ret
Function at 0x10036a36
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebx + 0x24]
push esi
mov dword [ebp - 8], edx
push edi
mov ecx, dword [ebx + 0x64]
mov eax, dword [ebx + 0x34]
mov esi, dword [ebx + 0x6c]
sub eax, ecx
sub eax, esi
mov dword [ebp - 4], eax
jne 0x10036a62
test ecx, ecx
jne 0x10036a6c
test esi, esi
jne 0x10036a6c
mov eax, edx
jmp 0x10036add
cmp eax, 0xffffffff
jne 0x10036a6c
push 0xfffffffffffffffe
pop eax
jmp 0x10036add
mov esi, dword [ebx + 0x24]
lea esi, [edx + esi - 0x106]
cmp ecx, esi
jb 0x10036add
mov edi, dword [ebx + 0x30]
mov ecx, edx
mov eax, ecx
shr ecx, 2
lea esi, [edi + edx]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x44]
mov eax, dword [ebx + 0x3c]
sub dword [ebx + 0x68], edx
sub dword [ebx + 0x64], edx
sub dword [ebx + 0x54], edx
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx esi, word [eax]
mov edi, esi
sub edi, edx
cmp esi, edx
sbb esi, esi
not esi
and esi, edi
dec ecx
mov word [eax], si
jne 0x10036aa2
mov eax, dword [ebx + 0x38]
mov esi, edx
lea eax, [eax + edx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edi, ecx
sub edi, edx
cmp ecx, edx
sbb ecx, ecx
not ecx
and ecx, edi
dec esi
mov word [eax], cx
jne 0x10036ac1
mov eax, dword [ebp - 4]
add eax, edx
mov esi, dword [ebx]
cmp dword [esi + 4], 0
mov dword [ebp - 0xc], esi
je 0x10036b8a
mov edi, dword [ebx + 0x6c]
add edi, dword [ebx + 0x64]
mov ecx, dword [esi + 4]
add edi, dword [ebx + 0x30]
cmp ecx, eax
mov dword [ebp - 4], ecx
jbe 0x10036b02
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10036b0c
xor ecx, ecx
jmp 0x10036b4b
sub ecx, dword [ebp - 4]
mov eax, dword [esi + 0x1c]
mov dword [esi + 4], ecx
cmp dword [eax + 0x18], 0
jne 0x10036b2e
push dword [ebp - 4]
push dword [esi]
push dword [esi + 0x30]
call fcn.100372c7
mov edx, dword [ebp - 8]
mov dword [esi + 0x30], eax
mov ecx, dword [ebp - 4]
mov esi, dword [esi]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov eax, dword [ebp - 0xc]
add dword [eax], ecx
add dword [eax + 8], ecx
add dword [ebx + 0x6c], ecx
mov edi, dword [ebx + 0x6c]
cmp edi, 3
jb 0x10036b76
mov eax, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x30]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [ebx + 0x50]
mov dword [ebx + 0x40], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp edi, 0x106
jae 0x10036b8a
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x10036a44
pop edi
pop esi
leave
ret

Function at 0x1003880a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10056cc0]
jne 0x10038814
repz ret
jmp fcn.10038deb
Function at 0x4026a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4280f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x24]
push eax
push 0x20019
push 0
push str.SoftwareX400100001W
push bind
mov bl, 1
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0x10
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push str.LockStatus
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40273e
mov ecx, 0x420430
lea eax, [ebp - 0x18]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402724
test dl, dl
je 0x402720
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402724
add eax, 2
add ecx, 2
test dl, dl
jne 0x402704
xor eax, eax
jmp 0x402729
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40274b
push 0x421c9c
call fcn.0040a680
add esp, 4
xor bl, bl
jmp 0x40274b
push 0x421cc0
call fcn.0040a680
add esp, 4
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0040b2c3
mov esp, ebp
pop ebp
ret
Function at 0x403e80
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4280f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x401
lea eax, [ebp - 0x408]
push 0
push eax
mov bl, 1
mov dword [ebp - 0x40c], 0x400
call fcn.0040b2e0
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion_run
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x410]
push eax
push 0
push str.hsn5h.exe
push dword [ebp - 0x414]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x414]
xor ecx, ecx
movzx ebx, bl
test eax, eax
cmovne ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0040b2c3
mov esp, ebp
pop ebp
ret

Function at 0x403f30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4280f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x24]
push eax
push 0x20019
push 0
push str.SoftwareX400100001W
push bind
mov bl, 1
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0x10
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push str.SP_PC_FLG
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x403f90
xor bl, bl
jmp 0x403fc7
mov ecx, str.49517
lea eax, [ebp - 0x18]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403fb8
test dl, dl
je 0x403fb4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403fb8
add eax, 2
add ecx, 2
test dl, dl
jne 0x403f98
xor eax, eax
jmp 0x403fbd
sbb eax, eax
or eax, 1
movzx ebx, bl
xor ecx, ecx
test eax, eax
cmovne ebx, ecx
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x403fe1
push 0x421554
call fcn.0040a680
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0040b2c3
mov esp, ebp
pop ebp
ret
Function at 0x404000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4280f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x401
lea eax, [ebp - 0x408]
push 0
push eax
xor bl, bl
mov dword [ebp - 0x40c], 0x400
call fcn.0040b2e0
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push 0x20019
push 0
push str.SoftwareWow6432NodeX400100001W
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4040e8
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x410]
push eax
push 0
push str.ThinClient_Flg
push dword [ebp - 0x414]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4040e8
mov ecx, 0x420430
lea eax, [ebp - 0x408]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4040b3
test dl, dl
je 0x4040af
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4040b3
add eax, 2
add ecx, 2
test dl, dl
jne 0x404093
xor eax, eax
jmp 0x4040b8
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4040cb
push 0x420850
call fcn.0040a680
add esp, 4
mov bl, 1
push dword [ebp - 0x414]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b2c3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop ebx
call fcn.0040b2c3
mov esp, ebp
pop ebp
ret

Function at 0x404100
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x4280f0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x400
xorps xmm0, xmm0
lea eax, [ebp - 0x430]
push 0
push eax
movdqa xmmword [ebp - 0x30], xmm0
movdqa xmmword [ebp - 0x20], xmm0
call fcn.0040b2e0
add esp, 0xc
lea eax, [ebp - 0x434]
push eax
push 0x20006
push 0
push str.SoftwareX400100001W
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40418c
push 0x4229d8
call fcn.0040a680
add esp, 4
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b2c3
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 1
lea eax, [ebp - 0x30]
push eax
push 1
push 0
push str.MainmenuPort
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x434]
test eax, eax
je 0x4041da
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x422a04
call fcn.0040a680
add esp, 4
mov eax, 0xfffffffe
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b2c3
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x430]
push str.clearRegDLogPortNo:
push eax
call fcn.0040b03e
lea eax, [ebp - 0x430]
push eax
call fcn.0040a680
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
xor eax, eax
call fcn.0040b2c3
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x404500
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4280f0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push str.SoftwareX400100001W
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x10], 4
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40457d
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push str.Interval_d
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40457d
cmp dword [ebp - 8], 4
jne 0x40457d
mov edx, dword [ebp - 0xc]
mov ecx, dword [section..data]
lea eax, [edx - 0x3c]
cmp eax, 0x348
cmovbe ecx, edx
mov dword [section..data], ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push str.SoftwareX400100001W
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4045e5
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push str.Interval
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4045e5
cmp dword [ebp - 8], 4
jne 0x4045e5
mov edx, dword [ebp - 0xc]
mov ecx, dword [0x428004]
lea eax, [edx - 0x3c]
cmp eax, 0x348
cmovbe ecx, edx
mov dword [0x428004], ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b2c3
mov esp, ebp
pop ebp
ret
Function at 0x4049b0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x510
mov eax, dword [0x4280f0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x401
push 0
push 0x42c7f8
call fcn.0040b2e0
push 0x81
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.0040b2e0
push 0x81
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.0040b2e0
push 0x401
lea eax, [ebp - 0x510]
push 0
push eax
call fcn.0040b2e0
add esp, 0x30
lea eax, [ebp - 0x10c]
push 0x81
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x404a43
push str.NG2
call fcn.0040a680
add esp, 4
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b2c3
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
jne 0x404a75
push str.NG3
call fcn.0040a680
add esp, 4
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b2c3
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0xc]
push ebx
push esi
xor esi, esi
cmp dword [eax], esi
je 0x404ac0
mov ebx, dword [sym.imp.WS2_32.dll_inet_ntoa]
xor ecx, ecx
mov eax, dword [eax + ecx]
push dword [eax]
call ebx
push eax
lea eax, [ebp - 0x88]
push 0x4202bc
push eax
call fcn.0040b03e
lea eax, [ebp - 0x88]
add esp, 0xc
cmp byte [eax], 0x30
jne 0x404ae0
mov eax, dword [edi + 0xc]
inc esi
cmp dword [eax + esi*4], 0
lea ecx, [esi*4]
jne 0x404a88
push str.NG4
call fcn.0040a680
add esp, 4
xor al, al
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b2c3
mov esp, ebp
pop ebp
ret
xor ecx, ecx
jmp 0x404af0
mov al, byte [ebp + ecx - 0x88]
mov byte [ecx + 0x42c7f8], al
lea ecx, [ecx + 1]
test al, al
jne 0x404af0
mov esi, 0x42c7f8
lea ecx, [esi + 1]
lea esp, [esp]
mov al, byte [esi]
inc esi
test al, al
jne 0x404b10
sub esi, ecx
cmp esi, 0xf
jge 0x404b41
mov ecx, 0xf
sub ecx, esi
mov edx, ecx
shr ecx, 2
lea edi, [esi + 0x42c7f8]
mov eax, 0x20202020
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
cmp esi, 0xf
push 0x42c7f8
lea eax, [ebp - 0x510]
push 0x420990
push eax
jle 0x404b85
call fcn.0040b03e
lea eax, [ebp - 0x510]
push eax
call fcn.0040a680
push str.NG5
call fcn.0040a680
add esp, 0x14
xor al, al
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b2c3
mov esp, ebp
pop ebp
ret
call fcn.0040b03e
lea eax, [ebp - 0x510]
push eax
call fcn.0040a680
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop esi
pop ebx
mov al, 1
pop edi
call fcn.0040b2c3
mov esp, ebp
pop ebp
ret