joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10072ffb
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10091594
push 0x1009158c
push str.FlsAlloc
push 0x1f
call fcn.10072e66
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1007302f
push dword [ebp + 8]
mov ecx, esi
call dword [0x10085390]
call esi
jmp 0x10073035
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10073079
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100915a4
push 0x1009159c
push str.FlsGetValue
push 0x21
call fcn.10072e66
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100730b0
push dword [ebp + 8]
mov ecx, esi
call dword [0x10085390]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100730b8
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100915ac
push 0x100915a4
push str.FlsSetValue
push 0x22
call fcn.10072e66
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100730f2
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10085390]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10076d98
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.10076d14
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10076f07
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10076f07
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10076ebc
jg 0x10076df4
test eax, eax
je 0x10076eb2
push 1
push 0x1000
call fcn.10072b64
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10076e17
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10076ea9
push 0x8000
push ebx
call fcn.10076811
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10076e40
jg 0x10076e3b
cmp ecx, 0x1000
jb 0x10076e40
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100703a7
add esp, 0x10
cmp eax, 0xffffffff
je 0x10076e85
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10076e3b
jl 0x10076e6c
test ecx, ecx
jne 0x10076e2d
push dword [ebp - 0xc]
push ebx
call fcn.10076811
push esi
call fcn.10070b69
add esp, 0xc
xor ebx, ebx
jmp 0x10076f15
cmp byte [edi + 0x24], 0
je 0x10076e9c
cmp dword [edi + 0x20], 5
jne 0x10076e9c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10076ea7
mov ebx, dword [edi + 0x18]
jmp 0x10076ea9
xor ebx, ebx
push esi
call fcn.10070b69
pop ecx
jmp 0x10076f15
test ecx, ecx
jg 0x10076e7e
jl 0x10076ebc
test eax, eax
jae 0x10076e7e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1006a066
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10076edc
cmp byte [edi + 0x1c], 0
je 0x10076e7e
jmp 0x10076f0d
push ebx
call fcn.10076caa
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10076e7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10076f15
cmp byte [edi + 0x1c], 0
je 0x10076f12
mov ebx, dword [edi + 0x18]
jmp 0x10076f15
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1006a066
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100793cf
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 0x1007946c
push ebx
push esi
call fcn.10079398
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.10076669
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10079419
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1007946b
push edi
push eax
call fcn.10070ba3
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10079439
call fcn.10070b69
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1007946a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10076669
add esp, 0x20
test eax, eax
jne 0x10079458
push edi
call fcn.10070b69
jmp 0x10079460
push ebx
call fcn.10070b69
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 0x1007946f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10079480
pop esi
ret
push ebx
push edi
push esi
call fcn.10079398
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10070ba3
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100794a8
push ebx
push esi
push edi
call fcn.1005a400
add esp, 0xc
push 0
call fcn.10070b69
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10079878
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100794bd

