joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453d15
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 0x453e2d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x453e2d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0046c69e
mov esi, eax
test esi, esi
je 0x453e2d
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 0x453e2d
mov ecx, esi
call fcn.00453c80
cmp edi, eax
jge 0x453e2d
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 0x453db3
mov dword [esp + 0x34], 1
jmp 0x453e0e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x453e2d
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.00453230
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 0x4560d0
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 0x456136
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 0x456136
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x456117
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4564c0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4564f8
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 0x4571c0
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 0x457209
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 0x457680
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x479770
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.00457230
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004572b0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004572b0
lea ecx, [esi + 0xc]
call fcn.0046abff
lea ecx, [esi + 0x10]
call fcn.0046abff
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00458840
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00458840
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00458840
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0046ac74
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0046ac74
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x46d042
Capabilities:
Get graphical window text

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

Function at 0x46e733
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 0x46e775
call fcn.004744b2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46e775
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46e76c
xor eax, eax
jmp 0x46e77d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046e783
pop edi
pop esi
pop ebx
ret 4

Function at 0x4749e2
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 0x474a10
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x474a2e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00474948
jmp 0x474a2e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x474a2e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00474948
test edi, edi
mov eax, edi
jne 0x474a18
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40677c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00409170
test esi, esi
jne 0x4067b2
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.004092f8
jmp 0x4067d0
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004066c0
mov edi, eax
test esi, esi
je 0x4067d0
cmp dword [ebx], 0
je 0x4067d0
dec esi
jmp 0x4067b9
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00408230
mov byte [esp], al
cmp byte [esp], 0
jne 0x407fd8
test edi, edi
je 0x407fd8
mov byte [esp + 1], 0
test ebp, ebp
jle 0x407f18
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x407ef3
cmp edi, 0xffffffff
je 0x407eb7
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407eb7
mov byte [esp], 0
jmp 0x407fd8
mov ebx, dword [esi]
cmp ebx, 1
jg 0x407ef3
test ebx, ebx
jne 0x407ee9
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x407ee9
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x407fd8
call 0x408350
dec ebp
test ebp, ebp
jg 0x407e9c
cmp edi, 0xffffffff
je 0x407f18
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407f16
mov byte [esp], 0
jmp 0x407fd8
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x407e66
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407f18
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408044
mov edx, eax
mov ebx, dword [0x69c8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x407f7c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x407f7a
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x407f7c
xor edi, edi
cmp byte [esp], 0
je 0x407fa2
mov ebx, dword [esi]
test bl, 1
jne 0x407fb8
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407f82
mov byte [esp + 1], 1
jmp 0x407fb8
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407fa2
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x407f2f
cmp byte [esp], 0
je 0x407fd8
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x408e0c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x69c058], 0
je 0x408e73
cmp word [0x69c344], 0xd7b2
jne 0x408e35
cmp dword [0x69c34c], 0
jbe 0x408e35
mov eax, 0x69c340
call dword [0x69c35c]
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
mov eax, 0x408ea0
call fcn.004099dc
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x692032], 0
jne 0x408e8f
push 0
push 0x6929ea
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409030
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x692034], 0
je 0x40905b
mov edx, edi
mov eax, esi
call dword [0x692034]
mov ebx, eax
jmp 0x40906c
mov eax, 8
call fcn.004063fc
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x69c059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x408ff8
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x40909c
mov eax, ebx
call fcn.00406418
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40b830
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40b995
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409170
cmp si, word [0x692a28]
jb 0x40b8c8
cmp si, word [0x692c28]
ja 0x40b8c8
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40b8c8
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x692a28]
jae 0x40b8a2
mov edi, ebx
dec edi
jmp 0x40b8c3
cmp si, word [ebx*8 + 0x692a28]
jbe 0x40b8b2
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40b8c3
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x692a2c]
call fcn.0040b750
jmp 0x40b8c8
cmp edi, dword [ebp - 8]
jae 0x40b88c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40b977
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40b977
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00409d98
push dword [ebp - 0x160]
push 0x40b9b0
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00409d98
push dword [ebp - 0x164]
push 0x40b9c0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00409d98
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00409fd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b99c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004091d0
ret
Function at 0x40bb48
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 0x40bc4b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x69eb88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x69eba0]
jne 0x40bb94
mov eax, esi
mov edx, 0x69eba2
mov ecx, 0x55
call fcn.00409d98
push 0x69eb88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40bc35
push 0x69eb88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409170
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bc03
cmp byte [0x69eb84], 0
je 0x40bbc8
mov edx, esi
mov eax, ebx
call fcn.0040ba2c
jmp 0x40bc03
mov edx, esi
mov eax, ebx
call fcn.0040b830
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40bc03
cmp dword [esi], 0
je 0x40bbec
mov eax, esi
mov edx, 0x40bc64
call fcn.00409ef0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040b830
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00409ef0
push 0x69eb88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x69eba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.00409cdc
push eax
push 0x69eba2
call sub.kernel32.dll_lstrcpynW
push 0x69eb88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bc52
lea eax, [ebp - 4]
call fcn.00409170
ret
Function at 0x40be80
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.00409254
xor eax, eax
push ebp
push 0x40c0a5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40bec0
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40beda
push 0x105
mov eax, dword [ebp - 4]
call fcn.00409cdc
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40c08f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c0b4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bfa9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c0b4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bfa9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c0f0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bfa9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c0f0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bfa9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c124
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bfa9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c158
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40c08f
xor eax, eax
push ebp
push 0x40c088
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040bc8c
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 0x40c018
mov eax, dword [ebp - 0x10]
call fcn.004063fc
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.00409d44
jmp 0x40c063
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40c198
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c063
mov eax, dword [ebp - 0x10]
call fcn.004063fc
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40c198
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00409d44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c08f
cmp dword [ebp - 8], 0
je 0x40c07e
mov eax, dword [ebp - 8]
call fcn.00406418
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 0x40c0ac
lea eax, [ebp - 4]
call fcn.00409170
ret
Function at 0x40c394
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409254
xor eax, eax
push ebp
push 0x40c454
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00409d98
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00409f48
mov eax, dword [ebx]
call fcn.0040c25c
test al, al
jne 0x40c431
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00409d98
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00409f48
mov eax, dword [ebx]
call fcn.0040c25c
test al, al
jne 0x40c431
mov eax, ebx
call fcn.00409170
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c45b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004091d0
lea eax, [ebp - 4]
call fcn.00409170
ret

