joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423fe7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [edi + 0x3c]
push ebx
push esi
mov esi, dword [eax + edi + 0x78]
add esi, edi
xor ebx, ebx
cmp dword [esi + 0x18], ebx
jbe 0x42401d
lea eax, [edi + ebx*4]
add eax, dword [esi + 0x20]
je 0x424017
mov ecx, dword [eax]
push 0xffffffffffffffff
push dword [esp + 0x10]
add ecx, edi
or eax, 0xffffffff
call fcn.0040eede
test eax, eax
je 0x424024
inc ebx
cmp ebx, dword [esi + 0x18]
jb 0x423ff9
xor eax, eax
pop esi
pop ebx
ret 4
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x1c]
lea eax, [eax + ebx*2]
movzx eax, word [eax + edi]
lea eax, [ecx + eax*4]
mov eax, dword [eax + edi]
add eax, edi
jmp 0x42401f

Function at 0x42409a
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push esi
push edi
cld
mov edx, dword fs:[0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
mov ecx, 0x18
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x4240bd
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x4240b4
cmp edi, 0x6a4abc5b
mov eax, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x4240aa
pop edi
pop esi
ret

Function at 0x424ab2
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, 0x558
push esi
push 0x4b26fc0
push edi
call dword [0x4b2166c]
mov ecx, dword [0x4b603c8]
add ecx, dword [0x4b5fd04]
add esp, 0xc
mov eax, edi
sub ecx, edi
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec esi
jne 0x424ad8
pop esi
ret

Function at 0x42749f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
push 0x10
push dword [ebp + 8]
mov ebx, ecx
lea ecx, [ebp - 0x10]
push ecx
call fcn.0042c39c
xor dword [ebp - 0x10], eax
xor word [ebp - 0xc], ax
shr eax, 0x10
xor word [ebp - 0xa], ax
xor edi, edi
xor ecx, ecx
xor eax, eax
mov dl, byte [ebp + eax + 0xc]
xor byte [ebp + ecx - 8], dl
inc eax
cmp eax, 4
cmove eax, edi
inc ecx
cmp ecx, 8
jb 0x4274cf
cmp dword [ebp + 0x10], edi
je 0x42750e
push dword [ebp + 0x10]
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], edi
call fcn.0042048b
push 0x10
pop edx
lea esi, [ebp - 0x10]
lea eax, [ebp - 0x118]
call fcn.004204d9
movzx eax, byte [ebp + 0x14]
sub eax, edi
je 0x42753a
dec eax
je 0x427525
dec eax
jne 0x42753a
mov eax, 0x4b28f38
push 7
jmp 0x42752c
mov eax, 0x4b28f48
push 6
pop edi
push eax
mov eax, edi
mov esi, ebx
call fcn.0040e838
lea ebx, [ebx + edi*2]
push 0x28
push ebx
lea eax, [ebp - 0x10]
push eax
call dword [0x4b216a4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x427c08
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push ebx
lea ecx, [eax - 0xd]
push esi
push edi
cmp ecx, 6
ja 0x427c61
xor esi, esi
xor bl, bl
lea ecx, [eax - 1]
jmp 0x427c4a
mov eax, dword [esp + 0x10]
mov al, byte [ecx + eax]
sub al, 0x30
cmp al, 9
ja 0x427c61
test bl, bl
je 0x427c41
add al, al
cmp al, 9
jle 0x427c3f
movsx eax, al
cdq
push 0xa
pop edi
idiv edi
lea eax, [edx + 1]
test bl, bl
movsx eax, al
sete bl
add esi, eax
dec ecx
cmp ecx, 0xffffffff
jg 0x427c1c
xor edx, edx
push 0xa
mov eax, esi
pop ecx
div ecx
mov eax, edx
neg eax
sbb eax, eax
inc eax
jmp 0x427c63
xor al, al
pop edi
pop esi
pop ebx
ret 4
Function at 0x437530
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x78]
mov ebx, dword [edx + 0x8c]
cmp eax, ebx
mov eax, dword [edx + 0x34]
mov ebx, dword [edx + 0x7c]
jl 0x437555
shr ebx, 2
dec ebx
shl ebx, 0x10
or ebx, eax
mov dword [esp], ebx
mov eax, dword [edx + 0x90]
mov ebx, dword [edx + 0x74]
cmp ebx, eax
jl 0x43756d
mov ebx, eax
mov dword [esp + 0x18], ebx
mov esi, dword [edx + 0x38]
mov dword [esp + 4], esi
mov ebp, dword [edx + 0x6c]
lea edi, [ebp + esi]
mov dword [esp + 0x20], edi
mov eax, edi
neg eax
and eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x2c]
sub eax, 0x106
sub ebp, eax
jg 0x43759c
xor ebp, ebp
mov eax, dword [edx + 0x78]
mov dword [esp + 0x1c], eax
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [edi]
mov dword [esp + 0x10], ebx
movzx ebx, word [eax + edi - 1]
mov dword [esp + 0xc], ebx
mov edi, dword [edx + 0x40]
mov edx, dword [esp]
jmp 0x4375de
and ecx, edx
movzx ecx, word [edi + ecx*2]
cmp ecx, ebp
jbe 0x4376b2
sub edx, 0x10000
js 0x4376b2
movzx eax, word [ecx + esi - 1]
cmp eax, ebx
jne 0x4375c4
mov eax, dword [esp + 4]
movzx eax, word [ecx + eax]
cmp eax, dword [esp + 0x10]
jne 0x4375c4
mov dword [esp], edx
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x20]
add esi, ecx
mov eax, dword [esp + 0x14]
mov edx, 0xfffffef8
lea edi, [eax + edi + 0x108]
lea esi, [eax + esi + 0x108]
mov eax, dword [edx + esi]
xor eax, dword [edx + edi]
jne 0x437635
mov eax, dword [edx + esi + 4]
xor eax, dword [edx + edi + 4]
jne 0x437632
add edx, 8
jne 0x437619
jmp 0x4376a3
add edx, 4
test eax, 0xffff
jne 0x437642
add edx, 2
shr eax, 0x10
sub al, 1
adc edx, 0
lea eax, [edx + edi]
mov edi, dword [esp + 0x20]
sub eax, edi
cmp eax, 0x102
jge 0x4376a3
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
cmp eax, ebx
jg 0x437676
mov esi, dword [esp + 8]
mov edi, dword [edx + 0x40]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp]
jmp 0x4375c4
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x70], ecx
cmp eax, ebx
jge 0x4376b2
mov esi, dword [esp + 4]
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [eax + edi - 1]
mov edi, dword [edx + 0x40]
mov dword [esp + 0xc], ebx
mov edx, dword [esp]
jmp 0x4375c4
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], 0x102
mov dword [edx + 0x70], ecx
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 0x74]
cmp ebx, eax
jg 0x4376c3
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, 8
pxor mm7, mm7
push ecx
movd mm6, ebx
mov ebx, 0x80008000
push edx
punpckldq mm6, mm6
movd mm5, ebx
push edi
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
punpckldq mm5, mm5
movq mm0, qword [edx]
movq mm2, qword [edx + 8]
movq mm4, qword [edx + 0x10]
movq mm1, mm2
psrlq mm2, 0x20
punpckldq mm2, mm4
paddd mm0, mm2
movq mm3, mm4
psrlq mm4, 0x20
sub eax, 4
jl 0x401109
jmp 0x401060
pxor mm5, qword [ecx]
add edi, 8
add ecx, 8
movq mm2, qword [edx + 0x18]
punpckldq mm4, mm2
paddd mm0, mm2
paddd mm1, mm4
movq mm4, mm5
punpcklwd mm5, mm7
punpckhwd mm4, mm7
pcmpeqd mm7, mm7
psubd mm0, mm5
pslld mm7, 0x12
psubd mm1, mm4
pslld mm5, 4
pslld mm4, 4
psubd mm5, mm0
movq mm0, mm6
paddd mm5, mm7
paddd mm4, mm7
psrld mm7, 0x1e
pand mm0, mm5
paddd mm5, mm7
psrld mm0, 3
paddd mm5, mm0
movq mm0, qword [edx + 0x20]
psrad mm5, 3
paddd mm1, mm0
add edx, 0x10
psubd mm4, mm1
movq mm1, mm6
sub eax, 4
pand mm1, mm4
paddd mm4, mm7
psrld mm1, 3
paddd mm4, mm1
movq mm1, mm2
psrad mm4, 3
psrlq mm2, 0x20
packssdw mm5, mm4
movq mm4, mm0
movq mm0, mm3
punpckldq mm2, mm4
movq mm3, mm4
psrlq mm4, 0x20
movq qword [edi - 8], mm5
movd mm5, ebx
paddd mm0, mm2
punpckldq mm5, mm5
pxor mm7, mm7
jge 0x401060
add eax, 4
jle 0x401193
pxor mm5, qword [ecx]
movq mm2, qword [edx + 0x18]
punpckldq mm4, mm2
paddd mm0, mm2
paddd mm1, mm4
movq mm4, mm5
punpcklwd mm5, mm7
punpckhwd mm4, mm7
pcmpeqd mm7, mm7
psubd mm0, mm5
pslld mm7, 0x12
pslld mm5, 4
psubd mm1, mm4
psubd mm5, mm0
paddd mm1, qword [edx + 0x20]
pslld mm4, 4
paddd mm5, mm7
psubd mm4, mm1
movq mm2, mm6
paddd mm4, mm7
psrld mm7, 0x1e
pand mm2, mm5
paddd mm5, mm7
psrld mm2, 3
pand mm6, mm4
paddd mm4, mm7
psrld mm6, 3
paddd mm5, mm2
paddd mm4, mm6
psrad mm5, 3
psrad mm4, 3
packssdw mm5, mm4
cmp eax, 2
jl 0x40118d
movd dword [edi], mm5
je 0x401193
psrlq mm5, 0x20
add edi, 4
movd edx, mm5
mov word [edi], dx
pop edi
pop edx
pop ecx
pop ebx
ret

