joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000223a
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
push edi
push esi
push esi
push 3
push esi
push esi
push SysReAllocString
push dword [ebp + 8]
call dword [0x1002af70]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100022f1
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x1000227d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100022f1
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
cmp edi, esi
je 0x10002274
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, esi
jne 0x100022a0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x10002274
lea ecx, [ebp - 8]
push esi
push ecx
mov dword [ebp - 8], esi
push dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], esi
je 0x100022f1
lea eax, [ebp + 8]
mov dword [ebp + 8], esi
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jge 0x100022ec
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x100022f1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x100022f1
cmp dword [ebp + 8], esi
jne 0x100022f5
xor eax, eax
jmp 0x1000232d
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
cmp eax, esi
je 0x10002304
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push edi
push 0x10022f88
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
test eax, eax
jl 0x10002322
cmp dword [edi], esi
je 0x10002322
push 1
pop esi
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10002d46
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
push ebx
push esi
inc eax
push edi
mov dword [ebp - 8], ecx
push eax
call fcn.10016450
xor ebx, ebx
pop ecx
cmp dword [ebp + 8], ebx
mov dword [ebp - 4], eax
jne 0x10002d6b
xor esi, esi
jmp 0x10002d99
push dword [ebp + 8]
call dword [0x1002aff4]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.10016460
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
mov byte [esi], bl
push ebx
push ebx
call dword [0x1002afe0]
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0xc]
push dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push ebx
push esi
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x10002df1
cmp dword [ebp - 4], ebx
jne 0x10002dc1
xor edi, edi
jmp 0x10002dee
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.10016460
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push dword [ebp - 4]
mov word [edi], bx
push ebx
push ebx
call dword [0x1002afd0]
push edi
jmp 0x10002df4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.100162ad
pop ecx
pop ecx
push dword [ebp - 4]
call fcn.1001610a
pop ecx
xor eax, eax
cmp dword [ebp + 8], ebx
lea esp, [ebp - 0x18]
pop edi
pop esi
sete al
pop ebx
leave
ret 0x10
Function at 0x10005bf2
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov esi, ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x10005c1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x18], eax
jmp 0x10005cac
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
lea ecx, [ebp + 0xc]
push 4
push ecx
push 2
push eax
mov dword [ebp + 0xc], 0x9c40
call edi
lea eax, [ebp + 0xc]
push 4
push eax
push 5
push dword [esi + 0xc]
call edi
lea eax, [ebp + 0xc]
push 4
push eax
push 6
push dword [esi + 0xc]
call edi
push ebx
push 0x4400000
push 3
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
push dword [esi + 0xc]
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, ebx
mov dword [esi + 0x10], eax
jne 0x10005c88
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esi + 0xc]
mov dword [esi + 0x18], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10005cac
push ebx
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x10005cb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esi + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], eax
call edi
push dword [esi + 0xc]
call edi
xor eax, eax
jmp 0x10005cb3
push 1
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x10006116
Capabilities:
Read data from internet
Receive data

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
je 0x1000614b
push dword [esp + 0xc]
push 0
push dword [esp + 0x10]
call fcn.10017320
add esp, 0xc
push 0x1002b38c
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x10006158
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x18], eax
xor eax, eax
jmp 0x1000615d
mov eax, dword [0x1002b38c]
pop esi
ret 8
Function at 0x10008283
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
xor esi, esi
push esi
mov word [ebp - 0x208], si
call fcn.10008829
pop ecx
lea eax, [ebp - 0x208]
push esi
push 0x20
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x100082c3
push esi
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.100089ad
add esp, 0xc
push 1
pop eax
pop esi
leave
ret

Function at 0x100082c9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
xor esi, esi
push 1
mov word [ebp - 0x208], si
call fcn.10008829
pop ecx
lea eax, [ebp - 0x208]
push esi
push 0x21
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1000830a
push esi
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.100089ad
add esp, 0xc
push 1
pop eax
pop esi
leave
ret
Function at 0x10008310
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6fc
push ebx
push esi
push edi
call fcn.100088d1
mov edi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
xor ebx, ebx
test eax, eax
mov esi, SysReAllocString
jne 0x1000833f
call fcn.1000893f
test eax, eax
je 0x1000847f
lea eax, [ebp - 4]
mov dword [ebp - 8], ebx
push eax
mov dword [ebp - 4], ebx
call fcn.10008d0f
test eax, eax
pop ecx
je 0x10008469
lea eax, [ebp - 0x6fc]
push eax
push dword [ebp - 4]
call fcn.10008dd7
lea eax, [ebp - 0x22c]
push str.SoftwareMicrosoftProtected_Storage_System_Provider_
push eax
mov word [ebp - 0x22c], bx
call fcn.10016283
lea eax, [ebp - 0x6fc]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.10016283
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x4fc]
push eax
call fcn.100162ad
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x4fc]
push eax
push esi
call fcn.10008e4e
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call fcn.10008ee1
add esp, 0x38
test eax, eax
je 0x10008432
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x22c]
push eax
push esi
call fcn.10009089
lea eax, [ebp - 0x22c]
push str.Data
push eax
call fcn.10016283
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x22c]
push eax
push esi
call fcn.10009089
lea eax, [ebp - 0x22c]
push str.e161255a_37c3_11d2_bcaa_00c04fd929db
push eax
call fcn.10016283
lea eax, [ebp - 0x24]
push 1
push eax
lea eax, [ebp - 0x22c]
push eax
push esi
call fcn.10009089
add esp, 0x40
lea eax, [ebp - 0x22c]
push eax
push esi
call edi
cmp dword [ebp - 8], ebx
je 0x10008448
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0xc], ebx
je 0x10008469
push ebx
lea eax, [ebp - 0x4fc]
push dword [ebp - 0xc]
push eax
push esi
call fcn.10009089
push dword [ebp - 0xc]
call fcn.1001610a
add esp, 0x14
cmp dword [ebp - 4], ebx
je 0x1000847f
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x104
push eax
lea eax, [ebp - 0x2f4]
push eax
call dword [0x1002af30]
lea eax, [ebp - 0x22c]
push str.SoftwareMicrosoftProtected_Storage_System_Provider_
push eax
mov word [ebp - 0x22c], bx
call fcn.10016283
lea eax, [ebp - 0x2f4]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.10016283
lea eax, [ebp - 0x22c]
push str.Datae161255a_37c3_11d2_bcaa_00c04fd929db
push eax
call fcn.10016283
add esp, 0x18
lea eax, [ebp - 0x22c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
push str.SoftwareMicrosoftInternet_ExplorerIntelliForms
push esi
call edi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10008829
Capabilities:
Delete internet cache
Enumerate internet cache

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryW]
lea eax, [ebp - 4]
push edi
xor ebx, ebx
push eax
push ebx
push ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call esi
push dword [ebp - 4]
call fcn.10016450
mov edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
push edi
push ebx
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x100088be
mov esi, dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
cmp dword [ebp + 8], ebx
jne 0x10008875
test byte [edi + 0xe], 0x10
jne 0x1000888a
jmp 0x10008881
cmp dword [ebp + 8], 1
jne 0x1000888a
test byte [edi + 0xe], 0x10
je 0x1000888a
push dword [edi + 4]
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push ebx
push dword [ebp - 8]
call esi
push edi
call fcn.1001610a
push dword [ebp - 4]
call fcn.10016450
pop ecx
mov edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 8]
call esi
test eax, eax
jne 0x10008868
mov dword [ebp - 0xc], 1
cmp edi, ebx
je 0x100088c9
push edi
call fcn.1001610a
pop ecx
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10008c0e
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x291c
call fcn.10016460
push ebx
push esi
mov esi, 0x2710
xor ebx, ebx
push esi
lea eax, [ebp - 0x291c]
push ebx
push eax
call fcn.10017320
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
mov word [ebp - 0x20c], bx
push eax
call fcn.10016283
lea eax, [ebp - 0x20c]
push eax
call fcn.10016961
add esp, 0x18
cmp word [ebp + eax*2 - 0x20e], 0x5c
je 0x10008c75
lea eax, [ebp - 0x20c]
push 0x10027f2c
push eax
call fcn.10016283
pop ecx
pop ecx
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
call fcn.10016283
pop ecx
lea eax, [ebp - 0x20c]
pop ecx
push ebx
push 0x80
push 3
push ebx
push 3
push 0x40000000
push eax
call dword [0x1002af70]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x10008caf
xor eax, eax
jmp 0x10008d0b
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push 0x40
mov edi, eax
push dword [ebp + 8]
sub edi, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp edi, ebx
jbe 0x10008cfe
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 4]
cmp edi, esi
push 0
push eax
jbe 0x10008cf1
lea eax, [ebp - 0x291c]
push esi
push eax
push dword [ebp + 8]
call ebx
sub edi, esi
jne 0x10008cd4
jmp 0x10008cfe
lea eax, [ebp - 0x291c]
push edi
push eax
push dword [ebp + 8]
call ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10011d63
Capabilities:
Persist via run registry key

Disassembly:
mov eax, 0x10021ca4
call fcn.10016868
sub esp, 0x4c8
mov eax, dword [0x10027098]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
mov dword [ebp - 0x20], eax
mov esi, dword [0x1002aff4]
mov edi, 0x10029a2c
mov eax, edi
mov byte [ebp - 4], 1
test eax, eax
jne 0x10011da0
xor eax, eax
jmp 0x10011da3
push edi
call esi
push edi
push eax
lea ecx, [ebp - 0x10]
call fcn.100121b9
lea edi, [ebx + 0x430]
test edi, edi
jne 0x10011dbb
xor eax, eax
jmp 0x10011dbe
push edi
call esi
push edi
push eax
lea ecx, [ebp - 0x10]
call fcn.100121b9
mov edi, 0x10029a24
mov eax, edi
test eax, eax
je 0x10011dd6
push edi
call esi
push edi
push eax
lea ecx, [ebp - 0x10]
call fcn.100121b9
mov edi, 0x10029a08
mov eax, edi
test eax, eax
je 0x10011dee
push edi
call esi
push edi
push eax
lea ecx, [ebp - 0x10]
call fcn.100121b9
mov edi, 0x100299fc
mov eax, edi
test eax, eax
je 0x10011e06
push edi
call esi
push edi
push eax
lea ecx, [ebp - 0x20]
call fcn.100121b9
push 4
push dword [ebp - 0x20]
push dword [ebp - 0x10]
push dword [ebx + 4]
call dword [0x1002b03c]
cmp eax, 6
je 0x10011e2d
xor esi, esi
jmp 0x10011f60
mov eax, dword [ebx + 0xeec]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x80]
and dword [ebp - 0x18], 0
and word [ebp - 0x4d4], 0
mov ecx, 0x12b
xor eax, eax
lea edi, [ebp - 0x4d2]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x4d4]
push 0x258
push eax
mov byte [ebp - 4], 2
push dword [0x1002bbac]
call dword [0x1002afa0]
push 0x100299a4
lea ecx, [ebp - 0x14]
call fcn.10012110
lea edi, [ebx + 0x6c]
mov byte [ebp - 4], 3
test edi, edi
jne 0x10011e91
xor eax, eax
jmp 0x10011e94
push edi
call esi
push edi
push eax
lea ecx, [ebp - 0x14]
call fcn.100121b9
mov edi, 0x100299a0
mov eax, edi
test eax, eax
je 0x10011eac
push edi
call esi
push edi
push eax
lea ecx, [ebp - 0x14]
call fcn.100121b9
push str.Delete
lea ecx, [ebp - 0x1c]
call fcn.10012110
add ebx, 0x2c4
mov byte [ebp - 4], 4
test ebx, ebx
jne 0x10011ed5
xor eax, eax
jmp 0x10011ed8
push ebx
call esi
push ebx
push eax
lea ecx, [ebp - 0x1c]
call fcn.100121b9
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunonce
push reloc.OLEAUT32.dll_SysReAllocString
call dword [0x1002af50]
test eax, eax
jne 0x10011f34
lea ecx, [ebp - 0x18]
call fcn.10011f9e
mov ecx, dword [ebp - 0x24]
test eax, eax
mov dword [ebp - 0x18], ecx
jne 0x10011f34
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
push edi
call esi
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push ebx
push dword [ebp - 0x18]
call dword [0x1002af5c]
call sym.qqfoToolbar.DLL_DllUnregisterServer
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.100033c1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.100033c1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.10011f9e
push 1
pop esi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.100033c1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.100033c1
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x10013434
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
and dword [ebp - 8], 0
push esi
push edi
push 2
push 0
push dword [ebp + 8]
mov dword [ebp - 4], ecx
call dword [0x1002afc8]
mov edi, eax
test edi, edi
mov dword [ebp + 8], edi
jne 0x10013483
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1001346e
call esi
mov esi, eax
jmp 0x10013548
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x10013548
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [0x1002af80]
mov esi, eax
test esi, esi
jne 0x100134b7
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x100134c7
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1001353f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x100134cb
jmp 0x10013496
call esi
jmp 0x1001353d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov edi, ebx
cmp byte [esi + ebx], 0
je 0x100134fe
lea eax, [esi + 1]
add eax, 3
and al, 0xfc
call fcn.10016460
lea eax, [esi + 1]
mov edi, esp
push eax
push ebx
push edi
call fcn.10016f20
add esp, 0xc
and byte [edi + esi], 0
test edi, edi
jne 0x10013506
xor ebx, ebx
jmp 0x10013531
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.10016460
mov ebx, esp
push esi
push ebx
xor eax, eax
push 0xffffffffffffffff
push edi
push eax
push eax
mov word [ebx], ax
call dword [0x1002afd0]
push dword [ebp + 0x14]
lea ecx, [ebp - 8]
push ebx
call fcn.10013554
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea esp, [ebp - 0x14]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10015a5d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x1002c034]
sub esp, 0x528
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x10015a7f
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x10015bf4
push dword [0x10029eb8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10015bf4
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x528]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x10015ab4
mov byte [ebp - 0x528], bl
push esi
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x10015acc
mov byte [ebp - 0x320], bl
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 4]
call edi
test eax, eax
jne 0x10015aea
mov byte [ebp - 0x110], bl
push esi
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call edi
test eax, eax
pop edi
jne 0x10015b07
mov byte [ebp - 0x218], bl
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.100159c2
lea eax, [ebp - 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10015b24
sub eax, edx
mov ecx, eax
lea eax, [ebp - 0x420]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10015b38
sub eax, esi
add eax, ecx
mov byte [ebp + eax - 0x217], bl
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.100159c2
lea eax, [ebp - 8]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10015b67
sub eax, ecx
lea ecx, [ebp - 0x420]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x10015b79
sub ecx, esi
add ecx, eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x320]
push eax
mov byte [ebp + ecx - 0x10f], bl
call fcn.100158fc
test eax, eax
pop esi
jne 0x10015bba
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x320]
push eax
call fcn.100158fc
test eax, eax
jne 0x10015be8
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x528]
push eax
call fcn.100158fc
test eax, eax
jne 0x10015bf4
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x528]
push eax
call fcn.100158fc
test eax, eax
je 0x10015bf4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
pop ebx
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1001751b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10019218
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x1001753e
test byte [esp + 8], 2
je 0x1001753e
call fcn.1001928b
mov dword [eax], 0xd
call fcn.10019294
mov dword [eax], 5
jmp 0x10017517
xor eax, eax
ret
Function at 0x1001d916
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1002aa68
cmp edx, dword [eax]
je 0x1001d938
add eax, 8
inc ecx
cmp eax, 0x1002aaf8
jl 0x1001d929
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1002aa68]
jne 0x1001da66
mov eax, dword [0x1002bc7c]
cmp eax, 1
je 0x1001da40
test eax, eax
jne 0x1001d969
cmp dword [0x1002bc80], 1
je 0x1001da40
cmp edx, 0xfc
je 0x1001da66
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1001d9a0
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10016360
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.100162e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1001d9e3
lea eax, [ebp - 0x1a4]
push eax
call fcn.100162e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1002366c
push edi
call fcn.1001f180
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10016360
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10016370
lea eax, [ebp - 0xa0]
push 0x1002364c
push eax
call fcn.10016370
push dword [esi + 0x1002aa6c]
lea eax, [ebp - 0xa0]
push eax
call fcn.10016370
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1001f7ab
add esp, 0x2c
pop edi
jmp 0x1001da66
lea eax, [ebp + 8]
lea esi, [esi + 0x1002aa6c]
push 0
push eax
push dword [esi]
call fcn.100162e0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401870
Capabilities:
Get process heap flags

Disassembly:
push esi
push ebx
sub esp, 0x44
lea eax, [esp + 0x24]
mov dword [esp + 0xc], 0x406cd8
mov dword [esp + 0x10], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x406ce8
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x30], 0x10
mov dword [esp + 0x34], 0x6f
call sym._CoCreateInstance_20
sub esp, 0x14
test eax, eax
js 0x4019d0
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x30]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 8
test eax, eax
js 0x4019a0
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x28]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x10]
sub esp, 8
test eax, eax
js 0x4019a0
mov dword [esp + 8], 0x4c
mov dword [esp + 4], 8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x4019a0
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], str.DxDiag_SystemInfo
mov dword [esp], eax
call dword [edx + 0x14]
sub esp, 0xc
test eax, eax
js 0x401998
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dbg.fill_system_information
mov esi, eax
mov eax, dword [esp + 0x2c]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
test esi, esi
jne 0x401a08
mov eax, ebx
call sym._free_dxdiag_information.part.0
nop
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4019b3
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x4019c8
mov eax, dword [ebx]
mov dword [esp], ebx
xor ebx, ebx
call dword [eax + 8]
sub esp, 4
add esp, 0x44
mov eax, ebx
pop ebx
pop esi
ret
test byte [section..data], 2
je 0x4019a0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.IDxDiagProvider_instance_creation_failed_with_0x_08x_n
mov dword [esp + 8], str.collect_dxdiag_information
mov dword [esp + 4], 0x404000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x4019a0
mov eax, dword [esp + 0x28]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, ebx
sub esp, 4
add esp, 0x44
pop ebx
pop esi
ret