joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403364
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00405c3c
test esi, esi
jne 0x40339c
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405d78
jmp 0x4033ba
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004032a8
mov edi, eax
test esi, esi
je 0x4033ba
cmp dword [ebx], 0
je 0x4033ba
dec esi
jmp 0x4033a3
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x403abc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4d4020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403b54
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403b34
xor eax, eax
push ebp
push 0x403b2d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403b8c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403b34
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x4d4020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4d4020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404a28
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x4deae4
cmp dword [ebp + 0xc], 2
jl 0x404a3c
mov ebx, 0x4deb14
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x404a74
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x401264
mov dword [0x4dc014], eax
mov eax, 0x40126c
mov dword [0x4dc018], eax
mov eax, ebx
call fcn.00404914
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x404aa9
cmp al, 3
jge 0x404aa9
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x404aba
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x404ac5
call dword [ecx + eax*4]
cmp dword [0x4dc034], 0
jne 0x404adb
mov byte [0x4dc03c], 1
fnstcw word [0x4d4020]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.00404d58
call fcn.004049c0
ret 4
Function at 0x404cc8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4dc04c], 0
je 0x404d29
cmp word [0x4dc328], 0xd7b2
jne 0x404cf1
cmp dword [0x4dc330], 0
jbe 0x404cf1
mov eax, 0x4dc324
call dword [0x4dc340]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404d54
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d402c], 0
jne 0x404d45
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404ef4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4d4030], 0
je 0x404f1a
mov edx, esi
mov eax, ebx
call dword [0x4d4030]
jmp 0x404f29
mov eax, 8
call fcn.00402ff0
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4dc04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404ebc
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4083f0
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x409d7c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4deb5c
push 0xa
push 0x409e10
mov eax, dword [0x4deb48]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x409da0
call fcn.004157a0
push ebx
mov eax, dword [0x4deb48]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x409db7
call fcn.004157a0
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x409dc9
call fcn.004157a0
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4deb60], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4deb64], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4deb68], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4deb6c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4deb70], ecx
add edx, dword [eax + 0x14]
mov dword [0x4deb74], edx
pop esi
pop ebx
ret

Function at 0x40b7b8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40b861
test eax, edx
je 0x40b864
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40b7e1
push edx
mov edx, eax
mov eax, esp
call fcn.00405e40
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40b7f7
push eax
lea eax, [esp + 8]
call fcn.00405e40
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40b806
movzx eax, word [eax]
sub eax, ecx
jmp 0x40b82d
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40b847
add ecx, 4
js 0x40b81e
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40b844
push eax
mov eax, ecx
mov edx, 2
call fcn.00404f94
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40b82b
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40b82d
xor eax, eax
ret
test eax, eax
je 0x40b874
test edx, edx
jne 0x40b7c8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405cc8
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40c9ba
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40c9db
cmp ebx, 3
je 0x40c9db
cmp ebx, 0x7b
je 0x40c9db
mov eax, esi
call fcn.0040c95c
test al, al
jne 0x40c9df
xor eax, eax
jmp 0x40c9e1
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405cc8
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40c9fd
test al, 0x10
jne 0x40ca01
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x40cb1c
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405cc8
push eax
call sub.kernel32.dll_GetFileAttributesW
pop ebx
ret

Function at 0x40cb30
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00405cc8
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x40cb52
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x4128f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x412929
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405d78
jmp 0x412932
mov eax, ebx
mov edx, esi
call fcn.00405c3c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41293c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x41295e
movzx eax, word [esp]
jmp 0x412960
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x413234
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x413359
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00413048
mov esi, eax
mov eax, dword [0x4daf90]
cmp byte [eax], 0
je 0x413301
mov eax, dword [0x4dab88]
call fcn.00403488
call fcn.00403158
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x413210]
call fcn.00407580
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x413374
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x41333d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4daafc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4deb48]
call fcn.00407674
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413360
lea eax, [ebp - 4]
mov edx, dword [0x413210]
call fcn.0040758c
ret
Function at 0x413f3c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x414012
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405c90
lea eax, [ebp - 4]
call fcn.00406694
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405cc8
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x413ffc
mov eax, ebx
call fcn.00402ff0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x413ff5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405cc8
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x413fdf
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x414024
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x413fdf
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413ffc
mov eax, dword [ebp - 0x10]
call fcn.0040300c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414019
lea eax, [ebp - 4]
call fcn.00405c2c
ret

Function at 0x415618
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00405340
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x4155c2
mov eax, edi
add eax, eax
call fcn.00402ff0
mov esi, eax
jmp 0x4155c4
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4155fd
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x4155e7
mov eax, esp
cmp esi, eax
je 0x41560a
mov eax, esi
call fcn.0040300c
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x415644
cmp bl, 0
je 0x415640
cmp bl, 0x41
jl 0x41563b
cmp bl, 0x5a
jg 0x41563b
or bl, 0x20
xor al, bl
inc esi
jmp 0x41561f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x415584

Function at 0x429e98
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004299e4
dec esi
jne 0x429eba
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x42b064
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4e0e90
cmp dword [edi], 0
jne 0x42b0e0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4e0e8c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4d4ce0
mov ecx, 2
call fcn.004031a8
mov edx, 0x42b03c
lea eax, [esi + 5]
call fcn.0042b05c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042b05c
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x42b0b5
mov dword [0x4e0e8c], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x42dad0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ebx
test dl, dl
je 0x42dae9
add esp, 0xfffffff0
call fcn.00404124
mov dword [ebp - 4], ecx
mov byte [ebp - 9], dl
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405c24
xor eax, eax
push ebp
push 0x42dc6d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebx + 0x24], eax
mov byte [ebx + 0x21], 0
mov byte [ebx + 0x20], 0
mov dword [ebx + 0x1c], 0xffffffff
lea eax, [ebx + 0x18]
xor edx, edx
call fcn.00405c3c
mov byte [ebx + 0x22], 0
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.0042c78c
lea eax, [ebx + 0xc]
sub eax, 4
mov eax, dword [eax]
mov dword [ebx + 0x14], eax
call fcn.00403cec
mov dl, 1
mov eax, dword [0x42d200]
call fcn.00424e60
mov esi, eax
mov dword [ebx + 0x14], esi
lea eax, [ebx + 0xc]
sub eax, 4
mov dword [eax], esi
lea eax, [ebx + 0x10]
mov edx, dword [ebp - 4]
call fcn.00405c3c
cmp dword [ebx + 0x10], 0
je 0x42dc3c
mov edx, dword [ebx + 0x10]
mov eax, ebx
call fcn.0042d7dc
mov eax, dword [ebx + 0x10]
call fcn.0040c99c
test al, al
jne 0x42dc32
lea edx, [ebp - 4]
mov eax, dword [ebx + 0x10]
call fcn.0040ce58
mov eax, dword [ebp - 4]
test eax, eax
je 0x42dbb4
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x42dbb4
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.0040515c
test eax, eax
je 0x42dbbd
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x42dbc9
mov eax, dword [ebp - 4]
call fcn.0042d910
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
mov eax, dword [ebx + 0x10]
call fcn.00405cc8
push eax
call sub.kernel32.dll_CreateFileW
mov esi, eax
cmp esi, 0xffffffff
je 0x42dc32
cmp dword [ebp + 8], 0
je 0x42dc2c
mov eax, dword [ebp + 8]
mov dword [ebx + 0xc], eax
lea edx, [ebp - 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 8]
call fcn.004073b8
test eax, eax
jle 0x42dc2c
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.004073b8
push eax
mov eax, dword [ebp - 8]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
push esi
call sub.kernel32.dll_CloseHandle_1
cmp dword [ebx + 0x24], 0
je 0x42dc3c
mov byte [ebx + 0x21], 1
mov eax, dword [ebx + 0x14]
mov dword [eax + 0x34], ebx
mov dword [eax + 0x30], 0x42da34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42dc74
lea eax, [ebp - 8]
mov edx, dword [0x40a08c]
call fcn.0040758c
lea eax, [ebp - 4]
call fcn.00405c2c
ret
Function at 0x42f280
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00405cc8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x42f2d8
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4db1dc]
mov dl, 1
mov eax, dword [0x42ebd8]
call fcn.00413470
call fcn.004046c8
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0042ed60
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x430328
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x43032e
ret
Function at 0x437a8c
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x437cef
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
xor edx, edx
call fcn.00405c90
lea eax, [ebp - 0x120]
xor ecx, ecx
mov edx, 0x11c
call fcn.004035b4
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call sub.kernel32.dll_GetVersionExW
lea eax, [ebp - 0x144]
xor ecx, ecx
mov edx, 0x24
call fcn.004035b4
push 0x437cfc
push 0x437d24
call sub.kernel32.dll_GetModuleHandleW_1
push eax
call fcn.00408f2c
test eax, eax
je 0x437b16
lea edx, [ebp - 0x144]
push edx
call eax
jmp 0x437b22
lea eax, [ebp - 0x144]
push eax
call sub.kernel32.dll_GetSystemInfo_1
cmp dword [ebp - 0x110], 2
jne 0x437ccf
test bl, bl
je 0x437b52
call fcn.00437e9c
mov edx, dword [eax]
mov dword [ebp - 0x11c], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x118], edx
mov eax, dword [eax + 8]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffffd
sub eax, 2
jae 0x437b6d
lea eax, [ebp - 4]
mov edx, 0x437d4c
call fcn.00405c90
cmp dword [ebp - 0x11c], 5
jne 0x437b91
cmp dword [ebp - 0x118], 0
jne 0x437b91
lea eax, [ebp - 4]
mov edx, 0x437d70
call fcn.00405c90
jmp 0x437ccf
cmp dword [ebp - 0x11c], 5
jne 0x437bb5
cmp dword [ebp - 0x118], 1
jne 0x437bb5
lea eax, [ebp - 4]
mov edx, 0x437d98
call fcn.00405c90
jmp 0x437ccf
cmp dword [ebp - 0x11c], 5
jne 0x437bfb
cmp dword [ebp - 0x118], 2
jne 0x437bfb
cmp byte [ebp - 6], 1
jne 0x437be9
cmp word [ebp - 0x144], 9
jne 0x437be9
lea eax, [ebp - 4]
mov edx, 0x437d98
call fcn.00405c90
jmp 0x437ccf
lea eax, [ebp - 4]
mov edx, 0x437dbc
call fcn.00405c90
jmp 0x437ccf
cmp dword [ebp - 0x11c], 6
jne 0x437c1f
cmp dword [ebp - 0x118], 0
jne 0x437c1f
lea eax, [ebp - 4]
mov edx, 0x437df0
call fcn.00405c90
jmp 0x437ccf
cmp dword [ebp - 0x11c], 6
jne 0x437c43
cmp dword [ebp - 0x118], 1
jne 0x437c43
lea eax, [ebp - 4]
mov edx, 0x437e18
call fcn.00405c90
jmp 0x437ccf
cmp dword [ebp - 0x11c], 6
jne 0x437c69
mov eax, dword [ebp - 0x118]
add eax, 0xfffffffe
sub eax, 2
jae 0x437c69
lea eax, [ebp - 4]
mov edx, 0x437e38
call fcn.00405c90
jmp 0x437ccf
mov eax, dword [ebp - 0x11c]
cmp eax, 6
jne 0x437c8e
mov edx, dword [ebp - 0x118]
sub edx, 4
jne 0x437c8e
lea eax, [ebp - 4]
mov edx, 0x437e58
call fcn.00405c90
jmp 0x437ccf
cmp eax, 0xa
jne 0x437cbd
cmp dword [ebp - 0x114], 0x55f0
jae 0x437cae
lea eax, [ebp - 4]
mov edx, 0x437e58
call fcn.00405c90
jmp 0x437ccf
lea eax, [ebp - 4]
mov edx, 0x437e7c
call fcn.00405c90
jmp 0x437ccf
cmp eax, 0xb
jb 0x437ccf
lea eax, [ebp - 4]
mov edx, 0x437e7c
call fcn.00405c90
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00405c3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x437cf6
lea eax, [ebp - 4]
call fcn.00405c2c
ret
Function at 0x438e98
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x118], ecx
test dl, dl
je 0x438eb7
add esp, 0xfffffff0
call fcn.00404124
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x438f5b
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000001
mov eax, esi
call fcn.00439010
mov dword [esi + 0x18], 0xf003f
mov byte [esi + 0xc], 1
xor eax, eax
mov dword [esi + 0x1c], eax
mov dword [ebp - 0x114], 0x114
lea eax, [ebp - 0x114]
push eax
call sub.kernel32.dll_GetVersionExW
cmp dword [ebp - 0x110], 5
jne 0x438f0d
call fcn.00438acc
test al, al
jne 0x438f3b
cmp dword [ebp - 0x110], 5
ja 0x438f3b
lea edx, [ebp - 0x118]
xor eax, eax
call fcn.00437a8c
mov eax, dword [ebp - 0x118]
mov edx, 0x438f8c
call fcn.0040ba1c
test al, al
jne 0x438f3b
xor eax, eax
jmp 0x438f3d
mov al, 1
mov byte [0x4e10f4], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x438f62
lea eax, [ebp - 0x118]
call fcn.00405c2c
ret
Function at 0x439360
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x439513
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
xor ebx, ebx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00405c90
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00405cc8
push eax
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edi, eax
test edi, edi
jne 0x4394bc
cmp dword [ebp - 0x14], 4
jne 0x439435
mov dword [ebp - 0x1c], 0xffffffff
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00405cc8
push eax
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edi, eax
test edi, edi
jne 0x439416
mov eax, dword [ebp - 0x1c]
cdq
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov bl, 1
jmp 0x4394d6
lea edx, [ebp - 0x2c]
mov eax, edi
call fcn.0040c264
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 4]
mov edx, 0x439534
call fcn.004060f8
jmp 0x4394d6
cmp dword [ebp - 0x14], 0xb
jne 0x43949b
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x24], 0xffffffff
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00405cc8
push eax
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edi, eax
test edi, edi
jne 0x43947f
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
mov bl, 1
jmp 0x4394d6
lea edx, [ebp - 0x30]
mov eax, edi
call fcn.0040c264
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 4]
mov edx, 0x439564
call fcn.004060f8
jmp 0x4394d6
mov eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x34]
call fcn.0040c470
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 4]
mov edx, 0x439594
call fcn.004060f8
jmp 0x4394d6
lea edx, [ebp - 0x38]
mov eax, edi
call fcn.0040c264
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 4]
mov edx, 0x4395bc
call fcn.004060f8
test bl, bl
jne 0x4394f0
lea eax, [ebp - 0x3c]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.004060f8
mov eax, dword [ebp - 0x3c]
call fcn.00438da0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43951a
lea eax, [ebp - 0x3c]
mov edx, 5
call fcn.00405c34
lea eax, [ebp - 4]
call fcn.00405c2c
ret