joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440088
Capabilities:
Parse pe header
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], cl
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x44025b
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
mov eax, esi
call fcn.00404520
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x44023f
push 0
push 0
push 0
push esi
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x440239
push 0
lea eax, [ebp - 8]
push eax
push 0x40
lea eax, [ebp - 0x4c]
push eax
push esi
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x440239
cmp word [ebp - 0x4c], 0x5a4d
jne 0x440239
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
push esi
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x440239
push 0
lea eax, [ebp - 8]
push eax
push 0xf8
lea eax, [ebp - 0x144]
push eax
push esi
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x440239
cmp dword [ebp - 0x144], 0x4550
jne 0x440239
call sub.kernel32.dll_GetCurrentProcessId
add eax, 0x7c6
mov edx, dword [ebp - 0x11c]
xor edx, 0x50485e00
movzx ecx, word [ebp - 0x13e]
xor edx, ecx
xor edi, edx
xor eax, edi
mov dword [ebp - 0x13c], eax
call fcn.00402ab0
mov eax, 9
call fcn.00402ce4
mov word [ebp - 0x100], ax
mov eax, 9
call fcn.00402ce4
mov word [ebp - 0xfe], ax
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
push esi
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x4401dd
push 0
lea eax, [ebp - 8]
push eax
push 0xf8
lea eax, [ebp - 0x144]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb ebx, ebx
inc ebx
cmp byte [ebp - 1], 0
je 0x440239
mov eax, 0x200
call fcn.00402ce4
mov edi, eax
shl edi, 4
test edi, edi
jle 0x440239
push 2
push 0
push 0
push esi
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x440239
push edi
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x440064]
call fcn.004053e8
add esp, 4
mov edx, edi
mov eax, dword [ebp - 0xc]
call fcn.004065c8
push 0
lea eax, [ebp - 8]
push eax
push edi
mov eax, dword [ebp - 0xc]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x440262
lea eax, [ebp - 0xc]
mov edx, dword [0x440064]
call fcn.004053f4
ret
Function at 0x443f54
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov edi, ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x443fd1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00404060
mov eax, dword [ebp - 4]
call fcn.00404320
mov esi, eax
test esi, esi
jle 0x443fbb
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov bl, byte [eax + edx - 1]
xor bl, byte [ebp - 5]
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00404248
mov edx, dword [ebp - 0x10]
mov eax, edi
call fcn.00404328
inc dword [ebp - 0xc]
dec esi
jne 0x443f94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x443fd8
lea eax, [ebp - 0x10]
call fcn.00404060
ret
Function at 0x445d70
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x445d78
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x445f74
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push esi
call sub.kernel32.dll_GlobalFindAtomA
mov word [0x524d8a], ax
cmp word [0x524d8a], 0
jne 0x445f3b
call fcn.00402ab0
mov eax, dword [0x52390c]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
call fcn.00402ce4
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x18]
mov eax, dword [0x52390c]
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
call fcn.0043da08
push dword [ebp - 0x1c]
push 0x445f8c
lea eax, [ebp - 8]
mov edx, 3
call fcn.004043e0
mov eax, dword [ebp - 8]
call fcn.004081f4
test al, al
jne 0x445e19
lea eax, [ebp - 8]
mov edx, dword [0x523c60]
mov edx, dword [edx]
call fcn.004040f8
lea edx, [ebp - 0x10]
mov eax, dword [0x523d30]
mov eax, dword [eax]
call fcn.0040810c
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x10]
call fcn.0044026c
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x10]
call fcn.004040f8
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.0040436c
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404520
mov edi, eax
push edi
mov eax, dword [0x523d30]
mov eax, dword [eax]
call fcn.00404520
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x445ef5
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.00440088
push esi
call sub.kernel32.dll_GlobalAddAtomA
mov word [0x524d8a], ax
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.004080d8
mov eax, dword [ebp - 0x24]
call fcn.00404520
push eax
mov eax, edi
xor edx, edx
pop ecx
call fcn.0043ee80
test al, al
je 0x445ebd
mov ebx, 1
call fcn.00403ecc
jmp 0x445f4c
lea edx, [ebp - 0x28]
mov eax, 0x445f98
call fcn.0043cb08
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
call fcn.0043e818
mov edx, dword [ebp - 0x2c]
pop eax
call fcn.00404328
mov eax, dword [ebp - 0x28]
call fcn.0043eb08
mov ax, word [0x524d8a]
push eax
call sub.kernel32.dll_GlobalDeleteAtom
jmp 0x445f4c
lea edx, [ebp - 0x34]
mov eax, 0x445fb0
call fcn.0043cb08
push dword [ebp - 0x34]
push dword [ebp - 0xc]
push 0x445fcc
lea eax, [ebp - 0x38]
call fcn.0043e818
push dword [ebp - 0x38]
lea eax, [ebp - 0x30]
mov edx, 4
call fcn.004043e0
mov eax, dword [ebp - 0x30]
call fcn.0043eb08
mov ax, word [0x524d8a]
push eax
call sub.kernel32.dll_GlobalDeleteAtom
jmp 0x445f4c
mov ax, word [0x524d8a]
push eax
call sub.kernel32.dll_GlobalDeleteAtom
mov ebx, 2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x445f7b
lea eax, [ebp - 0x38]
mov edx, 9
call fcn.00404084
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404084
ret
Function at 0x710c69
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov edx, 0x7109ec
and ecx, edi
add edi, edi
call fcn.00710ca5
dec ecx
xor dword [ebx], edx
inc ecx
push edi
pop edi
and ecx, ecx
inc ebx
or ecx, edi
sub ecx, 0x40e29d1c
or edi, ecx
cmp ebx, esi
jne fcn.00710c69
add ecx, ecx
add ecx, 0x68447284
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x4a0068c1
nop
nop
nop
test eax, eax
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x1baa21d0
nop
nop
nop
nop
test eax, eax
nop
je 0x432084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x43b63b
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x43b3c1
sub esi, 0xebb9deae
add esi, 1
call fcn.0043b680
inc eax
xor dword [edi], ebx
add esi, 1
mov eax, eax
add edi, 1
inc eax
dec esi
cmp edi, edx
jne fcn.0043b63b
sub esi, esi
sub esi, 0x991aa8f5
sub eax, esi
ret
Function at 0x1006699
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi], edi
jne 0x1006753
cmp dword [esi + 4], edi
jne 0x1006753
push ebx
xor ebx, ebx
call sub.cmutil.dll_GetOSVersion
cmp eax, 2
jne 0x10066d0
call sub.cmutil.dll_GetOSMajorVersion
cmp eax, 5
jb 0x10066d0
push 0x1001dac
jmp 0x10066d5
push 0x1001d88
push edi
push 6
call dword [0x1009170]
cmp eax, edi
mov dword [esi], eax
je 0x1006736
push edi
push edi
push edi
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 4], eax
jne 0x1006703
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
jmp 0x1006736
call sub.cmutil.dll_GetOSVersion
cmp eax, 2
jne 0x100671e
call sub.cmutil.dll_GetOSMajorVersion
cmp eax, 5
jb 0x100671e
push 0x1001d58
jmp 0x1006723
push 0x1001d34
push edi
push 0xe0000000
call dword [0x100917c]
cmp eax, edi
mov dword [esi + 0xc], eax
jne 0x100674e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, edi
jle 0x100674e
and ebx, 0xffff
or ebx, 0x80070000
mov eax, ebx
pop ebx
jmp 0x1006758
mov eax, 0x80070005
pop edi
pop esi
ret
Function at 0x48f9e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section..reloc
lea edi, [esi - 0x7c000]
push edi
jmp 0x48f9fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x48fa01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48f9f0
mov eax, 1
add ebx, ebx
jne 0x48fa13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x48fa24
jne 0x48fa43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fa43
dec eax
add ebx, ebx
jne 0x48fa30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x48fa08
add ebx, ebx
jne 0x48fa3f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x48fa95
xor ecx, ecx
sub eax, 3
jb 0x48fa5b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x48faca
sar eax, 1
mov ebp, eax
jmp 0x48fa66
add ebx, ebx
jne 0x48fa66
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fa34
inc ecx
add ebx, ebx
jne 0x48fa74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fa34
add ebx, ebx
jne 0x48fa81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x48fa76
jne 0x48fa92
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x48fa76
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x48fab4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x48faa6
jmp 0x48f9f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x48fab4
add edi, ecx
jmp 0x48f9f6
pop esi
mov edi, esi
mov ecx, 0x1a9e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x48fad2
cmp byte [edi], 6
jne 0x48fad2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x48fad7
lea edi, [esi + 0x8d000]
mov eax, dword [edi]
or eax, eax
je 0x48fb4f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8f000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8f104]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x48fb04
mov ecx, edi
jns 0x48fb33
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8f108]
or eax, eax
je 0x48fb49
mov dword [ebx], eax
add ebx, 4
jmp 0x48fb21
call dword [esi + 0x8f118]
mov ebp, dword [esi + 0x8f10c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x48fb83
sub esp, 0xffffff80
jmp section..pdata
Function at 0x401644
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401656
mov eax, dword [0x67f08b]
shl eax, 2
mov dword [0x67f08f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.0066c7b8
pop edx
call fcn.0066c71c
call fcn.0066c7f8
push 0
call fcn.0066dec0
pop ecx
push 0x67f034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x67f093], eax
push 0
jmp fcn.00678938
Function at 0x403aac
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb8
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
test eax, eax
je 0x403c27
mov esi, 0x6ed05c
lea edi, [ebp - 0x248]
mov ecx, 0xf
rep movsd dword es:[edi], dword [esi]
push 0x3c
push 0
lea eax, [ebp - 0x248]
push eax
call fcn.0066cc88
add esp, 0xc
mov dword [ebp - 0x248], 0x3c
mov dword [ebp - 0x244], 0x8000
mov dword [ebp - 0x23c], str.runas
lea edx, [ebp - 0x108]
mov dword [ebp - 0x238], edx
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x403b37
mov dword [ebp - 0x234], str._makediskimage
jmp 0x403be0
mov eax, dword [ebp + 8]
dec eax
jne 0x403b64
push 0x832f22
push str._infile___s___writeusb
lea edx, [ebp - 0x20c]
push edx
call fcn.006712b0
add esp, 0xc
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x234], ecx
jmp 0x403be0
mov eax, dword [ebp + 8]
cmp eax, 2
jne 0x403b8e
push str._ghostdisk
lea edx, [ebp - 0x20c]
push edx
call fcn.006712b0
add esp, 8
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x234], ecx
jmp 0x403be0
mov eax, dword [ebp + 8]
cmp eax, 3
jne 0x403bb8
push str._configuration
lea edx, [ebp - 0x20c]
push edx
call fcn.006712b0
add esp, 8
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x234], ecx
jmp 0x403be0
mov eax, dword [ebp + 8]
cmp eax, 4
jne 0x403c27
push str._register
lea edx, [ebp - 0x20c]
push edx
call fcn.006712b0
add esp, 8
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x234], ecx
xor eax, eax
mov dword [ebp - 0x230], eax
mov edx, dword [0x6eba34]
mov dword [ebp - 0x240], edx
mov dword [ebp - 0x22c], 1
push 6
push 0
call sub.OLE32.DLL_CoInitializeEx
lea ecx, [ebp - 0x248]
push ecx
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
jne 0x403c27
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, 0x4c7
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403c54
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff5e0
mov eax, dword [0x6eb994]
test eax, eax
je 0x403c7f
push dword [ebp + 8]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32OpenSavePidlMRU_s
lea edx, [ebp - 0x120]
push edx
call fcn.006712b0
add esp, 0xc
jmp 0x403c96
push dword [ebp + 8]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32OpenSaveMRU_s
lea ecx, [ebp - 0x120]
push ecx
call fcn.006712b0
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
lea edx, [ebp - 0x120]
push edx
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x403cc3
xor eax, eax
jmp 0x403e02
mov dword [ebp - 0x10], 0x100
mov edx, dword [0x6eb994]
test edx, edx
je 0x403cfe
mov dword [ebp - 0xc], 3
lea ecx, [ebp - 0x10]
push ecx
lea eax, [ebp - 0x220]
push eax
lea edx, [ebp - 0xc]
push edx
push 0
push str.MRUListEx
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0x20], eax
jmp 0x403d26
mov dword [ebp - 0xc], 1
lea ecx, [ebp - 0x10]
push ecx
lea eax, [ebp - 0x220]
push eax
lea edx, [ebp - 0xc]
push edx
push 0
push str.MRUList
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x403d34
xor eax, eax
jmp 0x403e02
mov edx, dword [0x6eb994]
test edx, edx
je 0x403d9d
lea ecx, [ebp - 0x220]
push dword [ecx]
push 0x6edb32
lea eax, [ebp - 0x1c]
push eax
call fcn.006712b0
add esp, 0xc
mov dword [ebp - 0x10], 0x800
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0xa20]
push ecx
lea eax, [ebp - 0xc]
push eax
push 0
lea edx, [ebp - 0x1c]
push edx
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x403d89
xor eax, eax
jmp 0x403e02
push dword [ebp + 0xc]
lea edx, [ebp - 0xa20]
push edx
call fcn.00462980
add esp, 8
jmp 0x403dd8
mov cl, byte [ebp - 0x220]
mov byte [ebp - 0x1c], cl
mov byte [ebp - 0x1b], 0
mov dword [ebp - 0x10], 0x100
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
lea edx, [ebp - 0xc]
push edx
push 0
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x403dd8
xor eax, eax
jmp 0x403e02
push 0x5c
push dword [ebp + 0xc]
call fcn.0066cf51
add esp, 8
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
test edx, edx
je 0x403df5
mov ecx, dword [ebp - 8]
mov byte [ecx], 0
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x403e08
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, dword [ebp + 8]
test eax, eax
jne 0x403e1c
xor eax, eax
jmp 0x403e9c
push 0x6edb35
push dword [ebp + 8]
mov edx, dword [0x82f1d8]
push dword [edx]
call sub.KERNEL32.DLL_FindResourceA
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
test ecx, ecx
jne 0x403e3f
xor eax, eax
jmp 0x403e9c
push dword [ebp - 4]
mov edx, dword [0x82f1d8]
push dword [edx]
call sub.KERNEL32.DLL_SizeofResource
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
test ecx, ecx
jne 0x403e5d
xor eax, eax
jmp 0x403e9c
push dword [ebp - 4]
mov edx, dword [0x82f1d8]
push dword [edx]
call sub.KERNEL32.DLL_LoadResource
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jne 0x403e7b
xor eax, eax
jmp 0x403e9c
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_LockResource
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
test edx, edx
je 0x403e9a
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
jmp 0x403e9c
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x404054
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push 0x6edb57
push 0x6edb54
mov eax, dword [0x82f1d8]
push dword [eax]
call sub.KERNEL32.DLL_FindResourceA
mov dword [ebp - 4], eax
push dword [ebp - 4]
mov edx, dword [0x82f1d8]
push dword [edx]
call sub.KERNEL32.DLL_LoadResource
mov dword [ebp - 8], eax
push dword [ebp - 8]
call sub.KERNEL32.DLL_LockResource
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x404098
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [0x6eb998]
test eax, eax
je 0x40411f
mov edx, dword [ebp - 8]
test edx, edx
jne 0x4040d3
push 0x6edb73
push 0x6edb70
mov ecx, dword [0x82f1d8]
push dword [ecx]
call sub.KERNEL32.DLL_FindResourceA
mov dword [ebp - 0x10], eax
jmp 0x4040ec
push 0x6edb7a
push 0x6edb77
mov eax, dword [0x82f1d8]
push dword [eax]
call sub.KERNEL32.DLL_FindResourceA
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
mov edx, dword [0x82f1d8]
push dword [edx]
call sub.KERNEL32.DLL_LoadResource
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_LockResource
mov dword [ebp - 0xc], eax
mov ecx, dword [0x6ed0b0]
test ecx, ecx
je 0x40411f
push 5
push dword [ebp - 0xc]
call dword [0x6ed0b0]
mov esp, ebp
pop ebp
ret
Function at 0x4078bc
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
call sub.KERNEL32.DLL_GetVersion
mov dword [ebp - 4], eax
mov al, byte [ebp - 4]
and al, 0xff
xor edx, edx
mov dl, al
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
cmp ecx, 5
jae 0x4078e2
xor eax, eax
jmp 0x4078e7
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4078ec
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov eax, dword [0x6ed0b4]
inc eax
jle 0x407901
mov eax, dword [0x6ed0b4]
jmp 0x407976
xor edx, edx
mov dword [0x6ed0b4], edx
call sub.KERNEL32.DLL_GetVersion
mov dword [ebp - 4], eax
mov cl, byte [ebp - 4]
and cl, 0xff
xor eax, eax
mov al, cl
mov dword [ebp - 8], eax
mov dx, word [ebp - 4]
and dx, 0xffff
movzx ecx, dx
shr ecx, 8
xor eax, eax
mov al, cl
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
cmp edx, 6
jbe 0x407943
mov eax, 1
jmp 0x407976
mov edx, dword [ebp - 8]
cmp edx, 6
jne 0x407971
lea ecx, [ebp - 0x14]
push ecx
lea eax, [ebp - 0x10]
push eax
call fcn.00423c64
add esp, 8
test eax, eax
je 0x407971
mov edx, dword [ebp - 0x10]
cmp edx, 0xa
jb 0x407971
mov dword [0x6ed0b4], 1
mov eax, dword [0x6ed0b4]
mov esp, ebp
pop ebp
ret
Function at 0x407ef0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
xor eax, eax
mov dword [ebp - 0x14], eax
lea edx, [ebp - 4]
push edx
push 3
push 0
push dword [ebp + 8]
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x407faf
mov dword [ebp - 0xc], 0x100
lea ecx, [ebp - 0xc]
push ecx
lea eax, [ebp - 0x118]
push eax
lea edx, [ebp - 0x10]
push edx
push 0
push 0x6edea3
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x407fa0
push 0x6edea4
lea ecx, [ebp - 0x118]
push ecx
call fcn.0066d004
add esp, 8
test eax, eax
je 0x407f88
push 0x6edead
push dword [ebp + 8]
call fcn.0066d004
add esp, 8
test eax, eax
jne 0x407fa0
push str.binimage
lea eax, [ebp - 0x118]
push eax
call fcn.0066d004
add esp, 8
test eax, eax
jne 0x407fa0
push 1
push 0x6edebc
push 1
push 0
push 0x6edebb
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegSetValueExA
mov edx, dword [ebp - 0x14]
test edx, edx
jne 0x407faf
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
mov esp, ebp
pop ebp
ret
Function at 0x40fffc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffaf0
lea eax, [ebp - 4]
push eax
push 0x6ee86e
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyA
test eax, eax
jne 0x4101d5
mov dword [ebp - 0xc], 0x100
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp - 0x510]
push ecx
lea eax, [ebp - 8]
push eax
push 0
push 0x6ee895
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x410099
push 0
lea edx, [ebp - 0x510]
push edx
call fcn.0066ebe8
add esp, 8
test eax, eax
jne 0x410099
lea ecx, [ebp - 0x510]
push ecx
push 0x830718
call fcn.0066ce08
add esp, 8
push 0x830718
call fcn.0066ce38
pop ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movsx edx, byte [eax + 0x830717]
cmp edx, 0x5c
jne 0x410099
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x830717], 0
mov dword [ebp - 0xc], 0x100
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x510]
push edx
lea ecx, [ebp - 8]
push ecx
push 0
push 0x6ee89f
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x4100db
push 0x6ebc64
push 0x6ee8aa
lea eax, [ebp - 0x510]
push eax
call fcn.0067132c
add esp, 0xc
mov dword [ebp - 0xc], 0x100
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp - 0x510]
push ecx
lea eax, [ebp - 8]
push eax
push 0
push 0x6ee8ad
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x410154
push 0
lea edx, [ebp - 0x510]
push edx
call fcn.0066ebe8
add esp, 8
test eax, eax
jne 0x410154
lea ecx, [ebp - 0x510]
push ecx
push 0x8322e3
call fcn.0066ce08
add esp, 8
push 0x8322e3
call fcn.0066ce38
pop ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movsx edx, byte [eax + 0x8322e2]
cmp edx, 0x5c
jne 0x410154
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x8322e2], 0
mov dword [ebp - 0xc], 0x100
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x510]
push edx
lea ecx, [ebp - 8]
push ecx
push 0
push 0x6ee8b8
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x4101cd
push 0
lea eax, [ebp - 0x510]
push eax
call fcn.0066ebe8
add esp, 8
test eax, eax
jne 0x4101cd
lea edx, [ebp - 0x510]
push edx
push 0x8323e7
call fcn.0066ce08
add esp, 8
push 0x8323e7
call fcn.0066ce38
pop ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
movsx eax, byte [ecx + 0x8323e6]
cmp eax, 0x5c
jne 0x4101cd
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x8323e6], 0
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
mov esp, ebp
pop ebp
ret