joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409c2d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push eax
push dword [edi + 0x14]
push dword [ebp + 0xc]
call fcn.00407303
mov esi, eax
test esi, esi
jns 0x409c5b
push str.Failed_to_format_variable_string.
jmp 0x409cf9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, eax
cmp edx, 0xffffffff
jne 0x409cd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x409cb8
cmp esi, 3
je 0x409cb8
test esi, esi
je 0x409ccc
jle 0x409c8e
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x409c95
mov esi, 0x80004005
push esi
push 0x28b
push str.c:_agent_work66_s_src_burnengine_search.cpp
call fcn.004038ba
push dword [edi + 0x14]
push str.Failed_get_to_file_attributes.__ls
push esi
call fcn.0043fb09
add esp, 0xc
jmp 0x409d01
push dword [ebp - 4]
push dword [edi]
push str.File_search:__ls__did_not_find_path:__ls
push 2
call fcn.0043fff0
add esp, 0x10
xor eax, eax
jmp 0x409cdd
xor eax, eax
xor ecx, ecx
test edx, 0x10
jne 0x409cdf
inc eax
xor ecx, ecx
push 0
push ecx
push eax
push dword [edi + 4]
push dword [ebp + 0xc]
call fcn.00408274
mov esi, eax
test esi, esi
jns 0x409d01
invalid
invalid

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

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push eax
push dword [edi + 0x14]
push dword [ebp + 0xc]
call fcn.00407303
mov esi, eax
test esi, esi
jns 0x409d47
push str.Failed_to_format_variable_string.
push esi
call fcn.0043fb09
pop ecx
pop ecx
jmp 0x409dca
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x409d93
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x409d6a
movzx esi, si
or esi, 0x80070000
cmp esi, 0x80070002
je 0x409db4
cmp esi, 0x80070003
je 0x409db4
test esi, esi
jns 0x409dca
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_file_search:__ls__for_path:__ls
push esi
call fcn.0043fb09
add esp, 0x10
jmp 0x409dca
test al, 0x10
jne 0x409db4
push 0
push dword [ebp - 4]
push dword [edi + 4]
push dword [ebp + 0xc]
call fcn.0040821a
mov esi, eax
test esi, esi
jns 0x409d6a
push str.Failed_to_set_variable_to_file_search_path.
jmp 0x409d3a
push dword [ebp - 4]
push dword [edi]
push str.File_search:__ls__did_not_find_path:__ls
push 2
call fcn.0043fff0
add esp, 0x10
xor esi, esi
push dword [ebp - 4]
call fcn.0040287d
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x40a249
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
push eax
mov edi, dword [ebx + 0x24]
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
push dword [ebx + 0x1c]
push dword [ebp + 0xc]
call fcn.00407303
mov esi, eax
test esi, esi
jns 0x40a286
push str.Failed_to_format_key_string.
jmp 0x40a38d
neg edi
lea eax, [ebp - 0xc]
push eax
sbb edi, edi
and edi, 0x100
inc edi
push edi
push dword [ebp - 4]
push dword [ebx + 0x18]
call fcn.00440823
mov esi, eax
test esi, esi
jns 0x40a2d9
push dword [ebp - 4]
cmp esi, 0x80070002
jne 0x40a2c6
push str.Registry_key_not_found._Key___ls
push 2
call fcn.0043fff0
add esp, 0xc
jmp 0x40a36f
push str.Failed_to_open_registry_key._Key___ls
push esi
call fcn.0043fb09
add esp, 0xc
jmp 0x40a395
xor edi, edi
xor eax, eax
inc edi
cmp dword [ebx + 0x20], eax
je 0x40a373
push eax
lea eax, [ebp - 8]
push eax
push dword [ebx + 0x20]
push dword [ebp + 0xc]
call fcn.00407303
mov esi, eax
test esi, esi
jns 0x40a307
push str.Failed_to_format_value_string.
jmp 0x40a38d
xor ecx, ecx
lea eax, [ebp - 0x10]
push ecx
push ecx
push eax
push ecx
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
sub eax, 0
je 0x40a371
dec eax
sub eax, 1
je 0x40a35a
xor eax, eax
test esi, esi
je 0x40a373
jle 0x40a33c
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x40a343
mov esi, 0x80004005
push esi
push 0x322
push str.c:_agent_work66_s_src_burnengine_search.cpp
call fcn.004038ba
push str.Failed_to_query_registry_key_value.
jmp 0x40a38d
push dword [ebp - 8]
push dword [ebp - 4]
push str.Registry_value_not_found._Key___ls__Value___ls
push 2
call fcn.0043fff0
add esp, 0x10
xor edi, edi
xor eax, eax
push 0
push eax
push edi
push dword [ebx + 4]
push dword [ebp + 0xc]
call fcn.00408274
mov esi, eax
test esi, esi
jns 0x40a3ac
invalid
invalid
Function at 0x402c10
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402c69
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402aac
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402aac
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402c53
inc ebx
jmp 0x402c3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402c70
lea eax, [ebp - 8]
call fcn.00404718
ret

Function at 0x402c78
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404718
test esi, esi
jne 0x402caf
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404808
jmp 0x402cd0
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402aac
mov dword [esp], eax
test esi, esi
je 0x402cd0
cmp dword [ebx], 0
je 0x402cd0
dec esi
jmp 0x402cb7
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403a94
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40c014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403b2c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403b0c
xor eax, eax
push ebp
push 0x403b05
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 0x403b48
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403b0c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40c014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40c014], ax
mov esp, ebp
pop ebp
ret

Function at 0x404594
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40d044], 0
je 0x4045f5
cmp word [0x40d218], 0xd7b2
jne 0x4045bd
cmp dword [0x40d220], 0
jbe 0x4045bd
mov eax, 0x40d214
call dword [0x40d230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40c0ac
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 0x40461c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40c020], 0
jne 0x404611
push 0
push 0x40c0a4
push 0x40c0ac
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4056a0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405706
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040496c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403418
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4056f0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40570d
lea eax, [ebp - 0x10]
call fcn.00404718
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404b98
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x406b81
test al, 0x10
jne 0x406b85
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x406ccc
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.00404b98
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x406cee
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x407c6c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x407ca5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404808
jmp 0x407cae
mov eax, ebx
mov edx, esi
call fcn.0040476c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x407cb8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x407cd9
mov al, byte [esp]
jmp 0x407cdb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x408370
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x4081d8
mov eax, dword [0x40c4f4]
cmp byte [eax], 0
je 0x4083ec
mov eax, dword [0x40c440]
call fcn.0040302c
call fcn.004029a8
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004070a0
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x408434
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x408422
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x40c420]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x40d660]
call fcn.00405070
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x408ffc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x409060
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0040496c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00406b38
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409067
lea eax, [ebp - 0xc]
call fcn.00404718
ret

Function at 0x40a330
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x110], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40a3e7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x105
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x110]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.0040496c
mov eax, dword [ebp - 0x110]
lea edx, [ebp - 0x10c]
call fcn.00408df8
push dword [ebp - 0x10c]
push 0x40a3fc
lea eax, [ebp - 0x114]
mov edx, dword [0x40c524]
call fcn.00404960
push dword [ebp - 0x114]
push 0x40a40c
mov eax, ebx
mov edx, 4
call fcn.00404a58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a3ee
lea eax, [ebp - 0x114]
mov edx, 3
call fcn.0040473c
ret
Function at 0x40a410
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
xor eax, eax
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x15c], eax
lea eax, [ebp - 0x158]
mov edx, dword [0x405f64]
call fcn.00404dc4
xor eax, eax
push ebp
push 0x40a621
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
lea eax, [ebp - 0x15c]
mov ecx, 0x40a638
call fcn.004049e4
mov eax, dword [ebp - 0x15c]
lea ecx, [ebp - 0x158]
mov edx, 0x10
call fcn.00406d60
mov ebx, eax
test ebx, ebx
jne 0x40a5a5
xor eax, eax
push ebp
push 0x40a59e
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x40a585
mov eax, dword [ebp - 0x14c]
mov edx, 0x40a644
call fcn.00404ae4
je 0x40a570
mov eax, dword [ebp - 0x14c]
mov edx, 0x40a650
call fcn.00404ae4
je 0x40a570
test byte [ebp - 0x150], 0x10
je 0x40a570
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
lea eax, [ebp - 0x160]
mov ecx, dword [ebp - 0x14c]
call fcn.004049e4
mov eax, dword [ebp - 0x160]
xor edx, edx
call fcn.00406ccc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00404998
inc eax
push eax
lea eax, [ebp - 0x164]
mov ecx, 0x40a65c
mov edx, dword [ebp - 0x14c]
call fcn.004049e4
mov eax, dword [ebp - 0x164]
mov edx, dword [ebp + 8]
add edx, 0xfffffffc
pop ecx
call fcn.00404c80
mov eax, dword [ebp + 8]
push eax
call fcn.0040a410
pop ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00404998
mov ebx, eax
mov eax, dword [ebp - 0x14c]
call fcn.00404998
sub ebx, eax
inc ebx
push ebx
mov eax, dword [ebp - 0x14c]
call fcn.00404998
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
pop edx
call fcn.00404c38
lea eax, [ebp - 0x158]
call fcn.00406db0
mov ebx, eax
test ebx, ebx
je 0x40a49f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a5a5
lea eax, [ebp - 0x158]
call fcn.00406dd4
ret
lea edx, [ebp - 0x168]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00408e38
mov edx, dword [ebp - 0x168]
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
call fcn.004047b0
push 4
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00404b98
push eax
call sub.kernel32.dll_MoveFileExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a628
lea eax, [ebp - 0x168]
call fcn.00404718
lea eax, [ebp - 0x164]
call fcn.00404718
lea eax, [ebp - 0x160]
mov edx, 2
call fcn.0040473c
lea eax, [ebp - 0x158]
mov edx, dword [0x405f64]
call fcn.00404e88
ret

Function at 0x40a6d8
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
mov esi, 0x40c3c4
xor eax, eax
push ebp
push 0x40a85f
push dword fs:[eax]
mov dword fs:[eax], esp
test edi, edi
je 0x40a79f
lea edx, [ebp - 4]
mov eax, edi
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x406890
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push 0x28
mov eax, 0x4300be
call fcn.00419a9a
lea esi, [ecx + 0xe8]
mov edi, 0x104
push edi
mov ecx, esi
call fcn.00401344
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4069ab
push 0xffffffffffffffff
mov ecx, esi
call fcn.004011e5
push esi
lea ecx, [ebp - 0x10]
call fcn.004017c0
xor ebx, ebx
push edi
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00401344
push eax
push ebx
push 0x4346d4
lea ecx, [ebp - 0x10]
call fcn.00405b54
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ecx, dword [ebp - 0x10]
or edi, 0xffffffff
add ecx, 0xfffffff0
mov dword [ebp - 4], edi
call fcn.00401039
push edi
mov ecx, esi
call fcn.004011e5
lea ecx, [ebp - 0x20]
call fcn.004135d8
push ebx
push edi
push ebx
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 1
call fcn.0040652c
mov eax, dword [esi]
lea ecx, [ebp - 0x34]
push ecx
push 0x1001
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.004139bf
test eax, eax
jne 0x40694c
mov ecx, esi
call fcn.0040123a
jmp 0x40698e
push str.LOCALIZATION_INI
push 0x87
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push ebx
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x20]
call fcn.0041330e
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov dword [ebp - 0x34], vtable.CFileException.0
call fcn.00401039
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], edi
call fcn.004136b3
call fcn.00419b72
ret

Function at 0x406a5c
Capabilities:
Set registry value

