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

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46369a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00461719
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004616f1
jmp 0x4636a6
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x464d58
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x464d9a
call fcn.0046a811
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x464d9a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x464d91
xor eax, eax
jmp 0x464da2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00464da8
pop edi
pop esi
pop ebx
ret 4

Function at 0x46ad41
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46ad6f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46ad8d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046aca7
jmp 0x46ad8d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46ad8d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046aca7
test edi, edi
mov eax, edi
jne 0x46ad77
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402ad6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRTD.dll_malloc]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402b06
push 0x40c870
call dword [sym.imp.MSVCRTD.dll_perror]
add esp, 4
push 1
call dword [sym.imp.MSVCRTD.dll_exit]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40315c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov dword [ebp - 0x128], 2
mov byte [ebp - 8], 0x3b
mov byte [ebp - 7], 0
push 0x40ca04
call dword [sym.imp.MSVCRTD.dll_getenv]
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4031cd
mov eax, dword [ebp - 0xc]
push eax
call sub.MSVCRTD.dll_strlen
add esp, 4
add eax, 0x28
push eax
call fcn.00402ad6
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0xc]
push ecx
push 0x40ca10
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.MSVCRTD.dll_sprintf]
add esp, 0xc
push 0
mov eax, dword [ebp - 0x14]
push eax
call fcn.00401d8e
add esp, 8
push 0x104
lea ecx, [ebp - 0x124]
push ecx
call fcn.0040414a
add esp, 8
and eax, 0xff
test eax, eax
jne 0x403200
push 1
push 0x40ca24
call fcn.004044bb
add esp, 8
xor al, al
jmp 0x40333f
lea edx, [ebp - 0x124]
push edx
call sub.MSVCRTD.dll_strlen
add esp, 4
add eax, 0x28
push eax
call fcn.00402ad6
add esp, 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x124]
push eax
push 0x40ca48
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.MSVCRTD.dll_sprintf]
add esp, 0xc
push 0
mov edx, dword [ebp - 0x18]
push edx
call fcn.00401d8e
add esp, 8
mov dword [ebp - 4], 0x28
lea eax, [ebp - 0x124]
push eax
call sub.MSVCRTD.dll_strlen
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
jmp 0x403270
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x128]
jge 0x40329f
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax*4 + 0x40c014]
push ecx
call sub.MSVCRTD.dll_strlen
add esp, 4
mov edx, dword [ebp - 0x20]
add edx, eax
mov eax, dword [ebp - 4]
lea ecx, [eax + edx + 1]
mov dword [ebp - 4], ecx
jmp 0x403267
mov edx, dword [ebp - 4]
add edx, 1
push edx
call fcn.00402ad6
add esp, 4
mov dword [ebp - 0x10], eax
push 0x40ca60
mov eax, dword [ebp - 0x10]
push eax
call sub.MSVCRTD.dll_strcpy
add esp, 8
mov dword [ebp - 0x1c], 0
jmp 0x4032d4
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x128]
jge 0x40331b
lea eax, [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.MSVCRTD.dll_strcat
add esp, 8
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx*4 + 0x40c014]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.MSVCRTD.dll_strcat
add esp, 8
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.MSVCRTD.dll_strcat
add esp, 8
jmp 0x4032cb
mov ecx, dword [ebp - 0x10]
push ecx
call sub.MSVCRTD.dll_strlen
add esp, 4
mov edx, dword [ebp - 0x10]
mov byte [edx + eax - 1], 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call fcn.00401d8e
add esp, 8
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x403627
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
push 0x104
lea eax, [ebp - 0x184]
push eax
call fcn.00404108
add esp, 8
push 0x40d0bc
lea ecx, [ebp - 0x184]
push ecx
call dword [sym.imp.MSVCRTD.dll_fopen]
add esp, 8
mov dword [ebp - 0x188], eax
cmp dword [ebp - 0x188], 0
jne 0x40368d
lea edx, [ebp - 0x184]
push edx
push 0x40d0c0
mov eax, dword [sym.imp.MSVCRTD.dll__iob]
add eax, 0x40
push eax
call dword [sym.imp.MSVCRTD.dll_fprintf]
add esp, 0xc
mov eax, 1
jmp 0x4036ea
mov ecx, dword [ebp - 0x188]
push ecx
push 0x80
push 1
lea edx, [ebp - 0x80]
push edx
call dword [sym.imp.MSVCRTD.dll_fread]
add esp, 0x10
mov dword [ebp - 0x18c], eax
cmp dword [ebp - 0x18c], 0
je 0x4036d8
mov eax, dword [sym.imp.MSVCRTD.dll__iob]
add eax, 0x20
push eax
mov ecx, dword [ebp - 0x18c]
push ecx
push 1
lea edx, [ebp - 0x80]
push edx
call dword [sym.imp.MSVCRTD.dll_fwrite]
add esp, 0x10
jmp 0x40368d
mov eax, dword [ebp - 0x188]
push eax
call dword [sym.imp.MSVCRTD.dll_fclose]
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x403dda
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00403ef5
add esp, 8
and eax, 0xff
test eax, eax
jne 0x403e11
push 1
push 0x40d2c0
call fcn.004044bb
add esp, 8
push 2
call dword [sym.imp.MSVCRTD.dll_exit]
push 0
call fcn.00403dd0
push eax
mov edx, dword [ebp + 0x10]
push edx
call fcn.004036ee
add esp, 0xc
cmp eax, 1
jge 0x403e41
push 1
push 0x40d2f4
call fcn.004044bb
add esp, 8
push 1
call dword [sym.imp.MSVCRTD.dll_exit]
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004019d9
add esp, 0xc
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x18]
mov byte [edx], 0
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.00403fe9
add esp, 0x10
and eax, 0xff
test eax, eax
jne 0x403ef0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0x40d32c
mov ecx, dword [ebp - 8]
push ecx
call sub.MSVCRTD.dll_strlen
add esp, 4
mov esi, eax
mov edx, dword [ebp - 4]
push edx
call sub.MSVCRTD.dll_strlen
add esp, 4
add esi, eax
mov eax, dword [ebp + 0x18]
push eax
call sub.MSVCRTD.dll_strlen
add esp, 4
add esi, eax
push esi
call fcn.00402ad6
add esp, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.MSVCRTD.dll_sprintf]
add esp, 0x10
push 1
mov edx, dword [ebp - 0xc]
push edx
call fcn.004044bb
add esp, 8
push 4
call dword [sym.imp.MSVCRTD.dll_exit]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4045f2
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x404692
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
lea eax, [ebp - 0x114]
push eax
call fcn.00405837
add esp, 8
test eax, eax
je 0x40468d
cmp dword [ebp - 4], 0
je 0x404667
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x114]
push edx
call fcn.004056d8
add esp, 8
test eax, eax
jle 0x40468d
cmp dword [ebp - 4], 0
je 0x40467a
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCRTD.dll_free]
add esp, 4
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.MSVCRTD.dll__strdup]
add esp, 4
mov dword [ebp - 4], eax
jmp 0x404609
cmp dword [ebp - 4], 0
jne 0x40469f
xor eax, eax
jmp 0x404747
lea edx, [ebp - 0xc]
push edx
push 0x20019
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4046dd
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCRTD.dll_free]
add esp, 4
cmp dword [ebp - 0xc], 0
je 0x4046d9
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x404747
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCRTD.dll_free]
add esp, 4
mov dword [ebp - 8], 0x104
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x114]
push eax
push 0
push 0
push 0x40d714
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x404727
cmp dword [ebp - 0xc], 0
je 0x404723
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x404747
cmp dword [ebp - 0xc], 0
je 0x404737
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.MSVCRTD.dll__strdup]
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x40474b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push 0x104
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404783
push 1
push 0x40d720
call fcn.004044bb
add esp, 8
push 1
call dword [sym.imp.MSVCRTD.dll_exit]
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCRTD.dll_strlen
add esp, 4
push eax
lea edx, [ebp - 0x104]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRTD.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x4047ad
jmp 0x404885
mov dword [ebp - 0x108], 0x40d750
mov ecx, dword [ebp - 0x108]
push ecx
push 0x40d758
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRTD.dll_strcpy
add esp, 8
push eax
call sub.MSVCRTD.dll_strcat
add esp, 8
push eax
call sub.MSVCRTD.dll_strcat
add esp, 8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x108]
mov dword [ecx], edx
xor eax, eax
mov al, byte [0x40f092]
test eax, eax
je 0x404868
lea ecx, [ebp - 0x104]
push ecx
push 0x40d760
call dword [sym.imp.MSVCRTD.dll_printf]
add esp, 8
mov dword [ebp - 0x10c], 0
jmp 0x40482e
mov edx, dword [ebp - 0x10c]
add edx, 1
mov dword [ebp - 0x10c], edx
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + eax*4], 0
je 0x40485a
mov edx, dword [ebp - 0x10c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
push ecx
push 0x40d76c
call dword [sym.imp.MSVCRTD.dll_printf]
add esp, 8
jmp 0x40481f
push 0x40d774
call dword [sym.imp.MSVCRTD.dll_printf]
add esp, 4
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.MSVCRTD.dll__spawnv]
add esp, 0xc
push eax
call dword [sym.imp.MSVCRTD.dll_exit]
mov esp, ebp
pop ebp
ret
Function at 0x404ab7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0xffffffff
je 0x404ace
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0xffffffff
jne 0x404ad5
xor eax, eax
jmp 0x404c74
push 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCRTD.dll__lseek]
add esp, 0xc
test eax, eax
jge 0x404af6
xor eax, eax
jmp 0x404c74
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
add eax, 1
push eax
call dword [sym.imp.MSVCRTD.dll_malloc]
add esp, 4
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x404b19
xor eax, eax
jmp 0x404c74
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCRTD.dll__read]
add esp, 0xc
mov edx, dword [ebp + 0xc]
cmp eax, dword [edx + 4]
je 0x404b4d
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.MSVCRTD.dll_free]
add esp, 4
xor eax, eax
jmp 0x404c74
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0xc], 0
jne 0x404b6b
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0x40]
mov byte [ecx + eax], 0
mov eax, dword [ebp - 0x40]
jmp 0x404c74
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0xc], 8
jne 0x404c72
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x34], edx
push 0x38
push 0x40d7e0
push 0xfffffffffffffff1
lea eax, [ebp - 0x38]
push eax
call fcn.00405d36
add esp, 0x10
test eax, eax
jge 0x404bc9
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.MSVCRTD.dll_free]
add esp, 4
xor eax, eax
jmp 0x404c74
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
add eax, 1
push eax
call dword [sym.imp.MSVCRTD.dll_malloc]
add esp, 4
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x404bf5
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.MSVCRTD.dll_free]
add esp, 4
xor eax, eax
jmp 0x404c74
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x28], ecx
push 1
lea edx, [ebp - 0x38]
push edx
call fcn.00405eda
add esp, 8
test eax, eax
jge 0x404c33
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.MSVCRTD.dll_free]
add esp, 4
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.MSVCRTD.dll_free]
add esp, 4
xor eax, eax
jmp 0x404c74
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x3c]
mov byte [ecx + eax], 0
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.MSVCRTD.dll_free]
add esp, 4
lea eax, [ebp - 0x38]
push eax
call fcn.00405cac
add esp, 4
test eax, eax
jge 0x404c6d
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.MSVCRTD.dll_free]
add esp, 4
xor eax, eax
jmp 0x404c74
mov eax, dword [ebp - 0x3c]
jmp 0x404c74
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40a72a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
push 0x40f06c
mov ecx, dword [sym.imp.MSVCRTD.dll__iob]
add ecx, 0x40
push ecx
call dword [sym.imp.MSVCRTD.dll_fprintf]
add esp, 0xc
push 1
call dword [sym.imp.MSVCRTD.dll_exit]
pop ebp
ret

Function at 0x40a900
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b398
push 0x40aa90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRTD.dll___set_app_type]
add esp, 4
mov dword [0x40f0e0], 0xffffffff
mov eax, dword [0x40f0e0]
mov dword [0x40f0e4], eax
call dword [sym.imp.MSVCRTD.dll___p__fmode]
mov ecx, dword [0x40f0dc]
mov dword [eax], ecx
call dword [sym.imp.MSVCRTD.dll___p__commode]
mov edx, dword [0x40f0d8]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRTD.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x40f0e8], ecx
call fcn.0040a7a3
cmp dword [0x40f070], 0
jne 0x40a991
push 0x40aa80
call dword [sym.imp.MSVCRTD.dll___setusermatherr]
add esp, 4
call fcn.0040aa60
push 0x40c00c
push 0x40c008
call sub.MSVCRTD.dll__initterm
add esp, 8
mov edx, dword [0x40f0d4]
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [0x40f0d0]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.MSVCRTD.dll___getmainargs]
add esp, 0x14
push 0x40c004
push section..data
call sub.MSVCRTD.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRTD.dll___p___initenv]
mov edx, dword [ebp - 0x20]
mov dword [eax], edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call section..text
add esp, 0xc
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.MSVCRTD.dll_exit]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call sub.MSVCRTD.dll__XcptFilter
add esp, 8
ret
Function at 0x4015c4
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x408920
call fcn.004086a0
sub esp, 0x14
push ebx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 0x18], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x4015fc
xor eax, eax
jmp 0x401679
push esi
lea ecx, [ebp - 0x10]
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40161a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40166c
cmp dword [ebp - 0x10], ebx
jne 0x40166c
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x40166c
lea eax, [ebp - 0x14]
push ebx
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x40166a
cmp dword [ebp - 0x14], esi
jne 0x40166a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [eax], esi
lea eax, [ebp - 0x20]
mov dword [ebp - 4], ebx
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [eax + 0x10]
call fcn.00401f7d
mov ebx, edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x402549
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp + 8], edi
je 0x4025c4
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402598
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x402598
push edi
jmp 0x4025be
cmp dword [ebp - 8], ebx
jne 0x402595
mov eax, dword [ebp + 0x10]
cmp esi, ebx
mov dword [eax], esi
jbe 0x4025f8
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
jne 0x4025c8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x402602
lea eax, [ebp + 0x10]
push ebx
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4025ed
cmp dword [ebp + 0x10], esi
jne 0x4025ed
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 1
mov dword [eax], edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4025ff
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40273a
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
mov esi, dword [ebp + 0x10]
push edi
push dword [ebp + 0x14]
push esi
call dword [sym.imp.MSVCRT.dll_wcscpy]
mov edi, dword [ebp + 0xc]
pop ecx
pop ecx
lea eax, [ebp - 0x250]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
je 0x402870
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_wprintf]
test byte [ebp - 0x250], 0x10
je 0x4027fe
cmp dword [ebp + 0x18], 1
jne 0x40284e
cmp word [ebp - 0x224], 0x2e
jne 0x4027bb
cmp word [ebp - 0x222], 0
je 0x40284e
cmp word [ebp - 0x222], 0x2e
jne 0x4027bb
cmp word [ebp - 0x220], 0
je 0x40284e
lea eax, [ebp - 0x224]
push eax
push 0x4091b0
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esi + eax*2]
add esp, 0xc
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x1c]
lea eax, [edi + eax*2]
push eax
push str.__addDir__s_n
call ebx
push dword [ebp + 0x1c]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
push dword [ebp + 8]
call fcn.0040273a
add esp, 0x20
jmp 0x40284a
lea eax, [ebp - 0x224]
push eax
push esi
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
pop ecx
push dword [ebp + 0x14]
push edi
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x40284a
mov eax, dword [ebp + 0x1c]
lea eax, [edi + eax*2]
push eax
push str.__addFile__s_n
call ebx
mov eax, dword [ebp + 0x1c]
pop ecx
pop ecx
lea eax, [edi + eax*2]
push eax
push edi
push dword [ebp + 8]
call fcn.004024c3
test eax, eax
jne 0x40284a
push edi
push 0x409138
call ebx
pop ecx
pop ecx
and word [esi], 0
lea eax, [ebp - 0x250]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402778
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
push 1
pop eax
pop edi
pop esi
leave
ret

Function at 0x402925
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
xor ebx, ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
je 0x4029b4
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
je 0x4029b4
push edi
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4029ad
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
push 0x4092e4
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4029ad
cmp dword [ebp + 8], 4
jb 0x4029ad
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push 1
mov edx, dword [eax + 8]
pop ebx
shr edx, 0x10
mov word [ecx], dx
mov dx, word [eax + 8]
mov word [ecx + 2], dx
mov edx, dword [eax + 0xc]
shr edx, 0x10
mov word [ecx + 4], dx
mov ax, word [eax + 0xc]
mov word [ecx + 6], ax
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret