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

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a1f7a
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.0049ffe7
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049ffbf
jmp 0x4a1f86
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a3740
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 0x4a3782
call fcn.004aa1c0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a3782
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a3779
xor eax, eax
jmp 0x4a378a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a3790
pop edi
pop esi
pop ebx
ret 4

Function at 0x4aa6f0
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 0x4aa71e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4aa73c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004aa656
jmp 0x4aa73c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4aa73c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004aa656
test edi, edi
mov eax, edi
jne 0x4aa726
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x403258
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x475044], 0x8088405
inc edx
mov dword [0x475044], edx
mul edx
mov eax, edx
ret

Function at 0x4033c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40345c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40343c
xor eax, eax
push ebp
push 0x403435
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403478
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40343c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret

Function at 0x404354
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, 8
call fcn.00402eb4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x14]
mov dword [edx + 4], eax
mov byte [0x475049], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, 0x40431c
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405bdc
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed8
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x125]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push 0x405db4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405c3b
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push 0x405dd0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405caf
xor eax, eax
push ebp
push 0x405ca8
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x1c], 5
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x16]
push eax
push 0
push 0
push ebp
lea eax, [ebp - 0x125]
call fcn.004059f4
pop ecx
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405c91
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x16]
push eax
push 0
push 0
push 0x405df0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405caf
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x125]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0x11]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor eax, eax
mov dword [ebp - 8], eax
cmp byte [ebp - 0x125], 0
je 0x405dad
cmp byte [ebp - 0x11], 0
jne 0x405cf4
cmp byte [ebp - 0x16], 0
je 0x405dad
lea eax, [ebp - 0x125]
push eax
call sub.kernel32.dll_lstrlenA
lea edx, [ebp - 0x125]
add eax, edx
mov dword [ebp - 0x20], eax
jmp 0x405d10
dec dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
cmp byte [eax], 0x2e
je 0x405d23
lea eax, [ebp - 0x125]
cmp eax, dword [ebp - 0x20]
jne 0x405d0d
lea eax, [ebp - 0x125]
cmp eax, dword [ebp - 0x20]
je 0x405dad
inc dword [ebp - 0x20]
cmp byte [ebp - 0x16], 0
je 0x405d57
lea eax, [ebp - 0x16]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x125]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x405dad
cmp byte [ebp - 0x11], 0
je 0x405dad
lea eax, [ebp - 0x11]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x125]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x405dad
mov byte [ebp - 0xf], 0
lea eax, [ebp - 0x11]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x125]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4064a0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x4064fc
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_ReadFile
dec eax
pop eax
pop ecx
jne 0x4064ee
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x4064e3
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x4064de
mov eax, 0x64
jmp 0x4064f3
call sub.kernel32.dll_GetLastError
call fcn.00402fa4
xor eax, eax
jmp 0x4064de
mov eax, 0x67
jmp 0x4064f3

Function at 0x406504
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov eax, dword [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x40655f
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_WriteFile
dec eax
pop eax
pop ecx
jne 0x406551
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x406546
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x406541
mov eax, 0x65
jmp 0x406556
call sub.kernel32.dll_GetLastError
call fcn.00402fa4
xor eax, eax
jmp 0x406541
mov eax, 0x67
jmp 0x406556

Function at 0x4065e8
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x406618
push 0
push dword [ebx]
call sub.kernel32.dll_GetFileSize
cmp eax, 0xffffffff
je 0x40660e
xor edx, edx
div dword [ebx + 8]
pop ebx
ret
call fcn.00402fb4
or eax, 0xffffffff
jmp 0x40660c
mov eax, 0x67
call fcn.00402fa4
or eax, 0xffffffff
jmp 0x40660c

Function at 0x409314
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x409345
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x40934c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x40937d
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x4094b4
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404834
push eax
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop ecx
pop ecx
pop ebp
ret
Function at 0x4094d8
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404834
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x409507
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x409510
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404834
push eax
call sub.kernel32.dll_DeleteFileA
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret

Function at 0x409a28
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov dword [ebp - 4], eax
lea eax, [ebp - 0x108]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, dword [ebp - 4]
call fcn.004044b0
mov esp, ebp
pop ebp
ret

Function at 0x409a5c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp - 4]
call fcn.00404834
push eax
call sub.kernel32.dll_CreateDirectoryA
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret

Function at 0x409a88
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404834
push eax
call sub.kernel32.dll_RemoveDirectoryA
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret

Function at 0x40c21c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
dec dword [ecx + 0x5589f44d]
clc

Function at 0x40c278
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 2
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c2a6
mov al, byte [ebp - 0xc]
mov byte [ebp - 0xa], al
jmp 0x40c2ac
mov al, byte [ebp - 9]
mov byte [ebp - 0xa], al
mov al, byte [ebp - 0xa]
mov esp, ebp
pop ebp
ret
Function at 0x4147bc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FindResourceA
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
jne 0x4147f2
push ebp
call fcn.0041474c
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LoadResource
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x14], 0
jne 0x414818
push ebp
call fcn.0041474c
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SizeofResource
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
push eax
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, dword [ebp - 8]
pop ecx
call fcn.00414348
mov esp, ebp
pop ebp
ret 4

Function at 0x41b154
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov edx, 8
call fcn.00403238
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00404834
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete byte [ebp - 0xd]
mov eax, dword [ebp - 0x14]
call fcn.0041ae44
mov edx, dword [ebp - 0xc]
mov byte [edx], al
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret

Function at 0x41b2f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov al, byte [ebp + 8]
call fcn.0041adf4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00404834
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x41b358
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, dword [0x47499c]
mov dl, 1
mov eax, dword [0x41acd0]
call fcn.0040ccac
call fcn.00403d14
mov esp, ebp
pop ebp
ret 8
Function at 0x41b360
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00404834
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41b3c2
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
lea eax, [ebp - 0x1c]
push eax
push 0
mov ecx, dword [0x474b5c]
mov dl, 1
mov eax, dword [0x41acd0]
call fcn.0040ccac
call fcn.00403d14
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
call fcn.0041ae44
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 8

Function at 0x41b74c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, 0x105
call fcn.00402eb4
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x41b7c4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x104
jle 0x41b7a3
mov edx, dword [ebp - 8]
inc edx
lea eax, [ebp - 0xc]
call fcn.00402ee4
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetTempPathA
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.00409d04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b7cb
mov eax, dword [ebp - 0xc]
call fcn.00402ecc
ret
Function at 0x41b7d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
xor ebx, ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41b96a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x41b811
mov eax, dword [ebp - 4]
call fcn.0041bbb4
test al, al
jne 0x41b81b
lea eax, [ebp - 0x14]
call fcn.0041b74c
jmp 0x41b826
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.00404460
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x14]
call fcn.0041b6a4
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x14]
call fcn.00404460
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GetLocalTime
push dword [ebp - 0x14]
push dword [ebp - 0xc]
lea eax, [ebp - 0x2c]
push eax
movzx eax, word [ebp - 0x22]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0
movzx eax, word [ebp - 0x1e]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0
movzx eax, word [ebp - 0x1c]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0
movzx eax, word [ebp - 0x1a]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0
movzx eax, word [ebp - 0x18]
movzx edx, word [ebp - 0x16]
imul edx
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
lea edx, [ebp - 0x54]
mov ecx, 4
mov eax, 0x41b980
call fcn.0040a2f4
push dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404730
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
call fcn.0040441c
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x41b8ed
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0
lea edx, [ebp - 0x64]
mov ecx, 1
mov eax, 0x41b9a4
call fcn.0040a2f4
inc dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov edx, dword [edx]
lea eax, [ebp - 0x68]
mov ecx, dword [ebp - 8]
call fcn.004046bc
mov eax, dword [ebp - 0x68]
call fcn.0041b9b0
test al, al
jne 0x41b92c
mov edx, dword [ebp + 8]
mov edx, dword [edx]
lea eax, [ebp - 0x6c]
mov ecx, dword [ebp - 8]
call fcn.004046bc
mov eax, dword [ebp - 0x6c]
call fcn.00404834
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x41b8c0
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
call fcn.00404678
mov eax, dword [ebp + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b971
lea eax, [ebp - 0x6c]
mov edx, 2
call fcn.004043ec
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.004043ec
lea eax, [ebp - 0x14]
call fcn.004043c8
ret

Function at 0x41b9b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404834
push eax
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x41b9d6
test byte [ebp - 0xc], 0x10
je 0x41b9da
xor eax, eax
jmp 0x41b9dc
mov al, 1
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x41b9e8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.00404834
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x41bae5
xor eax, eax
push ebp
push 0x41bad5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
inc eax
call fcn.00408bd0
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x41bac4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.00404834
push eax
call sub.version.dll_GetFileVersionInfoA
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x41baae
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x41baf4
mov eax, dword [ebp - 0x1c]
push eax
call sub.version.dll_VerQueryValueA
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x41ba97
cmp dword [ebp - 0x20], 0
jne 0x41ba9d
mov byte [ebp - 9], 0
jmp 0x41baae
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41bacb
mov eax, dword [ebp - 0x1c]
call fcn.00402ecc
ret
mov byte [ebp - 9], 0
mov al, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41bbb4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404834
push eax
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x41bbda
test byte [ebp - 0xc], 0x10
jne 0x41bbde
xor eax, eax
jmp 0x41bbe0
mov al, 1
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x41bcf4
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea0
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404824
xor eax, eax
push ebp
push 0x41be7e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x41be50
lea edx, [ebp - 0x154]
mov eax, dword [ebp - 4]
call fcn.0041b6f8
mov edx, dword [ebp - 0x154]
lea eax, [ebp - 4]
call fcn.00404460
lea eax, [ebp - 0x150]
xor ecx, ecx
mov edx, 0x140
call fcn.00403238
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x158]
mov ecx, 0x41be94
mov edx, dword [ebp - 4]
call fcn.004046bc
mov eax, dword [ebp - 0x158]
call fcn.00404834
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x41be50
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x124]
call fcn.00409d04
test byte [ebp - 0x150], 0x10
je 0x41be09
cmp byte [ebp - 5], 0
je 0x41be2f
mov eax, dword [ebp - 0xc]
mov edx, 0x41bea4
call fcn.00404780
je 0x41be2f
mov eax, dword [ebp - 0xc]
mov edx, 0x41beb0
call fcn.00404780
je 0x41be2f
push dword [ebp - 4]
push 0x41bebc
push dword [ebp - 0xc]
lea eax, [ebp - 0x15c]
mov edx, 3
call fcn.00404730
mov eax, dword [ebp - 0x15c]
call fcn.0041bec0
jmp 0x41be2f
push dword [ebp - 4]
push 0x41bebc
push dword [ebp - 0xc]
lea eax, [ebp - 0x160]
mov edx, 3
call fcn.00404730
mov eax, dword [ebp - 0x160]
call fcn.00409510
lea eax, [ebp - 0x150]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x41bda6
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41be85
lea eax, [ebp - 0x160]
mov edx, 4
call fcn.004043ec
lea eax, [ebp - 0xc]
call fcn.004043c8
lea eax, [ebp - 4]
call fcn.004043c8
ret