joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c23a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x101000]
push edi
or ebp, 0xffffffff
jmp 0x5c23c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5c23c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5c23b8
mov eax, 1
add ebx, ebx
jne 0x5c23db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5c23ec
jne 0x5c240b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5c240b
dec eax
add ebx, ebx
jne 0x5c23f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5c23d0
add ebx, ebx
jne 0x5c2407
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5c245d
xor ecx, ecx
sub eax, 3
jb 0x5c2423
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5c2492
sar eax, 1
mov ebp, eax
jmp 0x5c242e
add ebx, ebx
jne 0x5c242e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5c23fc
inc ecx
add ebx, ebx
jne 0x5c243c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5c23fc
add ebx, ebx
jne 0x5c2449
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5c243e
jne 0x5c245a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5c243e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5c247c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5c246e
jmp 0x5c23be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5c247c
add edi, ecx
jmp 0x5c23be
pop esi
mov edi, esi
mov ecx, 0x4673
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5c249a
cmp byte [edi], 0x26
jne 0x5c249a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5c249f
lea edi, [esi + 0x1bf000]
mov eax, dword [edi]
or eax, eax
je 0x5c2517
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1c87d8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1c88fc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5c24cc
mov ecx, edi
jns 0x5c24fb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1c8904]
or eax, eax
je 0x5c2511
mov dword [ebx], eax
add ebx, 4
jmp 0x5c24e9
call dword [esi + 0x1c8900]
mov ebp, dword [esi + 0x1c8908]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x24f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5c254b
sub esp, 0xffffff80
jmp 0x4a4669
Function at 0x401b90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x58df90]
xor eax, ebp
mov dword [ebp - 4], eax
push 4
push 0x1000
push 0x40
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
lea edx, [ebp - 0x144]
push edx
push 0x40
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 8]
mov dword [ebp - 0x140], eax
push 4
push 0x1000
push 0xf8
mov ecx, dword [ebp - 0x140]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
lea eax, [ebp - 0x144]
push eax
push 0xf8
lea ecx, [ebp - 0x13c]
push ecx
mov edx, dword [ebp - 0x140]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051ad52
mov esp, ebp
pop ebp
ret

Function at 0x401c40
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x58df90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401a90
add esp, 0xc
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401b90
add esp, 8
mov dword [ebp - 0x44], eax
mov edx, 0xfeeb
mov word [ebp - 0x48], dx
push 4
push 0x1000
push 2
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
lea edx, [ebp - 0x4c]
push edx
push 2
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp - 0x4c]
push eax
push 2
lea ecx, [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx ecx, word [ebp - 0x40]
and ecx, 0xff
mov byte [ebp - 0x39], cl
movzx edx, word [ebp - 0x40]
sar edx, 8
mov byte [ebp - 0x3a], dl
movzx eax, byte [ebp - 0x3a]
push eax
movzx ecx, byte [ebp - 0x39]
push ecx
mov edx, dword [ebp - 0x44]
push edx
push 0x571690
push 0x32
lea eax, [ebp - 0x38]
push eax
call fcn.0051ae04
add esp, 0x18
lea ecx, [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051ad52
mov esp, ebp
pop ebp
ret
Function at 0x401d20
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x14]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx + 0x18]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
cmp eax, dword [edx + 0x14]
jae 0x401d50
mov eax, dword [ebp + 0xc]
jmp 0x401e1a
xor ecx, ecx
mov word [ebp - 4], cx
jmp 0x401d64
mov dx, word [ebp - 4]
add dx, 1
mov word [ebp - 4], dx
movzx eax, word [ebp - 4]
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 6]
cmp eax, edx
jge 0x401e18
movzx eax, word [ebp - 4]
imul ecx, eax, 0x28
mov edx, dword [ebp - 8]
cmp dword [edx + ecx + 0x10], 0
je 0x401d9b
movzx eax, word [ebp - 4]
imul ecx, eax, 0x28
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x401dac
movzx ecx, word [ebp - 4]
imul edx, ecx, 0x28
mov eax, dword [ebp - 8]
mov ecx, dword [eax + edx + 8]
mov dword [ebp - 0x10], ecx
movzx edx, word [ebp - 4]
imul eax, edx, 0x28
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
cmp edx, dword [ecx + eax + 0xc]
jb 0x401e13
movzx eax, word [ebp - 4]
imul ecx, eax, 0x28
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0xc]
add eax, dword [ebp - 0x10]
cmp dword [ebp + 0xc], eax
jae 0x401e13
movzx ecx, word [ebp - 4]
imul edx, ecx, 0x28
mov eax, dword [ebp - 8]
cmp dword [eax + edx + 0x14], 0
je 0x401e0e
movzx ecx, word [ebp - 4]
imul edx, ecx, 0x28
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax + edx + 0xc]
mov dword [ebp - 0xc], ecx
movzx edx, word [ebp - 4]
imul eax, edx, 0x28
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
add edx, dword [ecx + eax + 0x14]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
jmp 0x401e1a
jmp 0x401d58
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x402ca0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x402cea
push 0
push 0
push 0
push 6
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402cea
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x403130
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x484], 0
je 0x40314d
mov ecx, dword [ebp - 8]
call fcn.00403090
push 0x5717c0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0051b2d4
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40326d
mov edx, dword [ebp + 8]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
mov al, byte [edx]
mov byte [ebp - 1], al
mov ecx, dword [ebp - 0x10]
mov dl, byte [ebp - 1]
mov byte [ecx], dl
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp byte [ebp - 1], 0
jne 0x403180
push 2
push 0
mov edx, dword [ebp - 0xc]
push edx
call fcn.0051b378
add esp, 0xc
mov eax, dword [ebp - 0xc]
push eax
call fcn.0051b78b
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x49c], eax
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
call fcn.0051b378
add esp, 0xc
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x49c]
push ecx
call fcn.0051b7f7
add esp, 4
mov edx, dword [ebp - 8]
mov dword [edx + 0x484], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x484], 0
jne 0x403221
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x49c], 0
mov edx, dword [ebp - 0xc]
push edx
call fcn.0051b8f5
add esp, 4
xor eax, eax
jmp 0x40326f
mov eax, dword [ebp - 0xc]
push eax
push 1
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x49c]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x484]
push ecx
call fcn.0051bb31
add esp, 0x10
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x49c]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x484]
mov byte [edx + eax - 1], 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.0051b8f5
add esp, 4
mov eax, 1
jmp 0x40326f
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x404840
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x404864
xor eax, eax
jmp 0x4048e4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40487b
xor eax, eax
jmp 0x4048e4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x4048c7
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x4048c7
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x40489e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x4048d3
xor eax, eax
jmp 0x4048e4
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x4048e1
xor eax, eax
jmp 0x4048e4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x409a16
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.00409e47
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x409a52
call fcn.00409c35
mov dword [esi + 0xc], 1
jmp 0x409a57
call fcn.00409c35
cmp dword [esi], 0
je 0x409aa0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x409a7a
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00406a9d
jmp 0x409a8b
push 0xff
mov ecx, esi
call fcn.00404ef0
push pe_nt_image_headers32
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00406ac0
jmp 0x409ac4
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x409ac4
push dword [esi]
push dword [ebp - 4]
call fcn.0040a298
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x409b8a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.00409c35
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x409bd2
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00406a9d
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00406ac0
jmp 0x409bdd
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0040a298
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x409c79
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x58df90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
push eax
mov dword [ebp - 0x48], esi
call fcn.00409c35
cmp dword [edi], 0
mov ebx, eax
mov dword [edi + 0xc], 1
je 0x409cea
mov esi, dword [ebp + 0x18]
lea eax, [ebp - 0x44]
push 0x40
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
push esi
push dword [ebp - 0x48]
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.0051ed43
add esp, 0x10
cmp eax, 1
je 0x409d38
push 0xffffffffffffffff
push 0
push dword [ebp + 0x14]
call fcn.00408f61
mov ecx, edi
call fcn.00409be3
jmp 0x409d38
call fcn.0051c920
mov edi, dword [eax]
call fcn.0051c920
and dword [eax], 0
lea eax, [ebp + 0x18]
push eax
push esi
push 0x3f
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.0051aeea
add esp, 0x14
call fcn.0051c920
cmp dword [eax], 0
je 0x409d27
call fcn.0051c920
push dword [eax]
call fcn.004061c9
pop ecx
jmp 0x409d2e
call fcn.0051c920
mov dword [eax], edi
lea eax, [ebp - 0x44]
push eax
push ebx
call fcn.0040a298
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051ad52
mov esp, ebp
pop ebp
ret

Function at 0x40a298
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x58df90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x40a32a
test esi, esi
je 0x40a32a
push esi
call fcn.0051c230
push 0xff
mov ebx, eax
mov byte [ebp - 0x104], 0
lea eax, [ebp - 0x103]
push 0
push eax
call fcn.0051cf30
mov eax, pe_nt_image_headers32
add esp, 0x10
cmp ebx, eax
ja 0x40a30f
push eax
lea eax, [ebp - 0x104]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, ebx
jne 0x40a30f
push esi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40a317
push esi
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051ad52
mov esp, ebp
pop ebp
ret 8
call fcn.00406810
int3
Function at 0x40b449
Capabilities:
Get disk information

Disassembly:
push 0x158
mov eax, 0x534d74
call fcn.0051c3e4
mov esi, dword [ebp + 8]
xor eax, eax
mov ebx, dword [ebp + 0xc]
test esi, esi
mov edi, dword [ebp + 0x10]
setne al
mov dword [ebp - 0x158], esi
test eax, eax
jne 0x40b477
call fcn.00406810
xor eax, eax
test ebx, ebx
setne al
test eax, eax
je 0x40b472
lea eax, [ebp - 0x154]
push eax
push esi
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x40b4bf
push 0xffffffffffffffff
push ebx
push 0x104
push esi
call fcn.0051c8d1
push eax
call fcn.00405d85
add esp, 0x14
push ebx
push edi
call fcn.0040b41c
xor eax, eax
jmp 0x40b5e0
cmp eax, 0x104
jb 0x40b4dc
test edi, edi
je 0x40b4b8
push ebx
lea ecx, [edi + 0x10]
mov dword [edi + 8], 3
call fcn.00404c10
jmp 0x40b4b8
call fcn.00405800
push eax
lea ecx, [ebp - 0x15c]
call fcn.00405330
and dword [ebp - 4], 0
lea eax, [ebp - 0x15c]
push eax
push esi
call fcn.0040addf
mov esi, dword [ebp - 0x15c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x40b5d5
xor ecx, ecx
lea eax, [ebp - 0x160]
push ecx
push ecx
push eax
lea eax, [ebp - 0x164]
push eax
push ecx
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x40b547
push ebx
push edi
call fcn.0040b41c
lea ecx, [esi - 0x10]
call fcn.004053f0
jmp 0x40b4b8
mov eax, dword [ebp - 0x160]
test al, 2
jne 0x40b563
push dword [ebp - 0x158]
call dword [sym.imp.USER32.dll_CharUpperA]
mov eax, dword [ebp - 0x160]
test al, 4
jne 0x40b5d5
lea eax, [ebp - 0x150]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x40b5d5
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x154]
test eax, eax
je 0x40b533
cmp eax, dword [ebp - 0x158]
jbe 0x40b533
lea eax, [ebp - 0x124]
push eax
call fcn.0051c230
mov edx, dword [ebp - 0x154]
sub edx, dword [ebp - 0x158]
pop ecx
add eax, edx
mov ecx, 0x104
cmp eax, ecx
jge 0x40b5e8
lea eax, [ebp - 0x124]
sub ecx, edx
push eax
push ecx
push dword [ebp - 0x154]
call fcn.0051ebd2
push eax
call fcn.00405d85
add esp, 0x10
lea ecx, [esi - 0x10]
call fcn.004053f0
xor eax, eax
inc eax
call fcn.0051c393
ret 0xc
test edi, edi
je 0x40b53a
push ebx
lea ecx, [edi + 0x10]
mov dword [edi + 8], 3
call fcn.00404c10
jmp 0x40b53a

