joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51aca0
Capabilities:
Link many functions at runtime

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], 0
call fcn.0051aaf0
mov ecx, dword [eax + 4]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test ecx, ecx
je 0x51ad16
mov edi, dword [esi + 4]
mov ebx, dword [esi + 8]
cmp edi, ebx
je 0x51acf2
call fcn.0051aaf0
mov esi, eax
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x51ace6
mov eax, dword [esi]
push str.GdipCreateFromHDC2
push eax
call ebp
mov dword [esi + 0x24], eax
lea ecx, [esp + 0x10]
push ecx
push ebx
push edi
call dword [esi + 0x24]
jmp 0x51ad16
call fcn.0051aaf0
mov esi, eax
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x51ad0d
mov edx, dword [esi]
push str.GdipCreateFromHDC
push edx
call ebp
mov dword [esi + 0x28], eax
lea eax, [esp + 0x10]
push eax
push edi
call dword [esi + 0x28]
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x51ad26
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
call fcn.0051aaf0
mov esi, eax
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x51ad41
mov ecx, dword [esi]
push str.GdipSetPageUnit
push ecx
call ebp
mov dword [esi + 0x18], eax
push 2
push edi
call dword [esi + 0x18]
mov edi, dword [esp + 0x10]
call fcn.0051aaf0
mov esi, eax
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x51ad66
mov edx, dword [esi]
push str.GdipSetSmoothingMode
push edx
call ebp
mov dword [esi + 0x1c], eax
push 2
push edi
call dword [esi + 0x1c]
mov edi, dword [esp + 0x10]
call fcn.0051aaf0
mov esi, eax
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x51ad8b
mov eax, dword [esi]
push str.GdipSetPixelOffsetMode
push eax
call ebp
mov dword [esi + 0x14], eax
push 4
push edi
call dword [esi + 0x14]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x549d80
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00533c20
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x549e4b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x549e4b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x549dfe
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x549e09
or bh, 8
and edi, 0x8000000
je 0x549e24
mov eax, dword [0x5de99c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x549e4b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x54a220
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x54a24b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x54a26f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x54a28a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x54df74
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x54df96
cmp dword [edi + 0x3c], 0
jne 0x54df96
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00565cac
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0054dfc3
pop edi
pop esi
pop ebx
ret 8

Function at 0x54e011
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.00565cac
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x54e042
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.0054e055
pop edi
pop esi
pop ebx
ret 8

Function at 0x54f694
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x54f6cc
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00552bcf
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00552ba7
jmp 0x54f6d8
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5512f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x551332
call fcn.00565cac
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x551332
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x551329
xor eax, eax
jmp 0x55133a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00551340
pop edi
pop esi
pop ebx
ret 4
Function at 0x56666e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.00565cac
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x5666ab
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5666ab
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x5666af
xor eax, eax
jmp 0x56672d
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.0054dd66
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x5666e7
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x5666d1
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.0056681e
push ebx
mov edi, eax
call fcn.0054dd8f
test edi, edi
pop ecx
je 0x566729
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.005665e7
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.00566732
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x567d2c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x567d5a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x567d78
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00567c92
jmp 0x567d78
mov eax, dword [esi + 0x14]
test eax, eax
je 0x567d78
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00567c92
test edi, edi
mov eax, edi
jne 0x567d62
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1003756
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x1003802
mov eax, dword [ebp + 0xc]
dec eax
je 0x10038f5
dec eax
je 0x10038f0
dec eax
je 0x1003792
push 1
call fcn.0100b7bd
push ebx
push 0x290
jmp 0x10037e6
mov esi, 0x104
push esi
push dword [0x10149c8]
call sub.GUtils.dll_gmem_get
push eax
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push dword [ebp - 4]
push ebx
push 0x100140c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x94]
push 0x42
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, ebx
mov dword [ebp - 8], eax
jge 0x100380b
push 1
call fcn.0100b7bd
push ebx
push 0x28f
call fcn.0100e675
push eax
push dword [0x10149c4]
call sub.GUtils.dll_Trace_Error
push ebx
mov dword [0x101523c], eax
call fcn.0100b7bd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
cmp dword [edi + 8], ebx
jne 0x1003816
push edi
call fcn.01003c8d
push dword [edi + 8]
call sub.GUtils.dll_List_First
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x10038df
mov esi, dword [sym.imp.KERNEL32.dll__lwrite]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push dword [ebp + 0xc]
mov ebx, 0x1001404
mov dword [ebp + 8], ebx
call fcn.01009789
dec eax
je 0x1003882
sub eax, 6
je 0x1003879
dec eax
je 0x1003870
dec eax
je 0x1003867
dec eax
je 0x100385e
dec eax
je 0x1003879
dec eax
je 0x1003870
jmp 0x1003885
mov dword [ebp + 8], 0x10013fc
jmp 0x1003885
mov dword [ebp + 8], 0x10013f4
jmp 0x1003885
mov dword [ebp + 8], 0x10013ec
jmp 0x1003885
mov dword [ebp + 8], 0x10013e4
jmp 0x1003885
mov dword [ebp + 8], ebx
push dword [ebp + 0xc]
call fcn.0100621f
mov ebx, eax
test ebx, ebx
je 0x10038cc
push ebx
call fcn.0100a7a0
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
call edi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call esi
push dword [ebp - 0xc]
call edi
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
call esi
push dword [ebp + 0xc]
call fcn.0100a7a0
cmp ebx, eax
je 0x10038cc
push ebx
call sub.GUtils.dll_List_Next
jmp 0x100388d
push dword [ebp + 0xc]
call sub.GUtils.dll_List_Next
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x1003835
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [ebp - 4]
jmp 0x1003804
mov edi, dword [edi + 4]
jmp 0x10038f7
mov edi, dword [edi]
cmp edi, ebx
je 0x1003802
push edi
call fcn.0100621f
push eax
call fcn.01007e0e
jmp 0x1003804
Function at 0x100683d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
xor eax, eax
cmp dword [ebp + 0x10], eax
sete al
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01006682
cmp eax, dword [ebp + 0x10]
jne 0x1006864
push 1
pop eax
jmp 0x10068af
lea eax, [ebp - 0x104]
push 0x1001544
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x104]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x10068af
lea eax, [ebp + 0x10]
push 4
push eax
push 4
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 0xc

