joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5e048c
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 + 0x669020]
je 0x5e04a7
inc edi
cmp edi, 0x17
jb 0x5e0498
cmp edi, 0x17
jae 0x5e0627
push ebp
push 3
call fcn.005efb48
cmp eax, 1
pop ecx
je 0x5e05f3
push 3
call fcn.005efb48
test eax, eax
pop ecx
jne 0x5e04db
cmp dword [0x6687b4], 1
je 0x5e05f3
cmp ebx, 0xfc
je 0x5e0626
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x677ea8
push ebp
call fcn.005d7043
add esp, 0xc
test eax, eax
je 0x5e0511
push esi
push esi
push esi
push esi
push esi
call fcn.005d28d1
add esp, 0x14
push 0x104
mov esi, 0x677ec1
push esi
push 0
mov byte [0x677fc5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5e0555
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.005d7043
add esp, 0xc
test eax, eax
je 0x5e0555
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.005d28d1
add esp, 0x14
push esi
call fcn.005dabf0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x5e059a
push esi
call fcn.005dabf0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x6781bc
push 0x617ebc
sub ecx, eax
push ecx
push eax
call fcn.005d70a8
add esp, 0x14
test eax, eax
je 0x5e059a
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.005d28d1
add esp, 0x14
jmp 0x5e059c
xor esi, esi
push 0x617eb8
push ebx
push ebp
call fcn.005d6d83
add esp, 0xc
test eax, eax
je 0x5e05bc
push esi
push esi
push esi
push esi
push esi
call fcn.005d28d1
add esp, 0x14
push dword [edi*8 + 0x669024]
push ebx
push ebp
call fcn.005d6d83
add esp, 0xc
test eax, eax
je 0x5e05de
push esi
push esi
push esi
push esi
push esi
call fcn.005d28d1
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.005ef98b
add esp, 0xc
jmp 0x5e0626
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x5e0626
cmp ebp, 0xffffffff
je 0x5e0626
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x669024]
push dword [esi]
call fcn.005dabf0
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 0x5ef98b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.005ddb9d
xor ebx, ebx
cmp dword [0x67844c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x5efa61
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x5efb41
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x5efb41
push eax
call fcn.005ddb2f
mov dword [esp], 0x6195a8
push edi
mov dword [0x67844c], eax
call esi
push eax
call fcn.005ddb2f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x678450], eax
call esi
push eax
call fcn.005ddb2f
mov dword [0x678454], eax
lea eax, [ebp - 0xc]
push eax
call fcn.005d8387
test eax, eax
pop ecx
pop ecx
je 0x5efa2f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.005d28d1
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x5efa61
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.005ddb2f
cmp eax, ebx
pop ecx
mov dword [0x67845c], eax
je 0x5efa61
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.005ddb2f
pop ecx
mov dword [0x678458], eax
mov eax, dword [0x678458]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x5efae6
cmp dword [0x67845c], ecx
je 0x5efae6
push eax
call fcn.005ddba6
push dword [0x67845c]
mov esi, eax
call fcn.005ddba6
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x5efae6
cmp edi, ebx
je 0x5efae6
call esi
cmp eax, ebx
je 0x5efab3
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x5efab3
test byte [ebp - 0x18], 1
jne 0x5efae6
lea eax, [ebp - 0x10]
push eax
call fcn.005d83be
test eax, eax
pop ecx
je 0x5eface
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.005d28d1
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x5efadd
or dword [ebp + 0x10], 0x200000
jmp 0x5efb21
or dword [ebp + 0x10], 0x40000
jmp 0x5efb21
mov eax, dword [0x678450]
cmp eax, dword [ebp - 8]
je 0x5efb21
push eax
call fcn.005ddba6
cmp eax, ebx
pop ecx
je 0x5efb21
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x5efb21
mov eax, dword [0x678454]
cmp eax, dword [ebp - 8]
je 0x5efb21
push eax
call fcn.005ddba6
cmp eax, ebx
pop ecx
je 0x5efb21
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x67844c]
call fcn.005ddba6
cmp eax, ebx
pop ecx
je 0x5efb41
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5efb43
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004627
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10004666
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10004666
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10004666
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10004666
cmp dword [ecx + 0x74], 0xe
jbe 0x10004666
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100072ef
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000738c
push ebx
push esi
call fcn.100072b8
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000724c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10007339
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000738b
push edi
push eax
call fcn.100082aa
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10007359
call fcn.10005d94
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000738a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000724c
add esp, 0x20
test eax, eax
jne 0x10007378
push edi
call fcn.10005d94
jmp 0x10007380
push ebx
call fcn.10005d94
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x100075f9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000f4e0
push 0x1000f4d8
push str.FlsAlloc
push 0x1f
call fcn.10007515
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000762d
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000e10c]
call esi
jmp 0x10007633
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10007677
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000f4f0
push 0x1000f4e8
push str.FlsGetValue
push 0x21
call fcn.10007515
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100076ae
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000e10c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100076b6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000f4f8
push 0x1000f4f0
push str.FlsSetValue
push 0x22
call fcn.10007515
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100076f0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1000e10c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0xadafb0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x580000]
push edi
jmp 0xadafca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xadafd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xadafc0
mov eax, 1
add ebx, ebx
jne 0xadafe3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xadaff4
jne 0xadb013
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xadb013
dec eax
add ebx, ebx
jne 0xadb000
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xadafd8
add ebx, ebx
jne 0xadb00f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xadb065
xor ecx, ecx
sub eax, 3
jb 0xadb02b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xadb09a
sar eax, 1
mov ebp, eax
jmp 0xadb036
add ebx, ebx
jne 0xadb036
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xadb004
inc ecx
add ebx, ebx
jne 0xadb044
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xadb004
add ebx, ebx
jne 0xadb051
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xadb046
jne 0xadb062
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xadb046
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xadb084
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xadb076
jmp 0xadafc6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xadb084
add edi, ecx
jmp 0xadafc6
pop esi
mov edi, esi
mov ecx, 0x190dc
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xadb0a2
cmp byte [edi], 0x36
jne 0xadb0a2
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 0xadb0a7
lea edi, [esi + 0x6d5000]
mov eax, dword [edi]
or eax, eax
je 0xadb11f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6e2aa0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6e2bec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xadb0d4
mov ecx, edi
jns 0xadb103
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 + 0x6e2bf4]
or eax, eax
je 0xadb119
mov dword [ebx], eax
add ebx, 4
jmp 0xadb0f1
call dword [esi + 0x6e2bf0]
mov ebp, dword [esi + 0x6e2bf8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0xadb153
sub esp, 0xffffff80
jmp 0x73036d
Function at 0x401160
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call fcn.00438ed2
add esp, 0xc
pop ebp
ret 0xc

Function at 0x4011e0
Capabilities:
Create directory
Get thread local storage value
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x468744]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
sub eax, 2
push edi
mov edi, ecx
je 0x4012ef
dec eax
jne 0x401388
add edi, 0x118
push edi
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00439a42
mov ecx, dword [esi + 4]
add esp, 0xc
push ecx
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov eax, dword [0x46ae9c]
mov edi, dword [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
push edi
call eax
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000100
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4012c3
movzx eax, word [esi + 0x1a]
movzx ecx, word [esi + 0x18]
lea edx, [ebp - 0x21c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
cmp eax, 1
jne 0x4012bc
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
cmp eax, 1
jne 0x4012bc
lea ecx, [ebp - 0x214]
push ecx
push ebx
mov edx, ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, word [esi + 0x1c]
and eax, 0x27
push eax
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438786
mov esp, ebp
pop ebp
ret 4
mov edx, dword [edi]
mov eax, dword [esi + 4]
mov edx, dword [edx + 0x14]
push eax
call edx
test al, al
je 0x401382
lea eax, [edi + 0x118]
push eax
lea ecx, [ebp - 0x108]
push 0x104
push ecx
call fcn.00439a42
mov edx, dword [esi + 4]
add esp, 0xc
push edx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.00439a42
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push 0
lea ecx, [ebp - 0x20c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
push 0x180
lea edx, [ebp - 0x108]
push 0x8121
push edx
call fcn.00438863
add esp, 0xc
mov ebx, eax
inc dword [edi + 0x21c]
mov ecx, dword [ebp - 4]
pop edi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00438786
mov esp, ebp
pop ebp
ret 4
Function at 0x401520
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0x8000
jl 0x401574
mov ecx, dword [esi + ebx*4 - 0x1fdd4]
mov eax, dword [esi + 0x228]
push edi
mov edi, dword [ebp + 0x10]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x40154e
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x224]
add eax, ecx
mov ecx, dword [ebp + 0xc]
push edi
push eax
push ecx
call fcn.0043e700
add esp, 0xc
add dword [esi + ebx*4 - 0x1fdd4], edi
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push eax
push ebx
call fcn.00438ed2
add esp, 0xc
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x401630
Capabilities:
Extract resource via kernel32 functions
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x468744]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
mov esi, ecx
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0xa
mov edi, eax
push 0x4b0
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x401758
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401758
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push edi
mov dword [esi + 0x224], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea edi, [esi + 8]
push edi
push 0xffffffffffffffff
push 0x4010e0
push 0x4010c0
push 0x401090
push 0x401060
push 0x401030
push 0x401020
push 0x401010
mov dword [esi + 0x228], eax
call dword [sym.imp.Cabinet.dll_FDICreate]
add esp, 0x24
mov dword [esi + 4], eax
test eax, eax
je 0x40173e
mov ecx, dword [0x46ae9c]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push ecx
call ebx
mov edx, dword [eax]
push 0
push 0x8020
mov ecx, eax
mov eax, dword [edx]
push 0
call eax
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x1c]
push ecx
mov edi, eax
push edi
push edx
call dword [sym.imp.Cabinet.dll_FDIIsCabinet]
movzx eax, word [ebp - 0x16]
mov ecx, dword [0x46ae9c]
add esp, 0xc
push ecx
mov dword [esi + 0x220], eax
call ebx
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
push edi
call eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004013a0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438786
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi]
pop edi
pop esi
add eax, 0xb000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438786
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00438786
mov esp, ebp
pop ebp
ret 4
Function at 0x401d20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x450656
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x468744]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push esi
push edi
mov eax, dword [0x468744]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
mov esi, ecx
mov eax, 7
xor ebx, ebx
xor ecx, ecx
mov edi, edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], cx
mov dword [esp + 0x298], ebx
xor edx, edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], dx
push 0x104
lea eax, [esp + 0x80]
push eax
push ebx
mov byte [esp + 0x2a4], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x7c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.install.cfg
lea edx, [esp + 0x80]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x46af58
lea eax, [esp + 0x80]
call fcn.00424130
add esp, 4
test eax, eax
je 0x401df7
push 1
mov eax, 0x456440
mov ecx, 0x46af58
call fcn.00403640
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401e00
sub eax, edx
sar eax, 1
push eax
mov eax, esi
mov ecx, 0x46af58
call fcn.00403640
push 3
push 0x456444
push 0x46af58
xor eax, eax
call fcn.00403110
cmp eax, 0xffffffff
je 0x401e4b
push 4
push 0x45644c
push eax
mov eax, 3
mov ecx, 0x46af58
call fcn.00402f20
push 3
push 0x456458
push 0x46af58
xor eax, eax
call fcn.00403110
cmp eax, 0xffffffff
je 0x401e7a
push 4
push str._v__
push eax
mov eax, 3
mov ecx, 0x46af58
call fcn.00402f20
cmp dword [0x46af68], ebx
mov ebx, 8
je 0x402077
mov eax, dword [0x46af58]
cmp dword [0x46af6c], ebx
jae 0x401e9d
mov eax, 0x46af58
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [esp + 0x20], eax
test eax, eax
je 0x402119
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
jle 0x402057
jmp 0x401ed0
push 0x46af58
jmp 0x40206a
Function at 0x403550
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f0bb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x468744]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00437cbd
push 4
mov dword [ebp - 4], 0
call fcn.00439c91
mov edi, eax
add esp, 4
test edi, edi
je 0x4035cc
call fcn.00437fcd
mov dword [edi], eax
call fcn.00437d8c
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00437c7e
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4035c2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00437ca6
jmp 0x4035ce
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41b890
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x888
mov eax, dword [0x468744]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov edi, ecx
mov ecx, dword [ebp + 0x20]
lea edx, [ebp - 0x624]
push 0x104
push edx
mov dword [ebp - 0x880], esi
mov dword [ebp - 0x884], eax
mov dword [ebp - 0x878], ecx
call fcn.0043a483
add esp, 0xc
push 0x456648
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x874]
push ecx
lea edx, [ebp - 0x624]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x87c], eax
cmp eax, 0xffffffff
jne 0x41b930
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.__Error_0x_X_retrieving_folder_contents
push 0x4699d4
xor eax, eax
call fcn.0042d020
add esp, 0xc
jmp 0x41baa5
mov ecx, 0x456654
lea eax, [ebp - 0x848]
jmp 0x41b940
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41b966
test dx, dx
je 0x41b962
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41b966
add eax, 4
add ecx, 4
test dx, dx
jne 0x41b940
xor eax, eax
jmp 0x41b96b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41ba6d
mov ecx, 0x456658
lea eax, [ebp - 0x848]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41b9a6
test dx, dx
je 0x41b9a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41b9a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x41b980
xor eax, eax
jmp 0x41b9ab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41ba6d
push esi
lea eax, [ebp - 0x41c]
push 0x104
push eax
call fcn.0043a483
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 0xc
lea ecx, [ebp - 0x848]
push ecx
lea edx, [ebp - 0x41c]
push edx
call esi
mov eax, dword [ebp - 0x884]
push eax
lea ecx, [ebp - 0x214]
push 0x104
push ecx
call fcn.0043a483
add esp, 0xc
lea edx, [ebp - 0x848]
push edx
lea eax, [ebp - 0x214]
push eax
call esi
test byte [ebp - 0x874], 0x10
je 0x41ba3d
mov ecx, dword [ebp - 0x878]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0x10]
push ebx
push edx
push eax
push ecx
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x41c]
push eax
mov ecx, edi
call fcn.0041b890
jmp 0x41ba61
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
push ebx
push ecx
push edx
mov edx, dword [ebp - 0x878]
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x41c]
push ecx
mov ecx, edi
call fcn.0041bc40
mov esi, eax
test esi, esi
jne 0x41ba98
mov esi, dword [ebp - 0x880]
mov eax, dword [ebp - 0x87c]
lea edx, [ebp - 0x874]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41b930
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x12
jne 0x41ba98
xor esi, esi
mov ecx, dword [ebp - 0x87c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00438786
mov esp, ebp
pop ebp
ret 0x1c