joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402cb0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x445260
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov al, byte [esi + 0x11c]
mov dword [esp + 0x1c], 0
test al, al
mov bl, 1
jne 0x402def
mov eax, dword [esp + 0x24]
push edi
lea edi, [esi + 0x1b8]
push eax
mov ecx, edi
call fcn.004035c0
mov eax, dword [edi]
pop edi
cmp eax, 9
je 0x402def
test eax, eax
jle 0x402def
mov ecx, dword [0x45d440]
mov dword [esp + 8], ecx
push eax
lea edx, [esp + 0xc]
push str.Error__d
push edx
mov byte [esp + 0x28], bl
call fcn.0042b229
add esp, 0xc
lea eax, [esi + 0x1c0]
lea ecx, [esp + 0xc]
push eax
call fcn.0042d01c
push 0
push 0x4587d0
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 2
call fcn.0042aef6
mov ecx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x402e15
cmp dword [ecx - 8], 3
jle 0x402e15
inc eax
lea ecx, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.0042ae4e
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 3
call fcn.0042d3e0
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 2
call fcn.0042d2a7
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 6
ja case.0x402da5.1
jmp dword [eax*4 + 0x402e80]
mov ecx, dword [esp + 8]
push 0
push ecx
jmp 0x402dc5
mov edx, dword [esp + 8]
push 0
push edx
jmp 0x402dc5
mov eax, dword [esp + 8]
push 0
push eax
push str.A_valid_Directory_must_be_specified
mov ecx, esi
call fcn.00430dc3
xor bl, bl
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 1
call fcn.0042d2a7
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 0
call fcn.0042d2a7
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0042d2a7
mov al, bl
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
mov eax, dword [ecx - 8]
push 0
cmp eax, 3
jg 0x402e2b
mov ecx, dword [esp + 0xc]
push ecx
push str.The_drive_root_is_not_a_valid_location
jmp 0x402e35
mov edx, dword [esp + 0xc]
push edx
push str.A_valid_Directory_must_be_specified
mov ecx, esi
call fcn.00430dc3
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 1
call fcn.0042d2a7
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 0
call fcn.0042d2a7
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0042d2a7
mov ecx, dword [esp + 0x14]
pop esi
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x404290
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4454e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x28]
lea esi, [edi + 0x28]
mov dword [esp + 0x38], 0
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4042cd
push 0x4587d0
mov ecx, esi
call fcn.0042d430
mov ecx, dword [esi]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4044b6
mov edx, dword [edi + 8]
lea eax, [edi + 8]
mov ecx, dword [edx - 8]
test ecx, ecx
je 0x4044b6
push eax
lea ecx, [esp + 0x14]
call fcn.0042d01c
mov eax, dword [0x45d440]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
mov byte [esp + 0x38], 2
mov ecx, dword [eax - 8]
mov al, byte [ecx + eax - 1]
cmp al, 0x5c
je 0x404320
push 0x4587d0
lea ecx, [esp + 0x14]
call fcn.0042d683
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x10]
call fcn.0042d01c
lea edx, [esp + 0x10]
lea ecx, [esp + 0x1c]
push edx
mov byte [esp + 0x3c], 3
call fcn.0042d3e0
lea eax, [esp + 0xc]
push esi
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.0042d4d6
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 4
call fcn.004327e2
mov edx, dword [esp + 0x18]
push 0
push 0
push edx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x44], 5
call fcn.004328f4
test eax, eax
je 0x404385
lea ecx, [esp + 0x20]
call fcn.00432b0f
jmp 0x4043f6
mov eax, dword [esp + 0x40]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4043f6
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x10]
call fcn.0042d6bf
lea edx, [esp + 0xc]
lea ecx, [esp + 0x14]
push edx
call fcn.0042d01c
push 0x4587d0
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 6
call fcn.0042d683
push esi
lea ecx, [esp + 0x18]
call fcn.0042d6bf
mov eax, dword [esp + 0x14]
push 0
push 0
push eax
lea ecx, [esp + 0x2c]
call fcn.004328f4
test eax, eax
je 0x4043e8
lea ecx, [esp + 0x20]
call fcn.00432b0f
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 5
call fcn.0042d2a7
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xc]
call fcn.0042d01c
mov eax, dword [esp + 8]
mov byte [esp + 0x38], 7
mov ecx, dword [eax - 8]
cmp byte [ecx + eax - 1], 0x5c
je 0x404425
push 0x4587d0
lea ecx, [esp + 0xc]
call fcn.0042d683
push esi
lea ecx, [esp + 0xc]
call fcn.0042d6bf
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0xa
push edx
push 0
push eax
push 0
push 0
call esi
cmp eax, 0x20
jg 0x404462
push 0xa
push str.c:Temp
push 0
push str.C:Temp_
push 0
push 0
call esi
lea ecx, [esp + 8]
mov byte [esp + 0x38], 5
call fcn.0042d2a7
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 4
call fcn.00432837
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 3
call fcn.0042d2a7
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 2
call fcn.0042d2a7
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 1
call fcn.0042d2a7
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 0
call fcn.0042d2a7
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], 0xffffffff
call fcn.0042d2a7
mov ecx, dword [esp + 0x30]
pop edi
mov al, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret 4
Function at 0x405ca0
Capabilities:
Connect network resource
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x445898
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov eax, dword [0x45d440]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], eax
push 0x459b28
lea ecx, [esp + 0x10]
mov dword [esp + 0x78], 0
call fcn.0042d430
mov ecx, dword [esi + 0x5c]
lea eax, [esi + 0x5c]
mov edx, dword [ecx - 8]
test edx, edx
je 0x405cf5
push eax
lea ecx, [esp + 0x10]
call fcn.0042d6bf
jmp 0x405d03
push str.127.0.0.1
lea ecx, [esp + 0x10]
call fcn.0042d683
push 0x4587d0
lea ecx, [esp + 0x10]
call fcn.0042d683
lea edx, [esi + 0x60]
lea ecx, [esp + 0xc]
push edx
call fcn.0042d6bf
mov eax, dword [esp + 0xc]
mov dword [esp + 0x30], 0x459b18
mov dword [esp + 0x34], 0x459b14
mov dword [esp + 0x38], 0x459b10
mov dword [esp + 0x3c], 0x459b0c
mov dword [esp + 0x40], 0x459b08
mov dword [esp + 0x44], 0x459b04
mov dword [esp + 0x48], 0x459b00
mov dword [esp + 0x4c], 0x459afc
mov dword [esp + 0x50], 0x459af8
mov dword [esp + 0x54], 0x459af4
mov dword [esp + 0x58], 0x459af0
mov dword [esp + 0x5c], 0x459aec
mov dword [esp + 0x60], 0x459ae8
mov dword [esp + 0x64], 0x459ae4
mov dword [esp + 0x68], 0x459ae0
mov dword [esp + 0x14], 1
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], 0
xor ebx, ebx
lea edi, [esp + 0x30]
mov ecx, dword [edi]
mov eax, dword [esi + 0x64]
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x68]
push 0
push eax
lea edx, [esp + 0x18]
push ecx
push edx
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
je 0x405df8
push 0
push 0
lea eax, [esp + 0x18]
push 0
push eax
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
je 0x405df1
inc ebx
add edi, 4
cmp ebx, 0xf
jge 0x405e05
jmp 0x405db4
mov ecx, dword [esp + ebx*4 + 0x30]
push ecx
jmp 0x405dfd
mov edx, dword [esp + ebx*4 + 0x30]
push edx
lea ecx, [esi + 0x74]
call fcn.0042d430
mov eax, dword [esi + 0x74]
pop edi
pop esi
pop ebx
mov ecx, dword [eax - 8]
mov dword [esp + 0x68], 0xffffffff
test ecx, ecx
lea ecx, [esp]
jne 0x405e34
call fcn.0042d2a7
xor al, al
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret
call fcn.0042d2a7
mov ecx, dword [esp + 0x60]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x6c
ret
Function at 0x405e50
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4458e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x45d440]
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], eax
lea eax, [ebx + 0x74]
lea ecx, [esp + 0x14]
push eax
mov dword [esp + 0x34], 0
call fcn.0042d6bf
push 0x4587d0
lea ecx, [esp + 0x18]
call fcn.0042d683
mov ecx, dword [0x45d440]
mov dword [esp + 0x10], ecx
lea esi, [ebx + 0x40]
push 0x20
mov ecx, esi
mov byte [esp + 0x34], 1
call fcn.0042d76e
mov edx, dword [0x45d440]
mov edi, eax
mov dword [esp + 0x18], edx
cmp edi, 0xffffffff
mov byte [esp + 0x30], 2
je 0x405fcb
push ebp
push edi
lea eax, [esp + 0x24]
push 0
push eax
mov ecx, esi
call fcn.0042ad3c
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 3
call fcn.0042d3e0
lea ecx, [esp + 0x20]
mov byte [esp + 0x34], 2
call fcn.0042d2a7
mov byte [esp + 0x12], 1
lea ebx, [edi + 1]
mov ecx, esi
push ebx
push 0x20
mov byte [esp + 0x1b], 0
call fcn.0042d77c
mov ebp, eax
cmp ebp, 0xffffffff
je 0x405f6c
mov al, byte [esp + 0x12]
mov byte [esp + 0x13], 1
test al, al
jne 0x405f38
push 0x458844
lea ecx, [esp + 0x18]
call fcn.0042d683
mov ecx, ebp
lea edx, [esp + 0x20]
sub ecx, edi
dec ecx
push ecx
push ebx
push edx
mov ecx, esi
call fcn.0042ad3c
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 4
call fcn.0042d6bf
lea ecx, [esp + 0x20]
mov byte [esp + 0x34], 2
call fcn.0042d2a7
mov edi, ebp
jmp 0x405fb5
mov al, byte [esp + 0x12]
test al, al
jne 0x405f82
push 0x458844
lea ecx, [esp + 0x18]
call fcn.0042d683
mov eax, dword [esi]
lea ecx, [esp + 0x24]
mov eax, dword [eax - 8]
sub eax, edi
dec eax
push eax
push ebx
push ecx
mov ecx, esi
call fcn.0042ad3c
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 5
call fcn.0042d6bf
lea ecx, [esp + 0x24]
mov byte [esp + 0x34], 2
call fcn.0042d2a7
mov al, byte [esp + 0x13]
mov byte [esp + 0x12], 0
test al, al
jne 0x405f04
mov ebx, dword [esp + 0x28]
pop ebp
push esi
lea ecx, [esp + 0x18]
call fcn.0042d6bf
mov eax, dword [ebx + 0x74]
lea ecx, [esp + 0x14]
push eax
push str.dl
call fcn.0042abd9
mov eax, dword [ebx + 0x74]
mov edx, dword [esp + 0x10]
push 0xa
push eax
mov eax, dword [esp + 0x1c]
push edx
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x406047
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
call fcn.0042d2a7
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 0
call fcn.0042d2a7
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.0042d2a7
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
lea ecx, [esp + 0x18]
mov byte [ebx + 0x78], 1
mov byte [esp + 0x30], 1
call fcn.0042d2a7
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 0
call fcn.0042d2a7
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.0042d2a7
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x4081c0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x445bf5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
mov eax, dword [0x45d440]
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
mov ebp, 1
push ecx
mov dword [esp + 0xbc], ebp
mov dword [esp + 0x18], 0x9c
call esi
test eax, eax
jne 0x408250
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0x94
push edx
call esi
test eax, eax
jne 0x408250
mov esi, dword [esp + 0xc0]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.0042d01c
mov dword [esp + 0x10], ebp
jmp 0x408378
mov eax, dword [esp + 0x24]
sub eax, 0
je 0x408353
dec eax
je 0x4082c1
dec eax
jne 0x408361
cmp dword [esp + 0x18], 4
ja 0x40827c
push str.Microsoft_Windows_NT
lea ecx, [esp + 0x10]
call fcn.0042d683
mov eax, dword [esp + 0x18]
mov esi, 5
cmp eax, esi
jne 0x408361
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4082ad
push str.Microsoft_Windows_2000
lea ecx, [esp + 0x10]
call fcn.0042d683
cmp dword [esp + 0x18], esi
jne 0x408361
cmp dword [esp + 0x1c], ebp
jne 0x408361
push str.Microsoft_Windows_XP
jmp 0x408358
mov eax, dword [esp + 0x18]
mov esi, 4
cmp eax, esi
jne 0x408361
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x408315
push str.Microsoft_Windows_95
lea ecx, [esp + 0x10]
call fcn.0042d683
mov eax, dword [esp + 0x29]
cmp al, 0x43
jne 0x4082f7
push str.OSR2
jmp 0x408306
push eax
lea ecx, [esp + 0x10]
call fcn.0042d6aa
push 0x458658
lea ecx, [esp + 0x10]
call fcn.0042d683
cmp dword [esp + 0x18], esi
jne 0x408361
cmp dword [esp + 0x1c], 0xa
jne 0x408345
push str.Microsoft_Windows_98
lea ecx, [esp + 0x10]
call fcn.0042d683
cmp byte [esp + 0x29], 0x41
jne 0x40833f
push 0x459f30
lea ecx, [esp + 0x10]
call fcn.0042d683
cmp dword [esp + 0x18], esi
jne 0x408361
cmp dword [esp + 0x1c], 0x5a
jne 0x408361
push str.Microsoft_Windows_Me
jmp 0x408358
push str.Microsoft_Win32s
lea ecx, [esp + 0x10]
call fcn.0042d683
mov esi, dword [esp + 0xc0]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.0042d01c
mov dword [esp + 0x10], ebp
lea ecx, [esp + 0xc]
mov byte [esp + 0xb8], 0
call fcn.0042d2a7
mov ecx, dword [esp + 0xb0]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0xb0
ret 4

