joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100059a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10014034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...DCR.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10005a1c
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d9d2
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x10], eax
test eax, eax
je 0x10005a0b
push str.IsAndroidDevice
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
test eax, eax
setne cl
mov dword [esi + 0x44], eax
pop esi
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d9d2
mov esp, ebp
pop ebp
ret

Function at 0x10005a60
Capabilities:
Check internet connectivity via wininet

Disassembly:
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCheckConnectionW]
push 0
push 1
push str.http:__www.baidu.com
call esi
test eax, eax
jne 0x10005aa2
push eax
push 1
push str.http:__www.google.com
call esi
test eax, eax
jne 0x10005aa2
push eax
push 1
push str.http:__www.google.com.hk
call esi
test eax, eax
jne 0x10005aa2
push eax
push 1
push str.http:__www.google.com.tw
call esi
test eax, eax
jne 0x10005aa2
pop esi
ret
mov eax, 1
pop esi
ret

Function at 0x10005ab0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x10014034]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x408]
push eax
push 0x108
push 0
push str.SOFTWARESAMSUNGUSB_DRIVERD0795B21_0CDA_4a92_AB9E_6E92D8111E44
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10005af5
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d9d2
mov esp, ebp
pop ebp
ret
push esi
push edi
xor ecx, ecx
push 0x3fe
push ecx
lea edx, [ebp - 0x402]
push edx
xor esi, esi
mov word [ebp - 0x404], cx
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp - 0x408]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
add esp, 0xc
push 0x200
lea eax, [ebp - 0x404]
push eax
push esi
push ecx
call edi
test eax, eax
jne 0x10005b70
xor edx, edx
push 0x3fe
push edx
lea eax, [ebp - 0x402]
push eax
inc esi
mov word [ebp - 0x404], dx
call sub.MSVCR100.dll_memset
mov edx, dword [ebp - 0x408]
add esp, 0xc
push 0x200
lea ecx, [ebp - 0x404]
push ecx
push esi
push edx
call edi
test eax, eax
je 0x10005b37
mov eax, dword [ebp - 0x408]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
cmp esi, 0x13
setge al
pop edi
xor ecx, ebp
pop esi
call fcn.1000d9d2
mov esp, ebp
pop ebp
ret
Function at 0x10008da0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
mov ecx, 0x10014110
call fcn.1000d719
mov ebx, eax
mov dword [ebp - 4], 1
test ebx, ebx
je 0x10008e54
test esi, esi
jne 0x10008e54
mov eax, dword [ebp + 8]
shr eax, 4
inc eax
push esi
movzx ecx, ax
push ecx
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
je 0x10008e38
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10008e32
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10008e32
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
add eax, esi
and ecx, 0xf
jbe 0x10008e21
cmp esi, eax
jae 0x10008e25
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10008e13
cmp esi, eax
jb 0x10008e29
xor eax, eax
jmp 0x10008e32
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
mov esi, eax
test eax, eax
jne 0x10008e5d
mov edi, dword [ebp - 4]
push edi
mov ecx, 0x10014110
call fcn.1000d719
mov ebx, eax
inc edi
mov dword [ebp - 4], edi
test ebx, ebx
jne 0x10008dc5
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10008f40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10008f58
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10008f8a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x10008f86
cmp esi, eax
jae 0x10008f8a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10008f78
cmp esi, eax
jb 0x10008f90
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x10009220
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000e8f8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10014034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.1000d630
mov esi, eax
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
push str.devicelist.ini
push esi
push str._s_s
lea edi, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.10007890
mov esi, dword [ebp - 0x10]
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100092a9
push 0x100107c4
push esi
call dword [sym.imp.MSVCR100.dll__wfopen]
add esp, 8
test eax, eax
je 0x100092b3
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
push esi
mov ecx, ebx
call fcn.100092f0
mov dword [ebx], eax
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [ebp - 4], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100092d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10009f90
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x210]
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
cmp eax, esi
je 0x10009fb7
push eax
call edi
add esp, 4
mov dword [ebx + 0x210], esi
mov eax, dword [ebx + 0x20c]
cmp eax, esi
je 0x10009fcd
push eax
call edi
add esp, 4
mov dword [ebx + 0x20c], esi
push 0xfffe
call fcn.1000d9c1
mov esi, eax
add esp, 4
test esi, esi
je 0x1000a0a2
mov ecx, dword [ebp + 0xc]
lea eax, [ebx + 4]
push eax
push 0x7fff
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov dword [ebp + 0xc], eax
test eax, eax
jg 0x1000a00e
push esi
call edi
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
cmp eax, 0xffffffff
jne 0x1000a01a
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor edi, edi
xor ecx, ecx
test eax, eax
jle 0x1000a098
cmp word [esi + ecx*2], 0
jne 0x1000a02a
inc edi
inc ecx
cmp ecx, eax
jl 0x1000a022
test edi, edi
jle 0x1000a098
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000d9c1
mov dword [ebx + 0x210], eax
mov dword [eax], esi
mov eax, 1
add esp, 4
cmp edi, eax
jle 0x1000a089
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
jle 0x1000a089
cmp word [esi + ecx*2], 0
jne 0x1000a083
mov ebx, dword [ebx + 0x210]
lea edx, [esi + ecx*2 + 2]
mov dword [ebx + eax*4], edx
mov ebx, dword [ebp + 8]
inc eax
cmp eax, edi
je 0x1000a089
inc ecx
cmp ecx, dword [ebp + 0xc]
jl 0x1000a067
mov eax, edi
pop edi
mov dword [ebx + 0x20c], esi
pop esi
pop ebx
pop ebp
ret 8
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
Function at 0x1000a220
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10014034]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
test edi, edi
jne 0x1000a24a
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d9d2
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x808], 0
je 0x1000a27d
mov eax, dword [esi + 0x80c]
test eax, eax
je 0x1000a269
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
je 0x1000a27d
mov dword [esi + 0x80c], 0
mov dword [esi + 0x808], 0
mov eax, dword [ebp + 8]
push edi
mov dword [esi + 0x804], eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [esi + 0x810], eax
test eax, eax
je 0x1000a237
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov edi, dword [edx]
movzx ecx, word [esi + 0x804]
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, 2
push ecx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0
push 1
push 2
mov word [ebp - 0x12], ax
mov dword [ebp - 0x10], edi
call dword [sym.imp.WS2_32.dll_socket]
push 0x10
lea edx, [ebp - 0x14]
push edx
push eax
mov dword [esi + 0x80c], eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x1000a237
mov ecx, dword [esi + 0x80c]
push 4
lea eax, [ebp - 0x18]
push eax
push 0x1006
push 0xffff
push ecx
mov dword [ebp - 0x18], 0x2710
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [esi + 0x808], 1
mov eax, 1
pop edi
call fcn.1000d9d2
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, eax
cmp dword [edi + 0x808], 0
jne 0x1000a8b7
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
lea edx, [edi + 4]
mov eax, edx
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000a8c0
push 0
sub eax, esi
push eax
mov eax, dword [edi + 0x80c]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
pop esi
cmp eax, 0xffffffff
je 0x1000a8b0
lea ecx, [ebp - 4]
push ecx
mov dword [edi + 0x818], 0
call fcn.1000a900
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1000a9a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000ef4e
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10014034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [esi], vtable.CFile.0
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [esi + 0xc], eax
xor edi, edi
mov dword [esi + 4], 0xffffffff
mov dword [esi + 8], edi
mov dword [esi], vtable.CStdioFile.0
mov dword [esi + 0x10], edi
mov dword [ebp - 4], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x28], edi
mov eax, edi
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.1000d2c0
mov eax, dword [esi + 0x24]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov dword [esi + 0x24], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x28], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x1000c760
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ecx + 4]
lea eax, [ebp - 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x1000c793
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1000c790
or eax, 0xffffffff
or edx, 0xffffffff
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x1000ce70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x1000ce84
xor eax, eax
pop edi
pop ebp
ret 8
mov eax, dword [ebp + 8]
test eax, eax
je 0x1000ce7d
mov edx, dword [edi + 0x10]
push esi
push edx
push ecx
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fread]
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1000ceba
mov eax, dword [edi + 0x10]
push eax
call dword [sym.imp.MSVCR100.dll_feof]
add esp, 4
test eax, eax
jne 0x1000ceba
pop esi
pop edi
pop ebp
ret 8
mov ecx, dword [edi + 0x10]
push ecx
call dword [sym.imp.MSVCR100.dll_ferror]
add esp, 4
neg eax
sbb eax, eax
not eax
and eax, esi
pop esi
pop edi
pop ebp
ret 8

