joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b8510
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4b8543
push esi
call fcn.004bb600
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4b853c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4b85c9
mov eax, dword [esi + reloc.WINMM.dll_midiStreamOut]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4b85b2
mov eax, dword [esi + 8]
test eax, eax
je 0x4b8567
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + reloc.WINMM.dll_midiStreamOut]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4b85ae
cmp eax, 2
je 0x4b85b2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4b855a
cmp eax, 3
je 0x4b858d
cmp eax, 1
jne 0x4b855a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4b855a
mov edx, dword [esi + reloc.WINMM.dll_midiStreamOut]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4b855a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004b85f0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4b85d8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004b85f0
add esp, 4
pop esi
ret

Function at 0x867527
Capabilities:
Execute anti-debugging instructions

Disassembly:
add edi, 0x69bc9a5c
jmp fcn.00865cd9
rdtsc
jmp 0x865860
cmc
jmp 0x865cef
mov ecx, edi
lea ebx, [eax + ebx]
stc
jo 0x865d10
cmc
rdtsc
jmp 0x865860
jmp 0x865d84
mov ebp, esp
setl ah
xchg bh, cl
rdtsc
and bx, 0xe670
jp 0x865f21
jnp 0x865d84
sub esp, 0xac
jmp 0x865f5e
mov dl, byte [esp]
stc
jnp 0x86657f
jp 0x86657f
lea esp, [esp + 2]
lea esi, [esp + 0x14]
cpuid
mov ebp, 0xe9065732
jmp 0x867029
Function at 0xc2c6d4
Capabilities:
Execute anti-debugging instructions

Disassembly:
sub ax, 0x6c70
mov bl, bh
mov dx, di
mov dl, dh
btr ebx, edx
neg si
jmp 0xc2c4c1
mov bp, 0xf239
mov word [esp + 3], sp
setne bh
mov ax, bx
mov esi, ecx
mov dword [esp], esi
jmp 0xc2c4eb
push word [esp + 1]
stc
neg ch
mov dx, word [esp + 0xc]
mov bl, bh
mov edi, 0xb64df514
jmp 0xc2c524
btr edx, esp
mov ecx, dword [esp + 6]
xchg ah, bl
mov ecx, dword [esp + 6]
inc edx
xchg edi, ebx
jmp 0xc2c5f3
jmp 0xc2c64b

Function at 0xc2c743
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop edi
rdtsc
mov cl, ch
mov al, 0xa6
xchg dword [esp + 0x11], eax
jmp 0xc2c767

Function at 0xc2c992
Capabilities:
Execute anti-debugging instructions

Disassembly:
and esi, ecx
xchg word [esp + 9], ax
cpuid
shr esi, 0x19
jmp 0xc2ca0c
lea esp, [esp + 0xf]
inc dx
xchg byte [esp + 4], dl
push edx
add esp, 4
cpuid
jmp 0xc2c9f6
stc
mov ebx, 0x3fccd374
not ch
mov byte [esp + 3], dh
jmp 0xc2ca38
into
dec ebp
frstor dword [edi + edx*2 + reloc.WINMM.dll_midiStreamOut]
mov ecx, dword [esp + 4]
mov cx, word [esp + 4]
not dh
sub esp, 0xc
xchg dh, al
pop edi
push word [esp + 0xd]
jmp 0xc2c9e0
xchg dh, al
mov ecx, dword [esp + 1]
xchg dword [esp], ebp
bsf dx, ax
push word [esp]
jmp 0xc2ca9f
pop word [esp + 1]
mov ebp, 0x3cea7108
xchg ah, bl
bswap ebp
xchg ah, bl
mov cl, ch
jmp 0xc2ca20
rdtsc
call fcn.00c2caee
cmp edi, dword [edx + edx*2 + reloc.WINMM.dll_midiStreamOut]
mov dword [ecx], ebx
js 0xc2ca04
test al, 0xcb
bound ecx, qword [edi]
xor dword [ebp + reloc.WINMM.dll_midiStreamOut], ecx
add byte [eax], al
rdtsc
lea edi, [ecx*4]
push esp
mov ebp, dword [esp]
pushal
bswap esi
jmp 0xc2ca67
lea esi, [edx*4]
mov dh, byte [esp + 1]
lea eax, [esi*4]
xchg edi, edx
pop word [esp]
mov bx, 0xc71f
jmp 0xc2ca7d
Function at 0x402aac
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004047c8
test esi, esi
jne 0x402ae2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004048b8
jmp 0x402b00
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029c0
mov edi, eax
test esi, esi
je 0x402b00
cmp dword [ebx], 0
je 0x402b00
dec esi
jmp 0x402ae9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40388c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4a0020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403924
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403904
xor eax, eax
push ebp
push 0x4038fd
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 0x403940
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 0x403904
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4a0020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4a0020], ax
mov esp, ebp
pop ebp
ret

Function at 0x40464c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a204c], 0
je 0x4046ad
cmp word [0x4a2220], 0xd7b2
jne 0x404675
cmp dword [0x4a2228], 0
jbe 0x404675
mov eax, 0x4a221c
call dword [0x4a2238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4a0070
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 0x4046d4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a0030], 0
jne 0x4046c9
push 0
push 0x4a0068
push 0x4a0070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406090
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4062c0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406113
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4062c0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406113
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4062dc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40619c
xor eax, eax
push ebp
push 0x406195
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405ed8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40617a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4062fc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40617a
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40619c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4062b6
cmp byte [ebp - 0xd], 0
jne 0x4061e3
cmp byte [ebp - 0x12], 0
je 0x4062b6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4061fc
dec ebx
cmp byte [ebx], 0x2e
je 0x40620b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4061fb
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4062b6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406248
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4062b6
cmp byte [ebp - 0xd], 0
je 0x4062b6
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4062b6
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4069f4
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 0x406a5a
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.00404a38
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040329c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406a44
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a61
lea eax, [ebp - 0x10]
call fcn.004047c8
ret

Function at 0x40c018
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c051
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004048b8
jmp 0x40c05a
mov eax, ebx
mov edx, esi
call fcn.0040481c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c064
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c085
mov al, byte [esp]
jmp 0x40c087
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c70c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c584
mov eax, dword [0x4a1aa8]
cmp byte [eax], 0
je 0x40c788
mov eax, dword [0x4a186c]
call fcn.00402ef4
call fcn.004028ec
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409810
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40c7d0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c7be
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4a1808]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4a2668]
call fcn.00405e9c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40d078
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d14e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404860
lea eax, [ebp - 8]
call fcn.00404cf4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404ca4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d138
mov eax, ebx
call fcn.00402784
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d131
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404ca4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d11b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d160
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d11b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d138
mov eax, dword [ebp - 0x10]
call fcn.004027a4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d155
lea eax, [ebp - 8]
call fcn.004047c8
ret

Function at 0x40d6d0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40d734
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404a38
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040920c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d73b
lea eax, [ebp - 0xc]
call fcn.004047c8
ret

Function at 0x423134
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4a2888
cmp dword [edi], 0
jne 0x4231b0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4a2884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4a04a8
mov ecx, 2
call fcn.00402980
mov edx, 0x42310c
lea eax, [esi + 5]
call fcn.0042312c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042312c
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x423185
mov dword [0x4a2884], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x424714
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x42471a
ret
Function at 0x426d40
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x426d91
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x426d78
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x426d68
jmp 0x426d91
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x426d79
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x435754
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4358bd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00404860
mov eax, dword [ebp - 0x10]
call fcn.004353e0
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x4357a6
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00404d44
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00435c38
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x43587b
xor eax, eax
push ebp
push 0x435874
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00435550
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.004358cc
test al, al
je 0x435852
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.004048b8
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x435852
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404ca4
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x43584c
mov eax, dword [ebp - 0x14]
call fcn.00404ca4
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.004049c0
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.00435754
dec ebx
cmp ebx, 0xffffffff
jne 0x435805
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43587b
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00435550
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.00404ca4
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.0043553c
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4358c4
lea eax, [ebp - 0x3c]
call fcn.004047c8
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004047ec
ret
Function at 0x43587b
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4358bd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00404860
mov eax, dword [ebp - 0x10]
call fcn.004353e0
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x4357a6
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00404d44
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00435c38
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x43587b
xor eax, eax
push ebp
push 0x435874
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00435550
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.004358cc
test al, al
je 0x435852
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.004048b8
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x435852
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404ca4
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x43584c
mov eax, dword [ebp - 0x14]
call fcn.00404ca4
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.004049c0
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.00435754
dec ebx
cmp ebx, 0xffffffff
jne 0x435805
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43587b
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00435550
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.00404ca4
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.0043553c
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4358c4
lea eax, [ebp - 0x3c]
call fcn.004047c8
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004047ec
ret

Function at 0x4358cc
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.004030ac
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x4a1bfc]
cmp byte [edx + 0xc], 0
je 0x435930
mov edx, dword [0x4a1bf0]
cmp dword [edx], 2
jne 0x435930
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x435934
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4359ec
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.004358cc
test al, al
je 0x4359ce
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.004048b8
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x4359ce
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404ca4
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov eax, dword [ebp - 0xc]
call fcn.00404ca4
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.004049c0
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x435987
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4359f3
lea eax, [ebp - 0x2c]
call fcn.004047c8
lea eax, [ebp - 0xc]
call fcn.004047c8
ret

Function at 0x435b5c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.004353f4
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404ca4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x435bba
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4a199c]
mov dl, 1
mov eax, dword [0x4352ec]
call fcn.0040c8d8
call fcn.004041e8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x435bc4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404ca4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x435c1c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4a1c08]
mov dl, 1
mov eax, dword [0x4352ec]
call fcn.0040c8d8
call fcn.004041e8
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00435424
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8