joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100510b3
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor esi, esi
push edi
mov edi, ecx
mov dword [ebp - 8], esi
mov eax, dword [edi]
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 1
call dword [eax + 0xc]
mov ebx, eax
test ebx, ebx
je 0x100511ad
push 5
push dword [ebp + 8]
mov dword [edi + 0x664], ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push esi
lea eax, [ebp - 0x14]
push eax
mov esi, 0x100511f4
push esi
push 0
push 0
call fcn.1007a036
xor ecx, ecx
push ecx
push ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push eax
push esi
push ecx
push ecx
call fcn.1007a036
add esp, 0x30
mov dword [ebp - 4], eax
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 1
lea eax, [ebp - 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov esi, eax
call fcn.10059d7f
cmp esi, 0x102
je 0x1005112a
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x100ec040], esi
jne 0x1005116f
push esi
call fcn.1006907f
pop ecx
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x14]
push eax
push dword [ebp + 0xc]
call fcn.10052dea
pop ecx
pop ecx
test eax, eax
jne 0x10051191
push 0x1016
call fcn.1005868d
pop ecx
jmp 0x100511ad
push dword [ebp + 0xc]
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, edi
call dword [eax + 8]
push dword [ebp + 0xc]
mov eax, dword [edi]
lea ecx, [ebp - 0x20]
push ecx
mov ecx, edi
call dword [eax + 8]
mov eax, dword [ebp + esi*4 - 8]
test eax, eax
je 0x100511c1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp + esi*4 - 8], 0
inc esi
cmp esi, 2
jl 0x100511ad
lea eax, [ebp - 0x14]
push eax
call fcn.10052e24
lea eax, [ebp - 0x20]
push eax
call fcn.10052e24
pop ecx
pop ecx
test ebx, ebx
je 0x100511ed
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
and dword [edi + 0x664], 0
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1005b7ed
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x1005b880
push ebx
push dword [ebp + 0x10]
push edi
call fcn.100779cf
pop ecx
inc eax
pop ecx
mov dword [ebp + 0xc], eax
add eax, eax
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x1005b877
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 4], eax
test eax, eax
je 0x1005b848
push dword [ebp + 0x10]
push edi
call fcn.100779cf
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.10078398
add esp, 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1005b877
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x1005b877
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x1005b87f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x1005dcb0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x100e5bc8]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, 0x11c
push edi
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.10074510
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1005dd66
cmp dword [ebp - 0x110], 2
jne 0x1005dd66
cmp dword [ebp - 0x11c], 5
jne 0x1005dd66
push edi
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.10074510
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1005dd66
cmp dword [ebp - 0x110], 2
jne 0x1005dd66
cmp dword [ebp - 0x11c], 5
jne 0x1005dd66
xor eax, eax
inc eax
cmp dword [ebp - 0x118], eax
jne 0x1005dd56
cmp word [ebp - 0xc], ax
ja 0x1005dd66
jmp 0x1005dd68
cmp dword [ebp - 0x118], 2
jne 0x1005dd66
cmp word [ebp - 0xc], 0
je 0x1005dd68
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.10075551
leave
ret

Function at 0x10061ee3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push edi
xor ebx, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
push ebx
push ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0x10061f4e
push ebx
push ebx
mov dword [ebp - 4], ebx
call fcn.1007a036
mov edi, eax
add esp, 0x18
test edi, edi
je 0x10061f47
cmp edi, 0xffffffff
je 0x10061f47
push esi
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
call fcn.10059d7f
cmp esi, 0x102
je 0x10061f1d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret
Function at 0x10068f22
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x100e5bc8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [ebp - 8], eax
call dword [sym.imp.ole32.dll_CoInitialize]
mov ebx, eax
lea eax, [ebp - 0x41c]
push eax
push 0x100d32fc
push 1
push 0
push 0x100d348c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x1006904a
test edi, edi
je 0x10068f91
xor eax, eax
cmp ax, word [edi]
je 0x10068f91
mov eax, dword [ebp - 0x41c]
push edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x41c]
mov esi, dword [ebp - 8]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x50]
xor eax, eax
push eax
push eax
push eax
push eax
push 0x101
lea eax, [ebp - 0x418]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.10077a5a
lea eax, [ebp - 0xc]
push eax
mov esi, 0x104
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.10077973
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.100779ee
mov eax, dword [ebp - 0x41c]
add esp, 0x3c
mov ecx, dword [eax]
lea edx, [ebp - 0x214]
push edx
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x41c]
lea edx, [ebp - 0x420]
mov ecx, dword [eax]
push edx
push 0x100d347c
push eax
call dword [ecx]
mov esi, eax
test esi, esi
js 0x1006903e
mov eax, dword [ebp - 0x420]
push 1
push dword [ebp - 0x424]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x420]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x41c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test ebx, ebx
js 0x10069054
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.10075551
leave
ret
Function at 0x1006cefe
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x100e5bc8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push ecx
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20c]
push 0x104
xor edi, edi
and dword [ebp - 0x21c], edi
push eax
mov dword [ebp - 0x220], ecx
call fcn.10077973
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
push eax
push 8
mov dword [ebp - 0x218], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x1006d048
push esi
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push edi
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1006d038
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x100cfcf8
push esi
call sub.VERSION.dll_VerQueryValueW
mov ecx, dword [ebp - 0x210]
mov edi, dword [ebp - 0x220]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push edi
push str.File___1_s__nfile_version:_____2_u_._3_u_._4_u_._5_u__n
push 0x100cfd34
push 5
call fcn.10009c3c
mov ecx, dword [ebp - 0x210]
movzx eax, word [ecx + 0x14]
push eax
movzx eax, word [ecx + 0x16]
push eax
movzx eax, word [ecx + 0x10]
push eax
movzx eax, word [ecx + 0x12]
push eax
push edi
push str.File___1_s__nproduct_version:__2_u_._3_u_._4_u_._5_u__n
push str.GetFileVersion
push 5
call fcn.10009c3c
mov ecx, dword [ebp - 0x210]
add esp, 0x40
cmp dword [ebp + 0x14], 0
je 0x1006d025
mov eax, dword [ecx + 0x10]
mov dword [ebx], eax
mov eax, dword [ecx + 0x14]
jmp 0x1006d02d
mov eax, dword [ecx + 8]
mov dword [ebx], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp - 0x214]
xor edi, edi
mov dword [ecx], eax
inc edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10075551
leave
ret
Function at 0x1006f987
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, word [ebp + 0xc]
push ebx
push esi
push edi
push 2
push eax
push dword [0x100eea28]
xor ebx, ebx
mov esi, ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1006fb14
push eax
push dword [0x100eea28]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1006fb14
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x1006fb14
mov ecx, 0x100
cmp dword [edi + 0x20], ebx
je 0x1006f9e4
movzx esi, word [edi + 0x20]
jmp 0x1006fa05
movzx eax, word [edi + 0xe]
dec eax
je 0x1006fa02
sub eax, 3
je 0x1006f9fe
sub eax, 4
je 0x1006f9fa
sub eax, 0x10
jmp 0x1006fa05
mov esi, ecx
jmp 0x1006fa05
push 0x10
jmp 0x1006fa04
push 2
pop esi
movzx eax, si
mov dword [ebp + 0xc], eax
lea eax, [eax*4 + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 8], eax
test eax, eax
je 0x1006faa5
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x1006fa95
mov word [ebx + 2], si
mov esi, dword [ebp + 0xc]
mov eax, 0x300
mov word [ebx], ax
test esi, esi
jle 0x1006fa6b
lea ecx, [ebx + 5]
lea edx, [edi + 0x29]
mov al, byte [edx + 1]
mov byte [ecx - 1], al
mov al, byte [edx]
mov byte [ecx], al
mov al, byte [edx - 1]
mov byte [ecx + 1], al
mov byte [ecx + 2], 0
lea edx, [edx + 4]
lea ecx, [ecx + 4]
dec esi
jne 0x1006fa4b
mov esi, dword [ebp + 0xc]
push ebx
call dword [sym.imp.GDI32.dll_CreatePalette]
mov ecx, dword [ebp + 0x10]
push 1
push eax
push dword [ebp + 8]
mov dword [ecx], eax
call dword [sym.imp.GDI32.dll_SelectPalette]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_RealizePalette]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x1006fa98
mov esi, dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor ebx, ebx
jmp 0x1006faa8
mov esi, dword [ebp + 0xc]
mov eax, dword [edi]
push 4
push dword [ebp + 8]
lea esi, [eax + esi*4]
add esi, edi
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SetBrushOrgEx]
mov eax, dword [ebp + 0x14]
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
test eax, eax
je 0x1006fade
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
sub ecx, dword [eax]
sub edx, dword [eax + 4]
push 0xcc0020
push ebx
push edi
push esi
push dword [edi + 8]
push dword [edi + 4]
push ebx
push ebx
push edx
push ecx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_StretchDIBits]
push 0x100cfdbc
push 0x100cfd90
push 5
call fcn.10009c3c
xor eax, eax
add esp, 0xc
inc eax
jmp 0x1006fb2a
push str.______________________OUT_ERROR__n
push str.CopyDIB
push 5
call fcn.10009c3c
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1006fbd7
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x100e5bc8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push str.SoftwareMicrosoftWindows_NTCurrentVersionProfileList_
mov edi, 0x100
lea eax, [ebp - 0x40c]
push edi
xor ebx, ebx
push eax
mov dword [ebp - 0x618], ebx
call fcn.10077973
push esi
lea eax, [ebp - 0x40c]
push edi
push eax
call fcn.100779ee
add esp, 0x18
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0x40c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x1006fc44
xor eax, eax
jmp 0x1006fd13
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
push str.ProfileImagePath
push dword [ebp - 0x618]
mov dword [ebp - 0x61c], 0x206
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x618]
test eax, eax
je 0x1006fc81
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1006fc3d
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x103
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.100779cf
cmp word [ebp + eax*2 - 0x20e], 0x5c
pop ecx
pop ecx
je 0x1006fcbb
push 0x100cfeb8
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.100779ee
add esp, 0xc
push 0x100cfebc
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.100779ee
push 0x208
lea eax, [ebp - 0x614]
push ebx
push eax
call fcn.10074510
add esp, 0x18
lea eax, [ebp - 0x614]
push 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x614]
push eax
push esi
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10075551
leave
ret
Function at 0x10072093
Capabilities:
Read .ini file

Disassembly:
push 0x21c
mov eax, 0x1008df71
call fcn.10075620
mov ebx, dword [ebp + 8]
xor esi, esi
push esi
xor eax, eax
push 0x100d2a94
lea ecx, [ebp - 0x228]
mov edi, esi
mov dword [ebp - 0x214], 7
mov dword [ebp - 0x218], esi
mov word [ebp - 0x228], ax
call fcn.100040be
push 0x100d2a98
push esi
push 0x100d2abc
push 0x100d2ad4
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
test esi, esi
je 0x1007214b
push 0x100d2aec
push 0x100
lea eax, [ebp - 0x210]
push eax
push 0x100d2b10
push 0x100d2b14
push 0x100d2b20
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x1007213a
push 0x100
lea eax, [ebp - 0x210]
push eax
push 2
jmp 0x10072140
push 0
push 0
push 1
push 1
push esi
call fcn.10009bc0
add esp, 0x14
push str.______________________IN_n
push 0x100d2b38
push 5
call fcn.10009c3c
lea eax, [ebp - 0x228]
push eax
push dword [0x100ea5d8]
mov dword [0x100ed5b8], 0x1000
call fcn.1006e5c9
add esp, 0x14
test eax, eax
je 0x100721cd
cmp dword [ebp - 0x214], 8
lea eax, [ebp - 0x228]
cmovae eax, dword [ebp - 0x228]
push eax
call fcn.10039ffb
pop ecx
test eax, eax
jne 0x100721cd
call fcn.10058bab
sub eax, 0x4000a
neg eax
sbb eax, eax
inc eax
push eax
push dword [0x100ea5d8]
call fcn.1003a147
pop ecx
pop ecx
test eax, eax
jne 0x100721cd
push ebx
call fcn.10052e67
pop ecx
mov edi, eax
call fcn.1003a252
call fcn.10044f57
call fcn.100452a9
push str.______________________OUT_n
push 0x100d2b50
push 5
call fcn.10009c3c
add esp, 0xc
lea ecx, [ebp - 0x228]
push 0
push 1
call fcn.10003d41
mov eax, edi
call fcn.100755cf
ret 4

Function at 0x10072204
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x100e5bc8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x100d2b68
xor edi, edi
push edi
push 0x100d2b8c
push 0x100d2ba4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
test esi, esi
je 0x1007228d
push ebx
push 0x100d2bbc
mov ebx, 0x100
push ebx
lea eax, [ebp - 0x204]
push eax
push 0x100d2be0
push 0x100d2be4
push 0x100d2bf0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x1007227d
push ebx
lea eax, [ebp - 0x204]
push eax
push 2
jmp 0x10072281
push edi
push edi
push 1
push 1
push esi
call fcn.10009bc0
add esp, 0x14
pop ebx
push str.______________________IN_n
push 0x100d2c08
push 5
call fcn.10009c3c
push edi
mov dword [0x100ed5b8], 0x1000
call fcn.10006518
mov esi, eax
call fcn.10044f57
call fcn.100452a9
push str.______________________OUT_n
push 0x100d2c20
push 5
call fcn.10009c3c
mov ecx, dword [ebp - 4]
add esp, 0x1c
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.10075551
leave
ret
Function at 0x100722de
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x100e5bc8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x100d2c38
xor edi, edi
push edi
push 0x100d2c5c
push 0x100d2c74
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
test esi, esi
je 0x10072367
push ebx
push 0x100d2c8c
mov ebx, 0x100
push ebx
lea eax, [ebp - 0x204]
push eax
push 0x100d2cb0
push 0x100d2cb4
push 0x100d2cc0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x10072357
push ebx
lea eax, [ebp - 0x204]
push eax
push 2
jmp 0x1007235b
push edi
push edi
push 1
push 1
push esi
call fcn.10009bc0
add esp, 0x14
pop ebx
push str.______________________IN_n
push 0x100d2cd8
push 5
call fcn.10009c3c
mov dword [0x100ed5b8], 0x1000
call fcn.1000854a
mov esi, eax
call fcn.10044f57
call fcn.100452a9
push str.______________________OUT_n
push 0x100d2cf4
push 5
call fcn.10009c3c
mov ecx, dword [ebp - 4]
add esp, 0x18
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.10075551
leave
ret
Function at 0x100726e7
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x100e5bc8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x100d1d54
xor ebx, ebx
push ebx
push 0x100d1d78
push 0x100d1d90
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
test esi, esi
je 0x10072775
push 0x100d1da8
push 0x100
lea eax, [ebp - 0x204]
push eax
push 0x100d1dcc
push 0x100d1dd0
push 0x100d1ddc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push ebx
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x10072766
push 0x100
lea eax, [ebp - 0x204]
push eax
push 2
jmp 0x1007276a
push ebx
push ebx
push 1
push 1
push esi
call fcn.10009bc0
add esp, 0x14
push str.______________________IN_n
push 0x100d1df4
push 5
call fcn.10009c3c
push edi
mov dword [0x100ed5b8], 0x1000
call fcn.10006518
mov esi, eax
call fcn.10044f57
call fcn.100452a9
push str.______________________OUT_n
push 0x100d1e0c
push 5
call fcn.10009c3c
mov ecx, dword [ebp - 4]
add esp, 0x1c
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10075551
leave
ret 4

Function at 0x1007323e
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x100e5bc8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100732fe
push edi
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x110]
push eax
push ebx
push ebx
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x110], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100732ed
cmp dword [ebp - 0x110], 2
mov byte [ebp - 5], bl
lea eax, [ebp - 0x108]
jne 0x100732de
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb ebx, ebx
inc ebx
jmp 0x100732ed
push eax
push edi
push esi
call fcn.10073370
xor ebx, ebx
test eax, eax
setns bl
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
jmp 0x10073300
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10075551
leave
ret
Function at 0x100825b1
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100e5bc8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.10080028
mov dword [ebp - 0x14], eax
cmp dword [0x100ef6bc], edi
jne 0x100826a2
push 0x800
push edi
push 0x100d55f8
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x1008262f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10082782
push 0x100d55f8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x10082782
push 0x100d5610
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10082782
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x100ef6bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x100ef6c0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x100ef6c4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x100ef6cc], eax
test eax, eax
je 0x1008269f
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x100ef6c8], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x100826c7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100826ba
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x100826dc
push 4
pop eax
jmp 0x10082784
cmp dword [ebp - 0x14], edi
je 0x100826dc
push dword [0x100ef6bc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x100826c1
mov eax, dword [0x100ef6c8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x1008273a
cmp dword [0x100ef6cc], esi
je 0x1008273a
push eax
call ebx
push dword [0x100ef6cc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1008273a
test eax, eax
je 0x1008273a
call ecx
test eax, eax
je 0x1008272f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1008272f
test byte [ebp - 8], 1
jne 0x1008273a
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x1008276a
mov eax, dword [0x100ef6c0]
cmp eax, esi
je 0x10082767
push eax
call ebx
test eax, eax
je 0x10082767
call eax
mov edi, eax
test edi, edi
je 0x10082767
mov eax, dword [0x100ef6c4]
cmp eax, esi
je 0x10082767
push eax
call ebx
test eax, eax
je 0x10082767
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x100ef6bc]
call ebx
test eax, eax
je 0x10082782
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x10082784
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10075551
leave
ret