Function at 0x1007ba5b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10070fc4
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1007baca
cmp esi, dword [ebp - 4]
je 0x1007bac5
cmp dword [ebp + 0xc], 0
je 0x1007bac5
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1007baa2
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1007b5ad
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1007bacc
xor eax, eax
inc eax
jmp 0x1007bacc
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1007bb31
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100ad540]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10070fc4
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10070fc4
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1007bba8
cmp word [ecx], dx
je 0x1007bba8
mov eax, dword [0x100960dc]
push edi
dec eax
push eax
push 0x10095fc8
call fcn.1007bad0
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1007bc1b
cmp word [eax], dx
je 0x1007bc1b
mov eax, dword [edi]
test eax, eax
je 0x1007bbcc
cmp word [eax], dx
je 0x1007bbcc
lea eax, [ebp - 0x10]
push eax
call fcn.1007b4b3
jmp 0x1007bbd5
lea eax, [ebp - 0x10]
push eax
call fcn.1007b54e
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1007bc45
mov eax, dword [0x10095fc4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10095cb8
call fcn.1007bad0
add esp, 0xc
test al, al
je 0x1007bc45
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1007bc10
cmp word [eax], di
je 0x1007bc10
lea eax, [ebp - 0x10]
push eax
call fcn.1007b4b3
pop ecx
jmp 0x1007bc47
lea eax, [ebp - 0x10]
push eax
call fcn.1007b54e
jmp 0x1007bc0d
mov eax, dword [edi]
test eax, eax
je 0x1007bc32
cmp word [eax], dx
je 0x1007bc32
lea eax, [ebp - 0x10]
push eax
call fcn.1007b468
pop ecx
jmp 0x1007bc45
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1007bd10
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1007b955
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1007bd10
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1007bd10
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1007bd10
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1007bc9d
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.100731f8
test ebx, ebx
je 0x1007bd0b
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.100731f8
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1007bd10
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1007bd10
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100684e0
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1007bd12
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10058f9b
leave
ret
Function at 0x100812a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100812cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100812cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402a9c
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x402bf4
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 0x402c8c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402c6c
xor eax, eax
push ebp
push 0x402c65
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 0x402ca8
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 0x402c6c
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 0x403a24
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026f8
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x464049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4039ec
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x405000
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4051bc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405061
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4051d8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4050d3
xor eax, eax
push ebp
push 0x4050cc
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00404e58
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4050b5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4051f8
mov eax, dword [ebp - 8]
push eax
invalid
Function at 0x405798
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 0x4057f4
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 0x4057e6
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x4057db
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x4057d6
mov eax, 0x64
jmp 0x4057eb
call sub.kernel32.dll_GetLastError
call fcn.004027e8
xor eax, eax
jmp 0x4057d6
mov eax, 0x67
jmp 0x4057eb

Function at 0x4057fc
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 0x405857
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 0x405849
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x40583e
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x405839
mov eax, 0x65
jmp 0x40584e
call sub.kernel32.dll_GetLastError
call fcn.004027e8
xor eax, eax
jmp 0x405839
mov eax, 0x67
jmp 0x40584e

Function at 0x4058e0
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x405910
push 0
push dword [ebx]
call sub.kernel32.dll_GetFileSize
cmp eax, 0xffffffff
je 0x405906
xor edx, edx
div dword [ebx + 8]
pop ebx
ret
call fcn.004027f8
or eax, 0xffffffff
jmp 0x405904
mov eax, 0x67
call fcn.004027e8
or eax, 0xffffffff
jmp 0x405904

Function at 0x408534
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403eb4
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x408548
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00403eb4
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40856a
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x4089b0
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403b58
add esp, 0x104
pop ebx
ret

Function at 0x40ad9c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40add5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403b58
jmp 0x40adde
mov eax, ebx
mov edx, esi
call fcn.00403ac4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40ade8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40ae09
mov al, byte [esp]
jmp 0x40ae0b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x417bf4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00417858
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00403eb4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x417c52
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x46398c]
mov dl, 1
mov eax, dword [0x417750]
call fcn.0040b6ac
call fcn.004034bc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x417c5c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00403eb4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x417cb4
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x463b4c]
mov dl, 1
mov eax, dword [0x417750]
call fcn.0040b6ac
call fcn.004034bc
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00417888
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x418070
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov edi, eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4181f0
push dword fs:[eax]
mov dword fs:[eax], esp
test edi, edi
je 0x4180b1
mov eax, edi
call fcn.004183e8
test al, al
jne 0x4180bb
lea eax, [ebp - 8]
call fcn.00417ff4
jmp 0x4180c5
lea eax, [ebp - 8]
mov edx, edi
call fcn.00403b08
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.00417f78
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
call fcn.00403b08
lea eax, [ebp - 0x18]
push eax
call sub.kernel32.dll_GetLocalTime
push dword [ebp - 8]
push dword [ebp - 4]
lea eax, [ebp - 0x20]
push eax
movzx eax, word [ebp - 0x16]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0
movzx eax, word [ebp - 0x12]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0
movzx eax, word [ebp - 0x10]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
movzx eax, word [ebp - 0xe]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
movzx eax, word [ebp - 0xc]
movzx edx, word [ebp - 0xa]
imul edx
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
lea edx, [ebp - 0x48]
mov ecx, 4
mov eax, 0x418208
call fcn.00409188
push dword [ebp - 0x20]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403db0
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00403ac4
xor edi, edi
jmp 0x418180
push ebx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], 0xb
mov dword [ebp - 0x50], edi
mov byte [ebp - 0x4c], 0
lea edx, [ebp - 0x58]
mov ecx, 1
mov eax, 0x41822c
call fcn.00409188
inc edi
mov edx, dword [ebx]
lea eax, [ebp - 0x5c]
mov ecx, esi
call fcn.00403d3c
mov eax, dword [ebp - 0x5c]
call fcn.00418238
test al, al
jne 0x4181b7
mov edx, dword [ebx]
lea eax, [ebp - 0x60]
mov ecx, esi
call fcn.00403d3c
mov eax, dword [ebp - 0x60]
call fcn.00403eb4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x41815b
mov eax, ebx
mov edx, esi
call fcn.00403cf8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4181f7
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.00403a94
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00403a94
lea eax, [ebp - 8]
call fcn.00403a70
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403eb4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x418251
test al, 0x10
je 0x418255
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x41825c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov edi, eax
lea eax, [ebp - 0xc]
push eax
mov eax, edi
call fcn.00403eb4
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jbe 0x41834a
xor eax, eax
push ebp
push 0x41833a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebx + 1]
call fcn.00407ea0
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x418329
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
je 0x418313
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x418358
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
je 0x4182fc
cmp dword [ebp - 0x18], 0
jne 0x418302
mov byte [ebp - 5], 0
jmp 0x418313
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
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 0x418330
mov eax, dword [ebp - 0x14]
call fcn.00402710
ret
mov byte [ebp - 5], 0
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403eb4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x418401
test al, 0x10
jne 0x418405
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x418504
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403ea4
xor eax, eax
push ebp
push 0x418682
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x418657
lea edx, [ebp - 0x14c]
mov eax, dword [ebp - 4]
call fcn.00417fb8
mov edx, dword [ebp - 0x14c]
lea eax, [ebp - 4]
call fcn.00403b08
lea eax, [ebp - 0x148]
xor ecx, ecx
mov edx, 0x140
call fcn.00402a7c
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x150]
mov ecx, 0x418698
mov edx, dword [ebp - 4]
call fcn.00403d3c
mov eax, dword [ebp - 0x150]
call fcn.00403eb4
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x418657
lea edx, [ebp - 8]
lea eax, [ebp - 0x11c]
call fcn.00408c40
test byte [ebp - 0x148], 0x10
je 0x418616
test bl, bl
je 0x41863c
mov eax, dword [ebp - 8]
mov edx, 0x4186a8
call fcn.00403e00
je 0x41863c
mov eax, dword [ebp - 8]
mov edx, 0x4186b4
call fcn.00403e00
je 0x41863c
push dword [ebp - 4]
push 0x4186c0
push dword [ebp - 8]
lea eax, [ebp - 0x154]
mov edx, 3
call fcn.00403db0
mov eax, dword [ebp - 0x154]
call fcn.004186c4
jmp 0x41863c
push dword [ebp - 4]
push 0x4186c0
push dword [ebp - 8]
lea eax, [ebp - 0x158]
mov edx, 3
call fcn.00403db0
mov eax, dword [ebp - 0x158]
call fcn.00408570
lea eax, [ebp - 0x148]
push eax
push esi
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x4185b5
push esi
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418689
lea eax, [ebp - 0x158]
mov edx, 4
call fcn.00403a94
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403a94
ret