joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401020
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x101
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x401056
push 0
push str.Error
push 0x41e90c
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
add esp, 0x190
ret
mov eax, 1
add esp, 0x190
ret

Function at 0x401070
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x14
push esi
push 0
push 2
push 2
call sub.WS2_32.dll_socket
mov esi, dword [esp + 0x1c]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4010a3
push 0
push str.Error
push 0x41e928
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
add esp, 0x14
ret
mov eax, dword [esp + 0x20]
mov word [esp + 8], 2
push eax
mov dword [esp + 0x10], 0
call sub.WS2_32.dll_htons
mov edx, dword [esi]
lea ecx, [esp + 4]
push 4
push ecx
push 0x20
push 0xffff
push edx
mov word [esp + 0x1e], ax
call sub.WS2_32.dll_setsockopt
mov ecx, dword [esi]
lea eax, [esp + 4]
push 4
push eax
push 4
push 0xffff
push ecx
call sub.WS2_32.dll_setsockopt
mov eax, dword [esi]
lea edx, [esp + 8]
push 0x10
push edx
push eax
call sub.WS2_32.dll_bind
cmp eax, 0xffffffff
jne 0x40113d
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
call edi
mov ax, word [0x41e8d8]
inc ax
push eax
mov word [0x41e8d8], ax
call sub.WS2_32.dll_htons
mov edx, dword [esi]
lea ecx, [esp + 0xc]
push 0x10
push ecx
push edx
mov word [esp + 0x1a], ax
call sub.WS2_32.dll_bind
cmp eax, 0xffffffff
je 0x401108
pop edi
pop esi
add esp, 0x14
ret

Function at 0x401160
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push ecx
mov word [esp + 4], 2
mov dword [esp + 8], eax
call sub.WS2_32.dll_htons
mov ecx, dword [esp + 0x14]
lea edx, [esp]
mov word [esp + 2], ax
mov eax, dword [esp + 0x18]
push 0x10
push edx
mov edx, dword [esp + 0x2c]
push 0
push eax
push ecx
push edx
call sub.WS2_32.dll_sendto
add esp, 0x10
ret

Function at 0x401dd0
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x50d0c4]
mov edx, 1
cmp eax, edx
jne 0x401de1
xor eax, eax
ret
push ebx
push esi
push edi
push 0x41fab0
mov ecx, 0x5dca
xor eax, eax
mov edi, 0x50d0a8
push 0
push 0x50d0a8
push 0x401270
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x20]
or ebx, 0xffffffff
push 0
push 0
mov dword [0x50d0b4], eax
mov dword [0x50d0c8], edx
mov dword [0x50d0c0], 0x3e80
mov dword [0x50d0cc], edx
mov dword [0x50d0c4], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov eax, dword [0x50d0c4]
xor esi, esi
cmp eax, ebx
jne 0x401e64
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call edi
inc esi
cmp esi, 5
jg 0x401e64
cmp dword [0x50d0c4], ebx
je 0x401e52
mov eax, dword [0x50d0c4]
pop edi
pop esi
pop ebx
ret
Function at 0x401e70
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x41fb50]
mov edx, 1
cmp eax, edx
jne 0x401e81
xor eax, eax
ret
push ebx
push esi
push edi
xor esi, esi
push 0x5c4944
mov ecx, 0x3b576
xor eax, eax
mov edi, 0x41fab8
push esi
push 0x41fab8
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1c]
push 0x401640
or ebx, 0xffffffff
push esi
push esi
mov dword [0x41fb3c], eax
mov dword [0x41fb80], edx
mov dword [0x41fb40], 0x3e80
mov dword [0x41fb54], 2
mov dword [0x41fb84], edx
mov dword [0x41fb38], esi
mov dword [0x41fb34], 5
mov dword [0x41fb50], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
cmp dword [0x41fb50], ebx
jne 0x401f1a
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call edi
inc esi
cmp esi, 5
jg 0x401f1a
cmp dword [0x41fb50], ebx
je 0x401f08
mov eax, dword [0x41fb50]
pop edi
pop esi
pop ebx
ret
Function at 0x4088e5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41ee28
cmp edx, dword [eax]
je 0x408907
add eax, 8
inc ecx
cmp eax, 0x41eeb8
jl 0x4088f8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41ee28]
jne 0x408a35
mov eax, dword [0x5c49bc]
cmp eax, 1
je 0x408a0f
test eax, eax
jne 0x408938
cmp dword [0x41eb34], 1
je 0x408a0f
cmp edx, 0xfc
je 0x408a35
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40896f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00409060
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004076d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4089b2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004076d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40c5c0
push edi
call fcn.0040b270
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00409060
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00409070
lea eax, [ebp - 0xa0]
push 0x40c5a0
push eax
call fcn.00409070
push dword [esi + 0x41ee2c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00409070
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040b1d8
add esp, 0x2c
pop edi
jmp 0x408a35
lea eax, [ebp + 8]
lea esi, [esi + 0x41ee2c]
push 0
push eax
push dword [esi]
call fcn.004076d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x407120
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x407178
cmp byte [esi + ebx - 1], 0xa
je 0x40714c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4082bc], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x407ce0
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop
Function at 0x405e20
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x51e054], 0
je 0x405e81
cmp word [0x51e330], 0xd7b2
jne 0x405e49
cmp dword [0x51e338], 0
jbe 0x405e49
mov eax, 0x51e32c
call dword [0x51e348]
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 0x405eac
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x518030], 0
jne 0x405e9d
push 0
push 0x518794
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40600c
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 [0x518034], 0
je 0x406032
mov edx, esi
mov eax, ebx
call dword [0x518034]
jmp 0x406041
mov eax, 8
call fcn.00404208
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x51e055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405fd4
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 0x408c70
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 0x408dd7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406ef0
cmp si, word [0x5187dc]
jb 0x408d0a
cmp si, word [0x5189dc]
ja 0x408d0a
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408d0a
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5187dc]
jae 0x408ce4
mov edi, ebx
dec edi
jmp 0x408d05
cmp si, word [ebx*8 + 0x5187dc]
jbe 0x408cf4
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408d05
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x5187e0]
call fcn.00408b80
jmp 0x408d0a
cmp edi, dword [ebp - 0xc]
jae 0x408cce
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408db9
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408db9
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.004070f0
push dword [ebp - 0x164]
push 0x408df4
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.004070f0
push dword [ebp - 0x168]
push 0x408e04
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.004070f0
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.004074a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408dde
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406ee8
ret
Function at 0x408f90
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409095
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x520b5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x520b74]
jne 0x408fdc
mov eax, esi
mov edx, 0x520b78
mov ecx, 0x55
call fcn.004070f0
push 0x520b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40907f
push 0x520b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406ef0
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40904d
cmp byte [0x520b58], 0
je 0x409012
mov edx, esi
mov eax, ebx
call fcn.00408e70
jmp 0x40904d
mov edx, esi
mov eax, ebx
call fcn.00408c70
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40904d
cmp dword [esi], 0
je 0x409036
mov eax, esi
mov edx, 0x4090b0
call fcn.00407304
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408c70
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407304
push 0x520b5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x520b74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406f7c
push eax
push 0x520b78
call sub.kernel32.dll_lstrcpynW
push 0x520b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40909c
lea eax, [ebp - 4]
call fcn.00406ee0
ret
Function at 0x4092d4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406ed8
xor eax, eax
push ebp
push 0x4094b9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409314
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40932e
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406f7c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4094a3
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4094c8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4093bd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4094c8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4093bd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4094fc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4093bd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409530
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4094a3
xor eax, eax
push ebp
push 0x40949c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004090d8
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40942c
mov eax, dword [ebp - 0x10]
call fcn.00404208
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040709c
jmp 0x409477
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409570
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409477
mov eax, dword [ebp - 0x10]
call fcn.00404208
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409570
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040709c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4094a3
cmp dword [ebp - 8], 0
je 0x409492
mov eax, dword [ebp - 8]
call fcn.00404224
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4094c0
lea eax, [ebp - 4]
call fcn.00406ee0
ret
Function at 0x409784
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00406ed8
mov eax, dword [ebp - 0x21c]
call fcn.00406ed8
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409923
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406ef0
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406f7c
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x409824
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409836
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409821
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x4098ef
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x40985f
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.004092d4
cmp dword [ebp - 0x220], 0
je 0x409897
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409678
pop ecx
mov ebx, eax
jmp 0x4098ef
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408f90
mov eax, dword [ebp - 0x224]
call fcn.00409678
pop ecx
mov ebx, eax
test bl, bl
jne 0x4098e2
cmp byte [0x520b58], 0
jne 0x4098e2
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408f90
mov eax, dword [ebp - 0x228]
call fcn.00409678
pop ecx
mov ebx, eax
test bl, bl
jne 0x4098ef
push ebp
call fcn.00409728
pop ecx
mov ebx, eax
test bl, bl
je 0x409905
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.004070f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40992a
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406ee8
ret

