joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403a50
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x104
lea eax, [esp + 4]
push esi
push 0xff
mov esi, ecx
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edx, dword [eax + 0xc]
push 4
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push ecx
call fcn.0040c0f0
mov edx, dword [esp + 0x10]
add esp, 0xc
add esi, 0xf0
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
mov ecx, esi
call fcn.0041ad74
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
add esp, 0x104
ret

Function at 0x403c10
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42691b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push edi
lea ecx, [esp + 4]
call fcn.0041b920
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push 0x104
push eax
mov dword [esp + 0x12c], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x18]
push str.done.ini
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
lea edx, [esp + 0x1c]
push 0x1001
push edx
lea ecx, [esp + 0x10]
call fcn.0041b995
test eax, eax
pop edi
je 0x403ca6
push str.none
lea ecx, [esp + 4]
call fcn.0041bb08
lea ecx, [esp]
call fcn.0041bcc5
lea ecx, [esp]
mov dword [esp + 0x120], 0xffffffff
call fcn.0041b952
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
add esp, 0x124
ret
Function at 0x41039c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4337b8
cmp edx, dword [eax]
je 0x4103be
add eax, 8
inc ecx
cmp eax, 0x433848
jl 0x4103af
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4337b8]
jne 0x4104ec
mov eax, dword [0x4363b4]
cmp eax, 1
je 0x4104c6
test eax, eax
jne 0x4103ef
cmp dword [0x4330c4], 1
je 0x4104c6
cmp edx, 0xfc
je 0x4104ec
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x410426
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00410580
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00410670
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x410469
lea eax, [ebp - 0x1a4]
push eax
call fcn.00410670
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42b5a0
push edi
call fcn.00413f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00410580
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00410590
lea eax, [ebp - 0xa0]
push 0x42b580
push eax
call fcn.00410590
push dword [esi + 0x4337bc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00410590
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00413e77
add esp, 0x2c
pop edi
jmp 0x4104ec
lea eax, [ebp + 8]
lea esi, [esi + 0x4337bc]
push 0
push eax
push dword [esi]
call fcn.00410670
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 0x418750
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040df20
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41881b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41881b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4187ce
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4187d9
or bh, 8
and edi, 0x8000000
je 0x4187f4
mov eax, dword [0x437adc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41881b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418bf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x418c1b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x418c3f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x418c5a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x41cc0d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x41cc45
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0041afaa
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0041af82
jmp 0x41cc51
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x41e28e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41e2d0
call fcn.0042345d
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41e2d0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41e2c7
xor eax, eax
jmp 0x41e2d8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041e2de
pop edi
pop esi
pop ebx
ret 4

Function at 0x423c1c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x423c4a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x423c68
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00423b82
jmp 0x423c68
mov eax, dword [esi + 0x14]
test eax, eax
je 0x423c68
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00423b82
test edi, edi
mov eax, edi
jne 0x423c52
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x51758a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x521090
mov dword [esp + 0x14], edx
inc bp
das
shrd bp, ax, 0xf
movsx bp, dl
mov dword [esp + 0x10], edx
not al
lea ebp, [esp + 0x2c]
inc ax
or al, bh
sal al, 4
mov eax, dword [ebp]
stc
stc
test eax, eax
lea esp, [esp + 0x10]
jnp 0x529f85
pushal
lea esp, [esp + 0x20]
je fcn.00522786
call fcn.005191a3
lea esp, [esp + 0x30]
je fcn.00522786
push eax
add edx, eax
clc
rol ecx, 5
pop ecx
shld cx, cx, cl
mov ecx, dword [esi + 0x7c]
push 0x48dd2385
pushal
add ecx, edx
pushfd
bt dx, 7
cmc
mov dword [esp + 0x28], ecx
rcr cl, 1
shr ch, 1
sar ch, 2
cmc
mov ecx, dword [ebp + 4]
pushfd
jmp 0x4d03f9
pushal
pushfd
lea esp, [esp + 0x24]
je fcn.00522786
push ebp
mov esi, dword [eax + 0x3c]
lea edx, [ecx + 0x1ebd8bb6]
add esi, eax
adc edx, ebp
sbb dx, si
mov edx, dword [esi + 0x78]
push dword [esp]
stc
bt bx, 0xb
pushfd
test edx, edx
pushal
push dword [esp]
jmp 0x4d8326

Function at 0x5191a3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
shl si, 6
bsr si, dx
mov esi, dword [eax + 0x3c]
rcl dh, 4
add esi, eax
not dx
stc
lea edx, [esp + 0x595ecbc8]
dec dx
mov edx, dword [esi + 0x78]
call int.0052236b
Function at 0x40110b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x410004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x401158
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push 0x3ff
push 0x400
push eax
call fcn.00401645
lea eax, [ebp - 0x404]
push eax
call fcn.00401645
add esp, 0x18
push 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401b66
leave
ret

Function at 0x401645
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x401654
pop dword [ebp - 4]
mov eax, 0xf6258686
add eax, 0xa1a8fce
sub dword [ebp - 4], eax
mov dword [ebp - 0x14], 0x83c3c76a
add dword [ebp - 0x14], 0xca8e7de1
mov dword [ebp - 0x10], 0x9278b156
sub dword [ebp - 0x10], 0x60456511
mov dword [ebp - 0xc], 0x195a37fb
sub dword [ebp - 0xc], 0xcd0df3cd
mov dword [ebp - 8], 0x585191a4
sub dword [ebp - 8], 0x585191a4
lea eax, [ebp - 0x14]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 4]
call dword [eax]
mov dword [ebp - 0x14], 0xea5192f8
add dword [ebp - 0x14], 0x8a20d65e
mov dword [ebp - 0x10], 0xf941535e
sub dword [ebp - 0x10], 0xb7d4f1e9
mov dword [ebp - 0xc], 0x64bf064
add dword [ebp - 0xc], 0x5d237c08
mov dword [ebp - 8], 0x31dda4a9
add dword [ebp - 8], 0xce225b57
lea ebx, [ebp - 0x14]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 4]
call dword [eax]
push 0x40
push 0x1000
push 0x37ba5
push 0
call eax
mov ecx, 0x2f8938fa
add ecx, 0xd077080b
xor edi, edi
add edi, eax
mov esi, 0x41b000
add esi, dword [ebp - 4]
mov ebx, 0x78ea2fa4
add ebx, 0xd9adf8ad
mov edx, dword [esi]
xor edx, ebx
mov dword [edi], edx
add edi, 0x780b788d
sub edi, 0x780b7889
add esi, 4
loop 0x401768
add eax, 0x45c7144b
sub eax, 0x45c61d64
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x1ea43eca
sub ecx, 0x1e643eca
add ecx, dword [ebp - 4]
call ebx
leave
ret

Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d
Function at 0x4033bc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406128
test esi, esi
jne 0x4033f4
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406264
jmp 0x403412
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403300
mov edi, eax
test esi, esi
je 0x403412
cmp dword [ebx], 0
je 0x403412
dec esi
jmp 0x4033fb
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x403ff8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x52e020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x404090
push 0x80000002
call sub.ADVAPI32.dll_RegOpenKeyExW
test eax, eax
jne 0x404070
xor eax, eax
push ebp
push 0x404069
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 0x4040c8
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404070
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegCloseKey
ret
movzx eax, word [0x52e020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x52e020], ax
mov esp, ebp
pop ebp
ret