Function at 0x1007e0e
Capabilities:
Delete file
Get common file path

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
test esi, esi
push edi
jne 0x1007e21
xor eax, eax
jmp 0x1007f65
mov eax, dword [esi + 0x1c]
mov ebp, dword [eax + 4]
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x1007f65
cmp dword [ebp + 0x104], eax
je 0x1007e41
mov eax, ebp
jmp 0x1007f65
mov edi, 0x104
push edi
push dword [0x10149c8]
call sub.GUtils.dll_gmem_get
mov ebx, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp + 0x108], 0
push ebx
je 0x1007f33
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, ebx
push eax
push ebx
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x5c
mov eax, dword [esi]
jne 0x1007e85
inc eax
inc eax
jmp 0x1007e86
inc eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
push dword [0x10149c8]
call sub.GUtils.dll_gmem_get
push eax
push edi
mov dword [esi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [esi + 0x20]
push eax
push 0
push 0x100140c
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov eax, dword [esi + 0x1c]
push 1
pop ebp
mov dword [esi + 0x24], ebp
mov eax, dword [eax + 4]
push dword [eax + 0x128]
push dword [eax + 0x124]
push dword [esi + 0x20]
push ebx
push dword [eax + 0x11c]
call fcn.01010bf0
test eax, eax
jne 0x1007f21
push ebp
call fcn.0100b7bd
xor ebp, ebp
push ebp
push 0x10016e4
push dword [0x10149c4]
call sub.GUtils.dll_Trace_Error
push ebp
mov dword [0x101523c], eax
call fcn.0100b7bd
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
push dword [esi + 0x20]
push dword [0x10149c8]
call sub.GUtils.dll_gmem_free
mov dword [esi + 0x20], ebp
push edi
push ebx
push dword [0x10149c8]
call sub.GUtils.dll_gmem_free
mov eax, dword [esi + 0x20]
jmp 0x1007f65
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, ebx
push eax
push ebx
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x5c
mov eax, dword [esi + 0x1c]
mov eax, dword [eax]
jne 0x1007f51
inc eax
inc eax
jmp 0x1007f52
inc eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x1008326
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], 1
push dword [ebp + 0xc]
call fcn.01007d72
push dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov esi, eax
push edi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, edi
push eax
push edi
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x5c
je 0x1008371
push 0x10016d8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x5c
mov dword [ebp + 0x10], esi
push esi
call fcn.0100e52f
test eax, eax
mov dword [ebp + 8], eax
je 0x10083e7
push 2
push 0x1001700
push dword [ebp + 0x10]
call fcn.0100e602
test eax, eax
je 0x10083db
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, dword [ebp + 8]
mov esi, eax
sub ebx, dword [ebp + 0x10]
add esi, edi
push ebx
push dword [ebp + 0x10]
push esi
call fcn.0100e562
and byte [esi + ebx], 0
push edi
call fcn.01008906
test eax, eax
jne 0x10083cf
push edi
call dword [sym.imp.MSVCRT.dll__mkdir]
test eax, eax
pop ecx
je 0x10083cf
and dword [ebp - 4], 0
push 0x10016d8
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp + 8]
push 0x5c
inc eax
mov dword [ebp + 0x10], eax
push eax
jmp 0x1008377
push dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.01007dd9
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10088e5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10088f8
xor eax, eax
jmp 0x1008903
not al
movzx eax, al
shr eax, 4
and eax, 1
ret 4

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1008919
xor eax, eax
jmp 0x1008922
movzx eax, al
shr eax, 4
and eax, 1
ret 4
Function at 0x1008c47
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push dword [edi + 0x10]
lea ebx, [edi + 0x10]
call sub.GUtils.dll_List_First
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x1008cc4
push dword [esi]
call ebp
push eax
push dword [esi]
push dword [0x10149c8]
call sub.GUtils.dll_gmem_free
mov eax, dword [esi + 0x20]
test eax, eax
je 0x1008cb8
cmp dword [esi + 0x24], 0
je 0x1008ca1
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0xfe
push eax
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x104
push dword [esi + 0x20]
push dword [0x10149c8]
call sub.GUtils.dll_gmem_free
and dword [esi + 0x20], 0
push esi
call sub.GUtils.dll_List_Next
mov esi, eax
test esi, esi
jne 0x1008c66
push ebx
call sub.GUtils.dll_List_Destroy
push dword [edi + 0x14]
lea esi, [edi + 0x14]
call sub.GUtils.dll_List_First
mov ebx, eax
test ebx, ebx
je 0x1008ce9
push ebx
call fcn.01008c47
push ebx
call sub.GUtils.dll_List_Next
jmp 0x1008cd5
push esi
call sub.GUtils.dll_List_Destroy
push dword [edi]
call ebp
inc eax
push eax
push dword [edi]
push dword [0x10149c8]
call sub.GUtils.dll_gmem_free
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x1008d5d
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c8
push ebx
push esi
lea eax, [ebp - 0x1c8]
push 0x40
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1008dbc
lea eax, [ebp - 0x140]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, esi
jne 0x1008d99
xor eax, eax
jmp 0x1008dde
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x12c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x128]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x120]
jmp 0x1008dde
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp + 0xc]
mov ebx, eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, ebx
pop esi
pop ebx
leave
ret 8
Function at 0x100a561
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Delete file
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x370
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, 0x104
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
xor ebx, ebx
push edi
push ebx
push 0x1001958
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push ebx
push 0x100
lea eax, [ebp - 0x10]
push 2
push eax
push 2
push 0x40000000
push edi
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x100a5c7
xor eax, eax
jmp 0x100a68f
push dword [ebp + 0xc]
lea eax, [ebp - 0x370]
push 0x100194c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor eax, eax
lea edi, [ebp - 0x64]
push 0x11
pop ecx
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff6
mov dword [ebp - 0x64], 0x44
mov dword [ebp - 0x38], 0x101
call edi
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
push 0xfffffffffffffff4
mov dword [ebp - 0x28], eax
call edi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x168]
push eax
push esi
mov word [ebp - 0x34], bx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call esi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push 0x20
push 1
push ebx
lea eax, [ebp - 0x370]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x100a670
push 0xffffffffffffffff
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x20]
call edi
push dword [ebp - 0x1c]
call edi
jmp 0x100a67e
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp + 0x10]
mov byte [eax], bl
push dword [ebp - 4]
call edi
lea eax, [ebp - 0x168]
push eax
call esi
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc