joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446ac5
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 0x446bdd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x446bdd
mov eax, dword [esi + 0x3c]
push eax
call fcn.0045b62b
mov esi, eax
test esi, esi
je 0x446bdd
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 0x446bdd
mov ecx, esi
call fcn.00446a30
cmp edi, eax
jge 0x446bdd
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 0x446b63
mov dword [esp + 0x34], 1
jmp 0x446bbe
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x446bdd
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.00446010
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 0x45bfcf
Capabilities:
Get graphical window text

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

Function at 0x45d6c6
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 0x45d708
call fcn.0046317e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45d708
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45d6ff
xor eax, eax
jmp 0x45d710
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045d716
pop edi
pop esi
pop ebx
ret 4
Function at 0x4636ae
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 0x4636dc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4636fa
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00463614
jmp 0x4636fa
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4636fa
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00463614
test edi, edi
mov eax, edi
jne 0x4636e4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40d31c
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
push 0x104
push ebx
lea edi, [esi + 4]
mov dword [esi], vtable.CArmReport.0
push edi
call fcn.00483fc0
add esp, 0xc
push edi
push ebx
push ebx
push 0x24
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x40d36c
mov ebx, 0x104
mov ecx, edi
push str.Temp_
mov edx, ebx
call fcn.0040dd9f
push str.ArmReport.ini
mov edx, ebx
mov ecx, edi
call fcn.0040dd9f
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x40d3ad
Capabilities:
Write file on windows