Function at 0x64377b
Capabilities:
Encode data using xor

Disassembly:
xor al, 0xcf
cmc
pop eax
sal dword [eax - 0x49be779], cl
sub dword [ecx + 0x53e06972], 0x28b768b4
mov ah, 0x68
mov bh, 0x28
Function at 0x42a7c4
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x42b430
call fcn.0042a9d8
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x42a7ff
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42a7ff
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x42a817
cmp eax, 0x20b
je 0x42a804
mov dword [ebp - 0x1c], edi
jmp 0x42a82b
cmp dword [ecx + 0x84], 0xe
jbe 0x42a7ff
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x42a825
cmp dword [ecx + 0x74], 0xe
jbe 0x42a7ff
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x4350f0], 0xffffffff
or dword [0x4350f4], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x433c0c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x433c08]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4350ec], eax
call fcn.0042a9d2
cmp dword [0x433000], edi
jne 0x42a888
push fcn.0042a9d2
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0042a9c0
push 0x42b400
push 0x42b3fc
call sub.msvcrt.dll__initterm
mov eax, dword [0x433c04]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x433c00]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x30], eax
push 0x42b3f8
push 0x42b3e0
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x42a8ee
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x42a9a8
mov dword [ebp - 0x34], esi
cmp word [esi], 0x22
jne 0x42a93c
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x42a90a
cmp ax, 0x22
jne 0x42a8f7
cmp word [esi], 0x22
jne 0x42a915
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x42a923
cmp ax, 0x20
jbe 0x42a910
mov dword [ebp - 0x4c], edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoW]
test byte [ebp - 0x4c], 1
je 0x42a949
movzx eax, word [ebp - 0x48]
jmp 0x42a94c
cmp word [esi], 0x20
jbe 0x42a915
add esi, ebx
mov dword [ebp - 0x34], esi
jmp 0x42a93c
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], edi
jne 0x42a96d
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x42a9a2
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0042aa11
ret
Function at 0x401f30
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
cmp dword [ebp + 0x14], 0
mov eax, dword [0x40bccc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20c], eax
je 0x401f71
push 2
lea eax, [ebp - 0x214]
push eax
push 0xe
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x401f71
and dword [ebp + 0x14], eax
push 0x102
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0xc]
push dword [0x40bd20]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x40200d
mov eax, dword [ebp - 0x208]
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x210], eax
lea ebx, [ebp - 0x206]
push dword [ebp - 0x210]
push ebx
call fcn.00407faf
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x401fc5
and word [esi], 0
inc esi
inc esi
cmp dword [ebp + 0x14], 0
je 0x401fe3
push 0x2e
push ebx
call fcn.00407faf
test eax, eax
pop ecx
pop ecx
je 0x401fe3
mov cx, word [ebp - 0x214]
mov word [eax], cx
push ebx
push 0
push 0x143
push dword [ebp - 0x20c]
call edi
test esi, esi
mov ebx, esi
jne 0x401fab
push esi
push dword [ebp + 0x10]
push 0x14e
push dword [ebp - 0x20c]
call edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.00407e73
leave
ret 0x10

