joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448bc1
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x462040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0043e11a
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0043e11a
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x448c38
cmp word [ecx], dx
je 0x448c38
mov eax, dword [0x4563cc]
push edi
dec eax
push eax
push 0x4562b8
call fcn.00448b60
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x448cab
cmp word [eax], dx
je 0x448cab
mov eax, dword [edi]
test eax, eax
je 0x448c5c
cmp word [eax], dx
je 0x448c5c
lea eax, [ebp - 0x10]
push eax
call fcn.00448543
jmp 0x448c65
lea eax, [ebp - 0x10]
push eax
call fcn.004485de
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x448cd5
mov eax, dword [0x4562b4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x455fa8
call fcn.00448b60
add esp, 0xc
test al, al
je 0x448cd5
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x448ca0
cmp word [eax], di
je 0x448ca0
lea eax, [ebp - 0x10]
push eax
call fcn.00448543
pop ecx
jmp 0x448cd7
lea eax, [ebp - 0x10]
push eax
call fcn.004485de
jmp 0x448c9d
mov eax, dword [edi]
test eax, eax
je 0x448cc2
cmp word [eax], dx
je 0x448cc2
lea eax, [ebp - 0x10]
push eax
call fcn.004484f8
pop ecx
jmp 0x448cd5
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x448da0
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004489e5
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x448da0
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x448da0
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x448da0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x448d2d
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0043ec3f
test ebx, ebx
je 0x448d9b
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0043ec3f
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x448da0
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x448da0
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0044c234
add esp, 0x10
xor eax, eax
inc eax
jmp 0x448da2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042c174
leave
ret
Function at 0x44df50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44df7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44df7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x200034a5
Capabilities:
Create thread

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], 1
call fcn.2000341f
mov ebp, eax
lea eax, [esp + 0x14]
xor ebx, ebx
push eax
push ebx
push esi
push 0x20003474
push ebx
push ebx
mov dword [esi + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, ebx
je 0x2000351a
mov eax, dword [esi]
push esi
call dword [eax + 4]
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x2000350d
mov edi, 0x20011410
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0xc], ebx
jne 0x20003508
mov dword [esi + 0xc], 2
push 1
pop esi
jmp 0x2000353c
cmp eax, ebx
jne 0x20003520
mov eax, dword [esi + 8]
mov dword [esp + 0x10], eax
jmp 0x20003520
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0x20011410
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0xc], ebx
jne 0x20003538
mov dword [esi + 0xc], 1
mov esi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x20003970
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
lea eax, [ebp + 0x10]
push edi
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call fcn.20006460
lea eax, [ebp - 0x104]
xor esi, esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [eax + 0x1a8], esi
je 0x200039d5
add eax, 0x84
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov edi, eax
cmp edi, esi
je 0x200039d5
lea eax, [ebp - 4]
push esi
push eax
push esi
push 1
push esi
push esi
push esi
push 4
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop edi
pop esi
leave
ret
Function at 0x20004b5a
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov eax, 0x2000bc30
call fcn.20006264
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x18], ecx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, ebx
jl 0x20004c7c
mov ecx, dword [ebp - 0x18]
call fcn.20004edd
push ebx
push ebx
push 1
push 0x64
push dword [ebp - 0x18]
call dword [sym.imp.ATL.DLL_AtlModuleUpdateRegistryFromResourceD]
mov dword [ebp - 0x14], ebx
mov esi, 0x20006
lea ecx, [ebp - 0x14]
push esi
push str.AppID
push 0x80000000
mov dword [ebp - 4], ebx
call fcn.20004b1c
mov edi, eax
cmp edi, ebx
je 0x20004bd0
cmp dword [ebp - 0x14], ebx
je 0x20004c7a
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x20004c7a
mov dword [ebp - 0x10], ebx
push esi
push str.55F3F296_4775_4AE9_B0AA_52393842EF3C
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.20004b1c
mov edi, eax
cmp edi, ebx
jne 0x20004c5d
push str.LocalService
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp dword [ebp + 0xc], ebx
je 0x20004c48
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, str.HP_Port_Resolver
push edi
call esi
inc eax
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push ebx
push str.LocalService
push dword [ebp - 0x10]
call edi
mov ebx, str._Service
push ebx
call esi
inc eax
push eax
push ebx
push 1
push 0
push str.ServiceParameters
push dword [ebp - 0x10]
call edi
mov ecx, dword [ebp - 0x18]
call fcn.20004e51
xor ebx, ebx
push ebx
push dword [ebp + 8]
push dword [ebp - 0x18]
call dword [sym.imp.ATL.DLL_AtlModuleRegisterServer]
mov edi, eax
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x20004c70
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x20004c7a
push dword [ebp - 0x14]
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x20004d4d
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 0xc]
mov dword [esi + 0x70], 0x2000e040
mov dword [0x20011408], esi
push dword [ebp + 8]
mov dword [esi], 0x84
mov dword [esi + 0x64], 0x300
push esi
call dword [sym.imp.ATL.DLL_AtlModuleInit]
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x20004d9b
push 0x10
push dword [ebp + 0x10]
push 0x200113f8
call fcn.200064c0
add esp, 0xc
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov edi, 0x94
mov dword [esi + 0x18], eax
push edi
lea eax, [ebp - 0xb8]
push ebx
push eax
call fcn.20005b00
add esp, 0xc
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xb8], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0xa8], 2
jne 0x20004dec
cmp dword [ebp - 0xb4], 5
jae 0x20004e42
mov eax, dword [ebp - 0x10]
cmp eax, 1
jbe 0x20004e42
or dword [esi + 0x74], 0xffffffff
add eax, eax
xor ecx, ecx
test eax, 0x80000000
jne 0x20004e0e
shr dword [esi + 0x74], 1
shl eax, 1
inc ecx
cmp ecx, 0x20
jl 0x20004dfc
shr dword [esi + 0x74], 1
mov eax, dword [esi + 0x74]
lea eax, [eax*4 + 4]
push eax
push ebx
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x78], eax
xor edi, edi
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov ecx, dword [esi + 0x78]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, dword [esi + 0x74]
jbe 0x20004e2b
jmp 0x20004e48
mov dword [esi + 0x78], ebx
mov dword [esi + 0x74], ebx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0xc

Function at 0x20004edd
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push esi
push edi
mov esi, ecx
call fcn.2000392d
test eax, eax
jne 0x20004ef2
push 1
pop eax
jmp 0x20004f59
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x20004f0b
xor eax, eax
jmp 0x20004f59
add esi, 0x84
push 0x10020
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x20004f2d
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x20004f07
lea eax, [esp + 8]
push ebx
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call esi
push edi
call esi
xor eax, eax
test ebx, ebx
setne al
pop ebx
pop edi
pop esi
add esp, 0x1c
ret
Function at 0x20005767
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call fcn.200056fe
test al, al
je 0x20005793
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x20005836
mov esi, dword [ebp + 0x18]
push dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp + 0x18], eax
call fcn.2000583b
mov edi, dword [ebp + 0x10]
pop ecx
push esi
xor ebx, ebx
push dword [ebp + 0x14]
mov dword [ebp - 4], eax
push edi
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov dword [ebp + 0xc], eax
call fcn.200059eb
mov eax, dword [edi]
pop ecx
cmp eax, 7
jne 0x200057d4
push 0xb
pop eax
jmp 0x20005836
cmp eax, 1
je 0x200057de
cmp eax, 2
jne 0x20005833
mov eax, 0xea
cmp dword [ebp + 0xc], eax
jne 0x200057f0
mov ecx, dword [esi]
shl ecx, 1
mov dword [esi], ecx
jmp 0x20005836
push ebx
push ebx
push dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [ebp + 0x14]
push ebx
push ebx
call edi
cmp dword [ebp + 0x18], eax
jae 0x2000580f
mov dword [esi], eax
mov eax, 0xea
jmp 0x20005836
push dword [ebp + 0x14]
call fcn.2000682b
pop ecx
mov dword [ebp + 0x10], eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [esi]
push eax
push ebx
push ebx
call edi
push dword [ebp + 0x10]
mov dword [esi], eax
call fcn.200059eb
pop ecx
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x20009d78
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x20010d40
cmp edx, dword [eax]
je 0x20009d9a
add eax, 8
inc ecx
cmp eax, 0x20010dd0
jl 0x20009d8b
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x20010d40]
jne 0x20009ec8
mov eax, dword [0x200115f4]
cmp eax, 1
je 0x20009ea2
test eax, eax
jne 0x20009dcb
cmp dword [0x2000eb64], 1
je 0x20009ea2
cmp edx, 0xfc
je 0x20009ec8
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x20009e02
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.20009490
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.20009410
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x20009e45
lea eax, [ebp - 0x1a4]
push eax
call fcn.20009410
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x2000c714
push edi
call fcn.2000b380
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.20009490
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.200094a0
lea eax, [ebp - 0xa0]
push 0x2000c6f4
push eax
call fcn.200094a0
push dword [esi + 0x20010d44]
lea eax, [ebp - 0xa0]
push eax
call fcn.200094a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.2000b2ef
add esp, 0x2c
pop edi
jmp 0x20009ec8
lea eax, [ebp + 8]
lea esi, [esi + 0x20010d44]
push 0
push eax
push dword [esi]
call fcn.20009410
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 0x401670
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422d5a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x50]
mov ecx, 0x11
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x78
call fcn.0040124e
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x88
call fcn.0040119a
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0xa0
call fcn.00401217
mov byte [ebp - 4], 2
push 0x40107d
push 2
push 0xbc
mov eax, dword [ebp - 0x10]
add eax, 0x35c
push eax
call fcn.004011cc
push 0x4011bd
push 6
push 0xbc
mov ecx, dword [ebp - 0x10]
add ecx, 0x4d4
push ecx
call fcn.004011cc
push 0x4011a4
push 0x14
push 0x24
mov edx, dword [ebp - 0x10]
add edx, 0x940
push edx
call fcn.004011cc
mov ecx, dword [ebp - 0x10]
add ecx, 0xc10
call fcn.00401096
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x43401c
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x14], 1
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 1
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x30], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x34], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x38], 0
mov ecx, dword [ebp - 0x10]
mov dword [0x437c84], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x50
cmp ebp, esp
call fcn.0040d590
mov esp, ebp
pop ebp
ret

Function at 0x411c50
Capabilities:
Encode data using xor

Disassembly:
outsd dx, dword [esi]
mov esp, dword [ebp + 0x44]
jnp 0x411c55
invalid
js 0x411cb9
not bl
mov ecx, dword [ebx - 0x73e851f2]
sbb ah, ah
ror byte [ebx], cl
ret
push edi
out 0x8e, eax
invalid

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00431219
Function at 0x1007de1
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 1
push 0x1b
push 0x10015dc
lea ecx, [ebp - 0x40]
call fcn.01014882
mov esi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], ebx
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
push 0x22
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], 0x10032b8
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
pop eax
cmp esi, ebx
jne 0x1007e33
mov dword [ebp - 0x40], 0x80070057
mov word [ebp - 0x3a], ax
jmp 0x1007eec
push dword [esi]
mov dword [ebp - 0x40], ebx
mov word [ebp - 0x3c], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1007e78
test al, 0x10
je 0x1007e55
mov dword [ebp - 0x40], ebx
push 0x2a
jmp 0x1007ee7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1007e6e
call fcn.01015b4b
push 0x34
mov dword [ebp - 0x40], eax
pop eax
jmp 0x1007e2a
push 0x34
pop eax
mov dword [ebp - 0x40], ebx
mov word [ebp - 0x3c], ax
push ebx
lea eax, [ebp - 4]
push eax
push 1
push 0x1001508
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x1007e96
call fcn.01015b4b
push 0x3f
jmp 0x1007e68
mov esi, dword [esi]
push 0x3f
pop eax
mov word [ebp - 0x3c], ax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push esi
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1007eec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1007ed0
xor eax, eax
cmp eax, ebx
jle 0x1007ede
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
mov dword [ebp - 0x40], eax
push 0x4c
jl 0x1007e6b
pop eax
mov word [ebp - 0x3c], ax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [ebp - 0x40]
lea ecx, [ebp - 0x1c]
call fcn.01016fc9
lea ecx, [ebp - 0x40]
call fcn.01014a83
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x1007f16
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
xor esi, esi
inc esi
push esi
push 0x55
push 0x100166c
lea ecx, [ebp - 0x34]
call fcn.01014882
xor ebx, ebx
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x10], 0x10032b8
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
cmp dword [ebp - 4], esi
jbe 0x1007f87
push 0x1001664
push dword [edi + esi*4]
mov edx, 0x1001660
lea ecx, [ebp - 0x10]
call fcn.01017976
push 0x61
mov dword [ebp - 0x34], eax
cmp eax, ebx
pop eax
jl 0x1007fbe
inc esi
mov word [ebp - 0x30], ax
cmp esi, dword [ebp - 4]
jb 0x1007f5e
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_RegisterApplicationRestart]
push 0x63
mov dword [ebp - 0x34], eax
cmp eax, ebx
pop eax
jl 0x1007fbe
push 0x10015f8
mov word [ebp - 0x30], ax
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov dword [0x101b3bc], eax
cmp eax, ebx
jne 0x1007fc4
call fcn.01015b4b
push 0x66
mov dword [ebp - 0x34], eax
pop eax
mov word [ebp - 0x2e], ax
jmp 0x1007fee
push 0x66
pop ecx
push 1
push eax
mov dword [ebp - 0x34], ebx
mov word [ebp - 0x30], cx
call dword [sym.imp.USER32.dll_ChangeWindowMessageFilter]
push dword [ebp - 4]
push edi
call fcn.0100cb8a
push 0x6b
mov dword [ebp - 0x34], eax
cmp eax, ebx
pop eax
jl 0x1007fbe
mov word [ebp - 0x30], ax
cmp edi, ebx
je 0x1007ff9
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [ebp - 0x34]
lea ecx, [ebp - 0x10]
call fcn.01016fc9
lea ecx, [ebp - 0x34]
call fcn.01014a83
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x1008569
Capabilities:
Enumerate gui resources

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
push 1
push 0xc1
push 0x1001744
lea ecx, [ebp - 0x30]
call fcn.01014882
mov ebx, dword [ebp + 0xc]
xor esi, esi
xor eax, eax
mov dword [ebp - 0xc], esi
lea edi, [ebp - 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
cmp ebx, esi
je 0x100859d
mov dword [ebx], esi
mov edi, dword [ebp + 8]
mov eax, 0xc9
cmp edi, esi
jne 0x10085b9
mov dword [ebp - 0x30], 0x80070057
mov word [ebp - 0x2a], ax
jmp 0x100865b
mov word [ebp - 0x2c], ax
mov eax, 0xca
cmp ebx, esi
je 0x10085a9
push 0x10015f8
mov dword [ebp - 0x30], esi
mov word [ebp - 0x2c], ax
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
cmp eax, esi
jne 0x10085eb
call fcn.01015b4b
mov dword [ebp - 0x30], eax
mov eax, 0xcd
jmp 0x10085b0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov ecx, 0xcd
push 0x100834a
mov dword [ebp - 0x30], esi
mov word [ebp - 0x2c], cx
mov dword [ebp - 8], edi
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
jne 0x1008638
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x1008627
and eax, 0xffff
or eax, 0x80070000
cmp eax, esi
mov dword [ebp - 0x30], eax
jge 0x1008638
mov eax, 0xd6
jmp 0x10085b0
mov eax, dword [ebp - 4]
cmp eax, esi
jne 0x100864d
mov dword [ebp - 0x30], 1
mov eax, 0xdb
jmp 0x1008657
mov dword [ebx], eax
mov dword [ebp - 0x30], esi
mov eax, 0xdf
mov word [ebp - 0x2c], ax
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x30]
call fcn.01014a83
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x100880d
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push 1
push 0x18a
push 0x1001784
lea ecx, [ebp - 0x24]
call fcn.01014882
mov esi, 0xffff
mov eax, 0x18e
cmp dword [ebp + 0x10], esi
jbe 0x1008846
mov dword [ebp - 0x24], 0x80070057
mov word [ebp - 0x1e], ax
jmp 0x1008899
cmp dword [ebp + 8], 0
mov word [ebp - 0x20], ax
mov eax, 0x18f
je 0x1008839
and dword [ebp - 0x24], 0
push 0
mov word [ebp - 0x20], ax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x1008899
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1008889
and eax, esi
or eax, 0x80070000
mov dword [ebp - 0x24], eax
test eax, eax
mov eax, 0x195
jl 0x1008840
mov word [ebp - 0x20], ax
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x24]
call fcn.01014a83
mov eax, esi
pop esi
leave
ret 0xc