Disassembly:
push 0x9c
mov eax, 0x4ad37e
call fcn.0046bb6c
mov esi, ecx
mov eax, 0xfeff
xor ebx, ebx
mov word [ebp - 0x78], ax
mov eax, vtable.ATL::CAccessToken.0
mov byte [ebp - 0x71], bl
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 1
push 0x4d1414
push eax
call fcn.0040db74
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x9c]
call fcn.0040da8d
push ecx
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x9c]
call fcn.0040da07
lea eax, [ebp - 0x71]
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x8c]
call fcn.0040d9cf
push ebx
cmp byte [ebp - 0x71], bl
je 0x40d493
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa8], 0xc
push eax
push 1
push str.D:_D_OICI_GA___BG__D_OICI_GA___AN__A_OICI_GA___AU_
mov dword [ebp - 0xa0], ebx
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x40d4ed
push ebx
push 0x80
push 1
lea eax, [ebp - 0xa8]
push eax
jmp 0x40d49b
push 0x80
push 1
push ebx
push ebx
push 0x40000000
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40d4ed
push ebx
lea eax, [ebp - 0x7c]
push eax
push 2
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40d4ed
push ebx
lea eax, [ebp - 0x7c]
mov edi, str._SESSION_
push eax
push edi
call fcn.004876cd
pop ecx
lea eax, [eax*2 + 2]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40d4f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x40d4fe
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x70]
call fcn.0040dc92
mov esi, vtable.ATL::CAccessToken.0
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x8c], esi
call fcn.0040dd10
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x9c], esi
call fcn.0040dd10
mov eax, ebx
call fcn.0046bb16
ret
Function at 0x40d535
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x40d5b1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d5b1
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40d5ad
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Delete_Report
mov ecx, edi
call fcn.0040d711
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40d5ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov byte [ebp - 1], 0
lea eax, [ebp - 1]
mov ecx, edi
push eax
push esi
push str.MoveEx_Report
call fcn.0040d711
mov eax, esi
jmp 0x40d5b4
xor eax, eax
jmp 0x40d5b4
push 2
pop eax
pop edi
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 8], edi
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x40d5de
push 3
pop eax
jmp 0x40d70a
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40d605
and dword [ebp - 4], ebx
mov ecx, edi
call fcn.0040d3ad
mov ebx, eax
test ebx, ebx
jne 0x40d70a
mov eax, dword [ebp + 0x14]
cmp byte [eax], 0
je 0x40d6e8
cmp dword [ebp - 4], 0
je 0x40d6e8
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.0040d799
test eax, eax
jne 0x40d6e8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x40d6e8
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.00484694
pop ecx
pop ecx
test eax, eax
je 0x40d66c
push 2
push dword [ebp - 4]
call fcn.0046b593
pop ecx
pop ecx
xor eax, eax
jmp 0x40d70a
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, edi
xor ecx, ecx
push 2
pop edx
lea esi, [eax*2 + 2]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00451592
pop ecx
push dword [ebp - 4]
mov edi, eax
mov edx, esi
mov ecx, edi
call fcn.0040d9ab
push dword [ebp + 0x10]
mov edx, esi
mov ecx, edi
call fcn.0040dd9f
push dword [ebp + 0xc]
mov edx, esi
mov ecx, edi
call fcn.0040dd9f
mov eax, dword [ebp - 8]
add eax, 4
push eax
push edi
push dword [ebp + 8]
push str.SESSION
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 2
push dword [ebp - 4]
mov esi, eax
call fcn.0046b593
push edi
call fcn.0045158d
add esp, 0xc
jmp 0x40d6fc
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.SESSION
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov esi, eax
test esi, esi
jne 0x40d708
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40d799
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea ebx, [ecx + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x40d7b4
push 3
pop eax
jmp 0x40d85c
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40d7c4
push 2
jmp 0x40d7ae
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, 0x82
push 2
pop edx
add esi, esi
cmp esi, 0x821
jae 0x40d857
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00451592
lea ecx, [esi + esi]
mov dword [edi], eax
push ecx
push 0
push eax
call fcn.00483fc0
add esp, 0x10
push ebx
push esi
push dword [edi]
push 0
push dword [ebp + 8]
push str.SESSION
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 4], eax
test eax, eax
je 0x40d821
lea ecx, [esi - 1]
cmp eax, ecx
jne 0x40d833
push dword [edi]
call fcn.0045158d
and dword [edi], 0
mov eax, dword [ebp - 4]
pop ecx
test eax, eax
je 0x40d850
inc eax
push 2
pop edx
cmp esi, eax
jbe 0x40d7d1
cmp dword [edi], 0
je 0x40d857
push dword [edi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x40d857
xor eax, eax
jmp 0x40d85a
mov eax, 0xe8
jmp 0x40d85a
push 0xd
pop eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40d89d
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea ebx, [ecx + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x40d8b8
push 3
pop eax
jmp 0x40d95b
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40d8c8
push 2
jmp 0x40d8b2
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x82
push 2
pop edx
add esi, esi
cmp esi, 0x1041
jae 0x40d956
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00451592
lea ecx, [esi + esi]
mov dword [edi], eax
push ecx
push 0
push eax
call fcn.00483fc0
add esp, 0x10
push ebx
push esi
push dword [edi]
push 0x4cfa94
push 0
push str.SESSION
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 4], eax
test eax, eax
je 0x40d927
lea ecx, [esi - 2]
cmp eax, ecx
jne 0x40d940
push dword [edi]
call fcn.0045158d
and dword [edi], 0
pop ecx
mov ecx, dword [ebp - 4]
test ecx, ecx
jne 0x40d943
mov eax, 0xe8
jmp 0x40d959
mov ecx, dword [ebp - 4]
lea eax, [esi - 2]
push 2
pop edx
cmp ecx, eax
je 0x40d8d5
cmp dword [edi], 0
je 0x40d956
xor eax, eax
jmp 0x40d959
push 0xd
pop eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40d9cf
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x40da00
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
add eax, 4
push eax
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x40da00
cmp dword [ebp - 4], 0
setne al
mov byte [esi], al
mov al, 1
jmp 0x40da02
xor al, al
pop esi
leave
ret 8
Function at 0x40de0d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x512554]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x20a
lea eax, [ebp - 0x41c]
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push eax
call fcn.00483fc0
push edi
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.00483fc0
add esp, 0x18
mov dword [ebp - 0x420], ebx
mov ecx, 0x105
mov dword [ebp - 0x428], ebx
lea eax, [ebp - 0x210]
mov dword [ebp - 0x424], ebx
push ecx
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x420]
push eax
push ecx
lea eax, [ebp - 0x41c]
push eax
push 0x4d1438
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov edi, 0x104
test eax, eax
je 0x40dead
push 0xa
push edi
push esi
push dword [ebp - 0x420]
call fcn.0048bf2f
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x10
jge 0x40dec7
push str.thsnYaViMRAeBoda
mov edx, edi
mov ecx, esi
call fcn.0040dd9f
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046b55a
leave
ret

