joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404090
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5903
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov eax, dword [0x4dd040]
push ebx
push esi
push edi
mov dword [ebp - 0x4c], ecx
xor ebx, ebx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], ebx
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov eax, dword [str.HH:mm:ss]
mov ecx, dword [0x4c6ec0]
mov dl, byte [0x4c6ec4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], ecx
mov byte [ebp - 0x1c], dl
call fcn.00403590
mov eax, 0x31
lea ecx, [ebp - 0x40]
push ecx
mov word [ebp - 0x40], ax
mov word [ebp - 0x44], 0x30
mov word [ebp - 0x48], ax
call fcn.00403590
lea edx, [ebp - 0x44]
push edx
call fcn.00403590
lea eax, [ebp - 0x48]
push eax
call fcn.00403590
add esp, 0x10
push str.Control_PanelInternational
lea ecx, [ebp - 0x38]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x38]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x404172
lea ecx, [ebp - 0x38]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.004b4b61
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x50]
push edx
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x4c]
push ecx
push ebx
push str.sTimeFormat
push edx
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x50], 0xf
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404150
lea eax, [ebp - 0x34]
push eax
call fcn.00403590
add esp, 4
mov edi, str.HH:mm:ss
lea esi, [ebp - 0x34]
mov ecx, 9
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4041c4
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x404150
mov edx, dword [ebp - 0x3c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0xf
lea ecx, [ebp - 0x24]
push ecx
push 1
push ebx
push str.sTimeFormat
push edx
call esi
test eax, eax
jne 0x404150
mov ecx, dword [ebp - 0x3c]
push 2
lea eax, [ebp - 0x40]
push eax
push 1
push ebx
push str.iTime
push ecx
call esi
test eax, eax
jne 0x404150
mov eax, dword [ebp - 0x3c]
push 2
lea edx, [ebp - 0x44]
push edx
push 1
push ebx
push str.iTimePrefix
push eax
call esi
test eax, eax
jne 0x404150
mov edx, dword [ebp - 0x3c]
push 2
lea ecx, [ebp - 0x48]
push ecx
push 1
push ebx
push str.iTLZero
push edx
call esi
jmp 0x404150
Function at 0x42d060
Capabilities:
Initialize winsock library
Send data
Send data on socket
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4b92d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c8
mov eax, dword [0x4dd040]
mov dword [esp + 0x1c4], eax
push edi
mov edi, ecx
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x5143a0]
mov byte [esp + eax + 0x18], cl
inc eax
test cl, cl
jne 0x42d090
lea ecx, [esp + 4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 8]
mov dword [esp + 0x1d8], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
push 1
push 0x4c86fc
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Find]
cmp eax, 6
jl 0x42d12a
push eax
push 0
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Mid]
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x1d8], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
lea ecx, [esp + 8]
mov byte [esp + 0x1d4], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 4]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
lea edx, [esp + 0x18]
mov edi, edi
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x42d120
lea edx, [esp + 0x38]
push edx
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x42d149
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 1
call dword [sym.imp.MSVCR71.dll_exit]
push esi
push 0x4c7060
lea eax, [esp + 0x20]
push str.7576
push eax
call fcn.004027a0
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
mov esi, eax
call fcn.004165d0
push 0
push 0xa
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x42d18c
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x42d1a3
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [0x5143c0], 1
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x1d0]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1c8]
pop edi
call fcn.004b4b61
add esp, 0x1d4
ret
Function at 0x4b4d20
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x4cdde8
call fcn.004b4f20
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4b4d60
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4b4d60
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4b4d78
cmp eax, 0x20b
je 0x4b4d65
mov dword [ebp - 0x1c], ebx
jmp 0x4b4d8c
cmp dword [ecx + 0x84], 0xe
jbe 0x4b4d60
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x4b4d86
cmp dword [ecx + 0x74], 0xe
jbe 0x4b4d60
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x514428], 0xffffffff
or dword [0x51442c], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x5143e0]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x5143dc]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x514424], eax
call fcn.004b5018
call fcn.004b50b8
cmp dword [0x4dd050], ebx
jne 0x4b4dec
push fcn.004b50b8
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.004b50a6
push 0x4dd028
push 0x4dd024
call sub.MSVCR71.dll__initterm
push 0x4b505c
call fcn.004b4b95
mov eax, dword [0x5143d8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x5143d4]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x4b4e40
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x4dd020
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x4b4ebe
cmp al, bl
je 0x4b4e6a
cmp dword [ebp - 0x20], ebx
jne 0x4b4ebe
mov al, byte [esi]
cmp al, bl
je 0x4b4e7a
cmp al, 0x20
ja 0x4b4e7a
inc esi
mov dword [ebp - 0x24], esi
jmp 0x4b4e6a
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x4b4e96
movzx eax, word [ebp - 0x54]
jmp 0x4b4e99
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.004b55f8
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x4b4eb6
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x4b4f13
cmp al, 0x22
jne 0x4b4ecd
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x4b4ee0
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x4b4e58
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.004b4f5b
ret
Function at 0x4045e4
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.0040715c
test esi, esi
jne 0x40461c
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.00407298
jmp 0x40463a
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004044c8
mov edi, eax
test esi, esi
je 0x40463a
cmp dword [ebx], 0
je 0x40463a
dec esi
jmp 0x404623
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x406688
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ca054], 0
je 0x4066e9
cmp word [0x4ca330], 0xd7b2
jne 0x4066b1
cmp dword [0x4ca338], 0
jbe 0x4066b1
mov eax, 0x4ca32c
call dword [0x4ca348]
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 0x406714
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4c7030], 0
jne 0x406705
push 0
push 0x4c77c0
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406874
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 [0x4c7038], 0
je 0x40689a
mov edx, esi
mov eax, ebx
call dword [0x4c7038]
jmp 0x4068a9
mov eax, 8
call fcn.00404204
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4ca055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40683c
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 0x4090f0
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 0x409257
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.0040715c
cmp si, word [0x4c7808]
jb 0x40918a
cmp si, word [0x4c7a08]
ja 0x40918a
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x40918a
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4c7808]
jae 0x409164
mov edi, ebx
dec edi
jmp 0x409185
cmp si, word [ebx*8 + 0x4c7808]
jbe 0x409174
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x409185
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4c780c]
call fcn.00409000
jmp 0x40918a
cmp edi, dword [ebp - 0xc]
jae 0x40914e
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x409239
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409239
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.00407344
push dword [ebp - 0x164]
push 0x409274
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00407344
push dword [ebp - 0x168]
push 0x409284
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407344
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.004076fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40925e
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00407154
ret
Function at 0x409410
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 0x409515
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4ccb5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4ccb74]
jne 0x40945c
mov eax, esi
mov edx, 0x4ccb78
mov ecx, 0x55
call fcn.00407344
push 0x4ccb5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4094ff
push 0x4ccb5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.0040715c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4094cd
cmp byte [0x4ccb58], 0
je 0x409492
mov edx, esi
mov eax, ebx
call fcn.004092f0
jmp 0x4094cd
mov edx, esi
mov eax, ebx
call fcn.004090f0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4094cd
cmp dword [esi], 0
je 0x4094b6
mov eax, esi
mov edx, 0x409530
call fcn.00407558
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004090f0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407558
push 0x4ccb5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4ccb74], bx
push 0xaa
mov eax, dword [esi]
call fcn.004071e8
push eax
push 0x4ccb78
call sub.kernel32.dll_lstrcpynW
push 0x4ccb5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40951c
lea eax, [ebp - 4]
call fcn.0040714c
ret
Function at 0x409754
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.00407144
xor eax, eax
push ebp
push 0x409939
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409794
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4097ae
push 0x105
mov eax, dword [ebp - 4]
call fcn.004071e8
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409923
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409948
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40983d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409948
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40983d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40997c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40983d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4099b0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409923
xor eax, eax
push ebp
push 0x40991c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409558
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 0x4098ac
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.00407308
jmp 0x4098f7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4099f0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4098f7
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 0x4099f0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407308
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409923
cmp dword [ebp - 8], 0
je 0x409912
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 0x409940
lea eax, [ebp - 4]
call fcn.0040714c
ret
Function at 0x409c04
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.00407144
mov eax, dword [ebp - 0x21c]
call fcn.00407144
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409da3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.0040715c
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.004071e8
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 0x409ca4
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409cb6
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409ca1
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409d6f
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 0x409cdf
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.00409754
cmp dword [ebp - 0x220], 0
je 0x409d17
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409af8
pop ecx
mov ebx, eax
jmp 0x409d6f
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00409410
mov eax, dword [ebp - 0x224]
call fcn.00409af8
pop ecx
mov ebx, eax
test bl, bl
jne 0x409d62
cmp byte [0x4ccb58], 0
jne 0x409d62
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00409410
mov eax, dword [ebp - 0x228]
call fcn.00409af8
pop ecx
mov ebx, eax
test bl, bl
jne 0x409d6f
push ebp
call fcn.00409ba8
pop ecx
mov ebx, eax
test bl, bl
je 0x409d85
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00407344
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409daa
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00407154
ret

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

