joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40456f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
push esi
push edi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.00415450
call fcn.0040246e
push 3
call fcn.004024c4
push 0x28
mov dword [0x41b938], eax
call fcn.004024c4
push 2
mov dword [0x41b934], eax
call fcn.004024c4
push 5
mov dword [0x41b930], eax
call fcn.004024c4
push 0x15
mov dword [0x41b92c], eax
call fcn.004024c4
push 0x16
mov dword [0x41b928], eax
call fcn.004024c4
push 0x17
mov dword [0x41b924], eax
call fcn.004024c4
xor ebx, ebx
add esp, 0x1c
mov dword [0x41b920], eax
mov dword [0x41b918], ebx
mov dword [0x41b91c], ebx
xor edi, edi
push ebx
push edi
lea eax, [ebp - 0x268]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x404653
push edi
lea eax, [ebp - 0x5c]
push str.SfxFolder_02d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 1
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00403697
add esp, 0x18
xor esi, esi
cmp dword [esi + 0x41b3a4], edi
jne 0x40464b
push ebx
lea eax, [ebp - 0x268]
push eax
push dword [esi + 0x41b3a8]
call fcn.00403697
add esp, 0xc
add esi, 8
cmp esi, 0x28
jb 0x40462d
inc edi
cmp edi, 0x40
jl 0x4045f2
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404a53
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.00401512
push 2
mov ecx, esi
call fcn.00402ae7
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
push 1
call edi
mov ecx, dword [esi]
and word [ecx], 0
and dword [esi + 4], 0
test eax, eax
jbe 0x404aa6
lea ebx, [eax + 1]
push ebx
mov ecx, esi
call fcn.00402ae7
push eax
push ebx
call edi
mov edi, dword [esi]
push edi
call fcn.004011ab
and word [edi + eax*2], 0
pop ecx
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
and dword [ebp + 8], 0
lea ecx, [eax + 0xf]
mov dword [ebp - 4], ecx
lea ebx, [eax + eax]
push dword [ebp - 4]
mov ecx, esi
call fcn.00402ae7
push dword [ebp + 8]
add eax, ebx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [esi]
push edi
call fcn.004011ab
and word [edi + eax*2], 0
add esp, 0x10
push dword [esi]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404afb
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xfff
jl 0x404ab6
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x404b02
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x41b3d4], esi
jle 0x404b56
mov eax, dword [0x41b3d8]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
lea ecx, [ebp - 0xc]
call fcn.004013f8
lea eax, [ebp - 0xc]
push eax
call fcn.00404692
mov eax, dword [0x41b3d8]
mov eax, dword [eax + esi*4]
pop ecx
push dword [ebp - 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
inc esi
cmp esi, dword [0x41b3d4]
pop ecx
jl 0x404b13
pop esi
leave
ret
Function at 0x4053cd
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
lea ecx, [ebp - 0xc]
call fcn.00401512
lea ecx, [ebp - 0x18]
call fcn.00401512
push 0x3c
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x54]
push edi
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 0x10]
xor ebx, ebx
inc ebx
add esp, 0xc
test byte [ebp + 0xc], bl
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], 0x740
mov dword [ebp - 0x38], ebx
je 0x40541e
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x50], 0x8740
test byte [ebp + 0xc], 2
je 0x40542b
mov dword [ebp - 0x48], str.runas
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.00404eba
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.0040142a
cmp dword [ebp - 8], edi
jne 0x405460
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4054a0
test dword [ebp + 0xc], 0x10000
jne 0x40548e
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push esi
jmp 0x405452
xor ebx, ebx
jmp 0x405497
Function at 0x40576a
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 8]
cmp word [esi + 2], 0x3a
jne 0x40591c
movzx eax, word [esi + 4]
cmp ax, 0x5c
je 0x405794
cmp ax, 0x2f
jne 0x40591c
mov ax, word [esi]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], 0x5c
mov word [ebp - 0xa], bx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x40591c
lea eax, [ebp - 0x28]
push str.7ZSfx_03x.cmd
push eax
call fcn.00404a53
pop ecx
pop ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x4058e6
push edi
lea ecx, [ebp - 0x1c]
call fcn.00401512
push str.:Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.0040142a
mov edi, str.del__
push edi
lea ecx, [ebp - 0x1c]
call fcn.00402aff
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004014e3
mov esi, 0x4188fc
push esi
lea ecx, [ebp - 0x1c]
call fcn.00402aff
push str.if_exist__
lea ecx, [ebp - 0x1c]
call fcn.00402aff
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004014e3
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.00402aff
push edi
lea ecx, [ebp - 0x1c]
call fcn.00402aff
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004014e3
push esi
lea ecx, [ebp - 0x1c]
call fcn.00402aff
mov esi, dword [ebp - 0x18]
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00402e5d
mov eax, dword [eax]
add esp, 0xc
push ebx
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x34]
mov esi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
pop edi
je 0x4058f7
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jne 0x4058f7
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push ebx
push ebx
push dword [ebp - 0x28]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov esi, dword [ebp + 8]
pop ecx
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x405922
push dword [ebp - 0x28]
call fcn.00403330
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
jmp 0x405923
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x407562
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.00407515
add esp, 0x1c
leave
ret
Function at 0x4091a1
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
push esi
push edi
lea eax, [ebp - 0x10]
push eax
mov edi, 0x4b6
push edi
mov esi, ecx
call fcn.0040791a
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push 1
inc eax
inc eax
push edi
mov ecx, esi
mov dword [esi + 0x58], eax
call fcn.00407937
push 1
inc edi
push edi
mov ecx, esi
call fcn.00407937
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x103
push 0x2b4
lea eax, [ebp - 0x4d0]
push eax
push 0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x4d0]
push edi
push dword [esi + 4]
mov dword [esi + 0x50], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x407f80
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.00408e70
mov ecx, esi
mov edi, eax
call fcn.004082ed
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x40af10
Capabilities:
Hash data using sha256

Disassembly:
sub esp, 0x80
push ebx
mov ebx, ecx
mov ecx, dword [ebx]
cmp ecx, 0x3f
jne 0x40af8d
xor eax, eax
cmp dword [ebx + 4], eax
jbe 0x40af40
jmp 0x40af30
mov cl, byte [ebx + eax + 8]
mov byte [ebx + eax + 0x24], cl
add eax, 1
cmp eax, dword [ebx + 4]
jb 0x40af30
xor ecx, ecx
cmp dword [ebx + 0x1c], ecx
jbe 0x40af65
cmp eax, 0x20
jae 0x40b0e3
mov edx, dword [ebx + 0x20]
mov dl, byte [ecx + edx]
mov byte [eax + ebx + 0x24], dl
add ecx, 1
add eax, 1
cmp ecx, dword [ebx + 0x1c]
jb 0x40af47
cmp eax, 0x20
jae 0x40b0e3
mov ecx, 0x20
sub ecx, eax
push ecx
lea ebx, [eax + ebx + 0x24]
push 0
push ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
pop ebx
add esp, 0x80
ret
push esi
xor esi, esi
lea eax, [esi + 1]
xor edx, edx
mov dword [esp + 0x20], 0x6a09e667
mov dword [esp + 0x24], 0xbb67ae85
mov dword [esp + 0x28], 0x3c6ef372
mov dword [esp + 0x2c], 0xa54ff53a
mov dword [esp + 0x30], 0x510e527f
mov dword [esp + 0x34], 0x9b05688c
mov dword [esp + 0x38], 0x1f83d9ab
mov dword [esp + 0x3c], 0x5be0cd19
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
call fcn.00415900
cmp edx, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov byte [esp + 8], 0
mov byte [esp + 9], 0
mov byte [esp + 0xa], 0
mov byte [esp + 0xb], 0
mov byte [esp + 0xc], 0
mov byte [esp + 0xd], 0
mov byte [esp + 0xe], 0
mov byte [esp + 0xf], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
jb 0x40b0d1
ja 0x40b02c
cmp eax, esi
jbe 0x40b0d1
push ebp
push edi
mov edi, edi
mov eax, dword [ebx + 4]
push eax
lea eax, [ebx + 8]
push eax
lea edx, [esp + 0x30]
push edx
call fcn.0040abd0
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [ebx + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0040abd0
mov esi, dword [esp + 0x60]
add esp, 0x18
mov ebp, 8
lea edi, [esp + 0x10]
and esi, 0x3f
mov cl, byte [edi]
mov byte [esp + esi + 0x50], cl
add esi, 1
add edi, 1
add dword [esp + 0x48], 1
adc dword [esp + 0x4c], 0
sub ebp, 1
cmp esi, 0x40
jne 0x40b090
lea edx, [esp + 0x28]
xor esi, esi
call fcn.0040ab10
test ebp, ebp
ja 0x40b067
xor eax, eax
add byte [esp + eax + 0x10], 1
jne 0x40b0a5
add eax, 1
cmp eax, 8
jl 0x40b096
add dword [esp + 0x18], 1
mov eax, dword [esp + 0x1c]
adc eax, 0
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
jb 0x40b030
ja 0x40b0cf
mov edx, dword [esp + 0x20]
cmp dword [esp + 0x18], edx
jb 0x40b030
pop edi
pop ebp
add ebx, 0x24
lea eax, [esp + 0x20]
push ebx
push eax
call fcn.0040ac20
add esp, 8
pop esi
pop ebx
add esp, 0x80
ret

Function at 0x40e7fb
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e821
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40e821
xor al, al
jmp 0x40e841
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.004158c0
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x415450
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x41dc60], ecx
add edx, 1
cmp edx, 0x100
jb 0x415452
cmp edx, 0x800
jae 0x41553b
mov edi, edi
mov eax, dword [edx*4 + 0x41d860]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x41dc60]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x41dc5c], eax
jb 0x415510
mov dword [0x41dc34], 0x415bf0
call fcn.00415680
test eax, eax
jne 0x415558
mov dword [0x41dc34], 0x415b10
ret
Function at 0x401090
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x108]
push eax
push 0x104
push str.Neuoanitic_Release.dll
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push str.hl2.exe
call section..text
add esp, 4
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 0x114]
push ecx
push 0
push 0x43a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x10c], eax
push 4
push 0x3000
push 0x104
push 0
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x110], eax
push 0
push 0x104
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp - 0x110]
push ecx
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0
mov eax, dword [ebp - 0x110]
push eax
mov ecx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004011a2
mov esp, ebp
pop ebp
ret

