joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4016c9
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
push dword [esi + 0x1438]
xor ebp, ebp
call fcn.00402cac
pop ecx
push ebp
push dword [esi + 0x1430]
lea edi, [esi + 0x142c]
push dword [edi]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll__llseek]
push dword [esi + 0x1438]
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll__lread]
xor ecx, ecx
cmp eax, dword [esi + 0x1438]
jne 0x401764
cmp ecx, dword [esi + 0x143c]
jne 0x401764
push ecx
lea eax, [esi + 0x1224]
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
cmp eax, 0xffffffff
mov dword [esi + 0x1440], eax
jne 0x401741
push str.Unable_to_open_setup_file
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x37
jmp 0x401775
xor eax, eax
xor byte [eax + ebx], 7
inc eax
cmp eax, 0x7d0
jl 0x401743
push dword [esi + 0x1438]
push ebx
push dword [esi + 0x1440]
call dword [sym.imp.KERNEL32.dll__lwrite]
jmp 0x401776
push str.Failed_to_read_setup_engine
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x36
pop ebp
push ebx
call fcn.00402bcf
mov esi, dword [esi + 0x1440]
cmp esi, 0xffffffff
pop ecx
je 0x40178f
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret

Function at 0x401796
Capabilities:
Create directory
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40b020]
xor eax, ebp
mov dword [ebp + 0x88], eax
push ebx
push esi
mov esi, dword [ebp + 0x94]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
mov dword [ebp - 0x80], 1
call edi
cmp byte [esi + eax - 1], 0x5c
je 0x4017dd
push 0x408300
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call edi
push 0x104
mov ebx, eax
xor edi, edi
lea eax, [ebp - 0x7c]
push edi
push eax
call fcn.00401f40
add esp, 0xc
cmp ebx, 2
jle 0x401846
cmp byte [esi + 1], 0x3a
jne 0x401846
test ebx, ebx
jle 0x401849
lea eax, [ebp - 0x7c]
sub esi, eax
cmp dword [ebp - 0x80], 0
je 0x401849
lea eax, [ebp + edi - 0x7c]
mov cl, byte [esi + eax]
cmp cl, 0x5c
mov byte [eax], cl
jne 0x40183f
cmp edi, 2
je 0x40183f
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x40183f
push eax
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x80], eax
inc edi
cmp edi, ebx
jl 0x40180a
jmp 0x401849
mov dword [ebp - 0x80], edi
mov ecx, dword [ebp + 0x88]
mov eax, dword [ebp - 0x80]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401fba
add ebp, 0x8c
leave
ret 4
Function at 0x401eca
Capabilities:
Delete directory
Delete file

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.0040143d
mov ecx, esi
call fcn.00401452
mov edi, eax
test edi, edi
jne 0x401f03
mov ecx, esi
call fcn.004018cd
mov edi, eax
test edi, edi
jne 0x401f03
mov ecx, esi
call fcn.004016c9
mov edi, eax
test edi, edi
jne 0x401f03
mov ecx, esi
call fcn.00401b82
mov edi, eax
cmp dword [0x40c024], 0
jne 0x401f2e
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esi + 0x1224]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esi, 0x1328
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, edi
pop edi
pop esi
ret