Disassembly:
push ebx
push esi
mov esi, 0x4ccc50
push 0xa
push 0x40d334
mov eax, dword [0x4ccc40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40d2c4
call fcn.00418d88
push ebx
mov eax, dword [0x4ccc40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40d2db
call fcn.00418d88
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40d2ed
call fcn.00418d88
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4ccc54], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4ccc58], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4ccc5c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4ccc60], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4ccc64], ecx
add edx, dword [eax + 0x14]
mov dword [0x4ccc68], edx
pop esi
pop ebx
ret

Function at 0x410cb8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x410d61
test eax, edx
je 0x410d64
push 0
push 0
cmp word [eax - 0xa], 2
je 0x410ce1
push edx
mov edx, eax
mov eax, esp
call fcn.00407360
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x410cf7
push eax
lea eax, [esp + 8]
call fcn.00407360
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x410d06
movzx eax, word [eax]
sub eax, ecx
jmp 0x410d2d
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 0x410d47
add ecx, 4
js 0x410d1e
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x410d44
push eax
mov eax, ecx
mov edx, 2
call fcn.00406914
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x410d2b
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x410d2d
xor eax, eax
ret
test eax, eax
je 0x410d74
test edx, edx
jne 0x410cc8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.004071e8
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x411f72
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x411f93
cmp ebx, 3
je 0x411f93
cmp ebx, 0x7b
je 0x411f93
mov eax, esi
call fcn.00411f14
test al, al
jne 0x411f97
xor eax, eax
jmp 0x411f99
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004071e8
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x411fb5
test al, 0x10
jne 0x411fb9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x4120d4
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.004071e8
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x4120f6
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x415d60
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 0x415d99
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00407298
jmp 0x415da2
mov eax, ebx
mov edx, esi
call fcn.0040715c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x416560
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 0x416685
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00416370
mov esi, eax
mov eax, dword [0x4c9408]
cmp byte [eax], 0
je 0x41662d
mov eax, dword [0x4c91a8]
call fcn.00404a4c
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 [0x416538]
call fcn.004089f8
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 0x4166a0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x416669
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4c9140]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4ccc40]
call fcn.00408be0
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 0x41668c
lea eax, [ebp - 4]
mov edx, dword [0x416538]
call fcn.00408af8
ret