joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1024c61
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1033f70]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1024d27
mov eax, dword [edi + 8]
test eax, eax
je 0x1024d27
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 0x401
push eax
call fcn.0101e8c1
test eax, eax
je 0x1024d27
push esi
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x1024d26
push ebx
push 0x493e0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
test ebx, ebx
je 0x1024d22
cmp ebx, 0x80
je 0x1024d22
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1012980
push ebx
call fcn.010285de
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
test eax, eax
jne 0x1024d02
push ebx
call edi
push 0x1012920
call esi
push eax
call fcn.010285de
call esi
test eax, eax
je 0x1024d25
call esi
test eax, eax
jne 0x1024d25
call esi
push eax
call edi
jmp 0x1024d25
mov dword [edi + 0x24], esi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0101c23d
leave
ret 4
Function at 0x1025a64
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x1033f70]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x12c], eax
xor eax, eax
push eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x120], eax
call edi
test ebx, ebx
je 0x1025be6
test esi, esi
je 0x1025be6
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
je 0x1025bea
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1025bc4
cmp dword [ebp - 0x114], 6
jb 0x1025b55
push 0x1012418
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x11c], eax
test eax, eax
je 0x1025bc4
push 0x1014030
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1025bc4
push 0
push 0
lea ecx, [ebp - 0x124]
push ecx
lea ecx, [ebp - 0x120]
push ecx
push 0x1100
push 3
push 0x1014024
push ebx
call eax
test eax, eax
jl 0x1025bc4
mov eax, dword [ebp - 0x124]
jmp 0x1025b8b
push 0x10
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x1025bc4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1025bc4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x120], eax
test eax, eax
je 0x1025bc4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, dword [ebp - 0x12c]
mov dword [esi], eax
test edi, edi
je 0x1025bba
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [edi], eax
push dword [esi]
push dword [ebp - 0x120]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x128], 1
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
call esi
cmp dword [ebp - 0x11c], 0
je 0x1025bde
push dword [ebp - 0x11c]
call esi
mov eax, dword [ebp - 0x128]
jmp 0x1025bec
push 0x57
call edi
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101c23d
leave
ret 0xc
Function at 0x102888b
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
or ebx, 0xffffffff
cmp esi, edi
je 0x10289a5
mov eax, dword [ebp + 0xc]
cmp eax, edi
jne 0x10288b8
mov eax, dword [esi + 0x14]
cmp eax, edi
je 0x10289a5
push 0x2000
push edi
push 0x40000000
push eax
call fcn.0101dbcd
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10288e0
push 0x10138b0
push edi
call fcn.010285de
jmp 0x10289cf
mov edi, dword [esi + 4]
push 0x20
push edi
push ebx
call fcn.0102a8cc
test eax, eax
je 0x102893a
mov eax, dword [edi + 0xc]
test eax, eax
jbe 0x1028908
shl eax, 3
push eax
push dword [esi + 8]
push ebx
call fcn.0102a8cc
test eax, eax
je 0x102893a
mov edi, dword [edi + 0x10]
test edi, edi
jbe 0x1028920
lea eax, [edi + edi]
push eax
push dword [esi + 0xc]
push ebx
call fcn.0102a8cc
test eax, eax
je 0x102893a
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
je 0x102893a
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1028943
push 0x10138b0
push 0
jmp 0x102897d
xor edi, edi
cmp dword [ebp - 4], edi
je 0x1028960
push edi
push 0x18
call fcn.010285de
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10289bf
push 0x18
jmp 0x10289b9
mov eax, dword [ebp - 8]
mov dword [esi + 0x18], eax
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x1028984
push 0x10138b0
push edi
call fcn.010285de
jmp 0x10289bf
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [esi + 0x10], edi
inc eax
jmp 0x10289d1
push edi
push 0x57
call fcn.010285de
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10289cf
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp ebx, 0xffffffff
je 0x10289cf
test ebx, ebx
je 0x10289cf
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1028a35
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
and dword [ebp - 4], ebx
push ebx
push 0x1014ca8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1028a94
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x1014c80
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1028a94
cmp dword [ebp - 0xc], 4
jne 0x1028a94
cmp dword [ebp - 0x10], 1
jne 0x1028a94
inc ebx
cmp dword [ebp - 4], 0
je 0x1028aa3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
leave
ret
Function at 0x102902d
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
je 0x1029119
cmp dword [ebp + 0xc], edi
je 0x1029119
test byte [eax], 2
jne 0x1029060
push 0x32
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10290ab
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10290ab
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1029098
cmp dword [ebp - 8], edi
je 0x10290be
push 0x18
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
cmp dword [ebp - 4], edi
je 0x10290ab
push dword [ebp - 4]
call esi
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x10290b4
mov dword [eax], edi
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 0xc
push edi
push edi
push edi
push 2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 4], eax
cmp eax, edi
je 0x1029098
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, edi
je 0x1029098
push dword [ebp - 0xc]
push esi
push dword [ebp + 8]
call fcn.01028f6d
push esi
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x1029114
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
jmp 0x10290b7
push 0x57
jmp 0x1029058
Function at 0x1029125
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
cmp ebx, edi
je 0x102929e
cmp dword [ebp + 0x14], edi
je 0x102929e
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
lea eax, [edx + ecx]
cmp eax, edx
jb 0x102929e
cmp eax, ecx
jb 0x102929e
mov ecx, dword [ebx + 0x10]
cmp eax, dword [ecx + 0x1c]
jae 0x102929e
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp + 8], esi
cmp esi, 0xffffffff
je 0x10291c2
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10291af
cmp dword [ebp - 0x10], edi
je 0x10291e2
push 0x18
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp dword [ebp - 4], edi
je 0x10291c2
push dword [ebp - 4]
call esi
mov eax, dword [ebp + 0x18]
cmp eax, edi
je 0x10291cb
mov dword [eax], edi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x10292ab
call esi
jmp 0x10292b0
push edi
push edi
push edi
push 2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 4], eax
cmp eax, edi
je 0x10291af
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp + 0x14], eax
cmp eax, edi
je 0x10291af
mov esi, dword [ebx + 0x14]
add esi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push esi
mov dword [ebp + 0xc], 1
call fcn.0101cf54
mov ebx, eax
cmp ebx, edi
je 0x102926c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
add eax, ebx
add ecx, esi
cmp eax, ecx
ja 0x102926c
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
call fcn.0101cf54
cmp eax, edi
je 0x102926c
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 8]
jne 0x102926c
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp + 0x14]
add ecx, eax
add edx, edi
cmp ecx, edx
ja 0x102926c
mov ecx, dword [ebp - 8]
mov edi, eax
mov esi, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x1029280
and dword [ebp + 0xc], eax
jmp 0x1029280
mov ecx, dword [ebp + 0x10]
cmp dword [ebp - 0x14], ecx
jne 0x1029280
mov edi, dword [ebp + 0x14]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x1029280
and dword [ebp + 0xc], eax
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp + 8]
call esi
mov eax, dword [ebp + 0xc]
jmp 0x10292b0
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10291c2
mov eax, 0x80004005
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x102939d
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
push edi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
cmp dword [ebp + 8], esi
jne 0x10293c6
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10294dc
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x102946f
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x102946f
cmp dword [ebp - 8], esi
je 0x1029405
push 0x18
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x102946f
push 0x40
push dword [ebp - 4]
call fcn.0102a7d0
mov ebx, eax
cmp ebx, esi
je 0x102946f
mov esi, dword [ebp - 0xc]
call fcn.010292bc
test eax, eax
je 0x102946d
push 0x1c
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x102946d
mov dword [edi], 6
mov dword [edi + 0xc], ebx
mov ecx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x14]
imul ecx, ecx, 0x30
imul eax, eax, 0x30
push ecx
push eax
push dword [ebp - 4]
call fcn.0102a846
mov dword [edi + 0x10], eax
test eax, eax
je 0x102946d
push dword [ebp + 8]
call fcn.0101e529
mov dword [edi + 0x18], eax
test eax, eax
jne 0x10294e0
xor esi, esi
cmp dword [ebp - 4], esi
je 0x102947d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, esi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x10294cc
mov eax, dword [edi + 0xc]
test eax, eax
je 0x10294a0
cmp ebx, eax
jne 0x1029494
xor ebx, ebx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
mov eax, dword [edi + 0x10]
test eax, eax
je 0x10294b3
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
mov eax, dword [edi + 0x18]
test eax, eax
je 0x10294c0
push eax
call fcn.0101cbef
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
test ebx, ebx
je 0x10294dc
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
xor eax, eax
jmp 0x10294f1
mov eax, dword [ebp + 0xc]
push dword [ebp - 4]
mov dword [edi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x102a920
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
cmp dword [ebp + 8], esi
jne 0x102a948
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x102aa90
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, eax
cmp edi, 0xffffffff
je 0x102aa1e
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x102aa1e
cmp dword [ebp - 8], esi
je 0x102a993
push 0x18
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x102aa1e
push 0x68
push edi
call fcn.0102a7d0
mov dword [ebp - 4], eax
test eax, eax
je 0x102aa1e
push dword [ebp - 0xc]
push eax
call fcn.0102c7e2
test eax, eax
je 0x102aa1e
push 0x24
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x102aa1e
mov eax, dword [ebp - 4]
mov dword [esi + 0xc], eax
mov dword [esi], 6
mov eax, dword [eax + 0x34]
shl eax, 5
push eax
push edi
call fcn.0102a7d0
mov dword [esi + 0x10], eax
test eax, eax
je 0x102aa1e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
add eax, eax
push eax
push edi
call fcn.0102a7d0
mov dword [esi + 0x14], eax
test eax, eax
je 0x102aa1e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
imul eax, eax, 0x30
push eax
push edi
call fcn.0102a7d0
mov dword [esi + 0x18], eax
test eax, eax
je 0x102aa1e
push dword [ebp + 8]
call fcn.0101e529
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x102aa94
test edi, edi
je 0x102aa29
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
je 0x102aa80
mov eax, dword [esi + 0xc]
test eax, eax
je 0x102aa4b
cmp dword [ebp - 4], eax
jne 0x102aa43
and dword [ebp - 4], 0
push eax
push 0
call ebx
push eax
call edi
mov eax, dword [esi + 0x10]
test eax, eax
je 0x102aa5a
push eax
push 0
call ebx
push eax
call edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x102aa69
push eax
push 0
call ebx
push eax
call edi
mov eax, dword [esi + 0x18]
test eax, eax
je 0x102aa78
push eax
push 0
call ebx
push eax
call edi
push esi
push 0
call ebx
push eax
call edi
cmp dword [ebp - 4], 0
je 0x102aa90
push dword [ebp - 4]
push 0
call ebx
push eax
call edi
xor eax, eax
jmp 0x102aa9d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x102c471
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push edi
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
cmp dword [ebp + 0xc], edi
jne 0x102c496
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x102c5c8
push 2
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x102c5c5
cmp eax, 0xffffffff
je 0x102c5bc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [ebp + 0xc], edi
cmp dword [ecx + 0x18], edi
jbe 0x102c5bc
push ebx
push esi
mov eax, dword [eax + 8]
mov ecx, dword [ebp + 0xc]
movzx ebx, word [eax + ecx*8]
movzx eax, bx
shr eax, 4
push 6
inc eax
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x102c599
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x102c599
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, edi
je 0x102c599
and ebx, 0xf
jmp 0x102c51e
dec ebx
lea esi, [esi + edi*2]
movzx edi, word [esi]
inc esi
inc esi
test ebx, ebx
jne 0x102c51a
push 2
lea ebx, [edi + 1]
push ebx
call fcn.0101e275
test eax, eax
jbe 0x102c552
push 2
push ebx
call fcn.0101e275
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
jmp 0x102c554
xor ebx, ebx
test ebx, ebx
je 0x102c597
add edi, edi
push edi
push esi
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
push ebx
push dword [ebp + 0xc]
xor eax, eax
push dword [ebp + 8]
mov word [edi + ebx], ax
call fcn.0102c33b
test eax, eax
je 0x102c57e
inc dword [ebp - 4]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor edi, edi
inc dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov edx, dword [ebp + 0xc]
cmp edx, dword [ecx + 0x18]
jb 0x102c4ca
pop esi
pop ebx
cmp dword [ebp - 4], edi
jbe 0x102c5bc
mov dword [ebp - 0xc], 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0xc]
pop edi
leave
ret 8
Function at 0x102cd57
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 8], esi
je 0x102ce80
cmp dword [ebp + 0xc], 1
jb 0x102ce80
cmp dword [ebp + 0x10], 1
jb 0x102ce80
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x28
push 8
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call ebx
mov esi, eax
test esi, esi
je 0x102ce92
push 0x20
push 8
call edi
push eax
call ebx
mov dword [esi + 4], eax
test eax, eax
je 0x102ce88
push 8
push dword [ebp + 0xc]
call fcn.0101e275
test eax, eax
jbe 0x102cdd6
push 8
push dword [ebp + 0xc]
call fcn.0101e275
push eax
push 8
call edi
push eax
call ebx
jmp 0x102cdd8
xor eax, eax
mov dword [esi + 8], eax
test eax, eax
je 0x102ce88
push 2
push dword [ebp + 0x10]
call fcn.0101e275
test eax, eax
jbe 0x102ce05
push 2
push dword [ebp + 0x10]
call fcn.0101e275
push eax
push 8
call edi
push eax
call ebx
jmp 0x102ce07
xor eax, eax
mov dword [esi + 0xc], eax
test eax, eax
je 0x102ce88
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 0xc]
mov dword [esi], 6
xor edi, edi
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax], 0x43534552
mov dword [eax + 4], 0x4c5543
mov dword [eax + 8], edi
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edi
mov dword [eax + 0x18], edi
lea eax, [ebp - 0x24]
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x102ce5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x102ce5c
xor eax, eax
jmp 0x102ce5f
xor eax, eax
inc eax
push dword [ebp + 8]
mov dword [esi + 0x10], eax
call fcn.0101e529
mov dword [esi + 0x14], eax
cmp eax, edi
je 0x102ce88
xor eax, eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x18], eax
mov eax, esi
jmp 0x102ce94
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x102ce92
push esi
call fcn.0102cbc2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x102f0c0
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, eax
mov eax, dword [edi - 0x40]
mov ecx, dword [edi - 0x10]
mov dword [ebp - 4], eax
mov eax, dword [edi - 0x14]
sub ecx, 2
xor esi, esi
cmp eax, ecx
jae 0x102f120
push ebx
movzx edx, byte [eax + 2]
movzx ebx, byte [eax]
movzx ebx, word [ebx*2 + 0x1034fe8]
movzx edx, word [edx*2 + 0x10353e8]
xor edx, ebx
movzx ebx, byte [eax + 1]
movzx ebx, word [ebx*2 + 0x10351e8]
xor edx, ebx
mov ebx, dword [ebp - 4]
mov bx, word [ebx + edx*2]
mov word [edi + esi*2], bx
mov ebx, dword [ebp - 4]
mov word [ebx + edx*2], si
inc eax
inc esi
cmp eax, ecx
jb 0x102f0e0
pop ebx
add ecx, 2
cmp eax, ecx
jae 0x102f141
sub ecx, eax
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
shr ecx, 1
lea edi, [edi + esi*2]
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10001270
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x102ac760]
xor eax, esp
mov dword [esp + 0x208], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.100b2d30
mov edx, dword [esi]
add esp, 0xc
push edx
push 0x104
lea eax, [esp + 8]
push eax
push 0
push edi
push str.Proxy
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100012c0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 4]
push ecx
mov ecx, ebx
call fcn.10003b90
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.100b2738
add esp, 0x20c
ret

Function at 0x10001360
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, eax
mov eax, dword [esi]
push eax
push 1
push str.Mode
push str.Proxy
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp], eax
test eax, eax
je 0x10001403
push ebx
push edi
cmp eax, 2
jne 0x100013b3
lea ebx, [ebp + 4]
mov edi, str.Host
call fcn.10001270
mov eax, dword [esi]
push eax
push 0x1f90
push str.Port
push str.Proxy
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp + 8], eax
mov eax, dword [esi]
push eax
push 0
push str.Needauth
push str.Proxy
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x100013e9
lea ebx, [ebp + 0x10]
mov edi, str.Login
call fcn.10001270
lea ebx, [ebp + 0x14]
mov edi, str.Password
call fcn.10001270
mov esi, dword [esi]
push esi
push 1
push str.Bypassproxyserverforlocaladdress
push str.Proxy
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
mov dword [ebp + 0x18], eax
pop ebx
pop esi
pop ebp
ret 4

Function at 0x10001930
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push 0
push ecx
mov ecx, esi
call edx
test eax, eax
je 0x10001960
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
push 0xffffffffffffffff
mov ecx, esi
call edx
mov esi, dword [esi + 0xc]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop esi
ret 4
xor eax, eax
pop esi
ret 4