Disassembly:
push 0xc
mov eax, 0x42fa28
call fcn.00419a9a
push dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
xor ebx, ebx
xor esi, esi
call fcn.00401ab4
mov eax, dword [ebp - 0x14]
mov edi, dword [eax - 0xc]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x406ada
mov eax, dword [ebp + 0x18]
cmp eax, 1
je 0x406ab1
cmp eax, 2
je 0x406ab1
push edi
jmp 0x406ab5
lea ecx, [edi + edi]
push ecx
push dword [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x406aff
mov edi, 0x4423fc
push str.Failed_to_register_value:
mov ecx, edi
call fcn.00401a16
push dword [ebp + 0x14]
mov ecx, edi
call fcn.00403eab
mov ecx, 0x442358
call fcn.0040678d
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401039
mov eax, esi
call fcn.00419b72
ret
Function at 0x406340
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp + 8], 0x6c078965
call fcn.0041c890
sub esp, 0xc
mov eax, dword [ebp - 8]
add esp, 0x14
pop ebp
ret 4
Function at 0x41d060
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
cmp dword [eax], 0x270
jne 0x41d088
mov ecx, dword [ebp - 0xc]
call fcn.0041d100
jmp 0x41d0a5
mov ecx, dword [ebp - 0xc]
mov eax, 0x4e0
cmp eax, dword [ecx]
ja 0x41d0a0
mov ecx, dword [ebp - 0xc]
call fcn.0041d1a0
jmp 0x41d0a5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx]
mov edx, eax
add edx, 1
mov dword [ecx], edx
mov eax, dword [ecx + eax*4 + 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
shr eax, 0xb
and eax, dword [ecx + 0x1384]
xor eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
shl eax, 7
and eax, 0x9d2c5680
xor eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
shl eax, 0xf
and eax, 0xefc60000
xor eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
shr eax, 0x12
xor eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add esp, 0xc
pop ebp
ret

Function at 0x41d100
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x10
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0x270
cmp dword [ebp - 0x10], 0x4e0
jae 0x41d193
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
sub ecx, 0x270
mov ecx, dword [eax + ecx*4 + 4]
and ecx, 0x80000000
mov edx, dword [ebp - 0x10]
sub edx, 0x270
mov edx, dword [eax + edx*4 + 8]
and edx, 0x7fffffff
or ecx, edx
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
shr edx, 1
mov edi, dword [ebp - 0x14]
and edi, 1
xor ecx, ecx
mov esi, 0x9908b0df
cmp edi, 0
cmovne ecx, esi
xor edx, ecx
mov ecx, dword [ebp - 0x10]
sub ecx, 0x270
xor edx, dword [eax + ecx*4 + 0x638]
mov ecx, dword [ebp - 0x10]
mov dword [eax + ecx*4 + 4], edx
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x41d118
add esp, 0x10
pop esi
pop edi
pop ebp
ret
Function at 0x41d1a0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x18
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 0xe3
jae 0x41d227
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [eax + ecx*4 + 0x9c4]
and ecx, 0x80000000
mov edx, dword [ebp - 0x10]
mov edx, dword [eax + edx*4 + 0x9c8]
and edx, 0x7fffffff
or ecx, edx
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
shr edx, 1
mov edi, dword [ebp - 0x14]
and edi, 1
xor ecx, ecx
mov esi, 0x9908b0df
cmp edi, 0
cmovne ecx, esi
xor edx, ecx
mov ecx, dword [ebp - 0x10]
xor edx, dword [eax + ecx*4 + 0xff8]
mov ecx, dword [ebp - 0x10]
mov dword [eax + ecx*4 + 4], edx
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x41d1b8
jmp 0x41d22c
cmp dword [ebp - 0x10], 0x26f
jae 0x41d2a1
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [eax + ecx*4 + 0x9c4]
and ecx, 0x80000000
mov edx, dword [ebp - 0x10]
mov edx, dword [eax + edx*4 + 0x9c8]
and edx, 0x7fffffff
or ecx, edx
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
shr edx, 1
mov edi, dword [ebp - 0x18]
and edi, 1
xor ecx, ecx
mov esi, 0x9908b0df
cmp edi, 0
cmovne ecx, esi
xor edx, ecx
mov ecx, dword [ebp - 0x10]
sub ecx, 0x270
xor edx, dword [eax + ecx*4 + 0x638]
mov ecx, dword [ebp - 0x10]
mov dword [eax + ecx*4 + 4], edx
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x41d22c
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [eax + ecx*4 + 0x9c4]
and ecx, 0x80000000
mov edx, dword [eax + 4]
and edx, 0x7fffffff
or ecx, edx
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
shr edx, 1
mov edi, dword [ebp - 0x1c]
and edi, 1
xor ecx, ecx
mov esi, 0x9908b0df
cmp edi, 0
cmovne ecx, esi
xor edx, ecx
xor edx, dword [eax + 0x634]
mov ecx, dword [ebp - 0x10]
mov dword [eax + ecx*4 + 4], edx
mov dword [eax], 0
add esp, 0x18
pop esi
pop edi
pop ebp
ret

Function at 0x42d8d6
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42d915
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42d915
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42d915
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42d915
cmp dword [ecx + 0x74], 0xe
jbe 0x42d915
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret