joyce8/EMBER2024-capa huggingface dataset:
Function at 0x480b2c
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x4809a8
add esp, 8
sub eax, dword [esp]
je 0x4809b4
jne 0x4809b4
jmp 0x4809b6
jmp 0x4809b7
add dword [ebx + 0xae804c4], 0xe8000000
jmp 0x4809ce
add esp, 4
call 0x4809c9
call 0x4816af
call 0x4809bf
call 0x4809c0
add esp, 8
cmp eax, 0xfff
jmp 0x4809d9
jmp 0x4809dd
jmp 0x4809e0
jbe 0x4809fd
jmp 0x4809e5
jmp 0x4809e9
jmp 0x4809ec
int3
jmp 0x480a00
jmp 0x480a04
jmp 0x480a07
jmp 0x480a0a
jmp 0x480a0e
jmp 0x480a11
je 0x480a17
jne 0x480a17
jmp 0x480a19
jmp 0x480a1a
or dword [edi], 0x310f5031
rdtsc
push eax
rdtsc
call 0x480a2e
call 0x481714
call 0x480a24
call 0x480a25
inc dword [ebx + 0x42b08c4]
and al, 0x74
invalid
jne 0x480a3f
jmp 0x480a41
jmp 0x480a42
add dword [ebx + 0xae804c4], 0xe8000000
jmp 0x480a59
add esp, 4
call 0x480a54
call 0x48173a
call 0x480a4a
call 0x480a4b
add esp, 8
cmp eax, 0xfff
jmp 0x480a64
jmp 0x480a68
jmp 0x480a6b
jbe 0x480a88
jmp 0x480a70
jmp 0x480a74
jmp 0x480a77
int3
call 0x480a8d
add esp, 4
call 0x480a9f
call 0x481785
call 0x480a95
call 0x480a96
add esp, 8
je 0x480aad
jne 0x480aad
jmp 0x480aaf
jmp 0x480ab0
or dword [edi], 0x310f5031
rdtsc
push eax
rdtsc
call 0x480ac4
call 0x4817aa
call 0x480aba
call 0x480abb
add esp, 8
sub eax, dword [esp]
je 0x480ad5
jne 0x480ad5
jmp 0x480ad8
add esp, 4
call 0x480aea
call 0x4817d0
call 0x480ae0
call 0x480ae1
add esp, 8
cmp eax, 0xfff
jmp 0x480afa
jmp 0x480afe
jmp 0x480b01
jbe 0x480b1e
jmp 0x480b06
jmp 0x480b0a
jmp 0x480b0d
int3
call 0x480b23
add esp, 4
call 0x480b35
call 0x48181b
call 0x480b2b
call 0x480b2c
add esp, 8
je 0x480b43
jne 0x480b43
jmp 0x480b45
jmp 0x480b46
or dword [edi], 0x310f5031
rdtsc
push eax
rdtsc
call 0x480b5a
call 0x481840
call 0x480b50
call 0x480b51
add esp, 8
sub eax, dword [esp]
je 0x480b6b
jne 0x480b6b
jmp 0x480b6d
jmp 0x480b6e
add dword [ebx + 0xae804c4], 0xe8000000
jmp fcn.00480b85
add esp, 4
call 0x480b80
call 0x481866
call 0x480b76
call 0x480b77
Function at 0x480b35
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x4809a8
add esp, 8
sub eax, dword [esp]
je 0x4809b4
jne 0x4809b4
jmp 0x4809b6
jmp 0x4809b7
add dword [ebx + 0xae804c4], 0xe8000000
jmp 0x4809ce
add esp, 4
call 0x4809c9
call 0x4816af
call 0x4809bf
call 0x4809c0
add esp, 8
cmp eax, 0xfff
jmp 0x4809d9
jmp 0x4809dd
jmp 0x4809e0
jbe 0x4809fd
jmp 0x4809e5
jmp 0x4809e9
jmp 0x4809ec
int3
jmp 0x480a00
jmp 0x480a04
jmp 0x480a07
jmp 0x480a0a
jmp 0x480a0e
jmp 0x480a11
je 0x480a17
jne 0x480a17
jmp 0x480a19
jmp 0x480a1a
or dword [edi], 0x310f5031
rdtsc
push eax
rdtsc
call 0x480a2e
call 0x481714
call 0x480a24
call 0x480a25
inc dword [ebx + 0x42b08c4]
and al, 0x74
invalid
jne 0x480a3f
jmp 0x480a41
jmp 0x480a42
add dword [ebx + 0xae804c4], 0xe8000000
jmp 0x480a59
add esp, 4
call 0x480a54
call 0x48173a
call 0x480a4a
call 0x480a4b
add esp, 8
cmp eax, 0xfff
jmp 0x480a64
jmp 0x480a68
jmp 0x480a6b
jbe 0x480a88
jmp 0x480a70
jmp 0x480a74
jmp 0x480a77
int3
call 0x480a8d
add esp, 4
call 0x480a9f
call 0x481785
call 0x480a95
call 0x480a96
add esp, 8
je 0x480aad
jne 0x480aad
jmp 0x480aaf
jmp 0x480ab0
or dword [edi], 0x310f5031
rdtsc
push eax
rdtsc
call 0x480ac4
call 0x4817aa
call 0x480aba
call 0x480abb
add esp, 8
sub eax, dword [esp]
je 0x480ad5
jne 0x480ad5
jmp 0x480ad8
add esp, 4
call 0x480aea
call 0x4817d0
call 0x480ae0
call 0x480ae1
add esp, 8
cmp eax, 0xfff
jmp 0x480afa
jmp 0x480afe
jmp 0x480b01
jbe 0x480b1e
jmp 0x480b06
jmp 0x480b0a
jmp 0x480b0d
int3
call 0x480b23
add esp, 4
call 0x480b35
call 0x48181b
call 0x480b2b
call 0x480b2c
add esp, 8
je 0x480b43
jne 0x480b43
jmp 0x480b45
jmp 0x480b46
or dword [edi], 0x310f5031
rdtsc
push eax
rdtsc
call 0x480b5a
call 0x481840
call 0x480b50
call 0x480b51
add esp, 8
sub eax, dword [esp]
je 0x480b6b
jne 0x480b6b
jmp 0x480b6d
jmp 0x480b6e
add dword [ebx + 0xae804c4], 0xe8000000
jmp fcn.00480b85
add esp, 4
call 0x480b80
call 0x481866
call 0x480b76
call 0x480b77
Function at 0x4ca011
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4d43f0
cmp edx, dword [eax]
je 0x4ca033
add eax, 8
inc ecx
cmp eax, 0x4d4480
jl 0x4ca024
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4d43f0]
jne 0x4ca161
mov eax, dword [0x4d9e20]
cmp eax, 1
je 0x4ca13b
test eax, eax
jne 0x4ca064
cmp dword [0x4d431c], 1
je 0x4ca13b
cmp edx, 0xfc
je 0x4ca161
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ca09b
lea eax, [ebp - 0x1a4]
push 0x4cfe28
push eax
call fcn.004ca9f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004cae80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4ca0de
lea eax, [ebp - 0x1a4]
push eax
call fcn.004cae80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4cfe24
push edi
call fcn.004ccd50
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4cfe08
push eax
call fcn.004ca9f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004caa00
lea eax, [ebp - 0xa0]
push 0x4cfe04
push eax
call fcn.004caa00
push dword [esi + 0x4d43f4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004caa00
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4cfddc
push eax
call fcn.004cccc4
add esp, 0x2c
pop edi
jmp 0x4ca161
lea eax, [ebp + 8]
lea esi, [esi + 0x4d43f4]
push 0
push eax
push dword [esi]
call fcn.004cae80
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x653174c4
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x1f6e411e
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x403370
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.00404bc4
test esi, esi
jne 0x4033a6
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.00404cb4
jmp 0x4033c4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403214
mov edi, eax
test esi, esi
je 0x4033c4
cmp dword [ebx], 0
je 0x4033c4
dec esi
jmp 0x4033ad
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403b90
Capabilities:
Query or enumerate registry value

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

Function at 0x404a44
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b004c], 0
je 0x404aa5
cmp word [0x4b0220], 0xd7b2
jne 0x404a6d
cmp dword [0x4b0228], 0
jbe 0x404a6d
mov eax, 0x4b021c
call dword [0x4b0238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x404acc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4aa02c], 0
jne 0x404ac1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4062a0
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 0x4064d0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406323
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4064d0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406323
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4064ec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4063ac
xor eax, eax
push ebp
push 0x4063a5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004060dc
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 0x40638a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40650c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40638a
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 0x4063ac
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 0x4064c6
cmp byte [ebp - 0xd], 0
jne 0x4063f3
cmp byte [ebp - 0x12], 0
je 0x4064c6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40640c
dec ebx
cmp byte [ebx], 0x2e
je 0x40641b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40640b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4064c6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406458
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 0x4064c6
cmp byte [ebp - 0xd], 0
je 0x4064c6
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 0x4064c6
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 0x409324
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x409376
test eax, edx
je 0x409379
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x409339
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40935f
add ecx, 4
js 0x40934f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x40935c
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x409385
test edx, edx
jne 0x40932c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x409c2c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405054
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409c4a
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x409c6b
cmp ebx, 3
je 0x409c6b
cmp ebx, 0x7b
je 0x409c6b
mov eax, esi
call fcn.00409bec
test al, al
jne 0x409c6f
xor eax, eax
jmp 0x409c71
mov al, 1
pop esi
pop ebx
ret

Function at 0x409c74
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405054
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409c8d
test al, 0x10
jne 0x409c91
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40cb38
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 0x40cb71
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404cb4
jmp 0x40cb7a
mov eax, ebx
mov edx, esi
call fcn.00404c18
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40cb84
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 0x40cba6
movzx eax, byte [esp]
jmp 0x40cba8
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40d238
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d0b0
mov eax, dword [0x4afbf8]
cmp byte [eax], 0
je 0x40d2b4
mov eax, dword [0x4af958]
call fcn.004034bc
call fcn.00403080
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.0040a170
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 0x40d2fc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d2ea
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4af8e8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b27f8]
call fcn.00406084
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 0x40dbc8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40dc9e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404c5c
lea eax, [ebp - 4]
call fcn.004050ac
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405054
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40dc88
mov eax, ebx
call fcn.00402f24
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40dc81
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 - 4]
call fcn.00405054
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40dc6b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40dcb0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40dc6b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dc88
mov eax, dword [ebp - 0x10]
call fcn.00402f40
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dca5
lea eax, [ebp - 4]
call fcn.00404bc4
ret
Function at 0x421574
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4b49ec
cmp dword [edi], 0
jne 0x4215f0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4b49e8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4aab90
mov ecx, 2
call fcn.00403114
mov edx, 0x42154c
lea eax, [esi + 5]
call fcn.0042156c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042156c
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 0x4215c5
mov dword [0x4b49e8], 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 0x4241f4
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 - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x42435e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404c5c
mov eax, dword [ebp - 4]
call fcn.00423d8c
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x424246
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.004050fc
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004245d0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x42431b
xor eax, eax
push ebp
push 0x424314
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00423efc
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.0042436c
test al, al
je 0x4242f2
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00404cb4
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x4242f2
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00405054
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x4242ec
mov eax, dword [ebp - 8]
call fcn.00405054
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404dbc
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.004241f4
dec ebx
cmp ebx, 0xffffffff
jne 0x4242a5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42431b
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00423efc
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 4]
call fcn.00405054
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.00423ee8
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 0x424365
lea eax, [ebp - 0x3c]
call fcn.00404bc4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404be8
ret
Function at 0x42431b
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 - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x42435e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404c5c
mov eax, dword [ebp - 4]
call fcn.00423d8c
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x424246
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.004050fc
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004245d0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x42431b
xor eax, eax
push ebp
push 0x424314
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00423efc
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.0042436c
test al, al
je 0x4242f2
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00404cb4
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x4242f2
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00405054
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x4242ec
mov eax, dword [ebp - 8]
call fcn.00405054
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404dbc
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.004241f4
dec ebx
cmp ebx, 0xffffffff
jne 0x4242a5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42431b
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00423efc
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 4]
call fcn.00405054
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.00423ee8
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 0x424365
lea eax, [ebp - 0x3c]
call fcn.00404bc4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404be8
ret

Function at 0x42436c
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.0040363c
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 [0x4afd88]
cmp byte [edx + 0xc], 0
je 0x4243d0
mov edx, dword [0x4afd78]
cmp dword [edx], 2
jne 0x4243d0
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 0x4244f4
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
movzx eax, byte [ebp + 8]
call fcn.00423da0
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.00405054
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x424553
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4afad8]
mov dl, 1
mov eax, dword [0x423c98]
call fcn.0040d404
call fcn.0040460c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42455c
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.00405054
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4245b4
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4afd9c]
mov dl, 1
mov eax, dword [0x423c98]
call fcn.0040d404
call fcn.0040460c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00423dd0
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

Function at 0x42587c
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 0x425882
ret