Function at 0x402766
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x40bccc]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push 0x20019
push 1
xor ebx, ebx
push ebx
push 1
push dword [esi + 0x40]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push dword [esi + 0x3c]
mov dword [ebp - 0xac], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
cmp eax, 0xffffffff
mov dword [ebp - 0xb0], eax
jne 0x4027b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x402895
push edi
lea ecx, [ebp - 0xb8]
push ecx
lea edi, [esi + 0x14]
push edi
push ebx
push ebx
push str.PortName
push eax
mov dword [ebp - 0xb8], 0x28
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xb0]
mov dword [ebp - 0xb4], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xb4]
cmp eax, ebx
jne 0x402894
push edi
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x40b2b8
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
lea eax, [ebp - 0xa8]
push eax
push dword [ebp - 0xac]
call fcn.0040216a
cmp dword [esi + 0x4c], ebx
jne 0x402892
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
push 0x349
push dword [ebp - 0xac]
call esi
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call edi
push ebx
push 0x34b
push dword [ebp - 0xac]
call esi
push eax
call edi
push ebx
push 0x34a
push dword [ebp - 0xac]
call esi
push eax
call edi
push ebx
push 0x34c
push dword [ebp - 0xac]
call esi
push eax
call edi
push ebx
push 0x34d
push dword [ebp - 0xac]
call esi
push eax
call edi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00407e73
leave
ret 8
Function at 0x402e5a
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push dword [ebp + 8]
xor ebx, ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
je 0x402f54
push edi
inc esi
lea eax, [esi + esi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
mov dword [ebp - 0xc], edi
je 0x402f53
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x402f41
push dword [ebp + 0xc]
push edi
call fcn.00408031
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x402f41
push dword [ebp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call edi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call edi
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp + 0xc]
test eax, eax
jle 0x402edf
add esi, eax
lea eax, [esi + esi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x402f41
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
sub eax, esi
sar eax, 1
lea ecx, [eax + eax]
mov dword [ebp - 0x10], ecx
mov edx, ecx
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp - 4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp + 0x10]
mov ecx, edx
add edi, ebx
rep movsw word es:[edi], word [esi]
mov ecx, dword [ebp - 8]
mov esi, dword [ebp + 0xc]
lea ecx, [ecx + esi*2]
add eax, edx
push ecx
lea eax, [ebx + eax*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
test ebx, ebx
je 0x402f53
push ebx
call esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x403515
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x40bccc]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push ebx
push edi
mov dword [ebp - 4], eax
call fcn.00402c12
xor esi, esi
cmp dword [ebx], esi
jne 0x4035d8
push 0x403
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x64], esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x58], str.Disabled
mov edi, 0x143
push dword [ebp - 0x58]
push 0
push edi
push dword [ebp - 0x5c]
call esi
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax*4 + 0x40b018]
cmp ecx, dword [ebx + 0x14]
jne 0x403587
mov dword [ebp - 0x60], eax
add dword [ebp - 0x58], 0x50
inc eax
cmp dword [ebp - 0x58], 0x40b268
mov dword [ebp - 0x64], eax
jl 0x40356a
cmp dword [ebp - 0x60], 7
jne 0x4035c7
mov eax, dword [ebx + 0x14]
push 0xa
pop ecx
xor edx, edx
div ecx
push eax
lea eax, [ebp - 0x54]
push str.Other__every__d_sec_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
push edi
push dword [ebp - 0x5c]
call esi
push 0
push dword [ebp - 0x60]
push 0x14e
push dword [ebp - 0x5c]
call esi
jmp 0x4035fd
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x403
push edi
call esi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
push 0
push 0x405
push edi
call esi
push eax
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00407e73
leave
ret 8
Function at 0x4037a1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xe5c
mov eax, dword [0x40bccc]
or dword [ebp - 0xe5c], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push ebx
push 2
mov dword [ebp - 4], eax
xor eax, eax
push ebx
inc eax
push eax
push edi
push esi
mov dword [ebp - 0xe50], eax
mov byte [ebp - 0xe45], bl
call dword [sym.imp.SETUPAPI.dll_SetupDiCreateDevRegKeyW]
cmp eax, ebx
mov dword [ebp - 0xe54], eax
je 0x40397d
cmp byte [ebp + 0x10], bl
je 0x4038ac
lea eax, [ebp - 0xe44]
push eax
push edi
push esi
mov dword [ebp - 0xe44], 0x61c
call dword [sym.imp.SETUPAPI.dll_SetupDiGetSelectedDriverW]
test eax, eax
je 0x40395c
push ebx
mov eax, 0x622
push eax
mov dword [ebp - 0x828], eax
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0xe44]
push eax
push edi
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDriverInfoDetailW]
test eax, eax
jne 0x403851
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40395c
push ebx
push 2
push ebx
lea eax, [ebp - 0x610]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0xe5c], esi
je 0x40395c
push ebx
push ebx
push 0x100
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x810]
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetActualSectionToInstallW]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0xe54]
lea eax, [ebp - 0x204]
push 4
push eax
push esi
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupInstallFromInfSectionW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xe4c]
push eax
lea eax, [ebp - 0xe45]
push eax
lea eax, [ebp - 0xe58]
push eax
push ebx
push 0x401380
push dword [ebp - 0xe54]
xor edi, edi
inc edi
mov dword [ebp - 0xe4c], edi
call esi
test eax, eax
jne 0x403907
cmp dword [ebp - 0xe4c], edi
jne 0x403907
cmp dword [ebp - 0xe58], 3
jne 0x403907
cmp byte [ebp - 0xe45], bl
je 0x403907
mov dword [ebp - 0xe50], 2
jmp 0x40395c
lea eax, [ebp - 0xe4c]
push eax
lea eax, [ebp - 0xe45]
push eax
lea eax, [ebp - 0xe58]
push eax
push ebx
push str.PortSubClass
push dword [ebp - 0xe54]
mov dword [ebp - 0xe4c], edi
call esi
test eax, eax
jne 0x403956
cmp dword [ebp - 0xe4c], edi
jne 0x403956
cmp dword [ebp - 0xe58], 3
jne 0x403956
cmp byte [ebp - 0xe45], bl
setne al
mov dword [ebp - 0xe50], eax
jmp 0x40395c
mov dword [ebp - 0xe50], edi
push dword [ebp - 0xe54]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xe5c], 0xffffffff
je 0x40397d
push dword [ebp - 0xe5c]
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xe50]
pop edi
pop esi
pop ebx
call fcn.00407e73
leave
ret 0xc

Function at 0x403fbb
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004037a1
sub eax, 0
je 0x403fdb
dec eax
jne 0x403fdb
pop ebp
jmp fcn.00403a6a
mov eax, 0xe000020e
pop ebp
ret 8
Function at 0x4064c5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push dword [ebp - 0x380]
call dword [ebp - 0x730]
push dword [ebp - 0x380]
call dword [ebp - 0x680]
jmp 0x4064e4
and dword [ebp - 0x37c], 0
push dword [ebp - 0x3a0]
call dword [ebp - 0x704]
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
je 0x40652b
lea eax, [ebp - 0x714]
push eax
call fcn.004044a5
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.0040445a
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
je 0x406536
jmp 0x40653b
jmp 0x405e37

Function at 0x40766d
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x40bccc]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push 0xf003f
push 1
xor ebx, ebx
push ebx
push 1
push dword [esi + 4]
mov dword [ebp - 4], eax
push dword [esi]
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x4077c2
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 9
pop eax
push 4
mov dword [esi + 8], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push ebx
push 0x40bbf8
push dword [ebp - 0xc]
call edi
push 0x465
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
test eax, eax
je 0x4076df
mov dword [esi + 0xc], ebx
jmp 0x407713
push 0x456
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
test eax, eax
je 0x4076fa
mov dword [esi + 0xc], 1
jmp 0x407713
push 0x483
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
test eax, eax
je 0x407713
mov dword [esi + 0xc], 2
mov eax, dword [esi + 0xc]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push ebx
push str.TranceiverMode
push dword [ebp - 0xc]
call edi
push ebx
push ebx
push 0x147
push 1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp eax, 0xffffffff
je 0x407761
cmp eax, 0xfffffffe
je 0x407761
push 4
mov dword [esi + 0x10], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push ebx
push str.RS485Mode
push dword [ebp - 0xc]
call edi
push 0x445
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push ebx
push str.EnableHWFlowControl
push dword [ebp - 0xc]
call edi
push 4
lea eax, [ebp - 8]
push eax
push 4
push ebx
push str.HWFlowControl
push dword [ebp - 0xc]
mov dword [esi + 0x18], ebx
mov dword [ebp - 8], ebx
call edi
mov eax, dword [esi + 4]
push ebx
push dword [eax + 0x14]
call dword [sym.imp.SETUPAPI.dll_CM_Reenumerate_DevNode]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esi + 4]
push dword [esi]
push 0x12
call dword [sym.imp.SETUPAPI.dll_SetupDiCallClassInstaller]
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00407e73
leave
ret 8