joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404fb4
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x55faec
cmp dword [ebp + 0xc], 2
jl 0x404fc8
mov ebx, 0x55fb1c
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 0x405000
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x4012b8
mov dword [0x55d014], eax
mov eax, 0x4012c0
mov dword [0x55d018], eax
mov eax, ebx
call fcn.00404ea0
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 0x405035
cmp al, 3
jge 0x405035
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x405046
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x405051
call dword [ecx + eax*4]
cmp dword [0x55d038], 0
jne 0x405067
mov byte [0x55d040], 1
fnstcw word [0x54d024]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.004052e4
call fcn.00404f4c
ret 4

Function at 0x405254
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x55d054], 0
je 0x4052b5
cmp word [0x55d330], 0xd7b2
jne 0x40527d
cmp dword [0x55d338], 0
jbe 0x40527d
mov eax, 0x55d32c
call dword [0x55d348]
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 0x4052e0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x54d030], 0
jne 0x4052d1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405480
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 [0x54d034], 0
je 0x4054a6
mov edx, esi
mov eax, ebx
call dword [0x54d034]
jmp 0x4054b5
mov eax, 8
call fcn.00403074
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x55d055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405448
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 0x406d8c
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x406dce
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x406dee
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.0040647c
add esp, 0x41c
pop esi
pop ebx
ret
Function at 0x408c14
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 0x40aad0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x55fb64
push 0xa
push 0x40ab64
mov eax, dword [0x55fb50]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40aaf4
call fcn.00416cc0
push ebx
mov eax, dword [0x55fb50]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40ab0b
call fcn.00416cc0
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40ab1d
call fcn.00416cc0
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x55fb68], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x55fb6c], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x55fb70], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x55fb74], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x55fb78], ecx
add edx, dword [eax + 0x14]
mov dword [0x55fb7c], edx
pop esi
pop ebx
ret

Function at 0x40c814
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40c8bd
test eax, edx
je 0x40c8c0
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40c83d
push edx
mov edx, eax
mov eax, esp
call fcn.00406498
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40c853
push eax
lea eax, [esp + 8]
call fcn.00406498
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40c862
movzx eax, word [eax]
sub eax, ecx
jmp 0x40c889
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 0x40c8a3
add ecx, 4
js 0x40c87a
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40c8a0
push eax
mov eax, ecx
mov edx, 2
call fcn.00405520
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40c887
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40c889
xor eax, eax
ret
test eax, eax
je 0x40c8d0
test edx, edx
jne 0x40c824
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406308
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40daea
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40db0b
cmp ebx, 3
je 0x40db0b
cmp ebx, 0x7b
je 0x40db0b
mov eax, esi
call fcn.0040da8c
test al, al
jne 0x40db0f
xor eax, eax
jmp 0x40db11
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406308
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40db2d
test al, 0x10
jne 0x40db31
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x40dc4c
Capabilities:
Get file attributes

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

Function at 0x40dc60
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.00406308
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x40dc82
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x413dac
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 0x413de5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004063b8
jmp 0x413dee
mov eax, ebx
mov edx, esi
call fcn.0040627c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x413df8
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 0x413e1a
movzx eax, word [esp]
jmp 0x413e1c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4146f0
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 0x414815
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00414504
mov esi, eax
mov eax, dword [0x55ca58]
cmp byte [eax], 0
je 0x4147bd
mov eax, dword [0x55c4d4]
call fcn.00403550
call fcn.004031dc
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 [0x4146cc]
call fcn.00407d10
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 0x414830
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4147f9
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x55c420]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x55fb50]
call fcn.00407e04
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 0x41481c
lea eax, [ebp - 4]
mov edx, dword [0x4146cc]
call fcn.00407d1c
ret
Function at 0x415440
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 0x415516
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004062d0
lea eax, [ebp - 4]
call fcn.00406cec
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406308
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x415500
mov eax, ebx
call fcn.00403074
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4154f9
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.00406308
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4154e3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x415528
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4154e3
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 0x415500
mov eax, dword [ebp - 0x10]
call fcn.00403090
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41551d
lea eax, [ebp - 4]
call fcn.0040626c
ret

Function at 0x416b38
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.004058cc
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 0x416ae2
mov eax, edi
add eax, eax
call fcn.00403074
mov esi, eax
jmp 0x416ae4
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 0x416b1d
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 0x416b07
mov eax, esp
cmp esi, eax
je 0x416b2a
mov eax, esi
call fcn.00403090
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 0x416b64
cmp bl, 0
je 0x416b60
cmp bl, 0x41
jl 0x416b5b
cmp bl, 0x5a
jg 0x416b5b
or bl, 0x20
xor al, bl
inc esi
jmp 0x416b3f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x416aa4

Function at 0x430bcc
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.004308d0
dec esi
jne 0x430bee
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x431dac
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x561e98
cmp dword [edi], 0
jne 0x431e28
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x561e94]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x54de40
mov ecx, 2
call fcn.0040322c
mov edx, 0x431d84
lea eax, [esi + 5]
call fcn.00431da4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00431da4
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 0x431dfd
mov dword [0x561e94], 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 0x434f78
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.00406308
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x434fd0
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x55cd48]
mov dl, 1
mov eax, dword [0x4348d0]
call fcn.0041492c
call fcn.00404c54
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00434a58
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 0x43637c
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 0x436382
ret
Function at 0x43f978
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 0x43fbdb
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
xor edx, edx
call fcn.004062d0
lea eax, [ebp - 0x120]
xor ecx, ecx
mov edx, 0x11c
call fcn.0040367c
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.0040367c
push 0x43fbe8
push 0x43fc10
call sub.kernel32.dll_GetModuleHandleW_1
push eax
call fcn.00409780
test eax, eax
je 0x43fa02
lea edx, [ebp - 0x144]
push edx
call eax
jmp 0x43fa0e
lea eax, [ebp - 0x144]
push eax
call sub.kernel32.dll_GetSystemInfo_1
cmp dword [ebp - 0x110], 2
jne 0x43fbbb
test bl, bl
je 0x43fa3e
call fcn.0043fd88
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 0x43fa59
lea eax, [ebp - 4]
mov edx, 0x43fc38
call fcn.004062d0
cmp dword [ebp - 0x11c], 5
jne 0x43fa7d
cmp dword [ebp - 0x118], 0
jne 0x43fa7d
lea eax, [ebp - 4]
mov edx, 0x43fc5c
call fcn.004062d0
jmp 0x43fbbb
cmp dword [ebp - 0x11c], 5
jne 0x43faa1
cmp dword [ebp - 0x118], 1
jne 0x43faa1
lea eax, [ebp - 4]
mov edx, 0x43fc84
call fcn.004062d0
jmp 0x43fbbb
cmp dword [ebp - 0x11c], 5
jne 0x43fae7
cmp dword [ebp - 0x118], 2
jne 0x43fae7
cmp byte [ebp - 6], 1
jne 0x43fad5
cmp word [ebp - 0x144], 9
jne 0x43fad5
lea eax, [ebp - 4]
mov edx, 0x43fc84
call fcn.004062d0
jmp 0x43fbbb
lea eax, [ebp - 4]
mov edx, 0x43fca8
call fcn.004062d0
jmp 0x43fbbb
cmp dword [ebp - 0x11c], 6
jne 0x43fb0b
cmp dword [ebp - 0x118], 0
jne 0x43fb0b
lea eax, [ebp - 4]
mov edx, 0x43fcdc
call fcn.004062d0
jmp 0x43fbbb
cmp dword [ebp - 0x11c], 6
jne 0x43fb2f
cmp dword [ebp - 0x118], 1
jne 0x43fb2f
lea eax, [ebp - 4]
mov edx, 0x43fd04
call fcn.004062d0
jmp 0x43fbbb
cmp dword [ebp - 0x11c], 6
jne 0x43fb55
mov eax, dword [ebp - 0x118]
add eax, 0xfffffffe
sub eax, 2
jae 0x43fb55
lea eax, [ebp - 4]
mov edx, 0x43fd24
call fcn.004062d0
jmp 0x43fbbb
mov eax, dword [ebp - 0x11c]
cmp eax, 6
jne 0x43fb7a
mov edx, dword [ebp - 0x118]
sub edx, 4
jne 0x43fb7a
lea eax, [ebp - 4]
mov edx, 0x43fd44
call fcn.004062d0
jmp 0x43fbbb
cmp eax, 0xa
jne 0x43fba9
cmp dword [ebp - 0x114], 0x55f0
jae 0x43fb9a
lea eax, [ebp - 4]
mov edx, 0x43fd44
call fcn.004062d0
jmp 0x43fbbb
lea eax, [ebp - 4]
mov edx, 0x43fd68
call fcn.004062d0
jmp 0x43fbbb
cmp eax, 0xb
jb 0x43fbbb
lea eax, [ebp - 4]
mov edx, 0x43fd68
call fcn.004062d0
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040627c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43fbe2
lea eax, [ebp - 4]
call fcn.0040626c
ret
Function at 0x4414e4
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 0x4414fd
add esp, 0xfffffff0
call fcn.004042a0
mov dword [ebp - 4], ecx
mov byte [ebp - 9], dl
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00406264
xor eax, eax
push ebp
push 0x441681
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.0040627c
mov byte [ebx + 0x22], 0
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.00433e5c
lea eax, [ebx + 0xc]
sub eax, 4
mov eax, dword [eax]
mov dword [ebx + 0x14], eax
call fcn.00403dbc
mov dl, 1
mov eax, dword [0x440ad8]
call fcn.00428c28
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.0040627c
cmp dword [ebx + 0x10], 0
je 0x441650
mov edx, dword [ebx + 0x10]
mov eax, ebx
call fcn.00441134
mov eax, dword [ebx + 0x10]
call fcn.0040dacc
test al, al
jne 0x441646
lea edx, [ebp - 4]
mov eax, dword [ebx + 0x10]
call fcn.0040e024
mov eax, dword [ebp - 4]
test eax, eax
je 0x4415c8
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4415c8
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.004056e8
test eax, eax
je 0x4415d1
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x4415dd
mov eax, dword [ebp - 4]
call fcn.00441268
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
mov eax, dword [ebx + 0x10]
call fcn.00406308
push eax
call sub.kernel32.dll_CreateFileW
mov esi, eax
cmp esi, 0xffffffff
je 0x441646
cmp dword [ebp + 8], 0
je 0x441640
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.00407b48
test eax, eax
jle 0x441640
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00407b48
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 0x441650
mov byte [ebx + 0x21], 1
mov eax, dword [ebx + 0x14]
mov dword [eax + 0x34], ebx
mov dword [eax + 0x30], 0x44138c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x441688
lea eax, [ebp - 8]
mov edx, dword [0x40af90]
call fcn.00407d1c
lea eax, [ebp - 4]
call fcn.0040626c
ret
Function at 0x4422a0
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 0x4422bf
add esp, 0xfffffff0
call fcn.004042a0
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x442363
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000001
mov eax, esi
call fcn.00442418
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 0x442315
call fcn.00440914
test al, al
jne 0x442343
cmp dword [ebp - 0x110], 5
ja 0x442343
lea edx, [ebp - 0x118]
xor eax, eax
call fcn.0043f978
mov eax, dword [ebp - 0x118]
mov edx, 0x442394
call fcn.0040ca78
test al, al
jne 0x442343
xor eax, eax
jmp 0x442345
mov al, 1
mov byte [0x562108], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44236a
lea eax, [ebp - 0x118]
call fcn.0040626c
ret
Function at 0x44291c
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 0x442acf
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.004062d0
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00406308
push eax
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edi, eax
test edi, edi
jne 0x442a78
cmp dword [ebp - 0x14], 4
jne 0x4429f1
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.00406308
push eax
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edi, eax
test edi, edi
jne 0x4429d2
mov eax, dword [ebp - 0x1c]
cdq
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov bl, 1
jmp 0x442a92
lea edx, [ebp - 0x2c]
mov eax, edi
call fcn.0040d350
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 4]
mov edx, 0x442af0
call fcn.00406750
jmp 0x442a92
cmp dword [ebp - 0x14], 0xb
jne 0x442a57
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.00406308
push eax
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edi, eax
test edi, edi
jne 0x442a3b
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
mov bl, 1
jmp 0x442a92
lea edx, [ebp - 0x30]
mov eax, edi
call fcn.0040d350
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 4]
mov edx, 0x442b20
call fcn.00406750
jmp 0x442a92
mov eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x34]
call fcn.0040d55c
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 4]
mov edx, 0x442b50
call fcn.00406750
jmp 0x442a92
lea edx, [ebp - 0x38]
mov eax, edi
call fcn.0040d350
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 4]
mov edx, 0x442b78
call fcn.00406750
test bl, bl
jne 0x442aac
lea eax, [ebp - 0x3c]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00406750
mov eax, dword [ebp - 0x3c]
call fcn.004421a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x442ad6
lea eax, [ebp - 0x3c]
mov edx, 5
call fcn.00406274
lea eax, [ebp - 4]
call fcn.0040626c
ret