Function at 0x401fba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40b020]
jne 0x401fc4
repz ret
jmp fcn.00401000
Function at 0x406ec4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040202c
xor ebx, ebx
cmp dword [0x40c698], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x406f99
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x406f04
xor eax, eax
jmp 0x40705d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4094f8
push edi
call esi
cmp eax, ebx
je 0x406efd
push eax
call fcn.00401fc9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40c698], eax
call esi
push eax
call fcn.00401fc9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40c69c], eax
call esi
push eax
call fcn.00401fc9
mov dword [0x40c6a0], eax
lea eax, [ebp - 8]
push eax
call fcn.004025a5
test eax, eax
pop ecx
pop ecx
je 0x406f67
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040110a
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x406f99
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00401fc9
cmp eax, ebx
pop ecx
mov dword [0x40c6a8], eax
je 0x406f99
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00401fc9
pop ecx
mov dword [0x40c6a4], eax
mov eax, dword [0x40c6a4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x407012
cmp dword [0x40c6a8], esi
je 0x407012
push eax
call fcn.00402035
pop ecx
call eax
cmp eax, ebx
je 0x406fdf
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x40c6a8]
call fcn.00402035
pop ecx
call eax
test eax, eax
je 0x406fdf
test byte [ebp - 0x18], 1
jne 0x407012
lea eax, [ebp - 0xc]
push eax
call fcn.004025dc
test eax, eax
pop ecx
je 0x406ffa
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040110a
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x407009
or dword [ebp + 0x10], 0x200000
jmp 0x407043
or dword [ebp + 0x10], 0x40000
jmp 0x407043
mov eax, dword [0x40c69c]
cmp eax, esi
je 0x407043
push eax
call fcn.00402035
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x407043
mov eax, dword [0x40c6a0]
cmp eax, esi
je 0x407043
push dword [ebp - 4]
push eax
call fcn.00402035
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x40c698]
call fcn.00402035
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40303e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x403069
mov ecx, dword [0x424798]
push esi
add eax, ecx
push esi
push eax
mov dword [0x4178dc], eax
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.00403146
cmp eax, esi
jl 0x403140
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00405caa
test eax, eax
je 0x403130
push dword [ebp + 8]
add dword [0x4178dc], 4
call fcn.00403146
mov ebx, eax
cmp ebx, esi
jl 0x40313e
cmp dword [ebp + 0x10], esi
jne 0x40310c
cmp dword [ebp + 8], esi
jle 0x40313e
mov esi, 0x4138d8
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x4030ce
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00405caa
test eax, eax
je 0x403130
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00405cd9
test eax, eax
je 0x403108
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x4178dc], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x4030bd
jmp 0x40313e
push 0xfffffffffffffffe
jmp 0x403132
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403117
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403135
push 0xfffffffffffffffd
pop eax
jmp 0x403140
mov ebx, dword [ebp - 4]
add dword [0x4178dc], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x405686
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x408374
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x408364
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4056d7
xor eax, eax
jmp 0x4056fe
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x4056fe
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x4056d3
call esi
pop esi
leave
ret 4

Function at 0x405738
Capabilities:
Create process on windows

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

Function at 0x40577b
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
ret 4

Function at 0x405819
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405c0d
mov edi, eax
cmp edi, 0xffffffff
je 0x40585a
test byte [esp + 0x10], 1
push esi
je 0x40583c
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405842
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40584b
xor eax, eax
inc eax
jmp 0x40585c
test byte [esp + 0x10], 4
jne 0x40585a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405861
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405b1f
test bl, 8
mov dword [ebp - 0xc], eax
je 0x4058a0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4247c8], eax
jmp 0x405a2a
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4058ba
test eax, eax
je 0x4059d8
test bl, 2
je 0x4059d8
mov esi, 0x421d38
push edi
push esi
call fcn.00406099
cmp dword [ebp + 8], 0
je 0x4058d9
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4058df
push edi
call fcn.00405a78
cmp byte [edi], 0
jne 0x4058ed
cmp byte [0x421d38], 0x5c
jne 0x4058f8
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4059ce
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405a5c
cmp byte [eax], 0
je 0x40593e
cmp byte [ebp - 0x1c], 0
je 0x40593e
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405954
mov al, byte [esi + 1]
test al, al
je 0x4059ad
cmp al, 0x2e
jne 0x405954
cmp byte [esi + 2], 0
je 0x4059ad
push esi
push ebx
call fcn.00406099
test byte [ebp - 0x14c], 0x10
je 0x405979
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4059ad
push dword [ebp + 0xc]
push edi
call fcn.00405861
jmp 0x4059ad
push dword [ebp - 4]
push edi
call fcn.00405819
test eax, eax
jne 0x4059a5
cmp dword [ebp - 4], eax
je 0x40599d
push edi
push 0xfffffffffffffff1
call fcn.004051c0
push 0
push edi
call fcn.00405e78
jmp 0x4059ad
inc dword [0x4247c8]
jmp 0x4059ad
push edi
push 0xfffffffffffffff2
call fcn.004051c0
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40591c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4059d8
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405a2a
cmp dword [ebp - 0xc], esi
jne 0x4059ec
inc dword [0x4247c8]
jmp 0x405a2a
push edi
call fcn.0040639c
test eax, eax
je 0x405a2a
push edi
call fcn.00405a31
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405819
test eax, eax
jne 0x405a22
cmp dword [ebp - 4], esi
je 0x4059e4
push edi
push 0xfffffffffffffff1
call fcn.004051c0
push esi
push edi
call fcn.00405e78
jmp 0x405a2a
push edi
push 0xffffffffffffffe5
call fcn.004051c0
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405b1f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x422138
push esi
call fcn.00406099
push esi
call fcn.00405aca
mov edi, eax
test edi, edi
jne 0x405b40
xor eax, eax
jmp 0x405b92
push edi
call fcn.00406303
test byte [0x42473c], 0x80
je 0x405b59
mov al, byte [edi]
test al, al
je 0x405b3c
cmp al, 0x5c
je 0x405b3c
sub edi, esi
jmp 0x405b71
call fcn.0040639c
test eax, eax
je 0x405b6b
test byte [eax], 0x10
je 0x405b3c
push esi
call fcn.00405a78
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405b5d
call fcn.00405a31
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 0x405c0d
Capabilities:
Check if file exists
Get file attributes
Set file attributes

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

Function at 0x405c32
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
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 0x405c61
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a3cc]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
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 0x405ca6
test edi, edi
jne 0x405c6c
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405ca0
Function at 0x405d08
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x422ac0], 0x4c554e
mov edi, 0x400
mov ebp, 0x422ac0
je 0x405d54
push 1
push 0
push esi
call fcn.00405c32
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405e73
cmp eax, edi
jg 0x405e73
mov esi, 0x422ec0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405e73
cmp eax, edi
jg 0x405e73
push esi
push ebp
push str._s_s_r_n
push 0x4226c0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x424734]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004060bb
push 4
push 0xc0000000
push esi
call fcn.00405c32
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x405e73
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405e6c
push edi
push esi
push ebp
call fcn.00405caa
test eax, eax
je 0x405e6c
push str._Rename__r_n
push esi
call fcn.00405b97
test eax, eax
jne 0x405e0a
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405e3f
add eax, 0xa
push 0x40a3d0
push eax
call fcn.00405b97
mov ebp, eax
test ebp, ebp
je 0x405e3b
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405e2c
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405e26
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405e41
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4226c0
push eax
call fcn.00405bed
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405cd9
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405e78
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x405e9b
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405d08
pop ecx
pop ecx
inc dword [0x4247d0]
ret 8

Function at 0x405f80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x400
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405f1f
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x405fef
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and byte [esi + 0x3ff], 0
test edi, edi
pop edi
jne 0x405fef
cmp dword [ebp + 0xc], 1
je 0x405ff2
cmp dword [ebp + 0xc], 2
je 0x405ff2
and byte [esi], 0
pop esi
leave
ret 0x14
Function at 0x4063c3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x4063e7
xor eax, eax
test eax, eax
je 0x4063f9
cmp byte [ebp + eax - 0x121], 0x5c
je 0x4063f9
xor ecx, ecx
jmp 0x4063fc
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x4064e8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4232c4], 0
push esi
jne 0x40651f
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4064f9
mov dword [ecx*4 + 0x4232c0], eax
inc ecx
cmp ecx, 0x100
jl 0x4064f4
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406550
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4232c0]
xor eax, esi
inc ecx
dec edx
jne 0x406532
pop edi
not eax
pop esi
ret 0xc

Function at 0x432006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x44cb7d7f
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
nop
mov eax, section..tls
mov ebx, 0x42f314
nop
nop
mov ecx, 0x776b7739
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x431006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x431072
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x486909c7
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
loop 0x431060
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
cmp eax, 0
nop
nop
nop
je 0x4310d2
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x201b4305
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x404548
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.00406804
test esi, esi
jne 0x404580
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.00406940
jmp 0x40459e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040448c
mov edi, eax
test esi, esi
je 0x40459e
cmp dword [ebx], 0
je 0x40459e
dec esi
jmp 0x404587
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405dc8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b3050], 0
je 0x405e29
cmp word [0x4b332c], 0xd7b2
jne 0x405df1
cmp dword [0x4b3334], 0
jbe 0x405df1
mov eax, 0x4b3328
call dword [0x4b3344]
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 0x405e54
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4b0030], 0
jne 0x405e45
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405fb4
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 [0x4b0034], 0
je 0x405fda
mov edx, esi
mov eax, ebx
call dword [0x4b0034]
jmp 0x405fe9
mov eax, 8
call fcn.004041d4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4b3051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405f7c
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 0x4085cc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408733
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406804
cmp si, word [0x4b07dc]
jb 0x408666
cmp si, word [0x4b09dc]
ja 0x408666
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408666
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4b07dc]
jae 0x408640
mov edi, ebx
dec edi
jmp 0x408661
cmp si, word [ebx*8 + 0x4b07dc]
jbe 0x408650
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408661
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4b07e0]
call fcn.004084dc
jmp 0x408666
cmp edi, dword [ebp - 0xc]
jae 0x40862a
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408715
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408715
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.004069ec
push dword [ebp - 0x164]
push 0x408750
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.004069ec
push dword [ebp - 0x168]
push 0x408760
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.004069ec
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406da4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40873a
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.004067fc
ret