Function at 0x40534c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x536054], 0
je 0x4053ad
cmp word [0x536330], 0xd7b2
jne 0x405375
cmp dword [0x536338], 0
jbe 0x405375
mov eax, 0x53632c
call dword [fcn.00536348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push 0x52e78c
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 0x4053d8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x52e030], 0
jne 0x4053c9
push 0
push 0x52e784
push 0x52e78c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40552c
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 [0x52e038], 0
je 0x405552
mov edx, esi
mov eax, ebx
call dword [0x52e038]
jmp 0x405561
mov eax, 8
call fcn.00403048
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x536055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4054f4
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 0x406b08
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x406b4a
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x406b6a
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.004062f8
add esp, 0x41c
pop esi
pop ebx
ret
Function at 0x40a3b8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x538b30
push 0xa
push 0x40a44c
mov eax, dword [0x538b20]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40a3dc
call fcn.00414a4c
push ebx
mov eax, dword [0x538b20]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40a3f3
call fcn.00414a4c
push ebx
call sub.kernel32.dll_SetHandleCount
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40a405
call fcn.00414a4c
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x538b34], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x538b38], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x538b3c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x538b40], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x538b44], ecx
add edx, dword [eax + 0x14]
mov dword [0x538b48], edx
pop esi
pop ebx
ret

Function at 0x40be18
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40bec1
test eax, edx
je 0x40bec4
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40be41
push edx
mov edx, eax
mov eax, esp
call fcn.00406314
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40be57
push eax
lea eax, [esp + 8]
call fcn.00406314
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40be66
movzx eax, word [eax]
sub eax, ecx
jmp 0x40be8d
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 0x40bea7
add ecx, 4
js 0x40be7e
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40bea4
push eax
mov eax, ecx
mov edx, 2
call fcn.004055cc
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40be8b
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40be8d
xor eax, eax
ret
test eax, eax
je 0x40bed4
test edx, edx
jne 0x40be28
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.004061b4
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40cd62
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x40cd83
cmp ebx, 3
je 0x40cd83
cmp ebx, 0x7b
je 0x40cd83
mov eax, esi
call fcn.0040cd04
test al, al
jne 0x40cd87
xor eax, eax
jmp 0x40cd89
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004061b4
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40cda5
test al, 0x10
jne 0x40cda9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x412148
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 0x100
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x412181
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406264
jmp 0x41218a
mov eax, ebx
mov edx, esi
call fcn.00406128
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x412194
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 0x4121b6
movzx eax, word [esp]
jmp 0x4121b8
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x41291c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffff004
push eax
add esp, 0xffffff7c
push 0x800
lea ecx, [esp + 0x88]
call fcn.00412754
mov eax, dword [0x535aa4]
cmp byte [eax], 0
je 0x4129ae
mov eax, dword [0x535704]
call fcn.00403860
call fcn.004031b0
lea eax, [esp + 0x884]
push eax
lea eax, [esp + 0x88]
push eax
call sub.user32.dll_CharToOemW
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x88c]
call fcn.0040d348
push eax
lea eax, [esp + 0x890]
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 0x4129fc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4129e7
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x535680]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x538b20]
call fcn.00407988
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x8c]
push eax
push 0
call sub.user32.dll_MessageBoxW
add esp, 0x1084
ret
Function at 0x413630
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 0x413706
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040617c
lea eax, [ebp - 4]
call fcn.00406a68
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004061b4
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4136f0
mov eax, ebx
call fcn.00403048
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4136e9
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.004061b4
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4136d3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x413718
mov eax, dword [ebp - 0x10]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4136d3
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 0x4136f0
mov eax, dword [ebp - 0x10]
call fcn.00403064
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41370d
lea eax, [ebp - 4]
call fcn.00406118
ret

Function at 0x41487b
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.004058cc
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x41489e
mov eax, edi
add eax, eax
call fcn.00403048
mov esi, eax
jmp 0x4148a0
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4148d9
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x4148c3
mov eax, esp
cmp esi, eax
je 0x4148e6
mov eax, esi
call fcn.00403064
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x414920
cmp bl, 0
je 0x41491c
cmp bl, 0x41
jl 0x414917
cmp bl, 0x5a
jg 0x414917
or bl, 0x20
xor al, bl
inc esi
jmp 0x4148fb
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x414860