joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100dd07e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10187da8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100dd0be
cmp byte [ebx], 0xa
jne 0x100dd0be
or byte [eax + edi + 0x28], 4
jmp 0x100dd0c3
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x100dd1c1
mov al, byte [edx]
cmp al, 0x1a
je 0x100dd1a3
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x100dd0f2
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x100dd117
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x100dd121
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x100dd0d4
jmp 0x100dd1c1
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100dd19e
cmp dword [ebp - 0xc], 0
je 0x100dd19e
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x10187da8]
test byte [eax + edi + 0x28], 0x48
je 0x100dd178
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100dd163
mov byte [esi], dl
jmp 0x100dd174
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10187da8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100dd1c1
cmp byte [ebp - 1], 0xa
jne 0x100dd187
cmp esi, ebx
jne 0x100dd187
mov byte [esi], 0xa
jmp 0x100dd1c0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100ddbfe
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100dd1c1
mov byte [esi], 0xd
jmp 0x100dd1c0
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x10187da8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100dd1bd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100dd1c1
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100dd1ca
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x10187da8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100dd20d
cmp word [esi], dx
jne 0x100dd20d
or byte [edi + eax + 0x28], 4
jmp 0x100dd212
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x100dd365
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x100dd345
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x100dd254
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100dd28a
cmp eax, edx
jae 0x100dd296
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x100dd22c
jmp 0x100dd365
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100dd341
cmp dword [ebp - 0x14], 0
je 0x100dd341
mov eax, dword [ebx*4 + 0x10187da8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x100dd319
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x100dd2e2
mov word [esi], cx
jmp 0x100dd315
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x10187da8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x10187da8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x10187da8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x100dd365
pop ebx
cmp word [ebp - 4], bx
jne 0x100dd32a
cmp esi, dword [ebp + 0xc]
jne 0x100dd32a
mov word [esi], bx
jmp 0x100dd362
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100ddbfe
add esp, 0x10
cmp word [ebp - 4], bx
je 0x100dd365
push 0xd
jmp 0x100dd35e
mov ecx, dword [ebx*4 + 0x10187da8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100dd35c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100dd365
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100e32e4
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100e3381
push ebx
push esi
call fcn.100e32ad
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100e2266
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100e332e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100e3380
push edi
push eax
call fcn.100d7ec3
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100e334e
call fcn.100d7e89
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100e337f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100e2266
add esp, 0x20
test eax, eax
jne 0x100e336d
push edi
call fcn.100d7e89
jmp 0x100e3375
push ebx
call fcn.100d7e89
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x100e3384
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100e3395
pop esi
ret
push ebx
push edi
push esi
call fcn.100e32ad
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100d7ec3
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100e33bd
push ebx
push esi
push edi
call fcn.100c58f0
add esp, 0xc
push 0
call fcn.100d7e89
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100e3b09
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100e3630
Function at 0x100ea4d9
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100ea455
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100ea651
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100ea651
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100ea600
jg 0x100ea532
test eax, eax
je 0x100ea5f6
push 1
push 0x1000
call fcn.100dc790
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100ea558
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x100ea5ed
push 0x8000
push ebx
call fcn.100ea386
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100ea584
jg 0x100ea57f
cmp ecx, 0x1000
jb 0x100ea584
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100dc04c
add esp, 0x10
cmp eax, 0xffffffff
je 0x100ea5c9
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100ea57f
jl 0x100ea5b0
test ecx, ecx
jne 0x100ea571
push dword [ebp - 0xc]
push ebx
call fcn.100ea386
push esi
call fcn.100d7e89
add esp, 0xc
xor edi, edi
jmp 0x100ea662
cmp byte [edi + 0x24], 0
je 0x100ea5e0
cmp dword [edi + 0x20], 5
jne 0x100ea5e0
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100ea5eb
mov edi, dword [edi + 0x18]
jmp 0x100ea5ed
xor edi, edi
push esi
call fcn.100d7e89
pop ecx
jmp 0x100ea662
test ecx, ecx
jg 0x100ea5c2
jl 0x100ea600
test eax, eax
jae 0x100ea5c2
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100ddbfe
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100ea623
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100ea5c2
jmp 0x100ea65a
push ebx
call fcn.100e7da5
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100ea5c2
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x100ea662
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100ea65f
mov edi, dword [edi + 0x18]
jmp 0x100ea662
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100ddbfe
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100eb0d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100eb0fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100eb0fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401250
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401265
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x401277
xor eax, eax
jmp 0x4012a9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40129b
cmp esi, eax
jae 0x401273
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40128d
cmp esi, eax
jae 0x401273
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret

Function at 0x401480
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0xc]
jmp 0x4014af
push dword [ebp + 8]
mov esi, dword [esi]
push dword [esi + 0x30]
call fcn.00401410
test eax, eax
pop ecx
pop ecx
je 0x4014b9
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x40149c
pop esi
leave
ret
mov eax, dword [esi + 0x18]
jmp 0x4014b6

Function at 0x401545
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [0x4310fc]
call fcn.0040bbc8
push dword [0x4310fc]
mov dword [ebp - 8], eax
call fcn.0040bbc8
pop ecx
pop ecx
mov ecx, dword [0x4310fc]
xor ebx, ebx
cmp ecx, ebx
mov esi, eax
mov dword [ebp - 4], ebx
jbe 0x4015a1
mov edi, esi
sub edi, dword [ebp - 8]
mov eax, dword [ebp - 8]
lea ecx, [ebx + eax]
mov eax, ebx
cdq
idiv dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov byte [edi + ecx], bl
inc ebx
mov al, byte [edx + eax]
mov byte [ecx], al
mov ecx, dword [0x4310fc]
cmp ebx, ecx
jb 0x40157f
xor ebx, ebx
test ecx, ecx
jbe 0x4015e8
mov eax, dword [ebp - 8]
sub eax, esi
mov edi, esi
mov dword [ebp - 8], eax
jmp 0x4015b6
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edi]
mov dl, byte [edi]
mov dword [ebp - 0xc], eax
movzx eax, dl
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 4]
add eax, edx
xor edx, edx
div ecx
mov cl, byte [edi]
inc ebx
lea eax, [edx + esi]
mov dword [ebp - 4], edx
mov dl, byte [eax]
mov byte [eax], cl
mov byte [edi], dl
mov ecx, dword [0x4310fc]
inc edi
cmp ebx, ecx
jb 0x4015b3
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jle 0x401650
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
sub eax, edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
jmp 0x40160b
mov ecx, dword [0x4310fc]
xor edx, edx
lea eax, [ebx + 1]
div ecx
mov ebx, edx
movzx eax, byte [ebx + esi]
add eax, dword [ebp - 4]
xor edx, edx
div ecx
lea ecx, [edx + esi]
mov al, byte [ecx]
mov dword [ebp - 4], edx
mov dl, byte [ebx + esi]
mov byte [ecx], dl
mov byte [ebx + esi], al
movzx ecx, byte [ecx]
movzx eax, al
add eax, ecx
xor edx, edx
div dword [0x4310fc]
mov ecx, dword [ebp - 0xc]
mov al, byte [edx + esi]
xor al, byte [ecx + edi]
mov byte [edi], al
inc edi
dec dword [ebp + 0xc]
jne 0x401605
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401822
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 8]
push eax
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push dword [0x4310a0]
mov dword [ebp - 4], esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, eax
cmp edi, esi
jne 0x401876
push 4
lea eax, [ebp + 8]
push eax
push 4
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret 8