Function at 0x40e872
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
mov esi, edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 4], 0
je 0x40e8d4
movzx eax, byte [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
seta al
jmp 0x40e8d7
mov al, byte [ebp + 8]
pop esi
leave
ret
Function at 0x415f14
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov eax, ecx
mov ebx, edx
push edi
mov dword [ebp - 8], eax
xor edi, edi
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push 0
push ecx
push 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x415f68
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
push 0xd
pop eax
cmove esi, eax
cmp esi, 0xe8
jne 0x415f76
push 0xa
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
cmp edi, 0xa
jl 0x415f25
jmp 0x415f76
push 0xd
pop eax
mov esi, eax
xor eax, eax
cmp dword [ebp - 4], 4
cmove esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x416ca5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
lea eax, [ebp - 8]
xor esi, esi
push eax
push 0x20019
push esi
push dword [0x517e2c]
xor ebx, ebx
mov dword [ebp - 0xc], esi
inc ebx
mov dword [ebp - 0x14], esi
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [0x517dbc], bl
mov dword [0x517dc0], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x416d8e
push edi
push 4
pop edi
lea eax, [ebp - 4]
mov dword [ebp - 0x10], edi
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push dword [0x517e38]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x416d16
cmp dword [ebp - 0xc], ebx
je 0x416d3d
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x4e9234
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x416d47
cmp dword [ebp - 0x14], ebx
jne 0x416d47
mov dword [0x517dc0], 2
mov edx, dword [0x517e2c]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push eax
push str.iLogLevelDebug
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x1c], esi
call fcn.0044425e
add esp, 0xc
pop edi
test eax, eax
jne 0x416d85
movzx eax, byte [0x517cb6]
cmp dword [ebp - 0x18], 0x64
cmovae eax, ebx
mov byte [0x517cb6], al
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
leave
ret
Function at 0x41810a
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push 0x828
mov eax, 0x4ae747
call fcn.0046bb6c
mov eax, dword [ebp + 0xc]
lea ebx, [ecx + 4]
mov edi, dword [ebp + 8]
mov ecx, ebx
mov dword [ebp - 0x824], edi
mov dword [ebp - 0x828], eax
mov dword [ebp - 0x81c], ebx
call fcn.00457d6e
push ebx
call fcn.00418362
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x418357
call fcn.00451cd1
push eax
lea ecx, [ebp - 0x818]
call fcn.00402899
and dword [ebp - 4], 0
mov esi, 0x104
imul esi, esi, 5
lea ecx, [ebp - 0x818]
push esi
call fcn.00402bd2
push dword [edi]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x818]
mov ebx, eax
call int.00409d58
lea ecx, [esi - 2]
cmp ebx, ecx
je 0x41816c
mov esi, dword [ebp - 0x818]
test ebx, ebx
je 0x41834f
cmp dword [esi - 4], 1
jle 0x4181c3
push dword [esi - 0xc]
lea ecx, [ebp - 0x818]
call fcn.00402aac
mov esi, dword [ebp - 0x818]
mov edi, 0x4cfa94
lea ecx, [ebp - 0x814]
push edi
call fcn.00402829
push edi
lea ecx, [ebp - 0x820]
mov byte [ebp - 4], 1
call fcn.00402829
lea eax, [ebx - 1]
mov byte [ebp - 4], 2
mov ebx, dword [ebp - 0x81c]
xor edi, edi
mov dword [ebp - 0x834], eax
movzx eax, word [esi + edi*2]
test ax, ax
jne 0x4182e5
mov eax, dword [ebp - 0x814]
cmp dword [eax - 0xc], 0
je 0x4182d8
push 0x400
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.00483fc0
mov eax, dword [ebp - 0x824]
add esp, 0xc
push dword [eax]
lea eax, [ebp - 0x810]
push 0x400
push eax
mov eax, dword [ebp - 0x828]
push 0x4cfa94
push dword [eax]
push dword [ebp - 0x814]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x820]
call fcn.0040286d
mov eax, dword [ebp - 0x820]
mov dword [ebp - 0x82c], eax
cmp dword [eax - 0xc], 0
je 0x418299
push dword [ebp - 0x814]
mov ecx, ebx
call fcn.00457b0d
push dword [ebp - 0x82c]
mov ecx, eax
call fcn.0040286d
jmp 0x4182d8
push str.Attention:_read_an_empty_string_from_resource_file__use_default_English_string_then:
lea ecx, [ebp - 0x81c]
call fcn.00402829
lea eax, [ebp - 0x814]
mov byte [ebp - 4], 3
xor ecx, ecx
lea edx, [ebp - 0x81c]
push 0
push eax
inc ecx
call fcn.00416da0
pop ecx
pop ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x81c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea ecx, [ebp - 0x814]
call fcn.00402a6b
jmp 0x418319
push ecx
push eax
lea ecx, [ebp - 0x830]
call fcn.0041844c
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x814]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.004025c6
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x830]
add ecx, 0xfffffff0
call fcn.00402e64
inc edi
cmp edi, dword [ebp - 0x834]
jbe 0x4181f9
push 0xffffffffffffffff
lea ecx, [ebp - 0x818]
call int.00409d58
mov ecx, dword [ebp - 0x820]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x814]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea ecx, [esi - 0x10]
call fcn.00402e64
xor eax, eax
inc eax
call fcn.0046bb16
ret 8
Function at 0x41a190
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor edx, edx
push 8
mov ecx, edx
pop esi
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor ecx, eax
sub esi, 1
jne 0x41a198
mov dword [edx*4 + 0x5184e0], ecx
inc edx
cmp edx, 0x100
jb 0x41a193
mov esi, 0x800
jmp 0x41a1e0
mov ecx, dword [edx*4 + 0x5180e0]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x5184e0]
mov dword [edx*4 + 0x5184e0], ecx
inc edx
cmp edx, esi
jb 0x41a1c4
mov dword [0x51843c], 0x41a210
call fcn.0041d52f
mov ecx, dword [0x51843c]
test eax, eax
mov edx, 0x41a2b0
cmove ecx, edx
mov dword [0x51843c], ecx
pop esi
ret

Function at 0x41ad04
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 8], ecx
mov esi, dword [edi]
test esi, esi
je 0x41ad5f
and dword [edi], 0
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0
push eax
mov edx, 0x400000
mov eax, esi
cmp esi, edx
cmova eax, edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x41ad57
test ecx, ecx
je 0x41ad5f
test esi, esi
je 0x41ad5f
mov ecx, dword [ebp - 8]
jmp 0x41ad1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41ad61
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41d30f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 0xc]
mov eax, ecx
push edi
xor edi, edi
mov dword [ebp - 4], eax
mov esi, dword [esi]
and esi, 7
cmp edx, 5
jae 0x41d332
xor eax, eax
jmp 0x41d468
push ebx
lea ebx, [edx - 4]
or ecx, 0xffffffff
add ebx, eax
mov dword [ebp - 0x14], ebx
lea edx, [edi + eax]
cmp edx, ebx
jae 0x41d355
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x41d352
inc edx
cmp edx, ebx
jb 0x41d345
mov eax, dword [ebp - 4]
mov edi, edx
sub edi, eax
mov eax, edi
sub eax, ecx
cmp edx, ebx
jae 0x41d450
cmp eax, 3
jbe 0x41d38c
xor esi, esi
mov al, byte [edx + 4]
mov ecx, edi
mov dword [ebp - 0x10], ecx
test al, al
je 0x41d3c8
cmp al, 0xff
je 0x41d3c8
and esi, 3
xor eax, eax
add esi, esi
or esi, 1
inc eax
jmp 0x41d449
lea ecx, [eax - 1]
shl esi, cl
and esi, 7
je 0x41d36c
cmp byte [esi + 0x4e5df8], 0
je 0x41d3b5
movzx eax, byte [esi + 0x4e5e00]
mov ecx, edx
sub ecx, eax
mov al, byte [ecx + 4]
test al, al
je 0x41d3b5
cmp al, 0xff
jne 0x41d36c
and esi, 3
mov ecx, edi
add esi, esi
or esi, 1
inc edi
mov eax, dword [ebp - 4]
jmp 0x41d33e
movzx ebx, al
movzx eax, byte [edx + 3]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 1]
shl ebx, 8
or ebx, eax
sub ebx, edi
sub ebx, 5
mov dword [ebp - 0xc], ebx
test esi, esi
je 0x41d421
movzx eax, byte [esi + 0x4e5e00]
shl eax, 3
push 0x18
pop ecx
sub ecx, eax
mov dword [ebp - 8], eax
mov eax, ebx
shr eax, cl
test al, al
je 0x41d410
cmp al, 0xff
jne 0x41d421
xor ebx, ebx
push 0x20
pop ecx
sub ecx, dword [ebp - 8]
inc ebx
shl ebx, cl
dec ebx
xor ebx, dword [ebp - 0xc]
jmp 0x41d3e6
mov ecx, dword [ebp - 0x10]
mov eax, ebx
shr eax, 0x18
and al, 1
mov byte [edx + 1], bl
neg al
mov byte [edx + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edx + 3], al
mov eax, ebx
mov ebx, dword [ebp - 0x14]
shr eax, 8
push 5
mov byte [edx + 2], al
pop eax
add edi, eax
jmp 0x41d3c0
lea ecx, [eax - 1]
shl esi, cl
xor ecx, ecx
and esi, 7
cmp eax, 3
mov eax, dword [ebp + 0xc]
cmova esi, ecx
pop ebx
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
leave
ret