Function at 0x4083b0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x20
lea eax, [esp]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 0x2c]
mov ecx, 8
lea esi, [esp + 8]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
add esp, 0x20
ret 4

Function at 0x409a00
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
push str.EAC_gbVariableMutex
push 0
push 0
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
mov dword [esi], eax
je 0x409a27
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, esi
pop esi
ret
Function at 0x40b3d0
Capabilities:
Encode data using xor
Encrypt data using blowfish

Disassembly:
sub esp, 0xc
xor eax, eax
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [edi]
mov edx, dword [eax + 0x45b0c8]
mov dword [eax + ecx], edx
add eax, 4
cmp eax, 0x48
jl 0x40b3db
xor eax, eax
mov ecx, 0x100
mov edx, dword [edi + 4]
mov esi, dword [eax + 0x45b110]
mov dword [eax + edx], esi
add eax, 4
dec ecx
jne 0x40b3f5
cmp eax, 0x1000
jl 0x40b3f0
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
xor esi, esi
xor eax, eax
mov dword [esp + 0x18], eax
mov edx, dword [edi]
xor ebx, ebx
add eax, edx
mov dword [esp + 0x24], eax
lea eax, [esi + 1]
cdq
idiv ebp
lea eax, [esi + 2]
mov bl, byte [edx + ecx]
cdq
idiv ebp
mov bh, byte [esi + ecx]
xor eax, eax
shl ebx, 8
mov al, byte [edx + ecx]
or ebx, eax
lea eax, [esi + 3]
cdq
idiv ebp
xor eax, eax
shl ebx, 8
mov al, byte [edx + ecx]
or ebx, eax
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
xor edx, ebx
mov dword [eax], edx
lea eax, [esi + 4]
cdq
idiv ebp
mov eax, dword [esp + 0x18]
add eax, 4
cmp eax, 0x48
mov dword [esp + 0x18], eax
mov esi, edx
jl 0x40b41e
xor esi, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, edi
call fcn.0040abd0
mov eax, dword [edi]
mov ecx, dword [esp + 0x10]
mov dword [esi + eax], ecx
mov edx, dword [edi]
mov eax, dword [esp + 0x14]
mov dword [esi + edx + 4], eax
add esi, 8
cmp esi, 0x48
jl 0x40b480
mov esi, 4
mov ebx, 0x80
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, edi
call fcn.0040abd0
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x10]
mov dword [esi + eax - 4], ecx
mov edx, dword [edi + 4]
mov eax, dword [esp + 0x14]
mov dword [esi + edx], eax
add esi, 8
dec ebx
jne 0x40b4b6
cmp esi, 0x1004
jl 0x40b4b1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x40cf90
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4461c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
mov eax, dword [0x45d440]
mov dword [esp + 0x20], 0
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp + 0x28]
mov bl, 2
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x24], bl
call fcn.0042d3e0
mov al, byte [esp + 0x2c]
test al, al
je 0x40d010
push 0x5c
lea ecx, [esp + 0x2c]
call fcn.0042aec6
lea ecx, [esp + 0x2c]
push eax
push ecx
lea ecx, [esp + 0x30]
call fcn.0042ae4e
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x24], 3
call fcn.0042d3e0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], bl
call fcn.0042d2a7
mov ecx, dword [esp + 4]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40d05c
lea ecx, [esp + 8]
mov byte [esp + 0x20], 1
call fcn.0042d2a7
lea ecx, [esp + 4]
mov byte [esp + 0x20], 0
call fcn.0042d2a7
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call fcn.0042d2a7
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 8
cmp byte [eax + ecx - 1], 0x5c
je 0x40d090
lea edx, [esp + 4]
push 0x5c
lea eax, [esp + 0x30]
push edx
push eax
call fcn.0042ab3a
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x24], 4
call fcn.0042d3e0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], bl
call fcn.0042d2a7
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
push edi
mov edi, dword [esp + 0x38]
push 0x5c
lea ecx, [esp + 0x14]
call fcn.0042d76e
mov esi, eax
cmp esi, 0xffffffff
je 0x40d182
lea ecx, [esp + 0x18]
push esi
push ecx
lea ecx, [esp + 0x18]
call fcn.0042ae4e
push eax
lea edx, [esp + 0x18]
lea eax, [esp + 0x3c]
push edx
push eax
mov byte [esp + 0x38], 5
call fcn.0042d4d6
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 6
call fcn.0042d3e0
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 5
call fcn.0042d2a7
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], bl
call fcn.0042d2a7
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x10]
sub eax, esi
dec eax
push eax
push edx
call fcn.0042add2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 7
call fcn.0042d3e0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], bl
call fcn.0042d2a7
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
cmp eax, 1
jl 0x40d150
cmp byte [eax + ecx - 1], 0x3a
je 0x40d150
push 0
push ecx
call ebp
mov edi, eax
lea eax, [esp + 0x14]
push 0x5c
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.0042ab3a
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 8
call fcn.0042d3e0
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], bl
call fcn.0042d2a7
jmp 0x40d09d
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
call fcn.0042d2a7
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
call fcn.0042d2a7
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0042d2a7
mov ecx, dword [esp + 0x24]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x40d330
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x446218
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov ecx, dword [esp + 0x20]
mov eax, 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
lea eax, [esp]
mov dword [esp + 0x18], 0
push eax
push 0xf003f
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d3b1
lea edx, [esp + 8]
lea eax, [esp + 4]
push edx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
mov esi, dword [esp + 8]
lea ecx, [esp + 0x24]
call fcn.0042d2a7
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0042d2a7
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 8

Function at 0x40d3f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x446265
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push edi
mov dword [esp + 0x10], 0
mov dword [esp + 0x220], 1
mov eax, dword [0x45d440]
mov dword [esp + 4], eax
mov edx, dword [esp + 0x22c]
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
mov byte [esp + 0x220], 3
push ecx
push 0xf003f
push eax
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 0x200
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
pop edi
jne 0x40d4bc
lea eax, [esp + 8]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x230]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d4a8
lea edx, [esp + 0x14]
lea ecx, [esp]
push edx
call fcn.0042d430
jmp 0x40d4b1
lea ecx, [esp]
call fcn.0042d232
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
mov esi, dword [esp + 0x228]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.0042d01c
mov dword [esp + 0x10], 1
lea ecx, [esp + 4]
mov byte [esp + 0x220], 2
call fcn.0042d2a7
lea ecx, [esp + 0x22c]
mov byte [esp + 0x220], 1
call fcn.0042d2a7
lea ecx, [esp + 0x230]
mov byte [esp + 0x220], 0
call fcn.0042d2a7
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x220
ret 0xc
Function at 0x40d530
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x446278
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov edx, dword [esp + 0x18]
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x34], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40d5a1
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp]
lea eax, [esp + 0x20]
push 4
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
call fcn.0042d2a7
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], 0xffffffff
call fcn.0042d2a7
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc

Function at 0x40d5d0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4462a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov edx, dword [esp + 0x18]
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x34], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40d643
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 8]
push ecx
mov ecx, dword [esp + 4]
push eax
mov eax, dword [esp + 0x24]
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
call fcn.0042d2a7
lea ecx, [esp + 0x1c]
mov byte [esp + 0x10], 0
call fcn.0042d2a7
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], 0xffffffff
call fcn.0042d2a7
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc

Function at 0x40d680
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x4462b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 4]
xor ebx, ebx
push eax
push 0xf003f
push ebx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40d6dc
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 4]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp + 4]
cmp eax, ebx
push ecx
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
call fcn.0042d2a7
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], 0xffffffff
call fcn.0042d2a7
mov ecx, dword [esp + 8]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8