Function at 0x40187e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
lea eax, [ebp - 0x10]
push eax
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push dword [0x4310a0]
mov dword [ebp - 0xc], ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, eax
cmp edi, ebx
jne 0x4018fc
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 8], 4
push dword [ebp - 4]
mov dword [esi], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
cmp edi, ebx
je 0x4018f2
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
push dword [esi]
call fcn.00401822
mov edi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret 8

Function at 0x401904
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 8]
push eax
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push dword [0x4310a0]
mov dword [ebp - 4], esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, eax
cmp edi, esi
jne 0x401963
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 8]
push 1
push esi
push dword [0x4310b0]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x40196b
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea eax, [ebp - 0xc]
push eax
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push dword [0x4310a0]
mov dword [ebp - 4], esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, eax
cmp edi, esi
jne 0x4019ff
push ebx
mov ebx, dword [ebp + 8]
push str.exe__com__bat
push ebx
mov dword [ebp - 8], 0x800
call fcn.0040bfe0
pop ecx
pop ecx
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp + 8]
push eax
push esi
push dword [0x4310b0]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
cmp edi, esi
je 0x4019f5
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push ebx
push 1
push esi
push dword [0x4310b0]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, edi
pop edi
pop esi
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 0xc]
push eax
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
push dword [0x4310a0]
mov dword [ebp - 4], edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
cmp esi, edi
jne 0x401ab2
mov dword [ebp - 8], 0x104
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x401a57
push str.cmd.exe
jmp 0x401a5c
push str.command.com
push dword [ebp + 8]
call fcn.0040bfe0
pop ecx
pop ecx
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push edi
push dword [0x4310a8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp esi, edi
je 0x401aa9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 8]
push 1
push edi
push dword [0x4310a8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret 4

Function at 0x401d25
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 8]
push eax
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push dword [0x4310a0]
mov dword [ebp - 4], esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, eax
cmp edi, esi
jne 0x401d81
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
push 1
push esi
push dword [0x4310a8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x402a01
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x402a54
call fcn.00421ede
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x402a54
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x402a4a
xor eax, eax
jmp 0x402b6d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x402a84
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x402a84
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x402b6a
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x402ab1
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00403e90
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x402b6a
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x402afa
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x402afa
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x402af4
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00403e90
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x402b5a
and dword [ebp + 0xc], 0
jmp 0x402b5a
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x402b5a
push 0xc
call fcn.0041915d
mov esi, eax
test esi, esi
pop ecx
je 0x402b3c
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x402b3e
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x402b55
push dword [ebp - 8]
call fcn.00417efb
jmp 0x402b5a
call fcn.00417ed2
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x402abf
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40bc4b
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040be90
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40bce6
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x435070]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40bce6
cmp eax, 1
je 0x40bd07
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40bce6
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40bcb3
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40bce2
xor eax, eax
inc eax
jmp 0x40bd26
cmp edi, eax
jae 0x40bcea
xor eax, eax
jmp 0x40bd26
cmp eax, esi
jae 0x40bcf1
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x435070]
jmp 0x40bd0a
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret