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

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
jne 0x445b85
pop edi
pop esi
pop ecx
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
push ebx
add edx, eax
push ebp
mov ebp, dword [esp + 0x20]
mov dword [edi + 8], edx
cmp ebp, dword [esi + 0x10]
jbe 0x445bcc
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebp
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov ebp, dword [esi + 0x14]
add esp, 0x18
jmp 0x445bd0
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
mov ecx, dword [esi]
push eax
call ecx
mov edx, dword [edi + 8]
mov eax, dword [esi]
push edx
call eax
add esp, 8
mov dword [esp + 0x10], 0
test ebp, ebp
jbe 0x445c2e
mov dword [esp + 0x10], ebp
mov cl, byte [ebx]
xor cl, 0x36
mov byte [esp + 0x18], cl
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
call ecx
mov dl, byte [ebx]
xor dl, 0x5c
mov byte [esp + 0x24], dl
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
lea eax, [esp + 0x28]
push eax
push ecx
inc ebx
call edx
add esp, 0x18
sub ebp, 1
jne 0x445bf3
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
cmp eax, dword [esi + 0x10]
jae 0x445c71
lea esp, [esp]
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
push 0x57b6a5
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi + 4]
push 1
push 0x57b6a6
push eax
call ecx
mov eax, dword [esp + 0x20]
inc eax
add esp, 0x18
mov dword [esp + 8], eax
cmp eax, dword [esi + 0x10]
jb 0x445c40
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x44e2fd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x44e344
call fcn.00457eb0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x44e344
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x44e360
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0044de02
mov esi, eax
test edi, edi
je 0x44e35e
test ebx, ebx
je 0x44e35e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x44eb1b
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x56d518
call fcn.00549ecf
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x44eb40
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x44eb92
call fcn.00445d86
push eax
lea ecx, [ebp - 0x10]
call fcn.004038e0
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00549fd9
push eax
call fcn.0040d990
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00403910
mov eax, esi
call fcn.00549fa7
ret 8

Function at 0x45002b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00457eb0
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x450064
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0044fc6d
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x4500c2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x4500e6
cmp dword [edi + 0x74], 0
jne 0x4500e6
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00457eb0
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00450083
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4525cd
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0045213f
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x452617
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00447f71
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00447f42
jmp 0x452622
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0045d587
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x452628
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0044e409
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x452665
call fcn.0045213f
mov dword [esi + 0xc], 1
jmp 0x45266a
call fcn.0045213f
cmp dword [esi], 0
je 0x4526b3
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x45268b
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00447f71
jmp 0x45269d
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.004036a0
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00447f42
jmp 0x4526d7
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x4526d7
push dword [esi]
push dword [ebp + 8]
call fcn.0045d587
pop esi
pop ebp
ret 0xc

Function at 0x453cb3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x453cfb
call fcn.00457eb0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x453cfb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x453d3e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x453d27
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x453d27
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x453d3b
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4997d8
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0051dc83
call fcn.004578e1
cmp dword [eax + 0x14], 0
jne 0x4997f5
mov ecx, esi
pop esi
jmp fcn.004992dd
pop esi
ret

Function at 0x49cd82
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0044f720
call fcn.004578e1
cmp dword [eax + 0x14], 0
jne 0x49cd9f
mov ecx, esi
pop esi
jmp fcn.0049c755
pop esi
ret

Function at 0x4acc7f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4acc99
call fcn.00457eb0
mov esi, dword [eax + 0xc]
push dword [0x5cbdf4]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4accb7
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4accaf
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4acce4
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4accb1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004acbad
mov esi, eax
jmp 0x4accd6

Function at 0x529dab
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x529dc3
mov edi, dword [esi + 0xc]
jmp 0x529e03
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x529ddc
call fcn.0045077c
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x529df1
call fcn.0045077c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x529e03
call fcn.0045077c
call fcn.00457eb0
cmp dword [eax + 0x3c], 0
je 0x529e18
push edi
mov ecx, ebx
call fcn.00528c69
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00529cc5
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x529e36
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x529e42
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x543417
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5c6a38]
jne 0x543421
repz ret
jmp fcn.0054e794
Function at 0x55e444
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5c6a38]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0055172d
and dword [ebp - 0x14], 0
cmp dword [0x5ce74c], 0
mov dword [ebp - 0x18], eax
jne 0x55e4f7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x55e59f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x55e59f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5a339c
push ebx
mov dword [0x5ce74c], eax
call edi
push eax
call esi
push 0x5a3388
push ebx
mov dword [0x5ce750], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5ce754], eax
call edi
push eax
call esi
mov dword [0x5ce75c], eax
test eax, eax
je 0x55e4f7
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5ce758], eax
mov eax, dword [0x5ce758]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x55e550
cmp dword [0x5ce75c], ecx
je 0x55e550
push eax
call esi
push dword [0x5ce75c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x55e550
test ebx, ebx
je 0x55e550
call edi
test eax, eax
je 0x55e547
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x55e547
test byte [ebp - 8], 1
jne 0x55e550
or dword [ebp + 0x10], 0x200000
jmp 0x55e583
mov eax, dword [0x5ce750]
cmp eax, dword [ebp - 0x18]
je 0x55e583
push eax
call esi
test eax, eax
je 0x55e583
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x55e583
mov eax, dword [0x5ce754]
cmp eax, dword [ebp - 0x18]
je 0x55e583
push eax
call esi
test eax, eax
je 0x55e583
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5ce74c]
call esi
test eax, eax
je 0x55e59f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x55e5a1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00543417
leave
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x561e7f
call fcn.00546b16
mov dword [eax], esi
call fcn.00546b03
push 0x16
pop esi
mov dword [eax], esi
call fcn.0054eb22
mov eax, esi
jmp 0x561ed4
test dword [ebp + 0xc], 0xfffffff9
jne 0x561e65
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x561eac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00546b29
pop ecx
call fcn.00546b03
mov eax, dword [eax]
jmp 0x561ed4
test al, 0x10
jne 0x561ed2
test al, 1
je 0x561ed2
test byte [ebp + 0xc], 2
je 0x561ed2
call fcn.00546b16
mov dword [eax], 5
call fcn.00546b03
mov dword [eax], 0xd
jmp 0x561ea3
xor eax, eax
pop esi
pop ebp
ret
Function at 0x100094c4
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, edx
xor ebx, ebx
push edi
push ebx
push 5
xor esi, esi
mov edx, str.SOFTWAREPoliciesMicrosoftOffice_i.0OneNoteOptionsSave
inc esi
push esi
push str.Notebook_Root
push str.SOFTWAREMicrosoftOffice_i.0OneNoteOptionsSave
call fcn.10018d09
test eax, eax
jne 0x10009559
test edi, edi
je 0x10009557
push esi
push 5
push edi
push ebx
mov word [edi], ax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x10009552
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x10009507
sub ecx, edx
sar ecx, 1
call fcn.10018d09
mov ecx, eax
cmp ecx, 0x824
jl 0x10009529
mov eax, ebx
jmp 0x1000954e
test ecx, ecx
jle 0x1000954c
push 0x5c
pop edx
cmp dx, word [edi + ecx*2 - 2]
je 0x1000954c
lea eax, [ecx + 1]
cmp eax, 0x824
jge 0x10009525
xor eax, eax
mov word [edi + ecx*2], dx
mov word [edi + ecx*2 + 2], ax
mov eax, esi
test eax, eax
jne 0x10009559
xor eax, eax
mov word [edi], ax
mov esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
ret 4
Function at 0x1000b34b
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1074
call fcn.1003366c
mov eax, dword [0x100440b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
test ecx, ecx
je 0x1000b43b
test edi, edi
je 0x1000b43b
xor esi, esi
lea edx, [ebp - 0x1058]
xor eax, eax
mov dword [edi], esi
push 0x825
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
mov word [ebp - 0x1058], ax
call fcn.10018d09
test eax, eax
je 0x1000b43b
lea eax, [ebp - 0x106c]
push eax
lea eax, [ebp - 0x1058]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jle 0x1000b43b
push ecx
push ebx
lea ecx, [ebp - 0x1068]
call fcn.10018d09
push dword [ebp - 0x1068]
lea eax, [ebp - 0x1058]
push ebx
push esi
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1000b42c
lea eax, [ebp - 0x1070]
push eax
lea eax, [ebp - 0x105c]
push eax
push 0x1003cf90
push dword [ebp - 0x1068]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1000b42c
mov eax, dword [ebp - 0x105c]
movzx esi, word [eax + 0xc]
movzx edx, word [eax + 0xe]
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
mov dword [edi + 0xc], esi
xor esi, esi
mov dword [edi], eax
inc esi
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
lea ecx, [ebp - 0x1068]
call fcn.10016878
mov eax, esi
jmp 0x1000b43d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001eea4
leave
ret
Function at 0x10018d09
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x10018d18
pop dword [ebp - 0x24]
mov eax, 0x508cbc42
sub eax, 0x408b2f2a
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x46a66
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0x589b
xor ebx, ebx
add ebx, eax
mov edx, 0x653f0249
add edx, 0xaac5bdb7
add edx, dword [ebp - 0x24]
mov edi, 0xbc90431f
add edi, 0xfaef274a
add dword [ebp - 8], eax
mov esi, dword [edx]
sub dword [ebp - 0x10], eax
xor esi, edi
sub dword [ebp - 0x1c], eax
mov dword [ebx], esi
mov dword [ebp - 0xc], 0x41bf32cf
add ebx, 0x10f02a53
add ebx, 0xef0fd5b1
add edx, 0x55904ff4
sub edx, 0x55904ff0
loop 0x10018d6e
add eax, 0x1553f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x4013dc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4c
cmp dword [0x40a04f8], 0x594
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x2c], esi
mov ebx, dword [esi]
mov edi, dword [esi + 4]
mov dword [ebp - 0x10], ebx
jne 0x401412
push 0
lea eax, [ebp - 0x44c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [0x4192f8]
lea ecx, [ebp - 4]
and dword [ebp - 4], 0
mov dword [ebp - 0x20], eax
mov eax, dword [0x4192fc]
mov dword [ebp - 0x18], 0x9e3779b9
mov dword [ebp - 0x28], eax
call fcn.004013d2
mov ecx, dword [0x419300]
mov eax, dword [0x419304]
add dword [ebp - 4], 0x23f
push 0x20
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], eax
pop esi
mov dword [ebp - 0x14], 2
add dword [ebp - 0x14], 3
mov eax, ebx
mov edx, 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0x40a04f8], 0xfa9
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [0x40a04f4]
cmove eax, edx
xor edx, edx
cmp dword [0x40a04f8], 0x3eb
mov dword [0x40a04f4], eax
mov eax, dword [0x409c8fc]
cmove eax, edx
add ecx, ebx
mov dword [0x409c8fc], eax
mov eax, dword [ebp - 0x10]
shr eax, 5
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0xc]
xor ebx, ebx
mov eax, dword [ebp - 8]
xor edx, ecx
add eax, dword [ebp - 0x1c]
mov ecx, dword [0x40a04f8]
xor eax, edx
mov dword [0x40a04f0], 0xf4ea3dee
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp ecx, 0x213
jne 0x401546
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
lea eax, [ebp - 0x30]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push ebx
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea eax, [ebp - 0xc4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebx
lea eax, [ebp - 0x44c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateTimerQueueTimer]
mov eax, dword [ebp - 8]
mov ecx, dword [0x40a04f8]
sub edi, eax
cmp ecx, 0xc
jne 0x401554
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
mov eax, edi
shl eax, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x14]
mov eax, edi
mov edx, dword [ebp - 4]
shr eax, cl
add edx, edi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x10]
xor eax, edx
mov edx, dword [ebp - 0xc]
xor edx, eax
mov dword [ebp - 0xc], edx
call fcn.004013d9
mov eax, dword [ebp - 0x18]
sub dword [ebp - 4], eax
dec esi
je 0x4015a0
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
jmp 0x401450
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], edi
pop edi
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d75d
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4187a4]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408e07
mov dword [ebp - 0x14], eax
cmp dword [0x4b1318], esi
jne 0x40d850
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d7dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d930
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d930
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d930
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4b1318], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4b131c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4b1320], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4b1328], eax
test eax, eax
je 0x40d84d
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4b1324], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d875
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d868
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d88a
push 4
pop eax
jmp 0x40d932
cmp dword [ebp - 0x14], esi
je 0x40d88a
push dword [0x4b1318]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d86f
mov eax, dword [0x4b1324]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d8e8
cmp dword [0x4b1328], edi
je 0x40d8e8
push eax
call ebx
push dword [0x4b1328]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d8e8
test eax, eax
je 0x40d8e8
call ecx
test eax, eax
je 0x40d8dd
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 0x40d8dd
test byte [ebp - 8], 1
jne 0x40d8e8
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d918
mov eax, dword [0x4b131c]
cmp eax, edi
je 0x40d915
push eax
call ebx
test eax, eax
je 0x40d915
call eax
mov esi, eax
test esi, esi
je 0x40d915
mov eax, dword [0x4b1320]
cmp eax, edi
je 0x40d915
push eax
call ebx
test eax, eax
je 0x40d915
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4b1318]
call ebx
test eax, eax
je 0x40d930
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d932
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004041de
mov esp, ebp
pop ebp
ret