joyce8/EMBER2024-capa huggingface dataset:
Function at 0x280a59a8
Capabilities:
Get hostname
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x280cc9c0]
push ebx
push esi
sub eax, 0
push edi
je 0x280a59d6
dec eax
je 0x280a59cf
dec eax
je 0x280a59c8
push str.Win32_Unknown
jmp 0x280a59db
push str.Windows_NT
jmp 0x280a59db
push str.Windows
jmp 0x280a59db
push str.Win32s
mov esi, dword [ebp + 8]
push esi
call sub.MSVCRT.dll_strcpy
pop ecx
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
pop ecx
lea eax, [esi + 0x202]
push dword [0x280cc9b8]
push dword [0x280cc9b4]
push str._d._d
push eax
call edi
mov eax, dword [0x280cc9bc]
add esp, 0x10
cmp dword [0x280cc9c0], 2
je 0x280a5a1c
and eax, 0xffff
lea ebx, [esi + 0x303]
push eax
push str.Build__d
push ebx
call edi
add esp, 0xc
cmp byte [0x280cc9c4], 0
je 0x280a5a56
push ebx
call sub.MSVCRT.dll_strlen
lea eax, [eax + esi + 0x303]
mov dword [esp], 0x280cc9c4
push str.___s_
push eax
call edi
add esp, 0xc
push str.localhost
call sym.perl510.dll_win32_gethostbyname
mov ebx, eax
pop ecx
test ebx, ebx
je 0x280a5aa6
push dword [ebx]
call sub.MSVCRT.dll_strlen
pop ecx
mov ecx, 0x100
cmp eax, ecx
ja 0x280a5a8a
push dword [ebx]
lea eax, [esi + 0x101]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
jmp 0x280a5ac4
push ecx
lea eax, [esi + 0x101]
push dword [ebx]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
and byte [esi + 0x201], 0
jmp 0x280a5ac4
lea eax, [ebp + 8]
lea ebx, [esi + 0x101]
push eax
push ebx
mov dword [ebp + 8], 0x100
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x280a5ac4
and byte [ebx], al
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x24]
mov ecx, 0xffff
cmp eax, ecx
ja case.default.0x280a5ae2
je 0x280a5b36
cmp eax, 0xa
ja case.default.0x280a5ae2
jmp dword [eax*4 + 0x280a5b69]
mov ebx, 0x280bf0dc
jmp 0x280a5b4f
mov ebx, str.mips
jmp 0x280a5b4f
mov ebx, str.alpha
jmp 0x280a5b4f
mov ebx, 0x280bf0d0
jmp 0x280a5b4f
mov ebx, 0x280bf0cc
jmp 0x280a5b4f
mov ebx, 0x280bf0c8
jmp 0x280a5b4f
mov ebx, str.ia64
jmp 0x280a5b4f
mov ebx, str.alpha64
jmp 0x280a5b4f
mov ebx, str.msil
jmp 0x280a5b4f
mov ebx, str.amd64
jmp 0x280a5b4f
mov ebx, str.ia32_64
jmp 0x280a5b4f
mov ebx, str.unknown
jmp 0x280a5b4f
lea ebx, [esi + 0x404]
push eax
push str.unknown_0x_x_
push ebx
call edi
add esp, 0xc
lea eax, [esi + 0x404]
cmp eax, ebx
je 0x280a5b62
push ebx
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x280a5bc3
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push esi
push dword [esi*4 + sym.perl510.dll_PL_sig_name]
push str.Terminating_on_signal_SIG_s__d__n
push dword [esp + 0x14]
call sym.perl510.dll_Perl_warn
add esp, 0x10
push esi
call dword [sym.imp.MSVCRT.dll_exit]
pop esi
Function at 0x280a5c9f
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
cmp esi, 0xffffffff
push edi
je 0x280a5cb9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
add esi, ebx
mov eax, esi
push 0x58
sub eax, ebx
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov edi, eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x280a5cd9
mov dword [eax], edi
cmp edi, 0x102
je 0x280a5cfe
cmp esi, 0xffffffff
je 0x280a5cee
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
cmp edi, dword [ebp + 0xc]
jne 0x280a5d02
push dword [ebp + 8]
call sym.perl510.dll_win32_async_check
pop ecx
jmp 0x280a5cb9
xor eax, eax
jmp 0x280a5d0c
sub esi, ebx
xor eax, eax
cmp eax, esi
sbb eax, eax
and eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x280a63ad
Capabilities:
Read file on windows

Disassembly:
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
ret

Function at 0x280a63c7
Capabilities:
Write file on windows

Disassembly:
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
ret

Function at 0x280a660b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
push edi
call sym.perl510.dll_Perl_get_context
lea eax, [ebp - 0x108]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
xor edi, edi
cmp eax, edi
je 0x280a6684
cmp eax, esi
jae 0x280a6684
lea eax, [ebp - 0x210]
push eax
push edi
lea eax, [ebp - 0x108]
push 0x280bf1bc
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x280a6684
push edi
push 0x4000080
push 2
push edi
push edi
lea eax, [ebp - 0x210]
push 0xc0010000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x280a6684
push edi
push eax
call sym.perl510.dll_win32_open_osfhandle
pop ecx
cmp eax, edi
pop ecx
jge 0x280a6687
or eax, 0xffffffff
pop edi
pop esi
leave
ret
Function at 0x280a6d71
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.280aaed0
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push ebx
mov dword [ebp - 4], esi
call sym.perl510.dll_win32_tell
cmp edx, esi
pop ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
jg 0x280a6d9f
jl 0x280a6db6
cmp eax, esi
jb 0x280a6db6
push 2
push esi
push esi
push ebx
call sym.perl510.dll_win32_lseek
add esp, 0x10
cmp edx, esi
jg 0x280a6dbe
jl 0x280a6db6
cmp eax, esi
jae 0x280a6dbe
or eax, 0xffffffff
jmp 0x280a6e95
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
sub esi, eax
sbb edi, edx
mov eax, esi
or eax, edi
je 0x280a6e7e
test edi, edi
jl 0x280a6e4b
jg 0x280a6ddd
test esi, esi
jbe 0x280a6e4b
push 0x8000
push ebx
call sym.perl510.dll_win32_setmode
mov ebx, 0x1000
mov dword [ebp + 0x10], eax
push ebx
lea eax, [ebp - 0x100c]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x14
test edi, edi
jl 0x280a6e10
jg 0x280a6e0c
cmp esi, ebx
jb 0x280a6e10
mov eax, ebx
jmp 0x280a6e12
mov eax, esi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call sym.perl510.dll_win32_write
add esp, 0xc
test eax, eax
jl 0x280a6e38
sub esi, eax
sbb edi, 0
js 0x280a6e3c
jg 0x280a6e02
test esi, esi
jbe 0x280a6e3c
jmp 0x280a6e02
or dword [ebp - 4], 0xffffffff
push dword [ebp + 0x10]
push dword [ebp + 8]
call sym.perl510.dll_win32_setmode
pop ecx
pop ecx
jmp 0x280a6e7e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call sym.perl510.dll_win32_lseek
push ebx
call dword [sym.imp.MSVCRT.dll__get_osfhandle]
add esp, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x280a6e7e
call dword [sym.imp.MSVCRT.dll__errno]
or dword [ebp - 4], 0xffffffff
mov dword [eax], 0xd
push 0
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp + 8]
call sym.perl510.dll_win32_lseek
mov eax, dword [ebp - 4]
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret
Function at 0x280a71ea
Capabilities:
Create directory

Disassembly:
call sym.perl510.dll_Perl_get_context
push dword [esp + 4]
mov eax, dword [eax + 0x88c]
push eax
call dword [eax + 0x24]
push eax
call dword [sym.imp.MSVCRT.dll__mkdir]
add esp, 0xc
ret

Function at 0x280a7208
Capabilities:
Delete directory

Disassembly:
call sym.perl510.dll_Perl_get_context
push dword [esp + 4]
mov eax, dword [eax + 0x88c]
push eax
call dword [eax + 0x24]
push eax
call dword [sym.imp.MSVCRT.dll__rmdir]
add esp, 0xc
ret

Function at 0x280a72f9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
call sym.perl510.dll_Perl_get_context
lea eax, [ebp - 0x108]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strlen
inc eax
push eax
call sym.perl510.dll_Perl_safesysmalloc
mov esi, eax
lea eax, [ebp - 0x108]
push eax
push esi
call sub.MSVCRT.dll_strcpy
add esp, 0x10
mov eax, esi
pop esi
leave
ret
Function at 0x280a7896
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
call sym.perl510.dll_Perl_get_context
mov edx, dword [ebp + 8]
xor ebx, ebx
and dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
test edx, edx
je 0x280a79ea
mov cl, byte [edx]
test cl, cl
je 0x280a78d6
cmp cl, 0x2f
je 0x280a78c7
cmp cl, 0x5c
jne 0x280a78ca
inc dword [ebp - 0xc]
mov cl, byte [edx + 1]
inc edx
inc ebx
test cl, cl
jne 0x280a78bd
mov dword [ebp - 8], ebx
mov eax, dword [eax + 0x880]
push 0x280bc480
push eax
call dword [eax]
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x280a78f5
push edi
call sub.MSVCRT.dll_strlen
pop ecx
jmp 0x280a78f7
xor eax, eax
lea eax, [eax + ebx + 6]
push eax
call sym.perl510.dll_Perl_safesysmalloc
mov esi, eax
mov eax, dword [ebp + 8]
add ebx, eax
pop ecx
mov dword [ebp - 0x10], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], esi
push dword [ebp + 8]
push esi
call sub.MSVCRT.dll_strcpy
mov eax, dword [ebp - 0x10]
add esi, dword [ebp - 8]
pop ecx
cmp byte [eax - 1], 0x2e
pop ecx
je 0x280a795a
cmp dword [ebp - 8], 4
jb 0x280a7938
cmp byte [eax - 4], 0x2e
je 0x280a795a
push str..exe
push esi
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push dword [ebp - 4]
call ebx
cmp eax, 0xffffffff
je 0x280a7957
test al, 0x10
je 0x280a79da
and byte [esi], 0
mov esi, dword [ebp - 4]
push esi
call ebx
cmp eax, 0xffffffff
je 0x280a7969
test al, 0x10
je 0x280a79df
test edi, edi
je 0x280a79e3
mov al, byte [edi]
test al, al
je 0x280a79e3
cmp dword [ebp - 0xc], 0
jne 0x280a79e3
cmp al, 0x3b
jne 0x280a7983
inc edi
cmp byte [edi], 0x3b
je 0x280a797d
mov al, byte [edi]
test al, al
je 0x280a79af
cmp al, 0x3b
je 0x280a79af
cmp al, 0x22
jne 0x280a79a9
mov al, byte [edi + 1]
inc edi
test al, al
je 0x280a79a2
cmp al, 0x22
je 0x280a79a2
mov byte [esi], al
inc esi
jmp 0x280a7991
cmp byte [edi], 0
je 0x280a7983
jmp 0x280a79ac
mov byte [esi], al
inc esi
inc edi
jmp 0x280a7983
cmp byte [edi], 0
je 0x280a79b5
inc edi
cmp esi, dword [ebp - 4]
jbe 0x280a7915
mov al, byte [esi - 1]
cmp al, 0x2f
je 0x280a7915
cmp al, 0x5c
je 0x280a7915
mov byte [esi], 0x5c
inc esi
jmp 0x280a7915
mov eax, dword [ebp - 4]
jmp 0x280a79ec
mov eax, esi
jmp 0x280a79ec
push esi
call sym.perl510.dll_Perl_safesysfree
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x280a7f7d
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
call fcn.280a3839
test eax, eax
je 0x280a80e9
push 0xfa0
mov dword [ebp - 4], 0x7d0
call sym.perl510.dll_win32_malloc
test eax, eax
pop ecx
mov dword [ebp - 8], eax
je 0x280a80e9
push dword [ebp - 4]
push dword [ebp - 8]
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, dword [ebp - 4]
jb 0x280a7fdb
mov dword [ebp - 4], eax
add eax, eax
push eax
push dword [ebp - 8]
call sym.perl510.dll_win32_realloc
pop ecx
mov dword [ebp - 8], eax
test eax, eax
pop ecx
jne 0x280a7fae
mov esi, dword [ebp - 8]
test esi, esi
je 0x280a80e9
push ebx
push edi
xor edi, edi
push 0x3b
push esi
call dword [sym.imp.MSVCRT.dll_wcschr]
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
pop ecx
je 0x280a8005
and word [eax], 0
inc eax
inc eax
mov dword [ebp - 0x10], eax
cmp word [esi], 0x22
jne 0x280a800d
inc esi
inc esi
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
test eax, eax
pop ecx
je 0x280a8029
cmp word [esi + eax*2 - 2], 0x22
lea eax, [esi + eax*2 - 2]
jne 0x280a8029
and word [eax], 0
push esi
call sym.perl510.dll_win32_ansipath
push eax
mov dword [ebp - 0xc], eax
call sub.MSVCRT.dll_strlen
pop ecx
mov esi, eax
test edi, edi
pop ecx
je 0x280a8079
mov eax, dword [ebp - 4]
lea ebx, [esi + eax + 1]
lea eax, [ebx + 1]
push eax
push edi
call sym.perl510.dll_win32_realloc
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x280a80de
mov eax, dword [ebp - 4]
add eax, edi
inc esi
push esi
push dword [ebp - 0xc]
mov byte [eax], 0x3b
inc eax
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov dword [ebp - 4], ebx
jmp 0x280a80af
lea eax, [esi + 6]
push eax
call sym.perl510.dll_win32_malloc
mov edi, eax
pop ecx
test edi, edi
je 0x280a80de
push 5
push 0x280bf310
push edi
call sub.MSVCRT.dll_memcpy
lea eax, [esi + 1]
push eax
lea eax, [edi + 5]
push dword [ebp - 0xc]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x18
add esi, 5
mov dword [ebp - 4], esi
push dword [ebp - 0xc]
call sym.perl510.dll_win32_free
mov esi, dword [ebp - 0x10]
pop ecx
test esi, esi
jne 0x280a7fea
test edi, edi
je 0x280a80de
push edi
call dword [sym.imp.MSVCRT.dll__putenv]
pop ecx
add edi, 5
push edi
push 0x280bc480
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push dword [ebp - 8]
call sym.perl510.dll_win32_free
pop ecx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x280aa6a6
Capabilities:
Query environment variable

Disassembly:
push esi
push 0xc
push 0x280cc8b8
push dword [esp + 0x10]
call sym.perl510.dll_Perl_my_cxt_init
push 0
push 0x280ac738
push dword [esp + 0x1c]
mov esi, eax
call sym.perl510.dll_Perl_newSVpvn
and dword [esi + 4], 0
push str.PERL_DL_NONLAZY
mov dword [esi], eax
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 0x1c
test eax, eax
je 0x280aa6ec
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
pop ecx
mov dword [esi + 4], eax
pop esi
ret
Function at 0x402fe4
Capabilities:
Query or enumerate registry value

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

Function at 0x403d48
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45d04c], 0
je 0x403da9
cmp word [0x45d220], 0xd7b2
jne 0x403d71
cmp dword [0x45d228], 0
jbe 0x403d71
mov eax, 0x45d21c
call dword [0x45d238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45b06c
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 0x403dd0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45b030], 0
jne 0x403dc5
push 0
push 0x45b064
push 0x45b06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4053d8
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 0x405608
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40545b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405608
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40545b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405624
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4054e4
xor eax, eax
push ebp
push 0x4054dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405220
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 0x4054c2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405644
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4054c2
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 0x4054e4
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 0x4055fe
cmp byte [ebp - 0xd], 0
jne 0x40552b
cmp byte [ebp - 0x12], 0
je 0x4055fe
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405544
dec ebx
cmp byte [ebx], 0x2e
je 0x405553
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405543
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4055fe
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405590
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 0x4055fe
cmp byte [ebp - 0xd], 0
je 0x4055fe
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 0x4055fe
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 0x405cd0
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 0x405d36
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.00404134
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ba8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405d20
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d3d
lea eax, [ebp - 0x10]
call fcn.00403ec4
ret

Function at 0x40ad94
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 0x40adcd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403fb4
jmp 0x40add6
mov eax, ebx
mov edx, esi
call fcn.00403f18
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ade0
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 0x40ae01
mov al, byte [esp]
jmp 0x40ae03
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b488
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b300
mov eax, dword [0x45c140]
cmp byte [eax], 0
je 0x40b504
mov eax, dword [0x45bf44]
call fcn.00402a14
call fcn.004028ac
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.004085d4
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 0x40b54c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b53a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45bef0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45d668]
call fcn.004051e4
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 0x40bdf4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40beca
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403f5c
lea eax, [ebp - 8]
call fcn.004043d4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404384
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40beb4
mov eax, ebx
call fcn.00402744
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bead
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 - 8]
call fcn.00404384
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40be97
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bedc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40be97
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40beb4
mov eax, dword [ebp - 0x10]
call fcn.00402764
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bed1
lea eax, [ebp - 8]
call fcn.00403ec4
ret

Function at 0x40c3d4
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 0x40c438
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.00404134
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004080fc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c43f
lea eax, [ebp - 0xc]
call fcn.00403ec4
ret

Function at 0x41db08
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x45d888
cmp dword [edi], 0
jne 0x41db84
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x45d884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45b3fc
mov ecx, 2
call fcn.00402940
mov edx, 0x41dae0
lea eax, [esi + 5]
call fcn.0041db00
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041db00
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 0x41db59
mov dword [0x45d884], 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 0x41f0c0
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 0x41f0c6
ret
Function at 0x421514
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x421565
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x42154c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x42153c
jmp 0x421565
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x42154d
pop ebx
mov esp, ebp
pop ebp
ret