Function at 0x40f570
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x40f5b5
call fcn.00408129
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40f5b5
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40f5d1
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00416709
mov ebx, eax
test edi, edi
je 0x40f5cf
test esi, esi
je 0x40f5cf
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4171dd
Capabilities:
Extract resource via kernel32 functions

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

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x58df90]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x427db0
xor eax, eax
test esi, esi
sete al
or eax, 0x4000
push eax
push 0x160
lea eax, [ebp - 0x26c]
push eax
push 0
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0051ad52
mov esp, ebp
pop ebp
ret 4
Function at 0x427eec
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x71c
mov eax, dword [0x58df90]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
test edx, edx
je 0x42810b
test esi, esi
je 0x42810b
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x45c], ebx
mov dword [ebp - 0x458], ebx
mov dword [ebp - 0x454], ebx
mov dword [ebp - 0x450], ebx
mov dword [ebp - 0x44c], ebx
mov dword [ebp - 0x448], ebx
mov dword [ebp - 0x334], ebx
mov dword [ebp - 0x330], ebx
mov dword [ebp - 0x32c], ebx
mov dword [ebp - 0x328], ebx
mov dword [ebp - 0x324], ebx
mov dword [ebp - 0x320], ebx
sub eax, ebx
je 0x4280dc
dec eax
je 0x427f7e
dec eax
je 0x428044
dec eax
jne 0x4280f6
mov edi, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [ebp - 0x108]
push eax
push dword [edx + 4]
call edi
test eax, eax
je 0x4280d7
push ebx
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004146da
test eax, eax
je 0x4280d7
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 4]
call edi
test eax, eax
je 0x42803c
push ebx
lea eax, [ebp - 0x334]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004146da
test eax, eax
je 0x42803c
cmp dword [ebp + 0x10], 1
jne 0x42809c
test byte [ebp - 0x43c], 0x10
jne 0x4280d7
test byte [ebp - 0x314], 0x10
jne 0x42803c
mov ecx, dword [ebp - 0x318]
mov eax, dword [ebp - 0x31c]
cmp dword [ebp - 0x440], ecx
ja 0x42803c
jb 0x4280d7
cmp dword [ebp - 0x444], eax
jb 0x4280d7
cmp dword [ebp - 0x440], ecx
jb 0x4280f6
ja 0x42803c
cmp dword [ebp - 0x444], eax
jbe 0x4280f6
xor ebx, ebx
inc ebx
jmp 0x4280f6
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea eax, [ebp - 0x71c]
push 0x408
push 0x160
push eax
push ebx
push dword [edx + 4]
call edi
test eax, eax
je 0x4280f6
push 0x408
push 0x160
lea eax, [ebp - 0x5bc]
push eax
push ebx
push dword [esi + 4]
call edi
test eax, eax
je 0x4280f6
lea eax, [ebp - 0x4ac]
push eax
lea eax, [ebp - 0x60c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov ebx, eax
jmp 0x4280f6
push dword [ebp - 0x328]
lea ecx, [ebp - 0x454]
push dword [ebp - 0x32c]
call fcn.0042763b
test al, al
jne 0x4280d7
push dword [ebp - 0x328]
lea ecx, [ebp - 0x454]
push dword [ebp - 0x32c]
call fcn.0042765a
xor ebx, ebx
test al, al
setne bl
jmp 0x4280f6
or ebx, 0xffffffff
jmp 0x4280f6
push dword [esi + 8]
mov eax, dword [edx]
push dword [edx + 8]
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test eax, eax
jns 0x4280f3
xor eax, eax
jmp 0x4280f8
movsx ebx, ax
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051ad52
mov esp, ebp
pop ebp
ret 0xc
call fcn.00406810
int3