Function at 0x401d76
Capabilities:
Parse pe header

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

Function at 0x424f94
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00424e68

Function at 0x427d9d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042775b

Function at 0x43dfa0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43dfcd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43dfcd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402b54
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40900c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402bec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402bcc
xor eax, eax
push ebp
push 0x402bc5
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 0x402c08
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 0x402bcc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40900c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40900c], ax
mov esp, ebp
pop ebp
ret

Function at 0x403254
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40a034], 0
je 0x4032b5
cmp word [0x40a208], 0xd7b2
jne 0x40327d
cmp dword [0x40a210], 0
jbe 0x40327d
mov eax, 0x40a204
call dword [0x40a220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x409054
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 0x4032dc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x409018], 0
jne 0x4032d1
push 0
push 0x40904c
push 0x409054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403b48
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 0x403bae
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.00403544
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402a48
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x403b98
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403bb5
lea eax, [ebp - 0x10]
call fcn.004033d8
ret

Function at 0x404284
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
movzx eax, word [0x40ab2c]
cmp eax, dword [0x40ab30]
jb 0x404300
mov eax, dword [0x409284]
mov eax, dword [eax]
mov edx, 0x8000
call fcn.0040553c
mov edx, eax
mov eax, dword [0x40ab24]
call fcn.00405664
mov dword [0x40ab30], eax
mov eax, dword [0x4092f0]
mov ax, word [eax + 8]
and ax, 1
cmp ax, 1
jne 0x4042f7
mov esi, dword [0x40ab30]
dec esi
test esi, esi
jl 0x4042f7
inc esi
xor ebx, ebx
call fcn.00406be4
mov edx, dword [0x40ab24]
xor byte [edx + ebx], al
mov eax, dword [0x40ab24]
mov al, byte [eax + ebx]
call fcn.00406b0c
inc ebx
dec esi
jne 0x4042d8
mov word [0x40ab2c], 0
cmp dword [0x40ab30], 0
jne 0x404321
mov eax, dword [0x409284]
xor edx, edx
mov dword [eax], edx
mov word [0x40ab2c], 0
or eax, 0xffffffff
pop esi
pop ebx
ret
movzx eax, word [0x40ab2c]
mov edx, dword [0x40ab24]
movzx eax, byte [edx + eax]
inc word [0x40ab2c]
pop esi
pop ebx
ret
Function at 0x404390
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, esp
mov ebp, 0x40ab28
mov eax, dword [0x40ab1c]
mov dword [edi], eax
mov ax, word [0x40ab20]
mov word [esp + 4], ax
mov bx, word [0x40ab34]
mov si, word [esp + 4]
and si, 7
lea ecx, [esp + 4]
mov edx, edi
mov eax, esi
call fcn.00404384
lea ecx, [esp + 4]
mov edx, edi
mov ax, 0x10
call fcn.00404358
mov si, word [edi]
and si, 0xffff
lea ecx, [esp + 4]
mov edx, edi
mov ax, 0x10
call fcn.00404384
lea ecx, [esp + 4]
mov edx, edi
mov ax, 0x10
call fcn.00404358
mov ax, word [edi]
not ax
and ax, 0xffff
cmp si, ax
je 0x40441a
mov word [0x40ab34], 0
lea ecx, [esp + 4]
mov edx, edi
mov ax, 0x10
call fcn.00404384
test si, si
je 0x404494
dec esi
lea ecx, [esp + 4]
mov edx, edi
mov ax, 8
call fcn.00404358
movzx eax, bx
mov edx, dword [ebp]
mov cl, byte [edi]
mov byte [edx + eax], cl
inc ebx
cmp bx, 0x8000
jne 0x404480
push 0
lea eax, [esp + 0xc]
push eax
movzx eax, bx
push eax
mov eax, dword [ebp]
push eax
mov eax, dword [0x4092b0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_WriteFile_1
mov ecx, dword [0x409278]
movzx edx, bx
mov eax, dword [ebp]
call fcn.00405518
xor ebx, ebx
lea ecx, [esp + 4]
mov edx, edi
mov ax, 8
call fcn.00404384
test si, si
jne 0x40442e
mov word [0x40ab34], bx
mov eax, dword [edi]
mov dword [0x40ab1c], eax
mov ax, word [esp + 4]
mov word [0x40ab20], ax
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x405354
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, 0x40ab18
mov word [0x40ab2c], 0
xor eax, eax
mov dword [0x40ab30], eax
mov word [0x40ab34], 0
mov word [0x40ab20], 0
xor eax, eax
mov dword [0x40ab1c], eax
xor ebx, ebx
xor eax, eax
mov dword [0x40ab24], eax
xor eax, eax
mov dword [0x40ab28], eax
mov eax, 0x8002
call fcn.004027b4
mov dword [0x40ab24], eax
mov eax, 0x8002
call fcn.004027b4
mov dword [0x40ab28], eax
xor eax, eax
push ebp
push 0x405471
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x405445
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [esi], 0
lea eax, [ebp - 4]
call fcn.004052b4
cmp bx, word [esi]
jae 0x4053ea
mov bx, word [esi]
cmp dword [ebp - 4], 0
je 0x4053d5
cmp word [0x40ab34], 0
jbe 0x40543b
push 0
lea eax, [ebp - 8]
push eax
movzx eax, word [0x40ab34]
push eax
mov eax, dword [0x40ab28]
push eax
mov eax, dword [0x4092b0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_WriteFile_1
mov ecx, dword [0x409278]
movzx edx, word [0x40ab34]
mov eax, dword [0x40ab28]
call fcn.00405518
mov word [0x40ab34], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40544f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405478
mov eax, dword [0x40ab24]
call fcn.004027e4
mov eax, dword [0x40ab28]
call fcn.004027e4
ret

Function at 0x405544
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [0x409284]
mov eax, dword [edi]
mov edx, 0x8000
call fcn.0040553c
add eax, 2
call fcn.004027b4
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x40562a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [edi], 0
jle 0x405614
mov eax, dword [edi]
mov edx, 0x8000
call fcn.0040553c
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.00405664
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [edi], eax
mov eax, dword [0x4092f0]
mov ax, word [eax + 8]
and ax, 1
cmp ax, 1
jne 0x4055df
mov esi, dword [ebp - 4]
dec esi
test esi, esi
jb 0x4055df
inc esi
xor ebx, ebx
call fcn.00406be4
mov edx, dword [ebp - 8]
mov dl, byte [edx + ebx]
xor al, dl
mov edx, dword [ebp - 8]
mov byte [edx + ebx], al
mov eax, dword [ebp - 8]
mov al, byte [eax + ebx]
call fcn.00406b0c
inc ebx
dec esi
jne 0x4055bd
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x4092b0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_WriteFile_1
mov ecx, dword [0x409278]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.00405518
cmp dword [edi], 0
jg 0x405581
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405631
mov eax, dword [ebp - 8]
call fcn.004027e4
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004036d0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x405765
test al, 0x10
jne 0x405769
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret