joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10085612
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101169be
mov eax, dword fs:[0]
push eax
mov eax, 0x2008
call fcn.10039990
mov eax, dword [0x10188074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x25
push esi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
je 0x100856ea
push esi
lea ecx, [ebp - 0x2014]
call fcn.100026e3
xor edi, edi
lea eax, [ebp - 0x2010]
push 0x2000
push edi
push eax
mov dword [ebp - 4], edi
call fcn.1003e610
add esp, 0xc
lea eax, [ebp - 0x2010]
push 0x1000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0xffe
ja 0x100856cb
cmp word [ebp - 0x2010], di
je 0x100856cb
lea ecx, [ebp - 0x2010]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x100856a9
sub ecx, edx
lea eax, [ebp - 0x2010]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2014]
call fcn.1000262a
push dword [ebp - 0x2014]
push 0x208
push esi
call fcn.1000885c
mov ecx, dword [ebp - 0x2014]
lea ecx, [ecx - 0x10]
call fcn.10002a86
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10038cf9
leave
ret

Function at 0x100871bc
Capabilities:
Monitor local ipv4 address changes

Disassembly:
push 0xc
push 0x10174538
call fcn.10039790
and dword [ebp - 4], 0
push edx
push ecx
call dword [sym.imp.IPHLPAPI.DLL_NotifyAddrChange]
jmp 0x100871e0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1008725f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10188074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0xc], edi
je 0x10087285
xor eax, eax
inc eax
jmp 0x1008732a
push 0x208
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.1003e610
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [0x10193b38]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str.....deepscancloudcom2.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x20c]
call fcn.100a00c7
mov dword [esi + 0x18], eax
test eax, eax
jne 0x100872da
xor eax, eax
jmp 0x1008732a
push str.CheckCloudServerState
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x100872f8
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x100872d6
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
lea eax, [ebp - 0x210]
push eax
push edi
push esi
push 0x1008712f
push edi
push edi
mov dword [ebp - 0x210], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
xor eax, eax
inc eax
mov dword [esi + 0xc], eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10038cf9
leave
ret
Function at 0x10087400
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc2c
mov eax, dword [0x10188074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 4], ebx
je 0x10087427
xor eax, eax
inc eax
jmp 0x100874e9
call fcn.100873d9
mov esi, 0x410
lea eax, [ebp - 0x418]
push esi
push ebx
push eax
call fcn.1003e610
add esp, 0xc
lea eax, [ebp - 0xc28]
push esi
push ebx
push eax
call fcn.1003e610
add esp, 0xc
lea eax, [ebp - 0xc28]
mov esi, 0x208
push esi
push eax
push dword [0x10193b38]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x100874e7
push ecx
lea eax, [ebp - 0xc28]
mov edx, esi
push eax
push ecx
lea ecx, [ebp - 0x418]
call fcn.10060ad8
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x418]
push str.....deepscan360Quarant.dll
push eax
call esi
test eax, eax
je 0x100874e7
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100874e0
lea ecx, [ebp - 0x418]
mov dword [edi + 0xc], 1
call fcn.100a00c7
mov dword [edi + 0x10], eax
test eax, eax
jne 0x100874f8
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
xor ecx, ecx
mov edx, str.360QUARANT
push ebx
push ebx
inc ecx
call fcn.1007890d
add esp, 0x20
mov ecx, edi
call fcn.100873d9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10038cf9
leave
ret
push str.CreateQuarantObject
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 0x14], eax
test eax, eax
je 0x100874e0
push edi
push 0x1013b5f4
call eax
test eax, eax
jne 0x100874e0
cmp dword [edi], ebx
je 0x100874e0
push 0x400
lea eax, [ebp - 0x818]
push ebx
push eax
call fcn.1003e610
add esp, 0xc
lea eax, [ebp - 0x818]
push ebx
push 0x1a
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x100874e0
push str.360Quarant
lea eax, [ebp - 0x818]
push eax
call esi
test eax, eax
je 0x100874e0
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea eax, [ebp - 0x818]
push eax
call esi
push str.360safe
mov dword [edi + 0x18], eax
call esi
push str.union
mov dword [edi + 0x1c], eax
call esi
mov dword [edi + 0x20], eax
mov dword [edi + 4], 1
jmp 0x1008741f

Function at 0x10087ae8
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
jne 0x10087b05
push ebx
push ebx
push esi
push 0x10087a73
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x1c], eax
cmp dword [esi + 0xc], ebx
jne 0x10087b1d
push ebx
push ebx
push esi
push 0x10087acf
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
pop esi
pop ebx
ret
Function at 0x1008a339
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add ecx, 0x1c
pop ebp
jmp fcn.100026c3

Function at 0x1008c040
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x1008c04f
pop ebp
jmp fcn.100026c3
pop ebp
ret 4

Function at 0x1008c92b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa30
mov eax, dword [0x10188074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
call fcn.1008c8db
test eax, eax
jne 0x1008ca73
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.1003e610
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ebx, 0x104
push ebx
push eax
push dword [0x10193b38]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str.....deepscancloudcom2.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x20c]
call fcn.100a00c7
mov dword [edi], eax
test eax, eax
je 0x1008ca6f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SmartUploadCreate
push eax
call esi
push str.SmartUploadWithExtInfo
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.SmartUploadCancel
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.SmartUploadClose
push dword [edi]
mov dword [edi + 0xc], eax
call esi
push str.SmartUploadSetNetTimeout
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.SmartUploadSetOption
push dword [edi]
mov dword [edi + 0x14], eax
call esi
push str.SmartUploadGetError
push dword [edi]
mov dword [edi + 0x18], eax
call esi
push str.CreateObject
push dword [edi]
mov dword [edi + 0x1c], eax
call esi
mov ecx, edi
mov dword [edi + 0x20], eax
call fcn.1008c8b3
pop esi
test al, al
je 0x1008ca6f
push 0x820
lea eax, [ebp - 0xa2c]
push 0
push eax
call fcn.1003e610
add esp, 8
mov dword [ebp - 0xa30], 0x824
mov edx, ebx
push str.360safe
push ecx
lea ecx, [ebp - 0xa2c]
call fcn.10061d79
push ecx
push str.qexdetect
push ecx
mov edx, ebx
lea ecx, [ebp - 0x824]
call fcn.10061d79
lea eax, [ebp - 0xa30]
push eax
call dword [edi + 4]
mov dword [edi + 0x24], eax
pop ecx
test eax, eax
jne 0x1008ca73
xor eax, eax
jmp 0x1008ca76
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10038cf9
leave
ret
Function at 0x1008d332
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
call fcn.10067454
mov edi, eax
test edi, edi
je 0x1008d404
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1008d404
push ebx
push esi
mov esi, 0x10190228
push esi
push 0x40
call fcn.10038d70
mov dword [ebp - 4], eax
pop ecx
pop ecx
test eax, eax
je 0x1008d378
mov ecx, eax
call fcn.1010b843
mov ebx, eax
jmp 0x1008d37a
xor ebx, ebx
test ebx, ebx
je 0x1008d402
push esi
push 0xc
call fcn.10038d70
mov esi, eax
xor eax, eax
mov dword [ebp - 4], esi
pop ecx
pop ecx
test esi, esi
je 0x1008d3a1
mov dword [esi], edi
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
jmp 0x1008d3a3
mov esi, eax
test esi, esi
je 0x1008d402
push eax
push eax
push esi
push 0x1008d52e
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
mov dword [ebp - 4], edi
cmp dword [ebx + 0x28], 0
jne 0x1008d3da
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x1008d3bc
test edi, edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x1008d3e9
push dword [ebp - 4]
call edi
xor eax, eax
push eax
push eax
push esi
push 0x1008d407
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1008d402
push eax
call edi
pop esi
pop ebx
pop edi
leave
ret
Function at 0x1008ee04
Capabilities:
Check if file exists

Disassembly:
push 0x30
mov eax, 0x10117aab
call fcn.100604ea
mov ebx, ecx
mov edi, dword [ebp + 8]
test edi, edi
je 0x1008efbf
xor esi, esi
cmp word [edi], si
je 0x1008efbf
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1008efbf
mov dword [ebp - 0x3c], esi
mov dword [ebp - 4], esi
call fcn.100029f0
push eax
lea ecx, [ebp - 0x2c]
call fcn.1000281b
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], esi
push eax
push esi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], esi
push eax
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], esi
push eax
push 5
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
mov ecx, esi
mov dword [ebp + 8], eax
mov dword [ebp - 0x34], ecx
mov byte [ebp - 4], 4
cmp eax, 5
jne 0x1008ef6a
lea eax, [ebp - 0x34]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1008ef93
mov ecx, edi
call fcn.1008f2ee
test eax, eax
je 0x1008ef93
mov ecx, dword [ebp - 0x34]
mov edx, str.SeSecurityPrivilege
push 1
call fcn.1008f50c
pop ecx
mov ecx, dword [ebp - 0x34]
mov edx, str.SeTakeOwnershipPrivilege
push 1
mov dword [ebp - 0x24], eax
call fcn.1008f50c
pop ecx
mov ecx, dword [ebp - 0x34]
mov edx, str.SeRestorePrivilege
push 1
mov dword [ebp - 0x14], eax
call fcn.1008f50c
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
pop ecx
test edx, edx
je 0x1008ef16
cmp dword [ebp - 0x14], esi
je 0x1008ef20
test eax, eax
je 0x1008ef20
lea eax, [ebp - 0x20]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push 5
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
mov edx, dword [ebp - 0x24]
mov dword [ebp + 8], eax
jmp 0x1008ef23
cmp dword [ebp - 0x14], 0
jne 0x1008ef20
test eax, eax
je 0x1008ef93
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x1008ef6a
test edx, edx
je 0x1008ef3d
push esi
mov edx, str.SeSecurityPrivilege
call fcn.1008f50c
pop ecx
mov ecx, dword [ebp - 0x34]
cmp dword [ebp - 0x14], 0
je 0x1008ef52
push esi
mov edx, str.SeTakeOwnershipPrivilege
call fcn.1008f50c
pop ecx
mov ecx, dword [ebp - 0x34]
cmp dword [ebp - 0x28], 0
je 0x1008ef67
push esi
mov edx, str.SeRestorePrivilege
call fcn.1008f50c
pop ecx
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x1008ef96
mov eax, dword [ebp - 0x18]
lea ecx, [ebx + 0xc]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x20]
push edi
mov dword [ebx + 0x1c], eax
call fcn.100026c3
xor eax, eax
inc eax
mov dword [ebx + 0x10], eax
mov esi, eax
mov dword [ebx], eax
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x1008efa1
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.10002a86
cmp dword [ebp - 0x3c], 0
je 0x1008efbb
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1008efc1
xor eax, eax
call fcn.100604b3
ret 0xc
Function at 0x1008f709
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
lea ecx, [ebp - 0xc]
push 0x1019253c
call fcn.10002155
and dword [ebp - 8], 0
lea eax, [ebp - 4]
and dword [ebp - 4], 0
add esi, 0x20
push 0x1013c6b0
push esi
push eax
call fcn.1004e755
add esp, 0xc
test eax, eax
jne 0x1008f750
cmp dword [ebp - 4], eax
je 0x1008f750
push dword [ebp - 4]
call fcn.1004eaa2
pop ecx
jmp 0x1008f791
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0x10136398
push esi
push eax
call fcn.1004e755
add esp, 0xc
test eax, eax
jne 0x1008f791
cmp dword [ebp - 4], eax
je 0x1008f791
push dword [ebp - 4]
lea eax, [ebp - 8]
mov dword [ebp - 8], 2
push 4
push 1
push eax
call fcn.1004e9d4
push dword [ebp - 4]
call fcn.1004eaa2
add esp, 0x14
cmp dword [ebp - 0xc], 0
pop esi
je 0x1008f7a1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
leave
ret
Function at 0x1008f8e8
Capabilities:
Delete file
Read file on windows

Disassembly:
push 0x34
mov eax, 0x10117c1d
call fcn.1006051e
mov ebx, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x40]
push 0x1019253c
mov dword [ebp - 0x3c], esi
call fcn.10002155
push 9
xor edx, edx
lea edi, [ebp - 0x34]
pop ecx
xor eax, eax
mov dword [ebp - 4], edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x34]
mov dword [esi], edx
push eax
push edx
lea esi, [ebx + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x1008fabc
mov eax, dword [ebp - 0x20]
cmp dword [ebx + 0x1c], eax
je 0x1008faca
mov ecx, dword [ebp - 0x3c]
and dword [ebp - 0x38], 0
push 0x1013c6b0
push esi
mov dword [ecx], 1
mov dword [ebx + 0x1c], eax
call fcn.1004e73e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1008faca
push edi
push 4
lea eax, [ebp - 0x38]
push 1
push eax
call fcn.100500d3
add esp, 0x10
cmp eax, 4
je 0x1008f986
push edi
call fcn.1004eaa2
pop ecx
jmp 0x1008faca
mov eax, dword [ebp - 0x38]
cmp eax, 1
je 0x1008f9b0
cmp eax, 2
je 0x1008f9b0
cmp eax, 3
je 0x1008f9b0
cmp eax, 4
je 0x1008f9b0
push edi
call fcn.1004eaa2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1008faca
mov ecx, ebx
call fcn.1008f87c
push 0x10190228
push 0x2b4
call fcn.10038d70
mov dword [ebp - 0x3c], eax
pop ecx
pop ecx
test eax, eax
je 0x1008f9da
mov ecx, eax
call fcn.100113ae
mov esi, eax
jmp 0x1008f9dc
xor esi, esi
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x1008fa99
push 0x2b4
push 0
push esi
call fcn.1003e610
add esp, 0xc
xor eax, eax
inc eax
push edi
cmp dword [ebp - 0x38], eax
jne 0x1008fa16
push 0x24c
push eax
push esi
call fcn.100500d3
add esp, 0x10
cmp eax, 0x24c
jmp 0x1008fa62
cmp dword [ebp - 0x38], 2
jne 0x1008fa32
push 0x290
push eax
push esi
call fcn.100500d3
add esp, 0x10
cmp eax, 0x290
jmp 0x1008fa62
cmp dword [ebp - 0x38], 3
jne 0x1008fa4e
push 0x2a0
push eax
push esi
call fcn.100500d3
add esp, 0x10
cmp eax, 0x2a0
jmp 0x1008fa62
push 0x2b4
push eax
push esi
call fcn.100500d3
add esp, 0x10
cmp eax, 0x2b4
jne 0x1008fa8c
xor eax, eax
lea ecx, [ebx + 0x10]
mov word [esi + 0x246], ax
mov word [esi + 0x206], ax
mov word [esi + 0x28e], ax
lea eax, [ebp - 0x3c]
push eax
call fcn.1001141d
jmp 0x1008f9b7
push 0x2b4
push esi
call fcn.10038d2d
pop ecx
pop ecx
mov edx, dword [ebx + 0x14]
mov eax, edx
mov ecx, dword [ebx + 0x10]
sub eax, ecx
sar eax, 2
push 0x1008fae1
push eax
call fcn.10011442
push edi
call fcn.1004eaa2
add esp, 0xc
jmp 0x1008faca
mov ecx, ebx
call fcn.1008f87c
and dword [ebx + 0x228], 0
cmp dword [ebp - 0x40], 0
je 0x1008fad9
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.100604c8
ret 4
Function at 0x100906d7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0xc], ebx
jne 0x100907aa
mov ecx, dword [ebp + 8]
call fcn.100a00c7
mov dword [edi + 4], eax
test eax, eax
je 0x100907d0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.XDOpen
push eax
call esi
push str.XDClose
push dword [edi + 4]
mov dword [edi + 0x14], eax
call esi
push str.XDAddRecordsEx
push dword [edi + 4]
mov dword [edi + 0x18], eax
call esi
push str.XDDeleteRecords
push dword [edi + 4]
mov dword [edi + 0x1c], eax
call esi
push str.XDGetFirst
push dword [edi + 4]
mov dword [edi + 0x24], eax
call esi
push str.XDGetNext
push dword [edi + 4]
mov dword [edi + 0x28], eax
call esi
push str.XDGetCounts
push dword [edi + 4]
mov dword [edi + 0x2c], eax
call esi
push str.XDGetLastFlag
push dword [edi + 4]
mov dword [edi + 0x30], eax
call esi
push str.XDAddRecords
push dword [edi + 4]
mov dword [edi + 0x34], eax
call esi
mov dword [edi + 0x20], eax
pop esi
cmp dword [edi + 0x14], ebx
je 0x100907b5
cmp dword [edi + 0x18], ebx
je 0x100907b5
cmp dword [edi + 0x1c], ebx
je 0x100907b5
cmp dword [edi + 0x24], ebx
je 0x100907b5
cmp dword [edi + 0x28], ebx
je 0x100907b5
cmp dword [edi + 0x2c], ebx
je 0x100907b5
cmp dword [edi + 0x30], ebx
je 0x100907b5
cmp dword [edi + 0x34], ebx
je 0x100907b5
test eax, eax
je 0x100907b5
mov dword [edi + 0xc], 1
xor ebx, ebx
inc ebx
pop edi
mov eax, ebx
pop ebx
pop ebp
ret 4
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x20], ebx
cmp dword [edi + 4], ebx
je 0x100907ad
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [edi + 4], ebx
jmp 0x100907ad
Function at 0x1009095c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x530
mov eax, dword [0x10188074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x528]
stosd dword es:[edi], eax
mov esi, edx
mov ebx, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x528]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
xor edi, edi
cmp dword [0x1018905c], 0xffffffff
mov dword [ebp - 0x530], edi
jne 0x10090a58
push 0x208
lea eax, [ebp - 0x310]
push edi
push eax
call fcn.1003e610
add esp, 0xc
lea eax, [ebp - 0x310]
push 0xff
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x52c]
push eax
lea ecx, [ebp - 0x310]
call fcn.10090908
test eax, eax
js 0x10090a04
mov eax, dword [ebp - 0x52c]
mov edx, 0x104
push ecx
push str..log
push ecx
lea ecx, [ebp - 0x310]
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.100908ab
push edi
push 0x80
push 4
push edi
push 1
push 0x40000000
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1018905c], eax
test esi, esi
je 0x10090a4b
push edi
push dword [0x1018905c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
je 0x10090a4b
push 2
push edi
push edi
push dword [0x1018905c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x1018905c], 0xffffffff
je 0x10090b1a
push 0x208
lea eax, [ebp - 0x518]
push edi
push eax
call fcn.1003e610
movzx eax, word [ebp - 0x51a]
add esp, 0xc
mov esi, edi
push ebx
push eax
movzx eax, word [ebp - 0x51c]
push eax
movzx eax, word [ebp - 0x51e]
push eax
movzx eax, word [ebp - 0x520]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.__d___d___02u:_02u:_02u:_03u____s_r_n
lea eax, [ebp - 0x518]
push 0x208
push eax
call fcn.10008a64
mov ebx, 0x104
lea eax, [ebp - 0x108]
push ebx
push edi
push eax
call fcn.1003e610
push ebx
lea edx, [ebp - 0x518]
lea ecx, [ebp - 0x108]
call fcn.10090be7
add esp, 0x38
test eax, eax
jle 0x10090af2
lea esi, [ebp - 0x108]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10090ae9
sub esi, ecx
push edi
lea eax, [ebp - 0x530]
push eax
push esi
lea eax, [ebp - 0x108]
push eax
push dword [0x1018905c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [0x1018905c]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10038cf9
leave
ret
Function at 0x10090b29
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
lea edx, [ebp + 0xc]
pop ebp
jmp 0x10090b38
push 8
mov eax, 0x10117cf7
call fcn.100604ea
mov esi, edx
mov edi, ecx
call fcn.100029f0
push eax
lea ecx, [ebp - 0x10]
call fcn.1000281b
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push esi
push edi
call fcn.10008bf9
call fcn.100029f0
push eax
lea ecx, [ebp - 0x14]
call fcn.1000281b
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov esi, dword [ebp - 0x10]
push esi
test eax, eax
je 0x10090b97
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.SFCK
push str._s__d__s_r_n
jmp 0x10090ba8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.SFCK
push str._s__d__s
lea eax, [ebp - 0x14]
push eax
call fcn.10008c51
mov edi, dword [ebp - 0x14]
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [0x10193a28], 0
je 0x10090bd1
xor edx, edx
mov ecx, edi
inc edx
call fcn.1009095c
lea ecx, [edi - 0x10]
call fcn.10002a86
lea ecx, [esi - 0x10]
call fcn.10002a86
call fcn.100604b3
ret

Function at 0x10090c16
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xc
mov eax, 0x10117d1a
call fcn.100604ea
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 4], ebx
push eax
push dword [0x10193b38]
push 4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
je 0x10090c82
push 4
call fcn.10038d40
pop ecx
push ebx
push 4
mov esi, eax
push esi
push 0x10090c97
push ebx
push ebx
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x10090c78
push edi
mov esi, ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 4
push esi
call fcn.10038d2d
pop ecx
pop ecx
cmp dword [ebp - 0x18], 0
je 0x10090c91
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.100604b3
ret