joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42dbdd
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x42dc12
cmp edi, dword [esi + 0xc]
jge 0x42dc12
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42dc12
cmp edi, dword [eax + 8]
jge 0x42dc12
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x42dc14
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x42dd18
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x42dd4c
jmp fcn.0042271d
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x42ddbd
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x42deb6
cmp eax, dword [edi + 0xc]
jge 0x42deb6
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x42de0e
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x42de9f
cmp dword [ebp + 0xc], ebx
je 0x42de9f
jmp 0x42de38
push 0x10
call fcn.0042daa9
cmp eax, ebx
je 0x42de24
mov ecx, eax
call fcn.0042dd0f
mov esi, eax
jmp 0x42de26
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x42de4f
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x42de5f
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x42de71
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0042271d
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.004135e0
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x42deb1
cmp ecx, dword [esi + 8]
jge 0x42deb1
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x42deb7
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4045b8
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4045fa
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x40461a
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.004077e8
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x404810
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.00406a5c
test esi, esi
jne 0x404846
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.00406be4
jmp 0x404864
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404754
mov edi, eax
test esi, esi
je 0x404864
cmp dword [ebx], 0
je 0x404864
dec esi
jmp 0x40484d
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x404898
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x5e4008], 0x8088405
inc edx
mov dword [ebx + 0x5e4008], edx
mul edx
mov eax, edx
pop ebx
ret
Function at 0x4057bc
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.00405ba8
mov byte [esp], al
cmp byte [esp], 0
jne 0x405945
test edi, edi
je 0x405945
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40587c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405857
cmp edi, 0xffffffff
je 0x40581b
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40581b
mov byte [esp], 0
jmp 0x405945
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405857
test ebx, ebx
jne 0x405850
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004025b8
test eax, eax
jne 0x405850
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405945
pause
dec ebp
test ebp, ebp
jg 0x405800
cmp edi, 0xffffffff
je 0x40587c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40587a
mov byte [esp], 0
jmp 0x405945
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4057ca
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004025b8
cmp ebx, eax
jne 0x40587c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004059b8
mov edx, eax
mov ebx, dword [0x6038c8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4058e3
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4058e1
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4058e3
xor edi, edi
cmp byte [esp], 0
je 0x40590c
mov ebx, dword [esi]
test bl, 1
jne 0x405925
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004025b8
cmp ebx, eax
jne 0x4058e9
mov byte [esp + 1], 1
jmp 0x405925
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004025b8
cmp ebx, eax
jne 0x40590c
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405896
cmp byte [esp], 0
je 0x405945
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 0x4066c0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x603050], 0
je 0x406721
cmp word [0x60332c], 0xd7b2
jne 0x4066e9
cmp dword [0x603334], 0
jbe 0x4066e9
mov eax, 0x603328
call dword [0x603344]
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 0x40674c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5e4028], 0
jne 0x40673d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406918
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 [0x5e402c], 0
je 0x406943
mov edx, edi
mov eax, esi
call dword [0x5e402c]
mov ebx, eax
jmp 0x406954
mov eax, 8
call fcn.004043d4
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x603051], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4068e0
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 0x406989
mov edx, 8
mov eax, ebx
call fcn.004043f0
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x408f90
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 0x4090f5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406a5c
cmp si, word [0x5e47dc]
jb 0x409028
cmp si, word [0x5e49dc]
ja 0x409028
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x409028
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5e47dc]
jae 0x409002
mov edi, ebx
dec edi
jmp 0x409023
cmp si, word [ebx*8 + 0x5e47dc]
jbe 0x409012
inc ebx
mov dword [ebp - 8], ebx
jmp 0x409023
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5e47e0]
call fcn.00408ea0
jmp 0x409028
cmp edi, dword [ebp - 8]
jae 0x408fec
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4090d7
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4090d7
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.004077e8
push dword [ebp - 0x160]
push 0x409110
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004077e8
push dword [ebp - 0x164]
push 0x409120
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004077e8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407a20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4090fc
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406abc
ret
Function at 0x4092a8
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 0x4093ab
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x605b51
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x605b6a]
jne 0x4092f4
mov eax, esi
mov edx, 0x605b6c
mov ecx, 0x55
call fcn.004077e8
push 0x605b51
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409395
push 0x605b51
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406a5c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409363
cmp byte [0x605b50], 0
je 0x409328
mov edx, esi
mov eax, ebx
call fcn.0040918c
jmp 0x409363
mov edx, esi
mov eax, ebx
call fcn.00408f90
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409363
cmp dword [esi], 0
je 0x40934c
mov eax, esi
mov edx, 0x4093c4
call fcn.00407940
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408f90
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407940
push 0x605b51
call sub.kernel32.dll_EnterCriticalSection
mov word [0x605b6a], bx
push 0xaa
mov eax, dword [esi]
call fcn.0040774c
push eax
push 0x605b6c
call sub.kernel32.dll_lstrcpynW
push 0x605b51
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4093b2
lea eax, [ebp - 4]
call fcn.00406a5c
ret
Function at 0x4095e0
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.00406b40
xor eax, eax
push ebp
push 0x409805
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409620
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40963a
push 0x105
mov eax, dword [ebp - 4]
call fcn.0040774c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4097ef
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409814
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409709
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409814
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409709
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409850
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409709
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409850
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409709
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409884
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409709
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4098b8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4097ef
xor eax, eax
push ebp
push 0x4097e8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004093ec
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 0x409778
mov eax, dword [ebp - 0x10]
call fcn.004043d4
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.004077ac
jmp 0x4097c3
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4098f8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4097c3
mov eax, dword [ebp - 0x10]
call fcn.004043d4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4098f8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004077ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4097ef
cmp dword [ebp - 8], 0
je 0x4097de
mov eax, dword [ebp - 8]
call fcn.004043f0
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 0x40980c
lea eax, [ebp - 4]
call fcn.00406a5c
ret
Function at 0x409b44
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.00406b40
xor eax, eax
push ebp
push 0x409c04
push dword fs:[eax]
mov dword fs:[eax], esp
push 8
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.004077e8
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407998
mov eax, dword [ebx]
call fcn.00409a0c
test al, al
jne 0x409be1
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004077e8
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407998
mov eax, dword [ebx]
call fcn.00409a0c
test al, al
jne 0x409be1
mov eax, ebx
call fcn.00406a5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409c0b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406abc
lea eax, [ebp - 4]
call fcn.00406a5c
ret

Function at 0x40a59c
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 0x41cf7c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x41d0a5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x218]
push eax
push 0x104
call sub.kernel32.dll_GetLogicalDriveStringsW
mov esi, eax
test esi, esi
jle 0x41d07f
lea ebx, [ebp - 0x218]
lea eax, [ebx + 4]
mov word [eax], 0
push 0x104
lea eax, [ebp - 0x424]
push eax
push ebx
call sub.kernel32.dll_QueryDosDeviceW
mov esi, eax
test esi, esi
jle 0x41d068
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.004077e8
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00407c74
test eax, eax
jle 0x41d068
mov eax, dword [ebp - 4]
test eax, eax
je 0x41d01c
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x41d02a
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x428]
push eax
mov ecx, edi
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.00407b08
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.004077ac
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.00407998
jmp 0x41d07f
add ebx, 2
cmp word [ebx], 0
jne 0x41d065
add ebx, 4
test ebx, ebx
je 0x41d079
cmp word [ebx], 0
jne 0x41cfce
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d0ac
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.00406abc
lea eax, [ebp - 4]
call fcn.00406a5c
ret
Function at 0x41d198
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdcc
push ebx
xor ebx, ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41d354
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
call fcn.00406a5c
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileSize
test eax, eax
jne 0x41d1fc
cmp dword [ebp - 0x14], 0
je 0x41d2ea
push 0
push 1
push 0
push 2
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateFileMappingW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3ee
je 0x41d2ea
xor eax, eax
push ebp
push 0x41d2e3
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x41d2cc
xor eax, eax
push ebp
push 0x41d2c5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
call sub.kernel32.dll_GetCurrentProcess
lea ecx, [ebp - 0x224]
mov edx, dword [ebp - 0x18]
call fcn.0040d8b4
test eax, eax
jbe 0x41d2ae
lea eax, [ebp - 0x22c]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.004077e8
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x228]
call fcn.0041cf7c
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 8]
call fcn.00406e3c
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d2cc
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d2ea
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
cmp byte [ebp - 9], 0
jne 0x41d336
lea edx, [ebp - 0x230]
mov eax, dword [ebp - 4]
call fcn.0041d0b4
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 8]
call fcn.00406e3c
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x41d336
lea edx, [ebp - 0x234]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0041cf7c
mov edx, dword [ebp - 0x234]
mov eax, dword [ebp - 8]
call fcn.00406e3c
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d35b
lea eax, [ebp - 0x234]
mov edx, 4
call fcn.00406abc
ret
Function at 0x41d364
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov byte [ebp - 1], 0
xor edx, edx
mov eax, 6
call fcn.0042488c
test al, al
je 0x41d40c
mov eax, ebx
call fcn.0040774c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41d40c
test ah, 4
je 0x41d40c
test al, 0x10
je 0x41d3ab
mov edi, 0x2000000
jmp 0x41d3ad
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.0040774c
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x41d40c
xor eax, eax
push ebp
push 0x41d405
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.0041d198
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d40c
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x41d6e4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41d73d
test eax, edx
je 0x41d740
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41d6fb
movzx eax, word [eax]
sub eax, ecx
jmp 0x41d722
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 0x41d723
add ecx, 4
js 0x41d713
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41d720
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41d722
xor eax, eax
ret
test eax, eax
je 0x41d74c
test edx, edx
jne 0x41d6ec
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41ea28
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.0040774c
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41ea92
test ah, 4
je 0x41ea8b
test bl, bl
jne 0x41ea50
mov al, 1
jmp 0x41eab9
test al, 0x10
je 0x41ea58
xor eax, eax
jmp 0x41eab9
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41ea7c
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41eab9
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41eab9
test al, 0x10
sete al
jmp 0x41eab9
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x41eab3
cmp ebx, 3
je 0x41eab3
cmp ebx, 0x7b
je 0x41eab3
mov eax, esi
call fcn.0041e9e8
test al, al
jne 0x41eab7
xor eax, eax
jmp 0x41eab9
mov al, 1
pop edi
pop esi
pop ebx
ret