Function at 0x1000cee0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x1000cefe
mov ecx, dword [ecx + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
pop ebp
ret 8

Function at 0x1000d9d2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10014034]
jne 0x1000d9dc
repz ret
jmp fcn.1000de96
Function at 0x403298
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00405228
test esi, esi
jne 0x4032ce
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405318
jmp 0x4032ec
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040319c
mov edi, eax
test esi, esi
je 0x4032ec
cmp dword [ebx], 0
je 0x4032ec
dec esi
jmp 0x4032d5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4041f4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x473020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40428c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40426c
xor eax, eax
push ebp
push 0x404265
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 0x4042a8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40426c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x473020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x473020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4050a8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47604c], 0
je 0x405109
cmp word [0x476220], 0xd7b2
jne 0x4050d1
cmp dword [0x476228], 0
jbe 0x4050d1
mov eax, 0x47621c
call dword [0x476238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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 0x405130
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47302c], 0
jne 0x405125
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406824
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406a54
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4068a7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406a54
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4068a7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406a70
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406930
xor eax, eax
push ebp
push 0x406929
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406660
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40690e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406a90
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40690e
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406930
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x406a4a
cmp byte [ebp - 0xd], 0
jne 0x406977
cmp byte [ebp - 0x12], 0
je 0x406a4a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406990
dec ebx
cmp byte [ebx], 0x2e
je 0x40699f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40698f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406a4a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4069dc
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406a4a
cmp byte [ebp - 0xd], 0
je 0x406a4a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406a4a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409070
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4090c2
test eax, edx
je 0x4090c5
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x409085
movzx eax, byte [eax]
sub eax, ecx
ret
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]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4090ab
add ecx, 4
js 0x40909b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4090a8
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4090d1
test edx, edx
jne 0x409078
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004056b8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409951
test al, 0x10
je 0x409955
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004056b8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409975
test al, 0x10
jne 0x409979
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x409980
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.004056b8
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x4099a2
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40c560
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c599
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00405318
jmp 0x40c5a2
mov eax, ebx
mov edx, esi
call fcn.0040527c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c5ac
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c5ce
movzx eax, byte [esp]
jmp 0x40c5d0
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40cc60
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cad8
mov eax, dword [0x47539c]
cmp byte [eax], 0
je 0x40ccdc
mov eax, dword [0x47519c]
call fcn.00403684
call fcn.00402ffc
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409ca8
push eax
lea eax, [esp + 0x50]
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 0x40cd24
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40cd12
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x475144]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4787f8]
call fcn.00406608
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40d5d0
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 0x40d6a6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004052c0
lea eax, [ebp - 4]
call fcn.00405710
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004056b8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d690
mov eax, ebx
call fcn.00402ea0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d689
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.004056b8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d673
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d6b8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d673
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 0x40d690
mov eax, dword [ebp - 0x10]
call fcn.00402ebc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d6ad
lea eax, [ebp - 4]
call fcn.00405228
ret