joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5621a8
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
mov eax, dword [0x65d25c]
add eax, 0xfffff879
mov dword [0x65d25c], eax
call fcn.0040107a
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x24], ecx
je 0x5621f1
jmp 0x562345
mov eax, dword [esp + 0x20]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x1c], eax
jmp 0x562280
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
mov dword [0x65d25c], 0xf2f
mov dword [0x65d258], 0xf1d
mov dword [esp], eax
mov dword [esp + 0x18], ecx
call fcn.00561922
lea ecx, [0x56144c]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x84], 0x13b800
mov edx, dword [0x65d244]
mov dword [esp + 0x7c], edx
mov edx, dword [0x65d248]
mov dword [esp + 0x48], edx
mov edx, dword [0x65d24c]
mov dword [esp + 0x70], edx
mov edx, dword [0x65d250]
mov dword [esp + 0x3c], edx
mov edx, dword [0x65d254]
mov dword [esp + 0x78], edx
mov dword [0x65d25c], 0xe69
mov dword [0x65d258], 0xfffff84c
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0x20], eax
jne 0x5621da
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x10], ecx
jne 0x5621da
mov eax, dword [esp + 0x20]
mov dword [esp + 0x64], eax
mov dword [0x65d25c], 0x19ce
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x90], edx
mov dword [0x65d258], 0xffffd23b
call fcn.00560b65
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0xc], ecx
jne 0x56233d
mov eax, dword [0x65d25c]
add eax, 0xffffe6db
mov dword [0x65d258], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 8], eax
lea eax, [esp + 0x38]
mov dword [esp], eax
mov eax, dword [esp + 8]
mov dword [esp + 4], eax
call fcn.005614a6
mov dword [0x65d25c], 0x1db8
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [0x65d258], 0x11f7
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
mov esp, ebp
pop ebp
ret
Function at 0x4017e7
Capabilities:
Log keystrokes via application hook

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push ecx
add esp, 0xffffff80
call sym.___main
lea edx, [ebp - 0x3c]
mov eax, 0
mov ecx, 0xc
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x3c], 0x30
mov dword [ebp - 0x34], sym.__Z1WP6HWND__jjl_16
mov dword [esp], 0
call sym._GetModuleHandleA_4
sub esp, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], str.SnapKeyClass
lea eax, [ebp - 0x3c]
mov dword [esp], eax
call sym._RegisterClassExA_4
sub esp, 4
test ax, ax
sete al
test al, al
je 0x40187f
mov dword [esp + 0xc], 0x30
mov dword [esp + 8], str.Error
mov dword [esp + 4], str.Window_Registration_Failed_
mov dword [esp], 0
call sym._MessageBoxA_16
sub esp, 0x10
mov eax, 1
jmp 0x401a05
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x78
mov dword [esp + 0x18], 0xf0
mov dword [esp + 0x14], 0x80000000
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 0xc], 0xcf0000
mov dword [esp + 8], str.SnapKey
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._CreateWindowExA_48
sub esp, 0x30
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40191e
mov dword [esp + 0xc], 0x30
mov dword [esp + 8], str.Error
mov dword [esp + 4], str.Window_Creation_Failed_
mov dword [esp], 0
call sym._MessageBoxA_16
sub esp, 0x10
mov eax, 1
jmp 0x401a05
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym.I_HWND___
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], sym.__Z1Kijl_12
mov dword [esp], 0xd
call sym._SetWindowsHookExA_16
sub esp, 0x10
mov dword [0x408024], eax
mov eax, dword [0x408024]
test eax, eax
jne 0x40198c
mov dword [esp + 0xc], 0x30
mov dword [esp + 8], str.Error
mov dword [esp + 4], str.Failed_to_install_hook_
mov dword [esp], 0
call sym._MessageBoxA_16
sub esp, 0x10
mov eax, 1
jmp 0x401a05
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sym._GetMessageA_16
sub esp, 0x10
test eax, eax
setne al
test al, al
je 0x4019d9
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sym._TranslateMessage_4
sub esp, 4
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sym._DispatchMessageA_4
sub esp, 4
jmp 0x40198c
mov eax, dword [0x408024]
mov dword [esp], eax
call sym._UnhookWindowsHookEx_4
sub esp, 4
mov dword [esp + 4], 0x408040
mov dword [esp], 2
call sym._Shell_NotifyIconA_8
sub esp, 8
mov eax, 0
lea esp, [ebp - 8]
pop ecx
pop edi
pop ebp
lea esp, [ecx - 4]
ret
Function at 0x402050
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x4080c4
call sym._EnterCriticalSection_4
mov ebx, dword [0x4080bc]
sub esp, 4
test ebx, ebx
je 0x40209b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x402094
test esi, esi
je 0x402094
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402070
mov dword [esp], 0x4080c4
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402280
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4022d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4023a8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40230e
cmp eax, 4
jne 0x402330
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40231e
cmp edx, 4
je 0x40231e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402280
Function at 0x404c95
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
sar eax, 2
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x404d15
push esi
xor esi, esi
cmp dword [ebp + 0x18], esi
jbe 0x404d14
push ebx
mov ebx, 0x47cfa8
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
push str.Own_head
push ebx
mov byte [edi + esi], al
call fcn.004013cb
push eax
call fcn.00401eb7
mov al, byte [edi + esi]
add al, 0x4e
xor al, 0xdc
push str.Earth
push ebx
mov byte [edi + esi], al
call fcn.004013cb
push eax
call fcn.00401eb7
mov al, byte [edi + esi]
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x425548
mov byte [edi + esi], al
call fcn.0040dc8e
xor byte [edi + esi], al
add esp, 0x1c
inc esi
cmp esi, dword [ebp + 0x18]
jb 0x404cb7
pop ebx
pop esi
lea ecx, [ebp + 8]
call fcn.00404812
pop edi
pop ebp
ret 0x14

Function at 0x405447
Capabilities:
Hide graphical window
Terminate process

Disassembly:
push 0x10
mov eax, 0x42491e
call fcn.0040894f
push fcn.00401eb7
push 0x4255a0
push 0x47cfa8
call fcn.004013cb
pop ecx
pop ecx
mov ecx, eax
call fcn.00402db1
and dword [ebp - 4], 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
call fcn.0040856c
pop ecx
test eax, eax
je 0x4054a3
mov ecx, eax
call fcn.004022ad
test eax, eax
je 0x4054a3
push 1
mov ecx, eax
call fcn.0040312b
or dword [ebp - 4], 0xffffffff
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x407cad
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x407cce
jl 0x407cc5
test edi, edi
jne 0x407cce
xor eax, eax
xor edx, edx
jmp 0x407d8f
cmp dword [ebx + 0x38], 0
je 0x407ce3
push eax
push edi
push dword [ebp + 8]
call fcn.00407d95
jmp 0x407d8f
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x407d2a
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x407d2a
cmp eax, edi
jb 0x407d04
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00409510
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x407d30
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x407d84
mov ecx, ebx
call fcn.00407547
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x407d6f
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00410ed3
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x407d84
jmp 0x407d42
test edx, edx
je 0x407d84
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00410ed3
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x41a76b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041a5dc

Function at 0x41ab65
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004094c0
mov eax, dword [0x47b3c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00418728
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41aba7
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41ad03
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004242f0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x47d950]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041b904
mov ecx, dword [esi*4 + 0x47d950]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41acfc
cmp eax, dword [edi + ecx + 0x24]
jne 0x41acfc
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41acfc
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041b904
add esp, 0x14
test edx, edx
jl 0x41acfc
jg 0x41ac72
test eax, eax
jb 0x41acfc
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41acfc
jl 0x41ac8c
cmp dword [ebp - 0x1008], eax
ja 0x41acfc
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41acaa
test ebx, ebx
je 0x41ace3
cmp ecx, edi
jae 0x41ace3
mov al, byte [ecx]
cmp al, 0xd
jne 0x41acc4
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41acd0
cmp byte [ecx + 1], 0xa
jne 0x41acd0
inc ecx
jmp 0x41acd0
movzx eax, al
movsx eax, byte [eax + 0x47b688]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41acaa
cmp edx, ebx
jne 0x41acaa
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41ad01
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004088b5
leave
ret
Function at 0x41ada2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47d950]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ade2
cmp byte [ebx], 0xa
jne 0x41ade2
or byte [eax + edi + 0x28], 4
jmp 0x41ade7
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41aee5
mov al, byte [edx]
cmp al, 0x1a
je 0x41aec7
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41ae16
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41ae3b
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41ae45
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41adf8
jmp 0x41aee5
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41aec2
cmp dword [ebp - 0xc], 0
je 0x41aec2
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47d950]
test byte [eax + edi + 0x28], 0x48
je 0x41ae9c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ae87
mov byte [esi], dl
jmp 0x41ae98
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47d950]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41aee5
cmp byte [ebp - 1], 0xa
jne 0x41aeab
cmp esi, ebx
jne 0x41aeab
mov byte [esi], 0xa
jmp 0x41aee4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041b922
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41aee5
mov byte [esi], 0xd
jmp 0x41aee4
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47d950]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41aee1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41aee5
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41aeee
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x47d950]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41af31
cmp word [esi], dx
jne 0x41af31
or byte [edi + eax + 0x28], 4
jmp 0x41af36
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41b089
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41b069
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41af78
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41afae
cmp eax, edx
jae 0x41afba
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41af50
jmp 0x41b089
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41b065
cmp dword [ebp - 0x14], 0
je 0x41b065
mov eax, dword [ebx*4 + 0x47d950]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41b03d
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41b006
mov word [esi], cx
jmp 0x41b039
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47d950]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47d950]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47d950]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41b089
pop ebx
cmp word [ebp - 4], bx
jne 0x41b04e
cmp esi, dword [ebp + 0xc]
jne 0x41b04e
mov word [esi], bx
jmp 0x41b086
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041b922
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41b089
push 0xd
jmp 0x41b082
mov ecx, dword [ebx*4 + 0x47d950]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41b080
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41b089
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40012ff2
Capabilities:
Get file system object information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4cc
mov eax, dword [0x40025d24]
xor eax, esp
mov dword [esp + 0x4c8], eax
push ebx
push esi
mov esi, ecx
xor edx, edx
push edi
mov ecx, dword [esi + 8]
call fcn.4001569b
mov edi, eax
test edi, edi
je 0x4001311c
mov ebx, 0x2b4
lea eax, [esp + 0x10]
push ebx
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [esp + 0x18], 0x10
lea eax, [esp + 0x10]
push 0x20f28
push ebx
push eax
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x400130b4
lea eax, [esp + 0x1c]
push eax
push 0x138
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push dword [esp + 0x10]
mov ecx, dword [esi + 4]
mov edx, 0x137
call fcn.40016638
lea eax, [esp + 0x224]
push eax
push 0x13b
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
test byte [esp + 0x18], 0x10
jne 0x400130b4
push ebx
push 1
push 0xcf
push 0x138
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
lea edx, [esi + 0x10]
mov ecx, edi
call fcn.4001665e
test eax, eax
js 0x400130c9
mov ecx, esi
call fcn.40013b18
push ebx
push ecx
lea eax, [esp + 0x2d0]
mov edx, 0xc000
push eax
mov ecx, edi
call fcn.400155dd
test eax, eax
js 0x40013107
lea eax, [esp + 0x2c8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x2c8]
push eax
push 0x13e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push dword [esi + 0x28]
mov edx, dword [esi + 0x24]
mov ecx, dword [esi + 4]
call fcn.40012f3a
push edi
call dword [sym.imp.SHELL32.dll_Ordinal_8347]
mov ecx, dword [esp + 0x4d4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.40020a80
mov esp, ebp
pop ebp
ret
Function at 0x4001360d
Capabilities:
Get file system object information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4cc
mov eax, dword [0x40025d24]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
lea edx, [ebp - 0x4cc]
push edi
call fcn.40015517
mov edi, eax
test edi, edi
je 0x400136e6
push esi
xor edx, edx
mov ecx, edi
call fcn.4001569b
mov esi, eax
test esi, esi
je 0x400136da
push 0x2b4
lea eax, [ebp - 0x4c0]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x4c0]
push 0x208
push 0x2b4
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x400136d3
cmp dword [edi], 1
jbe 0x400136c0
mov edi, 0x104
lea eax, [ebp - 0x20c]
push edi
push eax
push 0x14b
push dword [0x40026300]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x4b4]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push ebx
call fcn.40007625
add esp, 0x10
jmp 0x400136d3
lea eax, [ebp - 0x4b4]
mov edx, 0x104
push eax
mov ecx, ebx
call fcn.4000a269
push esi
call dword [sym.imp.SHELL32.dll_Ordinal_8347]
lea edx, [ebp - 0x4cc]
call fcn.40006670
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.40020a80
leave
ret 4

Function at 0x400140d1
Capabilities:
Get file system object information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2bc
mov eax, dword [0x40025d24]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov dword [ebp - 0x2bc], eax
mov edi, esi
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.40013f49
test eax, eax
je 0x4001411b
push 1
push eax
call dword [sym.imp.USER32.dll_GetLastActivePopup]
push eax
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
xor eax, eax
jmp 0x40014177
mov ecx, dword [ebp - 0x2bc]
call fcn.40013e8e
mov dword [esi], eax
test eax, eax
je 0x40014174
test ebx, ebx
je 0x40014174
push ecx
mov edx, ebx
mov ecx, eax
call fcn.4001403e
push 0x108
push 0x2b4
mov dword [esi + 4], eax
lea eax, [ebp - 0x2b8]
push eax
push 0
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x40014174
mov eax, dword [ebp - 0x2b8]
push 0
push eax
push 0x402
push dword [esi]
mov dword [esi + 8], eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.40020a80
leave
ret 8