Function at 0x40d154
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x520c5c
push 0xa
push 0x40d1e8
mov eax, dword [0x520c40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40d178
call fcn.00418b30
push ebx
mov eax, dword [0x520c40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40d18f
call fcn.00418b30
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40d1a1
call fcn.00418b30
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x520c60], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x520c64], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x520c68], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x520c6c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x520c70], ecx
add edx, dword [eax + 0x14]
mov dword [0x520c74], edx
pop esi
pop ebx
ret
Function at 0x410950
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4109f9
test eax, edx
je 0x4109fc
push 0
push 0
cmp word [eax - 0xa], 2
je 0x410979
push edx
mov edx, eax
mov eax, esp
call fcn.0040710c
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x41098f
push eax
lea eax, [esp + 8]
call fcn.0040710c
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41099e
movzx eax, word [eax]
sub eax, ecx
jmp 0x4109c5
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]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4109df
add ecx, 4
js 0x4109b6
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x4109dc
push eax
mov eax, ecx
mov edx, 2
call fcn.004060ac
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4109c3
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4109c5
xor eax, eax
ret
test eax, eax
je 0x410a0c
test edx, edx
jne 0x410960
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406f7c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x411da1
test al, 0x10
jne 0x411da5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x415ea4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x415edd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040702c
jmp 0x415ee6
mov eax, ebx
mov edx, esi
call fcn.00406ef0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x415ef0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x415f12
movzx eax, word [esp]
jmp 0x415f14
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4166a4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x4167c9
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004164b4
mov esi, eax
mov eax, dword [0x51dd04]
cmp byte [eax], 0
je 0x416771
mov eax, dword [0x51da70]
call fcn.004046b0
call fcn.00404370
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x41667c]
call fcn.0040866c
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4167e4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4167ad
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x51da08]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x520c40]
call fcn.00408760
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4167d0
lea eax, [ebp - 4]
mov edx, dword [0x41667c]
call fcn.00408678
ret

Function at 0x4175c4
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 0x41769a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406f44
lea eax, [ebp - 4]
call fcn.004078f4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406f7c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x417684
mov eax, ebx
call fcn.00404208
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x41767d
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.00406f7c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x417667
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4176ac
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x417667
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 0x417684
mov eax, dword [ebp - 0x10]
call fcn.00404224
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4176a1
lea eax, [ebp - 4]
call fcn.00406ee0
ret