joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5276ef
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 8]
and edi, 7
je 0x527711
cmp dword [esi + 8], edi
jge 0x527709
call fcn.005271b3
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x52773a
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx - 4], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x52771d
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x527754
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x527745
xor dl, dl
jmp 0x52774a
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx - 4], dl
inc ecx
cmp ecx, 4
jl 0x52773c
mov eax, dword [ebp - 4]
movzx ecx, byte [ebp - 1]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp - 2]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x52777e
xor eax, eax
jmp 0x5277b5
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
ja 0x52777a
mov edx, dword [esi + 0x10]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x52779f
push edi
mov ecx, esi
call fcn.0052728d
pop ecx
test eax, eax
je 0x52777a
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.00638420
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x54282a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x703034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x10], 0
je 0x5428aa
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.00621120
mov ebx, esp
test ebx, ebx
je 0x5428aa
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1c8
call fcn.0050d734
mov ecx, dword [esi + 0x10]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.005127a4
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
cmp byte [eax + 0x16d], 0
je 0x5428aa
mov ecx, dword [esi + 0x10]
call fcn.0050b0d6
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00620181
mov esp, ebp
pop ebp
ret

Function at 0x54588c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0051cc17

Function at 0x545c50
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
sub esp, 0x18
mov edx, dword [ebp + 8]
push ebx
mov ebx, ecx
push esi
xor esi, esi
push edi
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x6d0], edx
mov dword [ebx + 0x6d4], esi
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x6d8], 6
test edx, edx
jne 0x545c91
call fcn.0054822c
lea eax, [ebx + 0x10]
push eax
call fcn.0054822c
mov ecx, eax
call fcn.00548163
mov ecx, dword [ebx + 0x6d0]
test ecx, ecx
jne 0x545cb2
mov eax, dword [0xa8]
jmp 0x545cbd
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov eax, dword [eax + 0xa8]
sub esp, 0x10
mov dword [ebp - 8], esi
mov edi, esp
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
lea esi, [ebp - 0x14]
push ecx
movsd dword es:[edi], dword [esi]
push 0x88
push closesocket
push ecx
movsd dword es:[edi], dword [esi]
mov ecx, ebx
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00515cc6
mov esi, dword [ebx + 4]
mov edi, dword [sym.imp.USER32.dll_GetParent]
jmp 0x545cf9
push esi
call edi
mov esi, eax
push esi
call edi
test eax, eax
jne 0x545cf4
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0x86
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x5b0730
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.005b0740

Function at 0x5b09c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x5b09cc
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.005b09e0

Function at 0x5b6370
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, 0x10c
call fcn.00620f90
mov eax, dword [0x703034]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x5b640f
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x5b640f
lea eax, [esp + 0x118]
push eax
push 0
push dword [esp + 0x11c]
lea eax, [esp + 0x14]
push 0x100
push eax
call fcn.00421b37
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0064170e
add esp, 0x1c
or ecx, 0xffffffff
test eax, eax
cmovs eax, ecx
lea ecx, [esp + 4]
push 0
push ecx
test eax, eax
mov ecx, 0x100
cmovs eax, ecx
push eax
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00620181
add esp, 0x10c
ret
lea eax, [esp + 0x118]
push eax
push 0
push dword [esp + 0x11c]
lea eax, [esp + 0x14]
push 0xff
push eax
call fcn.00421b37
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0064170e
add esp, 0x1c
mov byte [esp + 0x107], 0
call fcn.005b6230
test eax, eax
jle 0x5b64a3
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x5b64b7
push 0
lea eax, [esp + 0xc]
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00620181
add esp, 0x10c
ret
push 0x10
push str.OpenSSL:_FATAL
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x10c]
pop esi
xor ecx, esp
call fcn.00620181
add esp, 0x10c
ret
Function at 0x62345f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x65a7d7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0065a656

Function at 0x660fdc
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00660c9c
Function at 0x10004e8f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x10004e9e
pop dword [ebp - 0x10]
mov eax, 0x10004e9e
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x2c74834a
add dword [ebp - 0x20], 0x21ddc201
mov dword [ebp - 0x1c], 0xe603057e
add dword [ebp - 0x1c], 0x4c3046c7
mov dword [ebp - 0x18], 0x4b84e165
sub dword [ebp - 0x18], 0xff389d37
mov dword [ebp - 0x14], 0xdec4b11
add dword [ebp - 0x14], 0xf213b4ef
lea eax, [ebp - 0x20]
push eax
mov eax, 0xfaa94063
sub eax, 0xeaa92ff3
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0xc6d1fca0
sub dword [ebp - 0x20], 0x525f934a
mov dword [ebp - 0x1c], 0xa54d38db
sub dword [ebp - 0x1c], 0x63e0d766
mov dword [ebp - 0x18], 0xf3da589c
sub dword [ebp - 0x18], 0x906aec30
mov dword [ebp - 0x14], 0xb92dbe5d
sub dword [ebp - 0x14], 0xb92dbe5d
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x5c1af320
add eax, 0xb3e51d48
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3729c
push 0
call eax
mov ecx, 0xd5d4c99c
sub ecx, 0xd5d48395
mov edx, eax
mov edi, 0x10010800
add edi, dword [ebp - 0x10]
mov esi, 0x6fc0e987
add esi, 0x4b5365c2
mov ebx, dword [edi]
sub dword [ebp - 4], esi
add ebx, esi
xor dword [ebp - 8], ecx
mov dword [edx], ebx
mov dword [ebp - 8], 0x8afb2867
add edx, 4
add edi, 0x8079df12
add edi, 0x7f8620f2
loop 0x10004fb5
add eax, 0x10aef
mov ebx, eax
add eax, 0xe1cf7695
add eax, 0x1e308970
mov ecx, 0x10000000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x404548
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.0040682c
test esi, esi
jne 0x404580
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.00406968
jmp 0x40459e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040448c
mov edi, eax
test esi, esi
je 0x40459e
cmp dword [ebx], 0
je 0x40459e
dec esi
jmp 0x404587
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405df0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b1050], 0
je 0x405e51
cmp word [0x4b132c], 0xd7b2
jne 0x405e19
cmp dword [0x4b1334], 0
jbe 0x405e19
mov eax, 0x4b1328
call dword [0x4b1344]
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 0x405e7c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ae030], 0
jne 0x405e6d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405fdc
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 [0x4ae034], 0
je 0x406002
mov edx, esi
mov eax, ebx
call dword [0x4ae034]
jmp 0x406011
mov eax, 8
call fcn.004041d4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4b1051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405fa4
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 0x4085c8
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 0x40872f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.0040682c
cmp si, word [0x4ae7d0]
jb 0x408662
cmp si, word [0x4ae9d0]
ja 0x408662
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408662
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4ae7d0]
jae 0x40863c
mov edi, ebx
dec edi
jmp 0x40865d
cmp si, word [ebx*8 + 0x4ae7d0]
jbe 0x40864c
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x40865d
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4ae7d4]
call fcn.004084d8
jmp 0x408662
cmp edi, dword [ebp - 0xc]
jae 0x408626
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408711
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408711
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.00406a14
push dword [ebp - 0x164]
push 0x40874c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406a14
push dword [ebp - 0x168]
push 0x40875c
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406a14
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406dcc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408736
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406824
ret
Function at 0x408760
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 6], edx
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x408946
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4b3b58
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x4b3b70]
cmp ax, word [ebp - 2]
jne 0x4087b8
mov eax, dword [ebp - 6]
mov edx, 0x4b3b74
mov ecx, 0x55
call fcn.00406a14
push 0x4b3b58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408930
push 0x4b3b58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.0040682c
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4088f8
cmp byte [0x4b3b54], 0
je 0x4088ae
call dword [0x4b3b4c]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x4b3b50]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x4088a7
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x4b3b48]
test al, al
je 0x408880
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.004041d4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x4b3b48]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x408875
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x408871
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x40885e
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.004069d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4088f8
movzx eax, word [ebp - 0x16]
push eax
call dword [0x4b3b50]
cmp dword [ebp - 0x10], 0
je 0x4088a6
mov eax, dword [ebp - 0x10]
call fcn.004041f0
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.004085c8
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x4088f8
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x4088dd
mov eax, dword [ebp - 6]
mov edx, 0x408960
call fcn.00406c28
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.004085c8
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.00406c28
mov eax, dword [ebp - 6]
push 0x4b3b58
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x4b3b70], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.004068b8
push eax
push 0x4b3b74
call sub.kernel32.dll_lstrcpynW
push 0x4b3b58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40894d
lea eax, [ebp - 0x1c]
call fcn.0040681c
ret
Function at 0x409034
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.00406814
mov eax, dword [ebp - 0x21c]
call fcn.00406814
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x4091d3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.0040682c
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.004068b8
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 0x4090d4
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x4090e6
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x4090d1
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x40919f
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 0x40910f
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.00408b84
cmp dword [ebp - 0x220], 0
je 0x409147
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00408f28
pop ecx
mov ebx, eax
jmp 0x40919f
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408760
mov eax, dword [ebp - 0x224]
call fcn.00408f28
pop ecx
mov ebx, eax
test bl, bl
jne 0x409192
cmp byte [0x4b3b54], 0
jne 0x409192
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408760
mov eax, dword [ebp - 0x228]
call fcn.00408f28
pop ecx
mov ebx, eax
test bl, bl
jne 0x40919f
push ebp
call fcn.00408fd8
pop ecx
mov ebx, eax
test bl, bl
je 0x4091b5
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406a14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4091da
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406824
ret

Function at 0x40994c
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x40c854
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4b3c4c
push 0xa
push 0x40c8e8
mov eax, dword [0x4b3c3c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40c878
call fcn.00417380
push ebx
mov eax, dword [0x4b3c3c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40c88f
call fcn.00417380
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40c8a1
call fcn.00417380
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4b3c50], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4b3c54], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4b3c58], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4b3c5c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4b3c60], ecx
add edx, dword [eax + 0x14]
mov dword [0x4b3c64], edx
pop esi
pop ebx
ret

Function at 0x410198
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x410241
test eax, edx
je 0x410244
push 0
push 0
cmp word [eax - 0xa], 2
je 0x4101c1
push edx
mov edx, eax
mov eax, esp
call fcn.00406a30
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x4101d7
push eax
lea eax, [esp + 8]
call fcn.00406a30
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4101e6
movzx eax, word [eax]
sub eax, ecx
jmp 0x41020d
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 0x410227
add ecx, 4
js 0x4101fe
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x410224
push eax
mov eax, ecx
mov edx, 2
call fcn.0040607c
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41020b
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41020d
xor eax, eax
ret
test eax, eax
je 0x410254
test edx, edx
jne 0x4101a8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x414740
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 0x414779
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406968
jmp 0x414782
mov eax, ebx
mov edx, esi
call fcn.0040682c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41478c
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 0x4147ae
movzx eax, word [esp]
jmp 0x4147b0
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x414f40
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 0x415065
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00414d50
mov esi, eax
mov eax, dword [0x4b0220]
cmp byte [eax], 0
je 0x41500d
mov eax, dword [0x4affe8]
call fcn.0040467c
call fcn.0040433c
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 [0x414f18]
call fcn.00407ff0
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 0x415080
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x415049
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4aff84]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b3c3c]
call fcn.004080e4
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 0x41506c
lea eax, [ebp - 4]
mov edx, dword [0x414f18]
call fcn.00407ffc
ret

Function at 0x41621c
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 0x4162f2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406880
lea eax, [ebp - 4]
call fcn.00407218
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004068b8
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4162dc
mov eax, ebx
call fcn.004041d4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4162d5
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.004068b8
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4162bf
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x416304
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4162bf
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 0x4162dc
mov eax, dword [ebp - 0x10]
call fcn.004041f0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4162f9
lea eax, [ebp - 4]
call fcn.0040681c
ret