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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003ecf8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1004f37c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1004f338]
cmp eax, 0xffffffff
jne 0x10036fb6
xor ebx, ebx
jmp 0x10036fbf
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x10036fff
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0xc]
test eax, eax
jne 0x1003703e
test esi, esi
jne 0x10037042
push 0x10035760
push 0x10050e58
call fcn.10005320
mov eax, dword [0x1004f338]
add esp, 8
cmp eax, 0xffffffff
je 0x10036fff
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1003702c
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1003702c
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x10037084
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1003706d
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x10037042
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x10036fd0
nop
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x100370a9
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x100370a9
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.10005320
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x10037090
jmp 0x10036fd0

Function at 0x100370d0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov edx, dword [esi]
lea eax, [edx + 0x10]
push eax
push 4
push edx
push 0x10037130
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x100370fa
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esi]
push edi
add eax, 4
lock inc dword [eax]
mov edi, dword [esi]
mov eax, dword [edi + 8]
test eax, eax
je 0x10037118
cmp eax, 0xffffffff
je 0x10037118
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [edi + 8], ebx
mov eax, dword [esi]
push dword [eax + 8]
call dword [sym.imp.kernel32.dll_ResumeThread]
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x100017ad
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x1000182a
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 0xc

Function at 0x10001853
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x1000185e
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x10001fb4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
xor ebx, ebx
cmp dword [ebp + 8], ebx
push edi
mov esi, ecx
lea eax, [ebp - 0x110]
jne 0x10001feb
push eax
mov edi, 0x100
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, ebx
je 0x1000201a
cmp eax, edi
jbe 0x10001fff
mov eax, 0x80020013
jmp 0x10002051
push 0x100
push dword [ebp + 8]
push eax
call fcn.10009832
add esp, 0xc
mov byte [ebp - 0x10], bl
lea edi, [esi + 4]
push edi
push ebx
push 0x1000b518
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x10002021
call fcn.10001671
jmp 0x10002051
mov eax, dword [ebp + 0xc]
push ebx
lea ecx, [ebp - 0xc]
push ecx
push 0x2100
push 2
push ebx
push eax
push edi
mov ecx, esi
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 8], ebx
mov dword [ebp - 4], 1
mov dword [esi + 0x105], eax
call fcn.10001f1a
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x10002058
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.10001699
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x1000207a
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
pop edi
pop esi
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x10002099
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10002099
push eax
call fcn.10001686
pop ecx
jmp 0x10002075
push edi
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x10002073
call fcn.10001671
jmp 0x10002075
Function at 0x100020af
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [ebp + 0xc]
xor ecx, ecx
cmp dword [ebp - 4], ecx
mov dword [ebp - 8], eax
ja 0x100020e0
jb 0x100020d8
cmp eax, edi
jae 0x100020e0
mov eax, edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
push dword [ebp + 0x20]
push eax
push dword [ebp - 4]
push dword [ebp + 0x18]
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 8], eax
jne 0x10002103
call fcn.10001671
jmp 0x10002157
test edi, edi
mov edx, dword [ebp + 0x10]
jne 0x10002114
mov ecx, dword [ebp - 8]
sub ecx, edx
mov dword [esi + 4], ecx
jmp 0x10002117
mov dword [esi + 4], edi
mov ecx, dword [ebp + 0x1c]
push 0
push dword [esi + 4]
mov dword [esi + 0xc], edx
push dword [esi + 0xc]
mov edx, dword [ebp + 0x14]
push edx
push ecx
push eax
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
test eax, eax
mov dword [esi], eax
jne 0x10002155
call fcn.10001671
push dword [esi + 8]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 8], 0
mov eax, edi
jmp 0x10002157
xor eax, eax
pop edi
pop esi
leave
ret 0x1c

Function at 0x1000261f
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push 0x2001f
push dword [ebp + 8]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
call fcn.10001765
cmp eax, esi
jne 0x10002697
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x10002660
lea eax, [ebp - 0x110]
push eax
call fcn.1000261f
cmp eax, esi
jne 0x10002696
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 8], 0x100
call edi
test eax, eax
lea ecx, [ebp - 4]
je 0x10002650
call fcn.100016e6
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 4]
mov esi, eax
call fcn.100016e6
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x10002bf1
Capabilities:
Check mutex on windows
Delete file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x1000b38b
call fcn.10009dd6
cmp dword [esp + 0x1c], 1
pop ecx
mov dword [0x1000d3c0], eax
jne 0x10002d69
push dword [esp + 0x14]
call fcn.100011d3
test eax, eax
pop ecx
je 0x10002d65
push dword [0x1000d3dc]
xor ebp, ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebp
mov dword [0x1000d3e8], eax
je 0x10002d65
mov ebx, 0xf001f
push ebx
push ebp
push ebp
mov esi, 0x800
push esi
push dword [0x1000d3d8]
mov edi, 0x1000d59c
mov ecx, edi
call fcn.1000215d
cmp eax, ebp
jge 0x10002d39
push 0xc0000000
push ebp
mov ecx, 0x1000d490
call fcn.10001fb4
cmp eax, ebp
jl 0x10002d65
push ebp
push esi
mov ecx, 0x1000d490
mov dword [0x1000d3e0], 1
call fcn.10001f85
push dword [0x1000d3d8]
mov ecx, edi
push ebx
push 4
push ebp
push ebp
push esi
push dword [0x1000d490]
call fcn.100020af
cmp eax, ebp
jl 0x10002d65
push 0x3e8
push dword [0x1000d3e8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10002d65
mov edx, dword [0x1000d59c]
cmp edx, ebp
je 0x10002d04
mov ecx, dword [0x1000d5a0]
mov esi, ecx
shr ecx, 2
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [0x1000d3c0]
mov dword [edx], eax
mov byte [edx + 4], 0x30
mov dword [0x1000d3e4], 1
push dword [0x1000d3e8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0x1000b2e4
push dword [esp + 0x18]
mov ecx, 0x1000d460
push 0x1000d028
call fcn.10001e8e
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
call fcn.10002213
jmp 0x10002db8
push 0x3e8
push dword [0x1000d3e8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10002d65
mov eax, dword [0x1000d59c]
cmp eax, ebp
je 0x10002d04
mov ecx, dword [0x1000d3c0]
cmp dword [eax], ecx
jge 0x10002d04
mov dword [eax], ecx
jmp 0x10002d04
xor eax, eax
jmp 0x10002dbb
xor ebp, ebp
cmp dword [esp + 0x18], ebp
jne 0x10002db8
mov ecx, 0x1000d59c
call fcn.100021cc
mov ecx, 0x1000d460
call fcn.10002abb
call fcn.10001319
call fcn.100012ea
cmp dword [0x1000d3e0], ebp
je 0x10002db8
mov eax, dword [0x1000d490]
cmp eax, ebp
je 0x10002dad
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1000d490], ebp
push 0x1000d494
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x1000435b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push ebx
push esi
push edi
mov esi, ecx
call dword [0x1000d020]
xor edi, edi
cmp dword [ebp + 8], edi
mov ebx, eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
mov dword [ebp - 0x40c], edi
jne 0x10004388
xor eax, eax
jmp 0x100043af
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.10009ba0
mov eax, esp
push ebx
push esi
push dword [ebp + 8]
push eax
call fcn.10001410
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
test edi, edi
mov dword [ebp + 8], edi
jne 0x100043ce
call fcn.10001671
mov esi, eax
jmp 0x10004456
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x100043ef
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x100043f6
call fcn.10001671
jmp 0x1000444b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + 1]
push eax
lea ecx, [ebp - 0x40c]
call fcn.10002456
mov edi, dword [ebp - 0x40c]
test edi, edi
jne 0x10004420
mov esi, 0x8007000e
jmp 0x1000444d
push dword [ebp + 0x14]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x40c]
and byte [ebx + eax], 0
push dword [ebp - 0x40c]
lea ecx, [ebp - 8]
call fcn.10003c2b
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x408]
cmp dword [ebp - 0x40c], eax
je 0x1000446f
lea ecx, [ebp - 0x40c]
call fcn.100016ae
mov eax, esi
lea esp, [ebp - 0x418]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x10004b29
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call esi
push dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x104]
push eax
call edi
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10004bb6
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
call edi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x244]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10004b74
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004bf9
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.10004be5
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 4
mov ebx, eax
call edi
mov esi, eax
add esi, ebx
mov dword [ebp + 8], esi
call edi
cmp eax, esi
jae 0x10004c64
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
xor esi, esi
jmp 0x10004c3e
cmp dword [ebp - 0x18], 0x12
je 0x10004c68
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push esi
push esi
lea eax, [ebp - 0x1c]
push esi
push eax
call ebx
test eax, eax
jne 0x10004c2e
push 0xff
push 0x64
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
call edi
cmp eax, dword [ebp + 8]
jb 0x10004c3e
xor eax, eax
jmp 0x10004c6b
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100057ce
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
je 0x1000584d
push ebx
push edi
push esi
push esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [ebp + 0xc]
mov ebx, eax
push esi
lea eax, [ebx + edi]
push eax
push esi
push ebx
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_LockFile]
push esi
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 8]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
lea eax, [ebx + edi]
push eax
push esi
push ebx
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_UnlockFile]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 4], edi
pop edi
sete al
pop ebx
mov esi, eax
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x1000586d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push 0x44
pop esi
mov ecx, esi
lea edx, [ebp - 0x54]
call fcn.10005854
push 0x10
xor ebx, ebx
pop ecx
lea edx, [ebp - 0x10]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], bx
call fcn.10005854
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push 0x10
push ebx
push ebx
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x100058da
cmp byte [ebp + 0xc], bl
je 0x100058da
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
pop esi
pop ebx
leave
ret
Function at 0x10005df9
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x1000d3f4]
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10005f9d
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0xffffffff
je 0x10005f9c
cmp ebx, 0x3a98
jae 0x10005f9c
push 0x200
push dword [0x1000d428]
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x204]
push eax
push 0x1000b928
call fcn.1000155f
pop ecx
pop ecx
mov ecx, dword [0x1000d3f4]
lea eax, [ebp - 0x204]
push eax
push esi
mov esi, 0x1000b850
push esi
call fcn.1000927d
mov ecx, dword [0x1000d3f4]
mov ebx, eax
lea eax, [ebp - 0x204]
push eax
inc ebx
push ebx
push esi
call fcn.100092e6
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, str._s_d
lea eax, [ebp - 0x404]
push edi
push eax
call esi
lea eax, [ebp - 4]
push eax
call fcn.10009998
push dword [ebp + 8]
lea eax, [ebp - 0x804]
push dword [ebp - 4]
push str._ld__s
push eax
call esi
mov ecx, dword [0x1000d3f4]
add esp, 0x24
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.100092c1
push ebx
push 0x1000b844
lea eax, [ebp - 0x404]
push edi
push eax
call esi
mov eax, dword [0x1000d448]
inc dword [0x1000d448]
push eax
lea eax, [ebp - 0x804]
push 0x1000b91c
push eax
call esi
mov ecx, dword [0x1000d3f4]
add esp, 0x1c
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.100092c1
push ebx
push str.pwvdsrl
lea eax, [ebp - 0x404]
push edi
push eax
call esi
push dword [0x1000d450]
lea eax, [ebp - 0x804]
push 0x1000b91c
push eax
call esi
mov ecx, dword [0x1000d3f4]
add esp, 0x1c
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.100092c1
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x100090ea
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
test eax, eax
je 0x100090fd
and byte [eax], 0
mov esi, 0x2000
push esi
call fcn.10009dc2
mov ebx, eax
test ebx, ebx
pop ecx
je 0x10009166
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, esi
mov dword [ebp - 4], eax
jl 0x10009126
mov dword [ebp - 4], 0x1fff
push dword [ebp - 4]
push dword [ebp + 0x14]
push ebx
call fcn.10009832
mov eax, dword [ebp - 4]
and byte [eax + ebx], 0
push ebx
push dword [ebp + 0x10]
call fcn.1000155f
add esp, 0x14
push dword [ebp + 8]
push esi
push dword [edi + 8]
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [edi + 8]
push dword [ebp + 0x10]
call fcn.1000156e
pop ecx
pop ecx
mov eax, dword [edi + 8]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x10009a1e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x1000d390]
xor eax, dword [ebp + 0x7c]
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.100099ee
and byte [esi + 0xc], 0
mov eax, 0x10000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
call fcn.100097ff
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x10009a83
cmp dword [ebp - 0x1c], 5
jb 0x10009a9b
jmp 0x10009a97
cmp dword [ebp - 0x10], 1
jne 0x10009a9b
cmp dword [ebp - 0x1c], 4
ja 0x10009a97
jne 0x10009a9b
cmp dword [ebp - 0x18], 0
jbe 0x10009a9b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x700
mov dword [esi + 0x14], 0x1000bb20
call fcn.100015dd
test eax, eax
jge 0x10009abc
mov byte [0x1000d3b8], 1
mov ecx, dword [ebp + 0x74]
xor ecx, dword [ebp + 0x7c]
mov eax, esi
pop esi
call fcn.10009f5e
add ebp, 0x78
leave
ret
Function at 0x10009fc2
Capabilities:
Terminate process

Disassembly:
push 0x110
push 0x1000bb40
call fcn.10009b54
mov eax, dword [0x1000d64c]
xor ebx, ebx
cmp eax, ebx
je 0x10009ffb
mov dword [ebp - 4], ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
jmp 0x1000a0d1
mov eax, dword [ebp + 8]
dec eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x11c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, 0x1000b8a8
cmp eax, ebx
jne 0x1000a02c
push edi
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x1000a034
cmp eax, esi
jne 0x1000a034
and byte [ebp - 0x19], 0
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x11c]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
inc eax
inc eax
cmp eax, 0x3c
jbe 0x1000a07b
lea eax, [ebp - 0x11c]
push eax
call esi
lea ecx, [ebp - 0x11c]
sub ecx, 0x3a
add eax, ecx
mov dword [ebp - 0x120], eax
push ebx
push edi
push eax
call fcn.100097dd
add esp, 0xc
push dword [ebp - 0x120]
call esi
add eax, 8
and eax, 0xfffffffc
call fcn.10009ba0
mov dword [ebp - 0x18], esp
mov ebx, esp
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x1000bb3c
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
call esi
push edi
push ebx
call esi
push dword [ebp - 0x120]
push ebx
call esi
push 0x1000bb3c
push ebx
call esi
push edi
push ebx
call esi
push 0x12010
push edi
push ebx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 3
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x406ea0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
mov ecx, 0x4608c0
call fcn.0040f64b
mov ebx, eax
mov dword [ebp - 4], 1
test ebx, ebx
je 0x406f54
test esi, esi
jne 0x406f54
mov eax, dword [ebp + 8]
shr eax, 4
inc eax
push esi
movzx ecx, ax
push ecx
push 6
push ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceExW]
mov edi, eax
test edi, edi
je 0x406f38
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x406f32
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
je 0x406f32
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ecx, dword [ebp + 8]
add eax, esi
and ecx, 0xf
jbe 0x406f21
cmp esi, eax
jae 0x406f25
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x406f13
cmp esi, eax
jb 0x406f29
xor eax, eax
jmp 0x406f32
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
mov esi, eax
test eax, eax
jne 0x406f5d
mov edi, dword [ebp - 4]
push edi
mov ecx, 0x4608c0
call fcn.0040f64b
mov ebx, eax
inc edi
mov dword [ebp - 4], edi
test ebx, ebx
jne 0x406ec5
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407060
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x407078
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
je 0x4070aa
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4070a6
cmp esi, eax
jae 0x4070aa
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x407098
cmp esi, eax
jb 0x4070b0
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret