joyce8/EMBER2024-capa huggingface dataset:
Function at 0x109047a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10951550
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 0
push 5
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esi + 0x10], 0
je 0x109048cd
mov eax, dword [esi + 0x14]
test eax, eax
je 0x109048cd
mov ecx, dword [sym.imp.Core.dll_int_GUnicodeOS]
cmp dword [ecx], 0
je 0x10904807
mov edx, dword [ebp + 8]
push edx
push 0
push 0xc
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x10904856
mov edi, dword [ebp + 8]
push edi
mov ebx, dword [sym.imp.Core.dll_int___cdecl_winGetSizeANSI_unsigned_short_int_const__]
call ebx
add esp, 4
test eax, eax
jne 0x1090481e
xor ebx, ebx
jmp 0x10904834
push edi
call ebx
add esp, 4
add eax, 7
and eax, 0xfffffff8
call fcn.10921870
mov dword [ebp - 0x10], esp
mov ebx, esp
push edi
call dword [sym.imp.Core.dll_int___cdecl_winGetSizeANSI_unsigned_short_int_const__]
push eax
push edi
push ebx
call dword [sym.imp.Core.dll_char____cdecl_winToANSI_char___unsigned_short_int_const___int_]
add esp, 0x10
push eax
push 0
push 0xc
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [sym.imp.Core.dll_int_GUnicodeOS]
push 0x640000
push 0
push 0x401
cmp dword [ecx], 0
je 0x10904879
mov edx, dword [esi + 0x10]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x10904883
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esi + 0x18]
push ecx
mov edi, dword [sym.imp.USER32.dll_UpdateWindow]
call edi
mov edx, dword [esi + 0x14]
push edx
call edi
mov eax, dword [esi + 0x14]
push eax
call edi
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
push 1
push 0
push 0
mov ecx, dword [esi + 0x18]
push ecx
lea edx, [ebp - 0x34]
push edx
call edi
test eax, eax
je 0x109048cd
lea eax, [ebp - 0x34]
push eax
call ebx
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x109048a7
add dword [esi + 0xc], 1
mov esi, dword [esi + 0xc]
xor edx, edx
test esi, esi
setg dl
mov eax, dword [sym.imp.Core.dll_int_GIsSlowTask]
mov dword [eax], edx
mov dword [ebp - 4], 0xffffffff
lea esp, [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x109049a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10951560
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 0
cmp dword [esi + 0xc], 0
jg 0x109049e5
push 0x73
push str.....CoreIncFFeedbackContextWindows.h
push str.SlowTaskCount_0
call dword [sym.imp.Core.dll_void___cdecl_appFailAssert_char_const___char_const___int_]
add esp, 0xc
or edi, 0xffffffff
add dword [esi + 0xc], edi
mov eax, dword [esi + 0xc]
xor ecx, ecx
test eax, eax
setg cl
mov edx, dword [sym.imp.Core.dll_int_GIsSlowTask]
mov dword [edx], ecx
mov eax, dword [sym.imp.Core.dll_int_GIsSlowTask]
cmp dword [eax], 0
jne 0x10904a13
push 0
mov ecx, dword [esi + 0x18]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1090cab0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x109518b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [sym.imp.Core.dll_int_GUnicodeOS]
cmp dword [eax], edi
je 0x1090cafb
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x1090cb4c
mov esi, dword [ebp + 8]
push esi
mov ebx, dword [sym.imp.Core.dll_int___cdecl_winGetSizeANSI_unsigned_short_int_const__]
call ebx
add esp, 4
test eax, eax
je 0x1090cb24
push esi
call ebx
add esp, 4
add eax, 7
and eax, 0xfffffff8
call fcn.10921870
mov dword [ebp - 0x10], esp
mov edi, esp
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push esi
call ebx
push eax
push esi
push edi
call dword [sym.imp.Core.dll_char____cdecl_winToANSI_char___unsigned_short_int_const___int_]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1090cb6b
or eax, eax
lea esp, [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x1090cb55
Function at 0x1090cc00
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x109518c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, dword [ebp + 8]
cmp dword [ebp + 0x10], ebx
je 0x1090cc43
mov eax, dword [sym.imp.Core.dll_int_GUnicodeOS]
cmp dword [eax], ebx
je 0x1090cc5d
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, dword [sym.imp.Core.dll_int___cdecl_winGetSizeANSI_unsigned_short_int_const__]
mov ecx, dword [sym.imp.Core.dll_int_GUnicodeOS]
push esi
cmp dword [ecx], 0
je 0x1090cca0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1090ccd9
push esi
mov edi, dword [sym.imp.Core.dll_int___cdecl_winGetSizeANSI_unsigned_short_int_const__]
call edi
add esp, 4
test eax, eax
je 0x1090cc83
push esi
call edi
add esp, 4
add eax, 7
and eax, 0xfffffff8
call fcn.10921870
mov dword [ebp - 0x10], esp
mov ebx, esp
push 0x80
push esi
call edi
push eax
push esi
push ebx
call dword [sym.imp.Core.dll_char____cdecl_winToANSI_char___unsigned_short_int_const___int_]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x1090cc49
call edi
add esp, 4
test eax, eax
jne 0x1090ccad
xor ebx, ebx
jmp 0x1090ccc3
push esi
call edi
add esp, 4
add eax, 7
and eax, 0xfffffff8
call fcn.10921870
mov dword [ebp - 0x10], esp
mov ebx, esp
push esi
call edi
push eax
push esi
push ebx
call dword [sym.imp.Core.dll_char____cdecl_winToANSI_char___unsigned_short_int_const___int_]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1090cd34
cmp dword [ebp + 0xc], eax
jne 0x1090cced
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1090cd34
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [sym.imp.Core.dll_class_FOutputDevice__GLog]
cmp dword [ecx], edi
je 0x1090cd17
push eax
push esi
push str.Error_deleting_file__s___d_
push 0x2ff
mov edx, dword [ecx]
push edx
call dword [sym.imp.Core.dll_public:_void___cdecl_FOutputDevice::Logf2_enum_EName__unsigned_short_int_const__]
add esp, 0x14
xor eax, eax
test edi, edi
setne al
lea esp, [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, 1
jmp 0x1090cd17
Function at 0x1090cdd0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x109518d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov eax, dword [ecx]
mov edx, dword [ebp + 0x14]
push edx
push 0
mov ebx, dword [ebp + 8]
push ebx
mov eax, dword [eax + 0x14]
call eax
mov ecx, dword [sym.imp.Core.dll_int_GUnicodeOS]
push ebx
cmp dword [ecx], 0
je 0x1090ce24
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x1090cea4
mov esi, dword [sym.imp.Core.dll_int___cdecl_winGetSizeANSI_unsigned_short_int_const__]
call esi
add esp, 4
test eax, eax
jne 0x1090ce38
mov dword [ebp + 0x14], eax
jmp 0x1090ce4f
push ebx
call esi
add esp, 4
add eax, 7
and eax, 0xfffffff8
call fcn.10921870
mov dword [ebp - 0x10], esp
mov dword [ebp + 0x14], esp
mov edi, dword [ebp + 0xc]
push edi
call esi
add esp, 4
test eax, eax
jne 0x1090ce61
mov dword [ebp + 0xc], eax
jmp 0x1090ce78
push edi
call esi
add esp, 4
add eax, 7
and eax, 0xfffffff8
call fcn.10921870
mov dword [ebp - 0x10], esp
mov dword [ebp + 0xc], esp
push ebx
call esi
push eax
push ebx
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.Core.dll_char____cdecl_winToANSI_char___unsigned_short_int_const___int_]
add esp, 0x10
push eax
push edi
call esi
push eax
push edi
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.Core.dll_char____cdecl_winToANSI_char___unsigned_short_int_const___int_]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov esi, eax
test esi, esi
jne 0x1090ced3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [sym.imp.Core.dll_class_FOutputDevice__GLog]
cmp dword [ecx], esi
je 0x1090ced3
push eax
push ebx
push edi
push str.Error_moving_file__s_to__s___d_
push 0x2ff
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.Core.dll_public:_void___cdecl_FOutputDevice::Logf2_enum_EName__unsigned_short_int_const__]
add esp, 0x18
xor eax, eax
test esi, esi
setne al
lea esp, [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x1090d050
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x109518e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [sym.imp.Core.dll_int_GUnicodeOS]
cmp dword [eax], edi
je 0x1090d08b
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
jmp 0x1090d0ca
mov esi, dword [ebp + 8]
push esi
mov ebx, dword [sym.imp.Core.dll_int___cdecl_winGetSizeANSI_unsigned_short_int_const__]
call ebx
add esp, 4
test eax, eax
je 0x1090d0b4
push esi
call ebx
add esp, 4
add eax, 7
and eax, 0xfffffff8
call fcn.10921870
mov dword [ebp - 0x10], esp
mov edi, esp
push esi
call ebx
push eax
push esi
push edi
call dword [sym.imp.Core.dll_char____cdecl_winToANSI_char___unsigned_short_int_const___int_]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
xor edx, edx
test eax, eax
setne dl
mov eax, edx
lea esp, [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1090d150
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1095190a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc14
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov edi, 1
mov dword [ebp - 4], edi
mov eax, dword [sym.imp.Core.dll_int_GUnicodeOS]
cmp dword [eax], ebx
je 0x1090d1e2
mov word [ebp - 0xc20], bx
push 0x7fe
push ebx
lea ecx, [ebp - 0xc1e]
push ecx
call fcn.109217f0
add esp, 0xc
lea edx, [ebp - 0xc20]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0xc20]
push eax
mov esi, dword [ebp + 8]
mov ecx, esi
call dword [sym.imp.Core.dll_public:_void___thiscall_FString::constructor_unsigned_short_int_const__]
mov dword [ebp - 0x14], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x420], bl
push 0x3ff
push ebx
lea ecx, [ebp - 0x41f]
push ecx
call fcn.109217f0
add esp, 0xc
lea edx, [ebp - 0x420]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push ebx
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.Core.dll_unsigned_short_int_const____cdecl_appFromAnsi_char_const___unsigned_short_int__]
add esp, 8
push eax
mov esi, dword [ebp + 8]
mov ecx, esi
call dword [sym.imp.Core.dll_public:_void___thiscall_FString::constructor_unsigned_short_int_const__]
jmp 0x1090d1ca
Function at 0x1090d9b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10951980
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x1090d9fd
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.109014ec
lea esp, [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [sym.imp.Core.dll_int_GUnicodeOS]
cmp dword [ecx], edi
je 0x1090da14
push edi
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x1090da55
mov esi, dword [ebp + 8]
push esi
mov ebx, dword [sym.imp.Core.dll_int___cdecl_winGetSizeANSI_unsigned_short_int_const__]
call ebx
add esp, 4
test eax, eax
je 0x1090da3d
push esi
call ebx
add esp, 4
add eax, 7
and eax, 0xfffffff8
call fcn.10921870
mov dword [ebp - 0x10], esp
mov edi, esp
push 0
push esi
call ebx
push eax
push esi
push edi
call dword [sym.imp.Core.dll_char____cdecl_winToANSI_char___unsigned_short_int_const___int_]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1090da6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1090da6d
xor eax, eax
jmp 0x1090d9e7
mov eax, 1
jmp 0x1090d9e7
Function at 0x10911860
Capabilities:
Check if file exists
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10951cb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x109118b1
push eax
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.1090105a
lea esp, [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [sym.imp.Core.dll_int_GUnicodeOS]
cmp dword [eax], edi
je 0x109118c6
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x10911905
mov esi, dword [ebp + 8]
push esi
mov ebx, dword [sym.imp.Core.dll_int___cdecl_winGetSizeANSI_unsigned_short_int_const__]
call ebx
add esp, 4
test eax, eax
je 0x109118ef
push esi
call ebx
add esp, 4
add eax, 7
and eax, 0xfffffff8
call fcn.10921870
mov dword [ebp - 0x10], esp
mov edi, esp
push esi
call ebx
push eax
push esi
push edi
call dword [sym.imp.Core.dll_char____cdecl_winToANSI_char___unsigned_short_int_const___int_]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x10911920
cmp dword [ebp + 0xc], eax
jne 0x10911919
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10911920
xor eax, eax
jmp 0x1091189b
mov eax, 1
jmp 0x1091189b
Function at 0x1091e150
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x1091e178
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esi + ecx*4]
sub edx, esi
mov esi, dword [edx + eax - 4]
xor dword [eax - 4], esi
sub eax, 4
sub ecx, 1
test ecx, ecx
jne 0x1091e166
pop esi
ret

Function at 0x10922666
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1096c684]
jne 0x10922670
repz ret
jmp fcn.1092a305

Function at 0x109253c1
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x1096c978]
je 0x109253dc
inc edi
cmp edi, 0x17
jb 0x109253cd
cmp edi, 0x17
jae 0x1092555c
push ebp
push 3
call fcn.10932953
cmp eax, 1
pop ecx
je 0x10925528
push 3
call fcn.10932953
test eax, eax
pop ecx
jne 0x10925410
cmp dword [0x1096c680], 1
je 0x10925528
cmp ebx, 0xfc
je 0x1092555b
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x1099faf8
push ebp
call fcn.1092cc27
add esp, 0xc
test eax, eax
je 0x10925446
push esi
push esi
push esi
push esi
push esi
call fcn.1092652c
add esp, 0x14
push 0x104
mov esi, 0x1099fb11
push esi
push 0
mov byte [0x1099fc15], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1092548a
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.1092cc27
add esp, 0xc
test eax, eax
je 0x1092548a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1092652c
add esp, 0x14
push esi
call fcn.1092cc90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x109254cf
push esi
call fcn.1092cc90
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x1099fe0c
push 0x1095f0b4
sub ecx, eax
push ecx
push eax
call fcn.109328a0
add esp, 0x14
test eax, eax
je 0x109254cf
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1092652c
add esp, 0x14
jmp 0x109254d1
xor esi, esi
push 0x1095f0b0
push ebx
push ebp
call fcn.1093282f
add esp, 0xc
test eax, eax
je 0x109254f1
push esi
push esi
push esi
push esi
push esi
call fcn.1092652c
add esp, 0x14
push dword [edi*8 + 0x1096c97c]
push ebx
push ebp
call fcn.1093282f
add esp, 0xc
test eax, eax
je 0x10925513
push esi
push esi
push esi
push esi
push esi
call fcn.1092652c
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.10932672
add esp, 0xc
jmp 0x1092555b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1092555b
cmp ebp, 0xffffffff
je 0x1092555b
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1096c97c]
push dword [esi]
call fcn.1092cc90
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10932672
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.109245d0
xor ebx, ebx
cmp dword [0x109a0494], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10932748
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10932828
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x10932828
push eax
call fcn.10924562
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x109a0494], eax
call esi
push eax
call fcn.10924562
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x109a0498], eax
call esi
push eax
call fcn.10924562
mov dword [0x109a049c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.109281ef
test eax, eax
pop ecx
pop ecx
je 0x10932716
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1092652c
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10932748
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10924562
cmp eax, ebx
pop ecx
mov dword [0x109a04a4], eax
je 0x10932748
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10924562
pop ecx
mov dword [0x109a04a0], eax
mov eax, dword [0x109a04a0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x109327cd
cmp dword [0x109a04a4], ecx
je 0x109327cd
push eax
call fcn.109245d9
push dword [0x109a04a4]
mov esi, eax
call fcn.109245d9
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x109327cd
cmp edi, ebx
je 0x109327cd
call esi
cmp eax, ebx
je 0x1093279a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1093279a
test byte [ebp - 0x18], 1
jne 0x109327cd
lea eax, [ebp - 0x10]
push eax
call fcn.1092829e
test eax, eax
pop ecx
je 0x109327b5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1092652c
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x109327c4
or dword [ebp + 0x10], 0x200000
jmp 0x10932808
or dword [ebp + 0x10], 0x40000
jmp 0x10932808
mov eax, dword [0x109a0498]
cmp eax, dword [ebp - 8]
je 0x10932808
push eax
call fcn.109245d9
cmp eax, ebx
pop ecx
je 0x10932808
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10932808
mov eax, dword [0x109a049c]
cmp eax, dword [ebp - 8]
je 0x10932808
push eax
call fcn.109245d9
cmp eax, ebx
pop ecx
je 0x10932808
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x109a0494]
call fcn.109245d9
cmp eax, ebx
pop ecx
je 0x10932828
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1093282a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402f7c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x473008], 0x8088405
inc edx
mov dword [ebx + 0x473008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x40367c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x473024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403714
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4036f4
xor eax, eax
push ebp
push 0x4036ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403730
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4036f4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x473024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x473024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404520
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x476048], 0
je 0x404581
cmp word [0x47621c], 0xd7b2
jne 0x404549
cmp dword [0x476224], 0
jbe 0x404549
mov eax, 0x476218
call dword [0x476234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4045a8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x473030], 0
jne 0x40459d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret