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

Disassembly:
mov eax, dword [esp + 4]
push ebx
xor bl, bl
cmp byte [eax], 0x2e
jne 0x40bb99
lea ecx, [esp + 8]
push ecx
push 1
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40bb99
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 8]
push eax
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40bb8e
mov bl, 1
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
ret 0xc

Function at 0x40bbc0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x74
push ebx
push ebp
push esi
push edi
push str.PolicyNoTrayIcon
call fcn.00408560
test eax, eax
mov ebp, dword [esp + 0x88]
push 0xfffffffffffffffa
push ebp
sete bl
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov esi, eax
mov ecx, 0x15
xor eax, eax
lea edi, [esp + 0x30]
mov dword [esp + 0x2c], 0x58
push 6
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push ebp
call edi
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push ebp
call edi
test bl, bl
je 0x40bc5c
push 1
push esi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], 6
call fcn.0041b580
push 0x40
mov dword [esp + 0x44], eax
lea eax, [esp + 0x48]
push eax
push 0x3ec
push esi
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [esp + 0x2c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
push 0x40
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
push 0xff
push 0xffffffffffffffff
lea edx, [esp + 0x94]
push 0
push edx
push 1
call edi
test eax, eax
je 0x40bcf5
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push 1
push 0
push 0
lea eax, [esp + 0x1c]
push 0
push eax
call esi
test eax, eax
je 0x40bcdc
lea ecx, [esp + 0x10]
push ecx
push ebp
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x40bcc9
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
lea ecx, [esp + 0x1c]
push 0
push ecx
call esi
test eax, eax
jne 0x40bca3
push 0xff
push 0xffffffffffffffff
lea edx, [esp + 0x94]
push 0
push edx
push 1
call edi
test eax, eax
jne 0x40bc90
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
test bl, bl
je 0x40bd15
lea eax, [esp + 0x2c]
push eax
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 2
push ebp
call esi
push 9
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret 8
Function at 0x40bd30
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1a44
call fcn.0042cf10
push ebx
push ebp
push esi
push edi
push str.LaunchMutex
mov byte [esp + 0x17], 0
call fcn.00408540
mov ebx, eax
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], 0x3c
lea edx, [esp + 0x254]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1a64]
lea eax, [esp + 0x1a68]
push eax
xor ebp, ebp
push ecx
push edx
mov dword [esp + 0x20], ebp
call dword [sym.imp.USER32.dll_wvsprintfA]
mov esi, dword [esp + 0x1a60]
mov cl, 0x5c
cmp byte [esi], cl
jne 0x40bdd2
cmp byte [esi + 1], cl
jne 0x40bdd2
cmp byte [esi + 2], 0x3f
jne 0x40bdcb
cmp byte [esi + 3], cl
jne 0x40bdd2
mov al, byte [esi + 4]
cmp al, 0x55
je 0x40bdb0
cmp al, 0x75
jne 0x40bdd2
mov al, byte [esi + 5]
cmp al, 0x4e
je 0x40bdbb
cmp al, 0x6e
jne 0x40bdd2
mov al, byte [esi + 6]
cmp al, 0x43
je 0x40bdc6
cmp al, 0x63
jne 0x40bdd2
cmp byte [esi + 7], cl
jne 0x40bdd2
mov eax, 1
jmp 0x40bdd4
xor eax, eax
neg al
mov edi, dword [esp + 0x1a58]
lea ecx, [esp + 0x54]
sbb eax, eax
push 0x100
and eax, 0x80
push ecx
or eax, 0x441
push str..exe
mov dword [esp + 0x28], eax
lea eax, [esp + 0x260]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], 1
call fcn.0040bb40
test al, al
je 0x40be2e
lea edx, [esp + 0x54]
mov dword [esp + 0x40], edx
jmp 0x40be36
mov dword [esp + 0x40], str.exefile
cmp byte [ebx], 0
je 0x40be4a
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40be8d
mov eax, dword [esp + 0x50]
test eax, eax
je 0x40bf36
test byte [esp + 0x1a5c], 1
jne 0x40be80
push eax
push edi
call fcn.0040bbc0
mov eax, dword [esp + 0x50]
push eax
call ebx
mov byte [esp + 0x13], 1
jmp 0x40bf36
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 0x4c7
je 0x40bf36
push 0
lea ecx, [esp + 0x658]
push 0x400
push ecx
push 0x400
call ebp
push eax
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea edx, [esp + 0x154]
push 0x100
push edx
push 0x3f3
push 0xfffffffffffffffa
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [esp + 0x654]
lea ecx, [esp + 0x254]
push eax
push ecx
lea edx, [esp + 0x15c]
push esi
push edx
lea eax, [esp + 0xa64]
push 0x1000
push eax
call fcn.00405f60
add esp, 0x18
lea ecx, [esp + 0xa54]
push 0x10
push ecx
push edi
call fcn.00401100
lea edx, [esp + 0xa54]
push 0x1000
push edx
call fcn.0040bb20
lea eax, [esp + 0x254]
push 0x400
push eax
call fcn.0040bb20
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40bf53
push eax
call ebx
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a44
ret
Function at 0x4112c0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push 0
push ecx
mov dword [esp + 0x1c], eax
push eax
mov eax, dword [esi]
push edx
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4112fb
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
pop esi
mov al, 1
mov dword [ecx], edx
pop ebx
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
mov al, bl
pop esi
pop ebx
ret 0x10

Function at 0x411340
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push 0
push ecx
mov dword [esp + 0x1c], eax
push eax
mov eax, dword [esi]
push edx
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41137b
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
pop esi
mov al, 1
mov dword [ecx], edx
pop ebx
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
mov al, bl
pop esi
pop ebx
ret 0x10

Function at 0x411510
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push edi
push eax
mov ecx, dword [esi]
xor bl, bl
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x411553
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x41154f
call edi
mov dword [esi + 4], eax
pop edi
mov al, bl
pop esi
pop ebx
add esp, 8
ret 8
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
pop edi
pop esi
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
pop ebx
add esp, 8
ret 8

Function at 0x4117b0
Capabilities:
Get file size

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
xor edx, edx
mov dword [esp + 8], eax
mov dword [ecx + 4], edx
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [esp + 4], ecx
jmp fcn.00411510
Function at 0x4154c0
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
push 0x14
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov esi, eax
test esi, esi
je 0x415582
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
mov dword [esi], 1
mov dword [esi + 4], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
mov eax, dword [edi]
push edi
call dword [eax + 4]
lea ecx, [esp + 0xc]
mov dword [esi + 8], edi
push ecx
push 4
push esi
push 0x415590
push 0
push 0
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x41554c
cmp dword [esi], 0
jne 0x41552e
int3
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
test eax, eax
jne 0x41553a
int3
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
jmp 0x41556e
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jg 0x41555e
call edi
mov edi, eax
jmp 0x41556e
call edi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
cmp dword [esi], 0
jne 0x415574
int3
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, edi
pop edi
pop esi
ret 0x10
mov eax, 0x8007000e
pop esi
ret 0x10

Function at 0x417620
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x24
call fcn.00424750
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x4176de
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push 1
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0xc], eax
je 0x4176d8
push ebx
push ebx
push 1
push ebx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
mov dword [esi + 0x10], eax
je 0x4176cf
mov edi, dword [esp + 0x14]
lea eax, [esi + 0x18]
push eax
push 4
mov ecx, dword [edi + 0x48]
push esi
push 0x4176f0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 0x14], eax
je 0x4176c6
push esi
call fcn.00411850
mov dword [esi + 0x20], ebx
lea ebx, [edi + 0x30]
push ebx
mov dword [esi + 8], edi
mov dword [esi + 0x1c], 2
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add edi, 0xc
push esi
push edi
call fcn.00411870
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [esi + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 4
mov eax, dword [esi + 0x10]
mov dword [esi + 0x10], ebx
push eax
call ebp
mov eax, dword [esi + 0xc]
mov dword [esi + 0xc], ebx
push eax
call ebp
push esi
call fcn.00424c20
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 4
Function at 0x418490
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4184b8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 8
mov edi, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
je 0x41856c
call esi
cmp eax, 3
jne 0x41856c
push 0x5c
push edi
call fcn.0042db9c
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x41856c
mov esi, ebp
sub esi, edi
lea ecx, [esi + 1]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x41856c
mov ecx, esi
mov esi, edi
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x1c]
sub eax, edi
mov byte [eax + ebp], 0
call fcn.00418490
test eax, eax
jne 0x41853f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41853f
mov esi, 1
jmp 0x418541
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
jne 0x41856c
mov ecx, dword [esp + 0x18]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4184b4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8

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

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
push edi
push eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 5
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], 7
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41867f
or eax, ebx
mov ebx, eax
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor edi, edi
mov ecx, dword [esp + edi*4 + 0x10]
mov edx, dword [esp + 0x24]
push 0
push ebx
push 2
push 0
push ecx
push 0xc0000000
push edx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x4186b5
test esi, esi
jne 0x4186be
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4186be
or esi, 0xffffffff
inc edi
cmp edi, 4
jb 0x418687
mov eax, dword [esp + 0x2c]
pop edi
mov dword [eax], esi
xor eax, eax
cmp esi, 0xffffffff
pop esi
pop ebp
pop ebx
setne al
add esp, 0x10
ret 0xc
Function at 0x418750
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
mov esi, dword [esp + 0x124]
push edi
push 0x5c
push esi
call fcn.0042d080
add esp, 8
test eax, eax
je 0x418771
int3
lea eax, [esp + 0x20]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x41895a
cmp eax, 0x104
jae 0x41895a
mov eax, dword [esp + 0x12c]
or ecx, 0xffffffff
test esi, esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
je 0x418950
mov ebp, dword [esp + 0x138]
test ebp, ebp
je 0x418950
test eax, eax
jne 0x4187cb
mov edx, dword [0x439370]
mov dword [esp + 0x18], edx
lea edi, [esp + 0x20]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
je 0x4187e7
mov al, byte [esp + ebx + 0x1f]
mov byte [esp + 0x14], 1
cmp al, 0x5c
jne 0x4187ec
mov byte [esp + 0x14], 0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 4
mov edx, ecx
jb 0x418804
mov edx, 4
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x14]
not ecx
dec ecx
and eax, 0xff
add edx, ecx
add eax, edx
lea ecx, [eax + ebx + 5]
mov eax, dword [esp + 0x13c]
cmp ecx, eax
jb 0x41883b
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x41892b
mov eax, dword [esp + 0x134]
mov dword [esp + 0x10], 0
neg eax
sbb eax, eax
and eax, 0xfc000000
add eax, 0x4000000
or eax, 0x102
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov edx, dword [esp + 0x10]
mov al, byte [esp + 0x14]
inc edx
inc edi
test al, al
mov eax, dword [0x4392d0]
mov dword [esp + 0x10], edx
jne 0x418883
mov eax, dword [0x4392e0]
mov edx, dword [esp + 0x18]
mov ecx, edi
and ecx, 0xffff
push edx
push ecx
mov ecx, dword [esp + 0x144]
push esi
push eax
mov eax, dword [str._s_s_.4s_04X._s]
lea edx, [esp + 0x30]
push edx
push eax
push ecx
push ebp
call fcn.00405f60
mov edx, dword [esp + 0x150]
add esp, 0x20
push 0
push ebx
push 1
push 0
push edx
push 0xc0000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4188e0
test esi, esi
jne 0x41891d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41891d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x50
je 0x418909
cmp eax, 5
jne 0x41892b
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x418909
call esi
cmp eax, 5
jne 0x418946
cmp word [esp + 0x10], 0
je 0x41892b
mov esi, dword [esp + 0x128]
jmp 0x418867
and edi, 0xffff
mov dword [esp + 0x1c], esi
test edi, edi
jne 0x418935
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41895a
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 0x18
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x41892b
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x41892b
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x114
ret 0x18
Function at 0x418970
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x218
push ebx
push ebp
mov ebp, dword [esp + 0x224]
push esi
push edi
push 0x5c
push ebp
call fcn.0042d080
add esp, 8
test eax, eax
je 0x418991
int3
lea eax, [esp + 0x20]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x418b50
cmp eax, 0x104
jae 0x418b50
test ebp, ebp
mov dword [esp + 0x18], 0xffffffff
je 0x418b46
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [0x439370]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x1c], esi
mov ebx, ecx
je 0x4189ed
mov al, byte [esp + ebx + 0x1f]
mov byte [esp + 0x10], 1
cmp al, 0x5c
jne 0x4189f2
mov byte [esp + 0x10], 0
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 4
mov edx, ecx
jb 0x418a0a
mov edx, 4
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
not ecx
dec ecx
and eax, 0xff
add edx, ecx
add eax, edx
lea ecx, [eax + ebx + 5]
cmp ecx, 0x104
jb 0x418a3c
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x418b21
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, dword [esp + 0x230]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov edx, dword [esp + 0x14]
mov al, byte [esp + 0x10]
inc edx
inc edi
test al, al
mov eax, dword [0x4392d0]
mov dword [esp + 0x14], edx
jne 0x418a75
mov eax, dword [0x4392e0]
mov ecx, dword [esp + 0x22c]
mov edx, edi
and edx, 0xffff
push esi
push edx
push ecx
push eax
mov eax, dword [str._s_s_.4s_04X._s]
lea edx, [esp + 0x30]
lea ecx, [esp + 0x134]
push edx
push eax
push 0x104
push ecx
call fcn.00405f60
add esp, 0x20
lea edx, [esp + 0x124]
push 0
push 0x4000102
push 1
push 0
push ebp
push 0xc0000000
push edx
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x418ad9
test esi, esi
jne 0x418b13
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x418b13
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x50
je 0x418b02
cmp eax, 5
jne 0x418b21
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x418b02
call esi
cmp eax, 5
jne 0x418b3c
cmp word [esp + 0x14], 0
je 0x418b21
mov esi, dword [esp + 0x1c]
jmp 0x418a59
and edi, 0xffff
mov dword [esp + 0x18], esi
test edi, edi
jne 0x418b2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x418b50
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 8
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x418b21
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x418b21
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x218
ret 8
Function at 0x418d00
Capabilities:
Read .ini file

Disassembly:
mov ecx, dword [esp + 0x10]
mov eax, dword [0x4392e0]
sub esp, 0x10
lea edx, [esp]
push esi
push ecx
mov ecx, dword [esp + 0x1c]
push 0x10
push edx
push eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
mov esi, dword [esp + 0x20]
je 0x418d4d
lea edx, [esp + 0x24]
lea eax, [esp + 4]
push edx
push 0xa
push 0
push eax
mov dword [esp + 0x34], esi
call fcn.0040f700
test al, al
mov eax, dword [esp + 0x24]
jne 0x418d4f
mov eax, esi
pop esi
add esp, 0x10
ret 0x10
Function at 0x418d60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
test ebx, ebx
push edi
je 0x418f31
mov edx, dword [esp + 0x18]
test edx, edx
je 0x418f31
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x418f31
mov eax, dword [0x439370]
mov edi, ebx
mov dword [esp + 0x20], eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
je 0x418dae
mov al, byte [esi + ebx - 1]
mov byte [esp + 0x14], 1
cmp al, 0x5c
jne 0x418db3
mov byte [esp + 0x14], 0
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 4
mov edx, ecx
jb 0x418dcb
mov edx, 4
mov edi, dword [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x14]
not ecx
dec ecx
and eax, 0xff
add edx, ecx
mov ecx, dword [esp + 0x24]
add eax, edx
lea edx, [eax + esi + 5]
cmp edx, ecx
jb 0x418e03
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x14
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x418e4b
mov al, byte [esp + 0x14]
test al, al
mov eax, dword [0x4392d0]
jne 0x418e1d
mov eax, dword [0x4392e0]
mov edx, dword [esp + 0x20]
push edx
mov edx, esi
and edx, 0xffff
push edx
mov edx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [str._s_s_.4s_04X._s]
push ebx
push eax
push ecx
push ebp
call fcn.00405f60
add esp, 0x20
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov edx, dword [esp + 0x1c]
mov al, byte [esp + 0x14]
inc edx
inc edi
test al, al
mov eax, dword [0x4392d0]
mov dword [esp + 0x1c], edx
jne 0x418e77
mov eax, dword [0x4392e0]
mov ecx, dword [esp + 0x20]
mov edx, edi
push ecx
mov ecx, dword [esp + 0x1c]
and edx, 0xffff
push edx
mov edx, dword [str._s_s_.4s_04X._s]
push ecx
push eax
mov eax, dword [esp + 0x34]
push ebx
push edx
push eax
push ebp
call fcn.00405f60
add esp, 0x20
push 0
push 0x102
push 1
push 0
push 0
push 0xc0000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x418ed0
test esi, esi
jne 0x418f0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x418f0a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x50
je 0x418ef5
cmp eax, 5
jne 0x418f39
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x418ef5
call esi
cmp eax, 5
jne 0x418f20
cmp word [esp + 0x1c], 0
jne 0x418e5b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x14
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and edi, 0xffff
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x14
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x14