Function at 0x421f74
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x421fcd
test eax, edx
je 0x421fd0
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x421f8b
movzx eax, word [eax]
sub eax, ecx
jmp 0x421fb2
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 0x421fb3
add ecx, 4
js 0x421fa3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x421fb0
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x421fb2
xor eax, eax
ret
test eax, eax
je 0x421fdc
test edx, edx
jne 0x421f7c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x4232d4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x423301
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x4233d4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.00409cdc
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42343e
test ah, 4
je 0x423437
test bl, bl
jne 0x4233fc
mov al, 1
jmp 0x423465
test al, 0x10
je 0x423404
xor eax, eax
jmp 0x423465
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x423428
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x423465
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x423465
test al, 0x10
sete al
jmp 0x423465
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x42345f
cmp ebx, 3
je 0x42345f
cmp ebx, 0x7b
je 0x42345f
mov eax, esi
call fcn.00423394
test al, al
jne 0x423463
xor eax, eax
jmp 0x423465
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x4273b8
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 0x4273f1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004092f8
jmp 0x4273fa
mov eax, ebx
mov edx, esi
call fcn.00409550
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x427404
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 0x427426
movzx eax, word [esp]
jmp 0x427428
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x428110
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 0x428235
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00427f18
mov esi, eax
mov eax, dword [0x69b658]
cmp byte [eax], 0
je 0x4281dd
mov eax, dword [0x69b2fc]
call fcn.00406ea4
call fcn.00406570
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 [0x4280e0]
call fcn.0040b170
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 0x428250
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x428219
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x69b26c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x69ec50]
call fcn.0040b384
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 0x42823c
lea eax, [ebp - 4]
mov edx, dword [0x4280e0]
call fcn.0040b294
ret

Function at 0x42923c
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 0x429312
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00409598
lea eax, [ebp - 4]
call fcn.00409700
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00409cdc
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4292fc
mov eax, ebx
call fcn.004063fc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4292f5
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.00409cdc
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4292df
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x429324
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4292df
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 0x4292fc
mov eax, dword [ebp - 0x10]
call fcn.00406418
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429319
lea eax, [ebp - 4]
call fcn.00409170
ret