joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4797d5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4798ed
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4798ed
mov eax, dword [esi + 0x3c]
push eax
call fcn.00496b2f
mov esi, eax
test esi, esi
je 0x4798ed
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4798ed
mov ecx, esi
call fcn.00479760
cmp edi, eax
jge 0x4798ed
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x479873
mov dword [esp + 0x34], 1
jmp 0x4798ce
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4798ed
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00478ce0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x47f600
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x47f666
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x47f666
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x47f647
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x47f9f0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x47fa28
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x4806a0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4806e9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x480b60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a4a70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00480710
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00480790
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00480790
lea ecx, [esi + 0xc]
call fcn.00495090
lea ecx, [esi + 0x10]
call fcn.00495090
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00481d20
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00481d20
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00481d20
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00495105
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00495105
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4974d3
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49750b
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.00495560
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00495538
jmp 0x497517
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x498bc1
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 0x498c03
call fcn.0049e97c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x498c03
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x498bfa
xor eax, eax
jmp 0x498c0b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00498c11
pop edi
pop esi
pop ebx
ret 4

Function at 0x49eeac
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 0x49eeda
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49eef8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049ee12
jmp 0x49eef8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49eef8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049ee12
test edi, edi
mov eax, edi
jne 0x49eee2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x7e3510
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x341000]
push edi
or ebp, 0xffffffff
jmp 0x7e3532
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x7e3539
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7e3528
mov eax, 1
add ebx, ebx
jne 0x7e354b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x7e355c
jne 0x7e356c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7e356c
dec eax
add ebx, ebx
jne 0x7e3568
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x7e3540
xor ecx, ecx
sub eax, 3
jb 0x7e3584
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x7e35f6
sar eax, 1
mov ebp, eax
jmp 0x7e358f
add ebx, ebx
jne 0x7e358f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x7e359c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x7e35c0
inc ecx
add ebx, ebx
jne 0x7e35ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x7e35a1
jne 0x7e35bd
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x7e35a1
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x7e35e0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x7e35d1
jmp 0x7e352e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x7e35e0
add edi, ecx
jmp 0x7e352e
pop esi
mov edi, esi
mov ecx, 0x12cf
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x7e35fe
cmp byte [edi], 0x38
jne 0x7e35fe
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x7e3603
lea edi, [esi + 0x3e1000]
mov eax, dword [edi]
or eax, eax
je 0x7e367b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3e3788]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3e37c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x7e3630
mov ecx, edi
jns 0x7e365f
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3e37c8]
or eax, eax
je 0x7e3675
mov dword [ebx], eax
add ebx, 4
jmp 0x7e364d
call dword [esi + 0x3e37cc]
popal
jmp 0x408014
Function at 0x404578
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.004070d0
test esi, esi
jne 0x4045b0
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.0040720c
jmp 0x4045ce
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004044bc
mov edi, eax
test esi, esi
je 0x4045ce
cmp dword [ebx], 0
je 0x4045ce
dec esi
jmp 0x4045b7
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x406288
Capabilities:
Write file on windows

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

Function at 0x406474
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 [0x4ae038], 0
je 0x40649a
mov edx, esi
mov eax, ebx
call dword [0x4ae038]
jmp 0x4064a9
mov eax, 8
call fcn.00404204
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, 0x40643c
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 0x408f08
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 0x40906f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.004070d0
cmp si, word [0x4ae7e0]
jb 0x408fa2
cmp si, word [0x4ae9e0]
ja 0x408fa2
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408fa2
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4ae7e0]
jae 0x408f7c
mov edi, ebx
dec edi
jmp 0x408f9d
cmp si, word [ebx*8 + 0x4ae7e0]
jbe 0x408f8c
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408f9d
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4ae7e4]
call fcn.00408e18
jmp 0x408fa2
cmp edi, dword [ebp - 0xc]
jae 0x408f66
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x409051
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409051
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.004072d0
push dword [ebp - 0x164]
push 0x40908c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.004072d0
push dword [ebp - 0x168]
push 0x40909c
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.004072d0
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407688
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409076
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.004070c8
ret
Function at 0x409228
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 0x40932d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4b3b58
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4b3b70]
jne 0x409274
mov eax, esi
mov edx, 0x4b3b74
mov ecx, 0x55
call fcn.004072d0
push 0x4b3b58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409317
push 0x4b3b58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.004070d0
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4092e5
cmp byte [0x4b3b54], 0
je 0x4092aa
mov edx, esi
mov eax, ebx
call fcn.00409108
jmp 0x4092e5
mov edx, esi
mov eax, ebx
call fcn.00408f08
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4092e5
cmp dword [esi], 0
je 0x4092ce
mov eax, esi
mov edx, 0x409348
call fcn.004074e4
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408f08
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004074e4
push 0x4b3b58
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4b3b70], bx
push 0xaa
mov eax, dword [esi]
call fcn.0040715c
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 0x409334
lea eax, [ebp - 4]
call fcn.004070c0
ret
Function at 0x40956c
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.004070b8
xor eax, eax
push ebp
push 0x409751
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4095ac
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4095c6
push 0x105
mov eax, dword [ebp - 4]
call fcn.0040715c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40973b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409760
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409655
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409760
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409655
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409794
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409655
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4097c8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40973b
xor eax, eax
push ebp
push 0x409734
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409370
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 0x4096c4
mov eax, dword [ebp - 0x10]
call fcn.00404204
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.0040727c
jmp 0x40970f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409808
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40970f
mov eax, dword [ebp - 0x10]
call fcn.00404204
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409808
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040727c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40973b
cmp dword [ebp - 8], 0
je 0x40972a
mov eax, dword [ebp - 8]
call fcn.00404220
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 0x409758
lea eax, [ebp - 4]
call fcn.004070c0
ret
Function at 0x409a1c
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.004070b8
mov eax, dword [ebp - 0x21c]
call fcn.004070b8
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409bbb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.004070d0
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.0040715c
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 0x409abc
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409ace
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409ab9
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409b87
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 0x409af7
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.0040956c
cmp dword [ebp - 0x220], 0
je 0x409b2f
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409910
pop ecx
mov ebx, eax
jmp 0x409b87
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00409228
mov eax, dword [ebp - 0x224]
call fcn.00409910
pop ecx
mov ebx, eax
test bl, bl
jne 0x409b7a
cmp byte [0x4b3b54], 0
jne 0x409b7a
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00409228
mov eax, dword [ebp - 0x228]
call fcn.00409910
pop ecx
mov ebx, eax
test bl, bl
jne 0x409b87
push ebp
call fcn.004099c0
pop ecx
mov ebx, eax
test bl, bl
je 0x409b9d
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.004072d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409bc2
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.004070c8
ret

Function at 0x40a334
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 0x40d258
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4b3c4c
push 0xa
push 0x40d2ec
mov eax, dword [0x4b3c3c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40d27c
call fcn.00418030
push ebx
mov eax, dword [0x4b3c3c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40d293
call fcn.00418030
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40d2a5
call fcn.00418030
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 0x410b9c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x410c45
test eax, edx
je 0x410c48
push 0
push 0
cmp word [eax - 0xa], 2
je 0x410bc5
push edx
mov edx, eax
mov eax, esp
call fcn.004072ec
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x410bdb
push eax
lea eax, [esp + 8]
call fcn.004072ec
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x410bea
movzx eax, word [eax]
sub eax, ecx
jmp 0x410c11
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 0x410c2b
add ecx, 4
js 0x410c02
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x410c28
push eax
mov eax, ecx
mov edx, 2
call fcn.00406514
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x410c0f
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x410c11
xor eax, eax
ret
test eax, eax
je 0x410c58
test edx, edx
jne 0x410bac
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.0040715c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x411d7a
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x411d9b
cmp ebx, 3
je 0x411d9b
cmp ebx, 0x7b
je 0x411d9b
mov eax, esi
call fcn.00411d1c
test al, al
jne 0x411d9f
xor eax, eax
jmp 0x411da1
mov al, 1
pop esi
pop ebx
ret

Function at 0x411da4
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.0040715c
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x411dc6
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4152f8
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 0x415331
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040720c
jmp 0x41533a
mov eax, ebx
mov edx, esi
call fcn.004070d0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x415af8
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 0x415c1d
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00415908
mov esi, eax
mov eax, dword [0x4b0190]
cmp byte [eax], 0
je 0x415bc5
mov eax, dword [0x4aff48]
call fcn.004049d4
call fcn.0040436c
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 [0x415ad0]
call fcn.00408904
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 0x415c38
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x415c01
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4afee4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b3c3c]
call fcn.004089f8
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 0x415c24
lea eax, [ebp - 4]
mov edx, dword [0x415ad0]
call fcn.00408910
ret