joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f03
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov word [ebp - 0x36], 0
mov word [ebp - 0x34], 0
mov dword [ebp - 0x18], 2
cmp dword [ebp + 8], 0
jne 0x401f32
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
jmp 0x401f7f
mov dword [ebp - 0xc], 1
jmp 0x401f5c
mov eax, dword [ebp - 0xc]
dec eax
mov eax, dword [eax*4 + 0x406018]
mov dword [esp], eax
call sym._strlen
mov edx, dword [ebp - 0x18]
add eax, edx
add eax, 4
mov dword [ebp - 0x18], eax
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jl 0x401f3b
mov eax, dword [ebp + 8]
dec eax
mov eax, dword [eax*4 + 0x406018]
mov dword [esp], eax
call sym._strlen
mov edx, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [0x408070]
lea edx, [ebp - 0x2e]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._GetConsoleScreenBufferInfo_8
sub esp, 8
mov ax, word [ebp - 0x2e]
mov word [ebp - 0x32], ax
mov word [ebp - 0x30], 1
mov dword [ebp - 0xc], 0
jmp 0x402013
mov eax, dword [0x408014]
mov edx, dword [ebp - 0xc]
shl edx, 2
add eax, edx
mov word [eax + 2], 0x70
mov eax, dword [0x408014]
mov edx, dword [ebp - 0xc]
shl edx, 2
add eax, edx
mov al, byte [eax]
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0x40
jle 0x401fde
cmp byte [ebp - 0xd], 0x5a
jle 0x401fea
cmp byte [ebp - 0xd], 0x60
jle 0x402010
cmp byte [ebp - 0xd], 0x7a
jg 0x402010
mov eax, dword [0x408014]
mov edx, dword [ebp - 0xc]
shl edx, 2
lea edx, [eax + edx]
mov eax, dword [0x408014]
mov ecx, dword [ebp - 0xc]
shl ecx, 2
add eax, ecx
mov ax, word [eax + 2]
or eax, 4
mov word [edx + 2], ax
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x18]
jl 0x401fad
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
jmp 0x402039
mov eax, dword [0x408014]
mov edx, dword [ebp - 0xc]
shl edx, 2
add eax, edx
mov word [eax + 2], 7
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jl 0x402023
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
jmp 0x4020af
mov eax, dword [0x408014]
mov edx, dword [ebp - 0xc]
shl edx, 2
add eax, edx
mov word [eax + 2], 0x70
mov eax, dword [0x408014]
mov edx, dword [ebp - 0xc]
shl edx, 2
add eax, edx
mov al, byte [eax]
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0x40
jle 0x40207a
cmp byte [ebp - 0xd], 0x5a
jle 0x402086
cmp byte [ebp - 0xd], 0x60
jle 0x4020ac
cmp byte [ebp - 0xd], 0x7a
jg 0x4020ac
mov eax, dword [0x408014]
mov edx, dword [ebp - 0xc]
shl edx, 2
lea edx, [eax + edx]
mov eax, dword [0x408014]
mov ecx, dword [ebp - 0xc]
shl ecx, 2
add eax, ecx
mov ax, word [eax + 2]
or eax, 4
mov word [edx + 2], ax
inc dword [ebp - 0xc]
mov ax, word [ebp - 0x2e]
cwde
cmp eax, dword [ebp - 0xc]
jg 0x402049
mov ax, word [ebp - 0x32]
dec eax
mov word [ebp - 0x3e], 0
mov word [ebp - 0x3c], 0
mov word [ebp - 0x3a], ax
mov word [ebp - 0x38], 0
mov edx, dword [0x408014]
mov eax, dword [0x408070]
lea ecx, [ebp - 0x3e]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x36]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x32]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._WriteConsoleOutputA_20
sub esp, 0x14
leave
ret
Function at 0x4032ca
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov word [ebp - 0x20], 0
mov word [ebp - 0x1e], 0
mov eax, dword [0x408008]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x40342b
mov eax, dword [0x408008]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x40342e
mov eax, dword [0x408008]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [0x408008]
mov ax, word [eax + 6]
mov edx, eax
mov eax, dword [0x408008]
mov ax, word [eax + 2]
mov ecx, edx
sub cx, ax
mov eax, ecx
inc eax
mov word [ebp - 0x1c], ax
mov eax, dword [0x408008]
mov eax, dword [eax + 8]
mov edx, eax
mov eax, dword [0x408008]
mov eax, dword [eax + 4]
mov ecx, edx
sub cx, ax
mov eax, ecx
inc eax
mov word [ebp - 0x1a], ax
mov eax, dword [0x408008]
lea ecx, [eax + 2]
mov eax, dword [0x408008]
mov edx, dword [eax + 0xc]
mov eax, dword [0x408070]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x20]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._WriteConsoleOutputA_20
sub esp, 0x14
mov eax, dword [0x408008]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [0x408008]
mov eax, dword [eax + 4]
cwde
mov dword [ebp - 0x10], eax
jmp 0x4033db
mov eax, dword [0x408008]
mov ax, word [eax + 2]
cwde
mov dword [ebp - 0xc], eax
jmp 0x4033c9
mov ecx, dword [0x40801c]
mov edx, dword [ebp - 0x10]
mov eax, edx
shl eax, 2
add eax, edx
shl eax, 4
add eax, dword [ebp - 0xc]
lea edx, [ecx + eax]
mov eax, dword [ebp - 0x14]
mov al, byte [eax]
mov byte [edx], al
inc dword [ebp - 0x14]
inc dword [ebp - 0xc]
mov eax, dword [0x408008]
mov ax, word [eax + 6]
cwde
cmp eax, dword [ebp - 0xc]
jge 0x4033a3
inc dword [ebp - 0x10]
mov eax, dword [0x408008]
mov eax, dword [eax + 8]
cwde
cmp eax, dword [ebp - 0x10]
jge 0x403394
mov eax, dword [0x408008]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sym._free
mov eax, dword [0x408008]
mov eax, dword [eax + 0x10]
mov dword [esp], eax
call sym._free
mov eax, dword [0x408008]
mov dword [esp], eax
call sym._free
mov eax, dword [ebp - 0x18]
mov dword [0x408008], eax
mov dword [0x408010], 0
nop
jmp 0x40342f
nop
jmp 0x40342f
nop
leave
ret
Function at 0x403c18
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x44
mov word [ebp - 0x20], 0
mov word [ebp - 0x1e], 0
mov word [ebp - 0x14], 7
mov word [ebp - 0x12], 0x70
mov dword [ebp - 0x10], 0
jmp 0x403cde
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
shl edx, 3
add eax, edx
mov ax, word [eax]
mov word [ebp - 0x20], ax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
shl edx, 3
add eax, edx
mov ax, word [eax + 2]
mov word [ebp - 0x1e], ax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
shl edx, 3
add eax, edx
mov ax, word [eax + 4]
movsx edx, ax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
shl ecx, 3
add eax, ecx
mov ax, word [eax]
cwde
mov ecx, edx
sub ecx, eax
mov eax, ecx
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x10]
lea eax, [edx + eax]
mov al, byte [eax]
test al, al
jne 0x403cdb
mov ecx, dword [ebp - 0xc]
movzx edx, word [ebp - 0x12]
mov eax, dword [0x408070]
mov dword [esp + 0x10], 0
mov ebx, dword [ebp - 0x20]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._FillConsoleOutputAttribute_20
sub esp, 0x14
inc dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
cmp eax, dword [ebp - 0x10]
jg 0x403c43
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
dec edx
shl edx, 3
add eax, edx
mov ax, word [eax]
mov word [ebp - 0x20], ax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
dec edx
shl edx, 3
add eax, edx
mov ax, word [eax + 2]
mov word [ebp - 0x1e], ax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
dec edx
shl edx, 3
add eax, edx
mov ax, word [eax + 4]
movsx edx, ax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
dec ecx
shl ecx, 3
add eax, ecx
mov ax, word [eax]
cwde
mov ecx, edx
sub ecx, eax
mov eax, ecx
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov edx, dword [ebp + 0xc]
dec edx
add eax, edx
mov al, byte [eax]
test al, al
jne 0x403d8b
mov ecx, dword [ebp - 0xc]
movzx edx, word [ebp - 0x14]
mov eax, dword [0x408070]
mov dword [esp + 0x10], 0
mov ebx, dword [ebp - 0x20]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._FillConsoleOutputAttribute_20
sub esp, 0x14
jmp 0x403de9
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov edx, dword [ebp + 0xc]
dec edx
add eax, edx
mov al, byte [eax]
cmp al, 1
jne 0x403de9
mov eax, dword [0x408070]
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
mov eax, dword [0x408070]
lea edx, [ebp - 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._GetConsoleCursorInfo_8
sub esp, 8
mov dword [ebp - 0x18], 1
mov eax, dword [0x408070]
lea edx, [ebp - 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorInfo_8
sub esp, 8
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x404012
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov dword [ebp - 0x20], 1
mov word [ebp - 0x2c], 0xa
mov word [ebp - 0x2a], 0xa
lea edx, [ebp - 0x4b]
mov ebx, str.BackupData_function_is_called_
mov eax, 0x1f
mov edi, edx
mov esi, ebx
mov ecx, eax
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x4b]
mov dword [esp], eax
call sym._strlen
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x2c]
mov cx, word [ebp - 0x2a]
mov eax, dword [ebp - 0x2c]
mov edx, eax
mov eax, dword [ebp - 0x1c]
lea eax, [edx + eax]
dec eax
mov edx, eax
mov ax, word [ebp - 0x2a]
mov word [ebp - 0x58], bx
mov word [ebp - 0x56], cx
mov word [ebp - 0x54], dx
mov word [ebp - 0x52], ax
mov eax, dword [0x408070]
mov edx, dword [ebp - 0x2c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
mov eax, dword [0x408070]
lea edx, [ebp - 0x28]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._GetConsoleCursorInfo_8
sub esp, 8
mov dword [ebp - 0x24], 1
mov eax, dword [0x408070]
lea edx, [ebp - 0x28]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorInfo_8
sub esp, 8
mov dword [esp], str.SaveData_function_is_called_
call sym._puts
mov dword [esp], str.input_a_number_please_
call sym._puts
lea eax, [ebp - 0x50]
mov dword [esp + 4], eax
mov dword [esp], 0x407380
call sym._scanf
mov eax, dword [ebp - 0x50]
mov dword [esp + 4], eax
mov dword [esp], str.the_number_is__d_n
call sym._printf
mov eax, dword [ebp - 0x50]
test eax, eax
jne 0x404110
call dbg.ClearWorkArea
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0xc]
add esp, 0
pop ebx
pop esi
pop edi
leave
ret

Function at 0x404930
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x404956
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4049ea
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x4049a5
cmp eax, 0x40
je 0x4049a5
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x404949
cmp eax, 0x40
je 0x404949
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x404949
mov dword [esp + 8], 0x34
mov dword [esp + 4], str..._.._runtime_pseudo_reloc.c
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sym.__assert
lea esi, [esi]
lea edi, [edi]
Function at 0x4032ec
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404ad4
test esi, esi
jne 0x403322
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404bc4
jmp 0x403340
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004031f0
mov edi, eax
test esi, esi
je 0x403340
cmp dword [ebx], 0
je 0x403340
dec esi
jmp 0x403329
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403374
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x494008], 0x8088405
inc edx
mov dword [ebx + 0x494008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403a80
Capabilities:
Query or enumerate registry value

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

Function at 0x404934
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49704c], 0
je 0x404995
cmp word [0x497220], 0xd7b2
jne 0x40495d
cmp dword [0x497228], 0
jbe 0x40495d
mov eax, 0x49721c
call dword [0x497238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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 0x4049bc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x494030], 0
jne 0x4049b1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4062fc
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40652c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40637f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40652c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40637f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406548
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406408
xor eax, eax
push ebp
push 0x406401
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406138
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4063e6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406568
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4063e6
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406408
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x406522
cmp byte [ebp - 0xd], 0
jne 0x40644f
cmp byte [ebp - 0x12], 0
je 0x406522
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406468
dec ebx
cmp byte [ebx], 0x2e
je 0x406477
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406467
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406522
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4064b4
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406522
cmp byte [ebp - 0xd], 0
je 0x406522
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406522
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408f60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x408fb2
test eax, edx
je 0x408fb5
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408f75
movzx eax, byte [eax]
sub eax, ecx
ret
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]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x408f9b
add ecx, 4
js 0x408f8b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x408f98
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x408fc1
test edx, edx
jne 0x408f68
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404f64
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4099b9
test al, 0x10
je 0x4099bd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c52c
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 0x40c565
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404bc4
jmp 0x40c56e
mov eax, ebx
mov edx, esi
call fcn.00404b28
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c578
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 0x40c59a
movzx eax, byte [esp]
jmp 0x40c59c
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40cc2c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40caa4
mov eax, dword [0x496864]
cmp byte [eax], 0
je 0x40cca8
mov eax, dword [0x496614]
call fcn.00403448
call fcn.0040305c
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.00409c04
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 0x40ccf0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ccde
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4965b4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4997f8]
call fcn.004060e0
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 0x40d5a8
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 0x40d67e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404b6c
lea eax, [ebp - 4]
call fcn.00404fbc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404f64
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d668
mov eax, ebx
call fcn.00402f00
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d661
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.00404f64
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d64b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d690
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d64b
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 0x40d668
mov eax, dword [ebp - 0x10]
call fcn.00402f1c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d685
lea eax, [ebp - 4]
call fcn.00404ad4
ret

Function at 0x421444
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x49b9ec
cmp dword [edi], 0
jne 0x4214c0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x49b9e8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x494b80
mov ecx, 2
call fcn.004030f0
mov edx, 0x42141c
lea eax, [esi + 5]
call fcn.0042143c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042143c
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 0x421495
mov dword [0x49b9e8], 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 0x423cb0
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.00404f64
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x423d08
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4969b4]
mov dl, 1
mov eax, dword [0x4237bc]
call fcn.0040cdf8
call fcn.004044fc
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004238c4
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 0x424f38
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 0x424f3e
ret