joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40526c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov dword [0x447fe8], 0x44
mov ebp, esp
lea eax, [ebp - 0x10]
sub esp, 0x10
push eax
push 0x447fe8
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4052a7
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405331
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.004055e0
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x405365
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x451be8], eax
jmp 0x4054f9
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x405383
or eax, eax
je 0x4054a4
test byte [ebp + 0xc], 2
je 0x4054a4
mov esi, 0x4437e8
push edi
push esi
call fcn.00405a0c
or ebx, ebx
je 0x4053a0
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4053a6
push edi
call fcn.00405546
cmp byte [edi], 0
jne 0x4053b4
cmp byte [0x4437e8], 0x5c
jne 0x4053bf
push 0x409010
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
add ebx, edi
lea eax, [ebp - 0x148]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x40549a
lea eax, [ebp - 0x11c]
lea esi, [ebp - 0x11c]
push 0x3f
push eax
call fcn.0040552a
cmp byte [eax], 0
je 0x405405
cmp byte [ebp - 0x18], 0
je 0x405405
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x40541b
mov al, byte [esi + 1]
or al, al
je 0x405479
cmp al, 0x2e
jne 0x40541b
cmp byte [esi + 2], 0
je 0x405479
push esi
push ebx
call fcn.00405a0c
test byte [ebp - 0x148], 0x10
je 0x405440
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405479
push dword [ebp + 0xc]
push edi
call fcn.00405331
jmp 0x405479
push edi
call fcn.004056c4
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
or eax, eax
jne 0x405471
test byte [ebp + 0xc], 4
je 0x405469
push edi
push 0xfffffffffffffff1
call fcn.00404daa
push 0
push edi
call fcn.0040575a
jmp 0x405479
inc dword [0x451be8]
jmp 0x405479
push edi
push 0xfffffffffffffff2
call fcn.00404daa
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4053e3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x4054a4
and byte [ebx - 1], 0
pop ebx
xor esi, esi
cmp dword [ebp - 4], esi
je 0x4054f9
cmp dword [ebp - 8], esi
jne 0x4054b9
inc dword [0x451be8]
jmp 0x4054f9
push edi
call fcn.00405d07
test eax, eax
je 0x4054f9
push edi
call fcn.004054ff
push edi
call fcn.004056c4
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4054f1
test byte [ebp + 0xc], 4
je 0x4054b1
push edi
push 0xfffffffffffffff1
call fcn.00404daa
push esi
push edi
call fcn.0040575a
jmp 0x4054f9
push edi
push 0xffffffffffffffe5
call fcn.00404daa
pop edi
pop esi
leave
ret 8
Function at 0x4055e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
mov esi, 0x4457e8
push dword [esp + 0xc]
push esi
call fcn.00405a0c
push esi
call fcn.00405593
mov edi, eax
or edi, edi
jne 0x405601
xor eax, eax
jmp 0x405653
push edi
call fcn.00405c6e
test byte [0x451b78], 0x80
je 0x40561a
mov al, byte [edi]
or al, al
je 0x4055fd
cmp al, 0x5c
je 0x4055fd
sub edi, esi
jmp 0x405632
call fcn.00405d07
or eax, eax
je 0x40562c
test byte [eax], 0x10
je 0x4055fd
push esi
call fcn.00405546
push esi
call sub.KERNEL32.dll_lstrlenA
push esi
cmp eax, edi
jg 0x40561e
call fcn.004054ff
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4056c4
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4056e0
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x4056e3
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc ecx
neg ecx
push 0
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405712
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
push 0x1a
pop ecx
push esi
div ecx
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405756
or edi, edi
jne 0x40571d
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405750
Function at 0x40575a
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405d2e
test eax, eax
mov esi, dword [esp + 0x18]
je 0x40577e
push 5
push esi
push dword [esp + 0x1c]
call eax
or eax, eax
jne 0x4058b7
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x448170], 0x4c554e
or esi, esi
mov edi, 0x400
mov ebx, 0x448170
je 0x4057c2
push 1
push 0
push esi
call fcn.004056e3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push esi
call ebp
or eax, eax
je 0x4058bd
cmp eax, edi
jg 0x4058bd
mov esi, 0x447be8
push edi
push esi
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x4058bd
cmp eax, edi
jg 0x4058bd
push esi
push ebx
push str._s_s_r_n
push 0x4477e8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x451b70]
sub esp, 0xfffffff0
push dword [eax + 0x128]
push esi
call fcn.00405a2e
push 4
push 0xc0000000
push esi
call fcn.004056e3
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x14], edi
je 0x4058b7
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
lea eax, [ebp + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
or esi, esi
je 0x4058b0
lea eax, [esp + 0x18]
push 0
push eax
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4058b0
cmp ebp, dword [esp + 0x18]
jne 0x4058b0
push str._Rename__r_n
push esi
call fcn.00405658
or eax, eax
jne 0x4058c4
lea eax, [esi + ebp]
push str._Rename__r_n
push eax
call fcn.00405a0c
sub ebp, 0xfffffff6
mov eax, ebp
push ebx
add eax, esi
push 0x4477e8
push eax
call fcn.004056a4
xor eax, eax
push eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add ebp, ebx
push eax
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x451bf0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409330
push eax
call fcn.00405658
test eax, eax
je 0x40587b
inc eax
lea ecx, [esi + ebp]
cmp eax, ecx
mov edi, eax
jae 0x4058eb
mov dl, byte [edi]
mov byte [ebx + edi], dl
inc edi
cmp edi, ecx
jb 0x4058e0
mov edi, dword [esp + 0x14]
sub eax, esi
jmp 0x40587d
Function at 0x4058f3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0x18]
push ebx
push esi
push eax
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
mov byte [esi], bl
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405964
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x2000
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405953
cmp dword [ebp + 0x14], 1
je 0x405955
cmp dword [ebp + 0x14], 2
je 0x405955
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405d9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x448574], 0
push esi
jne 0x405dd1
xor eax, eax
mov esi, eax
push 8
pop ecx
mov edx, esi
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr esi, 1
xor esi, edx
dec ecx
jne 0x405dab
mov dword [eax*4 + 0x448570], esi
inc eax
cmp eax, 0x100
jl 0x405da6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e02
mov esi, dword [esp + 0xc]
push edi
movzx ecx, byte [esi]
mov edi, eax
and edi, 0xff
xor edi, ecx
mov edi, dword [edi*4 + 0x448570]
shr eax, 8
xor eax, edi
inc esi
dec edx
jne 0x405de4
pop edi
pop esi
not eax
ret 0xc

Function at 0x403910
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
add ecx, 4
mov dword [0x4040fe], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404670], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x404604], eax
mov dword [0x4040f6], eax
mov dword [0x4045f0], 0x30
mov dword [0x4045f4], 2
jmp 0x403955
mov dword [0x4045f8], 0x402f69
mov dword [0x4045fc], 0
mov dword [0x404600], 0
mov dword [0x404618], 0x404564
mov dword [0x404610], 0xf
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x404608], eax
mov dword [0x40461c], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x40460c], eax
push 0x4045f0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x4040f6]
push 0
push 0
push 0x1e5
push 0x203
push 0xfffff98e
push 0xfffff9c0
push 0xcf0000
push str.asdlkjalsdj_ai8
push str.first
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x404668], eax
push 5
push dword [0x404668]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x404668]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x404620]
jmp 0x403a29
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x403a1b
mov eax, dword [0x404628]
jmp 0x403a44
call 0x402a90
ret
Function at 0x30005109
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x30005a68
call fcn.3000518a
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x3000c1e8
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x30004ea8
cmp eax, esi
jne 0x30004e9b
xor esi, esi
inc esi
mov ebx, esi
jmp 0x30004eab
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x30004e82
xor esi, esi
inc esi
mov eax, dword [0x3000c1e4]
cmp eax, esi
jne 0x30004ebe
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x30004eed
mov eax, dword [0x3000c1e4]
test eax, eax
jne 0x30004ee7
mov dword [0x3000c1e4], esi
push 0x300012dc
push 0x300012d4
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x30004eed
jmp 0x30005015
mov dword [0x3000be78], esi
mov eax, dword [0x3000c1e4]
cmp eax, esi
jne 0x30004f11
push 0x300012d0
push 0x300012c8
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x3000c1e4], 2
test ebx, ebx
jne 0x30004f1d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x3000c1f4], 0
je 0x30004f41
push 0x3000c1f4
call fcn.30005463
pop ecx
test eax, eax
je 0x30004f41
push 0
push 2
push 0
call dword [0x3000c1f4]
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x30004f9d
test al, al
je 0x30004f5b
cmp dword [ebp - 0x1c], 0
jne 0x30004f9d
mov al, byte [esi]
test al, al
je 0x30004f6b
cmp al, 0x20
ja 0x30004f6b
inc esi
mov dword [ebp - 0x20], esi
jmp 0x30004f5b
test byte [ebp - 0x3c], 1
je 0x30004f77
movzx eax, word [ebp - 0x38]
jmp 0x30004f7a
push 0xa
pop eax
push eax
push esi
push 0
push 0x30000000
call main
mov dword [0x3000be74], eax
cmp dword [0x3000be68], 0
jne 0x30004ff1
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp al, 0x22
jne 0x30004fac
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
je 0x30004fbf
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x30004f48
cmp dword [0x3000be78], 0
jne 0x30005000
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x3000be74]
jmp 0x30005021
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.300051cf
ret
call fcn.30004d3c
jmp 0x30004e48
Function at 0x4015e3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40163c
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 1
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x402900
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x90
push ebx
push ebp
xor ebx, ebx
push esi
test eax, eax
push edi
je 0x402a2e
cmp byte [eax], 0
je 0x402a2e
lea ecx, [esp + 0x1c]
push 0x81
push ecx
push eax
call fcn.00402b00
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x402942
lea edx, [esp + 0x1c]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0xac]
test edx, edx
je 0x402976
test ebx, ebx
jne 0x402a26
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebx, ebx
jne 0x402aa4
mov esi, dword [esp + 0xa4]
cmp esi, 0x40
je 0x402a63
cmp esi, 0x7800
jne 0x402a6e
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0
push 0
mov ebx, 0x1c
call edi
mov esi, eax
lea ecx, [esi + 2]
push ecx
call fcn.00413944
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x402aa4
push ebp
push esi
call edi
test eax, eax
je 0x402a14
mov esi, ebp
cmp byte [esi], 0
je 0x402a14
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x4029ff
push 0
lea edx, [esp + 0x18]
push 0
lea eax, [esp + 0x20]
push edx
push eax
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x4029ff
xor ebx, ebx
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ebx, 0x1c
lea esi, [esi + ecx + 1]
je 0x4029cd
push ebp
call fcn.004138db
mov esi, dword [esp + 0xa8]
add esp, 4
jmp 0x402a6a
mov byte [edx], 0
jmp 0x402976
mov esi, dword [esp + 0xac]
mov dword [esp + 0x10], 0
test esi, esi
je 0x40297e
push 0x81
push esi
call fcn.00402ac0
add esp, 8
test eax, eax
je 0x40297e
mov byte [esi], 0
jmp 0x40297e
call fcn.00402e00
mov ebx, eax
test ebx, ebx
jne 0x402aa4
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xb0]
mov eax, dword [0x426874]
push esi
push ecx
push edx
push eax
mov dword [0x426898], 1
call fcn.0040c2e0
test eax, eax
mov dword [0x426898], 0
mov eax, 0x1d
jne 0x402aa6
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
Function at 0x402e00
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x42687c]
sub esp, 0x190
test eax, eax
push esi
jne 0x402ef9
call fcn.00402f10
test eax, eax
je 0x402eba
push str.wsock32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x426870], eax
je 0x402eba
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x421274
push eax
call esi
test eax, eax
mov dword [0x4267d8], eax
je 0x402eba
mov eax, dword [0x426870]
push 0x421280
push eax
call esi
test eax, eax
mov dword [0x4267e4], eax
je 0x402eba
mov ecx, dword [0x426870]
push 0x421290
push ecx
call esi
test eax, eax
mov dword [0x4267e8], eax
je 0x402eba
mov edx, dword [0x426870]
push 0x4212a0
push edx
call esi
test eax, eax
mov dword [0x4267e0], eax
je 0x402eba
mov eax, dword [0x426870]
push 0x4212ac
push eax
call esi
test eax, eax
mov dword [0x4267dc], eax
je 0x402eba
lea ecx, [esp + 4]
push ecx
push 0x101
call eax
test eax, eax
je 0x402ed1
mov dword [0x42687c], 2
mov eax, 0x16
pop esi
add esp, 0x190
ret
mov ax, word [esp + 4]
cmp al, 1
jb 0x402eba
jne 0x402ee5
xor edx, edx
mov dl, ah
cmp dl, 1
jb 0x402eba
mov dword [0x42687c], 1
xor eax, eax
pop esi
add esp, 0x190
ret
cmp eax, 1
je 0x402eef
mov eax, 0x16
pop esi
add esp, 0x190
ret

Function at 0x403130
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
lea eax, [esp + 4]
push esi
lea ecx, [esp + 0xc]
xor esi, esi
push eax
mov eax, dword [esp + 0xc]
push ecx
push esi
push MultiByteToWideChar
push esi
push 0x426884
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x403165
mov eax, 0x17
pop esi
ret
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push 4
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x403189
mov esi, 0x17
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
ret

Function at 0x4031a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push esi
xor esi, esi
push eax
push 1
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4031ed
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
push esi
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0xc]
mov esi, eax
neg esi
sbb esi, esi
push ecx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
ret
Function at 0x409a00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push esi
lea eax, [esp + 8]
push edi
push eax
xor esi, esi
push str.SystemCurrentControlSetControlProductOptions
push 0x80000002
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x409aee
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push esi
push edx
push esi
push 0x421bcc
push eax
call edi
test eax, eax
jne 0x409aee
mov eax, dword [esp + 0x10]
cmp eax, esi
jbe 0x409aee
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
cmp ebx, esi
je 0x409aee
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ebp
push ecx
lea edx, [esp + 0x1c]
push ebx
push edx
push esi
push str.ProductSuite
push eax
call edi
test eax, eax
jne 0x409ae6
cmp dword [esp + 0x18], 7
jne 0x409ae6
mov edi, dword [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
mov edx, ebx
repne scasb al, byte es:[edi]
mov al, byte [ebx]
not ecx
dec ecx
test al, al
mov dword [esp + 0x1c], ecx
je 0x409ae6
test esi, esi
jne 0x409ae6
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, ecx
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jne 0x409adb
mov esi, dword [esp + 0x24]
mov ecx, eax
mov edi, edx
xor ebp, ebp
repe cmpsb byte [esi], byte es:[edi]
jne 0x409adb
mov esi, 1
jmp 0x409add
xor esi, esi
lea edx, [edx + eax + 1]
cmp byte [edx], 0
jne 0x409aac
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebp
mov eax, dword [esp + 0xc]
test eax, eax
je 0x409afd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x40dec0
Capabilities:
Check os version

Disassembly:
sub esp, 0x230
xor eax, eax
mov ecx, 0x40
push ebx
push esi
push edi
lea edi, [esp + 0x13c]
push ebp
rep stosd dword es:[edi], eax
lea edi, [esp + 0x10]
mov ecx, 0x10
rep stosd dword es:[edi], eax
mov word [esp + 0x18], pe_nt_image_headers32
lea eax, [esp + 0x140]
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], eax
push ecx
mov byte [esp + 0x14], 0x37
call sub.NETAPI32.dll_Netbios
cmp byte [esp + 0x11], 0
je 0x40df24
mov eax, dword [esp + 0x11]
push eax
call fcn.0040dea0
add esp, 4
mov eax, 0xfffffff9
jmp 0x40e07b
xor ebp, ebp
cmp byte [esp + 0x140], 0
jbe 0x40e069
mov ebx, dword [esp + 0x244]
lea edi, [esp + 0x10]
xor eax, eax
mov ecx, 0x10
rep stosd dword es:[edi], eax
mov al, byte [esp + ebp + 0x141]
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], al
push ecx
mov byte [esp + 0x14], 0x32
call sub.NETAPI32.dll_Netbios
cmp byte [esp + 0x11], 0
jne 0x40e088
lea edi, [esp + 0x50]
xor eax, eax
mov ecx, 0x3c
test ebx, ebx
rep stosd dword es:[edi], eax
lea edi, [esp + 0x10]
mov ecx, 0x10
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1a]
mov dword [eax], 0x20202020
mov dword [eax + 4], 0x20202020
mov dword [eax + 8], 0x20202020
mov dword [eax + 0xc], 0x20202020
je 0x40e01b
mov eax, str.localhost
test eax, eax
je 0x40dfca
mov al, byte [str.localhost]
cmp byte [ebx], al
jne 0x40dfca
mov edi, str.localhost
mov ecx, 0xa
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x40e01b
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jb 0x40dfe1
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 4
jae 0x40e01b
push 0x2e
push ebx
call fcn.004140a0
add esp, 8
test eax, eax
je 0x40dff3
mov byte [eax], 0
push ebx
mov edi, ebx
call fcn.0040ccf0
lea eax, [esp + 0x1a]
push ebx
push eax
call fcn.00412fea
add esp, 8
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
mov byte [esp + ecx + 0x19], 0x20
jmp 0x40e020
mov byte [esp + 0x1a], 0x2a
lea eax, [esp + 0x50]
mov cl, byte [esp + ebp + 0x141]
lea edx, [esp + 0x10]
mov dword [esp + 0x14], eax
mov byte [esp + 0x40], cl
push edx
mov byte [esp + 0x14], 0x33
mov word [esp + 0x1c], 0xf0
call sub.NETAPI32.dll_Netbios
cmp byte [esp + 0x11], 0
je 0x40e09c
cmp byte [esp + 0x11], 6
je 0x40e09c
inc ebp
xor eax, eax
mov al, byte [esp + 0x140]
cmp eax, ebp
jg 0x40df3b
mov eax, dword [esp + 0x11]
push eax
call fcn.0040dea0
add esp, 4
mov eax, 0xffffffd6
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x230
ret 8
mov eax, dword [esp + 0x11]
push eax
call fcn.0040dea0
add esp, 4
mov eax, 0xfffffffb
jmp 0x40e07b
xor eax, eax
mov al, byte [esp + 0x55]
push eax
xor eax, eax
mov al, byte [esp + 0x58]
push eax
xor eax, eax
mov al, byte [esp + 0x5b]
push eax
xor eax, eax
mov al, byte [esp + 0x5e]
push eax
xor eax, eax
mov al, byte [esp + 0x61]
mov ecx, dword [esp + 0x258]
push eax
xor eax, eax
mov al, byte [esp + 0x64]
push eax
push str._02x_02x_02x_02x_02x_02x
push ecx
call fcn.00412fea
add esp, 0x20
xor eax, eax
jmp 0x40e07b