joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4042e8
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x6470e09a
mov edx, 0x28e0021
xor ebx, edx
mov eax, 0x1fee1c72
xor eax, 0x1e17fb4c
xor eax, ebx
mov edi, 0x4565693a
xor edi, 0x446f6cbf
mov esi, 0x3a3c0c5
xor esi, 0x43a2d0c5
xor edi, esi
xor edi, eax
push 0x365e7e33
mov ecx, 0x361eafb3
pop esi
xor ecx, esi
mov ebx, ecx
dec ebx
mov edi, dword [ebx + 1]
mov ecx, dword [edi]
mov edx, 0x794247f7
xor ecx, edx
add esp, 0xfffffffc
mov edx, esp
mov dword [edx], ecx
pop edx
xor eax, eax
add eax, edx
rcl byte [eax + 0x5b]
xor ecx, ecx
add ecx, ecx
jmp 0x403f8a

Function at 0x40520c
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
test eax, eax
jle 0x405245
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40524e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405258
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
test eax, eax
jle 0x405279
mov al, byte [esp]
jmp 0x40527b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x402329
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, eax
call fcn.004023a4
push 0x40d6b8
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test eax, eax
mov dword [esi], eax
je 0x40239f
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x40d6c8
push eax
call edi
push 0x40d6d4
push dword [esi]
mov dword [esi + 8], eax
call edi
push 0x40d6e0
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push 0x40d6ec
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push 0x40d6fc
push dword [esi]
mov dword [esi + 0x14], eax
call edi
cmp dword [esi + 8], 0
mov dword [esi + 0x18], eax
pop edi
je 0x40239a
cmp dword [esi + 0xc], 0
je 0x40239a
mov dword [esi + 4], 1
jmp 0x40239f
call fcn.004023a4
mov eax, dword [esi + 4]
pop esi
ret

Function at 0x4023b9
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
push esi
push dword [ebp + 8]
call fcn.00404d24
cmp eax, 0xffffffff
pop ecx
mov dword [ebp + 8], eax
je 0x40247d
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
lea eax, [esi - 0x11]
cmp eax, 0xfffee
ja 0x402474
lea eax, [esi + 1]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ebx, eax
push esi
push ebx
push dword [ebp + 8]
call fcn.0040552c
add esp, 0xc
test eax, eax
je 0x40246d
push 5
lea eax, [ebp - 0xc]
push eax
push ebx
mov byte [ebp - 0xc], 1
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0
mov byte [ebp - 8], 0xd0
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x40243e
and dword [edi + 8], eax
push esi
push ebx
jmp 0x402463
push 5
lea ecx, [ebp - 0xc]
lea eax, [ebx + 0xc]
push ecx
push eax
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x40246d
add esi, 0xfffffff4
push esi
lea eax, [ebx + 0xc]
mov dword [edi + 8], 1
push eax
mov eax, edi
call fcn.00402c1b
mov dword [ebp - 4], eax
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 4

Function at 0x402ccd
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi], 0
jne 0x402d2e
push edi
push 0x40d6b8
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x40d7cc
push eax
mov dword [esi], eax
call edi
push 0x40d7e4
push dword [esi]
mov dword [esi + 4], eax
call edi
push 0x40d7f8
push dword [esi]
mov dword [esi + 8], eax
call edi
push 0x40d808
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push 0x40d81c
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push 0x40d82c
push dword [esi]
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
pop edi
ret
Function at 0x402e10
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov eax, edi
xor ebx, ebx
call fcn.00402d42
lea eax, [ebp - 4]
push eax
push ebx
push ebx
mov esi, 0x8004
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x402e72
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x402e72
push esi
call fcn.00402dfc
push ebx
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x10]
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc

Function at 0x402e7a
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov edi, eax
mov dword [ebp - 8], ebx
call fcn.00402d42
lea eax, [ebp - 4]
push eax
push ebx
push ebx
mov esi, 0x8004
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x402ef3
mov edi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push ebx
push 0x40
push dword [ebp + 8]
push dword [ebp - 4]
call edi
test eax, eax
je 0x402ef3
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call edi
test eax, eax
je 0x402ef3
push esi
call fcn.00402dfc
push ebx
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x14]
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x402efd
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x300
push ebx
push esi
push edi
push 0x14
pop edi
call fcn.00402d42
cmp dword [ebp + 0xc], edi
jae 0x402f1c
mov edi, dword [ebp + 0xc]
mov esi, 0xff
xor ebx, ebx
push esi
lea eax, [ebp - 0xff]
push ebx
push eax
mov byte [ebp - 0x100], bl
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x1ff]
push ebx
push eax
mov byte [ebp - 0x200], bl
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x2ff]
push ebx
push eax
mov byte [ebp - 0x300], bl
call sub.msvcrt.dll_memset
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x100]
push eax
call sub.msvcrt.dll_memcpy
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x200]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0x3c
pop edi
xor eax, eax
cmp dword [ebp + 0xc], ebx
pop esi
pop ebx
jbe 0x402fa2
xor byte [ebp + eax - 0x100], 0x5c
xor byte [ebp + eax - 0x200], 0x36
inc eax
cmp eax, dword [ebp + 0xc]
jb 0x402f8c
lea eax, [ebp - 0x300]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 0x200]
push dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 8]
call fcn.00402e7a
push 0x8004
call fcn.00402dfc
push dword [ebp + 0x1c]
push eax
lea eax, [ebp - 0x300]
push eax
lea eax, [ebp - 0x100]
push eax
mov eax, dword [ebp + 8]
call fcn.00402e7a
leave
ret 0x18

Function at 0x402fe6
Capabilities:
Hash data via wincrypt

Disassembly:
push ebp
mov ebp, esp
push edi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
mov edi, ecx
push dword [ebp + 8]
call fcn.004030a9
xor edi, edi
cmp eax, edi
je 0x403046
cmp dword [ebp + 0x10], edi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
je 0x403019
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
push edi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0xc]
call esi
push 0x8004
call fcn.00402dfc
push edi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x20]
push 2
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
pop esi
pop edi
pop ebp
ret 0x1c
Function at 0x4030a9
Capabilities:
Authenticate hmac
Encode data using xor
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x304
push ebx
push esi
mov eax, edi
call fcn.00402d42
mov esi, 0xff
xor ebx, ebx
push esi
lea eax, [ebp - 0x203]
push ebx
push eax
mov byte [ebp - 0x204], bl
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x103]
push ebx
push eax
mov byte [ebp - 0x104], bl
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x303]
push ebx
push eax
mov byte [ebp - 0x304], bl
call sub.msvcrt.dll_memset
push 0x14
push dword [ebp + 8]
lea eax, [ebp - 0x204]
push eax
call sub.msvcrt.dll_memcpy
push 0x14
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0x3c
xor eax, eax
xor byte [ebp + eax - 0x204], 0x5c
xor byte [ebp + eax - 0x104], 0x36
inc eax
cmp eax, 0x40
jb 0x403125
lea eax, [ebp - 0x304]
push eax
push 0x10
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
mov eax, edi
call fcn.00402e7a
mov esi, 0x8004
push esi
call fcn.00402dfc
mov dword [ebp - 4], eax
mov eax, edi
mov dword [ebp + 0xc], ebx
call fcn.00402d42
lea eax, [ebp + 8]
push eax
push ebx
push ebx
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4031c7
mov esi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push ebx
push 0x40
lea eax, [ebp - 0x204]
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x4031be
push ebx
push dword [ebp - 4]
lea eax, [ebp - 0x304]
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x4031be
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0xc], 1
mov dword [ecx], eax
jmp 0x4031c7
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp + 0xc]
pop esi
pop ebx
leave
ret 0xc
Function at 0x40322f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
push ebx
push edi
call fcn.00402d42
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x28], bl
lea edi, [ebp - 0x27]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x14], bl
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x28]
push eax
push 0x14
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x40
push dword [ebp + 8]
call fcn.00402efd
mov eax, dword [ebp + 0x14]
dec eax
je 0x4032bb
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push 0x14
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
push 0x40
push dword [ebp + 8]
call fcn.00402efd
mov ebx, eax
xor eax, eax
mov cl, byte [ebp + eax - 0x28]
xor byte [ebp + eax - 0x14], cl
inc eax
cmp eax, 0x14
jb 0x403298
push 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
dec edi
jne 0x40327d
push 0x14
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x18]
call sub.msvcrt.dll_memcpy
add esp, 0xc
pop edi
mov eax, ebx
pop ebx
leave
ret 0x14
Function at 0x40342c
Capabilities:
Encode data using xor
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf44
push ebx
push esi
push edi
push dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.00404d24
mov edi, eax
cmp edi, 0xffffffff
pop ecx
je 0x4035fe
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
cmp eax, 0x400
mov dword [ebp + 0x10], eax
jae 0x4035e8
mov esi, 0x3ff
push esi
lea eax, [ebp - 0x43f]
push ebx
push eax
mov byte [ebp - 0x440], bl
call sub.msvcrt.dll_memset
push dword [ebp + 0x10]
lea eax, [ebp - 0x440]
push eax
push edi
call fcn.0040552c
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
mov byte [ebp - 0x18], bl
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x27
stosb byte es:[edi], al
lea eax, [ebp - 0x3f]
push ebx
push eax
mov byte [ebp - 0x40], bl
call sub.msvcrt.dll_memset
push 0x10
lea eax, [ebp - 0x3bc]
push eax
lea eax, [ebp - 0x18]
push eax
call sub.msvcrt.dll_memcpy
mov edi, dword [ebp + 8]
add esp, 0x18
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x3ac]
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x14]
mov byte [ebp - 5], 1
push edi
call fcn.0040322f
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x3ac]
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x14]
mov byte [ebp - 5], 2
push edi
call fcn.0040322f
push esi
lea eax, [ebp - 0xc3f]
push ebx
push eax
mov byte [ebp - 0xc40], bl
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x83f]
push ebx
push eax
mov byte [ebp - 0x840], bl
call sub.msvcrt.dll_memset
add esp, 0x18
cmp dword [ebp - 0x3d8], 0x300
jae 0x4035dc
push dword [ebp - 0x3d8]
lea eax, [ebp - 0x3a0]
push eax
lea eax, [ebp - 0xc40]
push eax
call sub.msvcrt.dll_memcpy
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0xf40]
call fcn.0040440e
add esp, 0x14
xor esi, esi
lea ecx, [ebp - 0xdc0]
lea edi, [ebp + esi - 0x840]
lea eax, [ebp + esi - 0xc40]
push ecx
call fcn.0040448a
cmp esi, ebx
pop ecx
lea edi, [ebp - 0x28]
jbe 0x40359e
lea edi, [ebp + esi - 0xc48]
xor eax, eax
mov dl, byte [eax + edi]
lea ecx, [ebp + esi - 0x840]
add ecx, eax
xor byte [ecx], dl
inc eax
cmp eax, 8
jb 0x4035a0
add esi, 8
cmp esi, dword [ebp - 0x3d8]
jb 0x403575
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 0x40
lea eax, [ebp - 0x818]
push eax
call fcn.00402e10
mov dword [ebp - 4], 1
jmp 0x40360d
mov dword [edi + 0x310], 0xfffffffe
jmp 0x40360d
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 8]
mov dword [eax + 0x310], 0xfffffffe
jmp 0x40360d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x310], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x403f71
Capabilities:
Encrypt data using des

Disassembly:
mov ecx, dword [eax]
mov edx, dword [0x410ab0]
mov eax, dword [edx]
push ebx
push ebp
xor eax, ecx
mov ebx, eax
push edi
mov ebp, eax
shr ebx, 0x18
push 0x3f
pop edi
and ebx, edi
mov ebx, dword [ebx*4 + 0x410190]
shr ebp, 0x10
and ebp, edi
xor ebx, dword [ebp*4 + 0x410390]
mov ebp, eax
and eax, edi
shr ebp, 8
and ebp, edi
xor ebx, dword [ebp*4 + 0x410590]
add edx, 4
xor ebx, dword [eax*4 + 0x410790]
xor dword [esi], ebx
ror ecx, 4
xor ecx, dword [edx]
add edx, 4
mov dword [0x410ab0], edx
mov eax, ecx
shr eax, 0x18
and eax, edi
mov eax, dword [eax*4 + 0x410090]
mov edx, ecx
shr edx, 0x10
and edx, edi
xor eax, dword [edx*4 + 0x410290]
mov edx, ecx
shr edx, 8
and edx, edi
xor eax, dword [edx*4 + 0x410490]
and ecx, edi
xor eax, dword [ecx*4 + 0x410690]
pop edi
xor dword [esi], eax
pop ebp
pop ebx
ret

Function at 0x404ecb
Capabilities:
Get file size
Read file on windows
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
call dword [0x40d204]
push dword [ebp + 8]
call fcn.00404d24
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 8], eax
je 0x404f5a
push ebx
push esi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x404f43
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push 0
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x404f43
push ebx
mov byte [edi + esi], 0
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push ebx
push 1
call dword [0x40d1f8]
jmp 0x404f4c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
jmp 0x404f63
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
call dword [0x40d218]
mov eax, dword [ebp - 4]
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x40523e
Capabilities:
Get common file path

Disassembly:
cmp byte [0x4113f0], 0
push esi
mov esi, 0x4113f0
jne 0x40525e
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
mov dword [0x4114f8], eax
push esi
push dword [esp + 0xc]
call sub.msvcrt.dll_strcpy
mov eax, dword [0x4114f8]
pop ecx
pop ecx
pop esi
ret

Function at 0x4053c1
Capabilities:
Create process on windows

Disassembly:
push 5
mov eax, 0x40d47b
push eax
push eax
push dword [esp + 0x14]
push 0x40d9a4
push dword [esp + 0x18]
call dword [fcn.0040d148]
push 0x20
pop ecx
cmp ecx, eax
sbb eax, eax
neg eax
ret
Function at 0x4059f4
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov esi, eax
call fcn.00404d24
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
je 0x405a45
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
call fcn.00405964
mov edx, edi
mov eax, esi
call fcn.0040592e
push edi
push dword [esi]
push ebx
call fcn.0040552c
mov eax, dword [esi]
add esp, 0xc
mov byte [edi + eax], 0
push ebx
mov dword [esi + 8], edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
inc eax
pop edi
jmp 0x405a47
xor eax, eax
pop esi
pop ebx
ret 4

Function at 0x405c88
Capabilities:
Enumerate files on windows

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x405cb4
lea eax, [esi + 0x148]
push eax
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi], eax
mov dword [esp + 4], ecx
jmp 0x405ccf
lea ecx, [esi + 0x148]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
mov dword [esp + 4], eax
jne 0x405cd6
call fcn.00405d20
cmp dword [esp + 4], 0
je 0x405d19
push ebx
push ebp
push edi
lea edi, [esi + 0x288]
lea ebx, [esi + 0x174]
add esi, 0x3cc
push esi
call sub.msvcrt.dll_strlen
push ebx
mov ebp, eax
call sub.msvcrt.dll_strlen
lea eax, [eax + ebp + 1]
cmp eax, 0x143
pop ecx
pop ecx
jae 0x405d13
push ebx
push esi
mov eax, edi
call fcn.004051c6
pop ecx
pop ecx
jmp 0x405d16
mov byte [edi], 0
pop edi
pop ebp
pop ebx
mov eax, dword [esp + 4]
pop esi
pop ecx
ret

Function at 0x40619d
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2190
call fcn.0040cb60
push ebx
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4062ac
push 0x20
lea eax, [ebp - 0x90]
push eax
push ebx
push edi
call fcn.0040554b
add esp, 0x10
cmp byte [ebp - 0x78], 0x34
je 0x4062a5
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [ebp - 8], eax
mov eax, 0x5000
cmp dword [ebp - 8], eax
mov dword [ebp + 0xc], eax
jbe 0x4062a5
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
lea esi, [ebp - 0x2190]
push edi
call fcn.0040610c
test eax, eax
je 0x406291
push 4
lea eax, [ebp - 0x215c]
push eax
lea eax, [ebp - 4]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp dword [ebp - 4], 0x100
jbe 0x406248
mov dword [ebp - 4], 0x68
mov eax, dword [ebp - 4]
lea eax, [ebp + eax - 0x2190]
push 0x40
push eax
call sub.msvcrt.dll_strchr
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x406286
inc esi
push 0x3f
push esi
call sub.msvcrt.dll_strchr
cmp eax, ebx
pop ecx
pop ecx
je 0x406273
mov byte [eax], bl
push esi
call sub.msvcrt.dll__strlwr
mov eax, dword [ebp + 8]
pop ecx
push esi
add eax, 8
call fcn.004058ca
mov eax, dword [ebp - 0xc]
shl eax, 7
add dword [ebp + 0xc], eax
jmp 0x406298
add dword [ebp + 0xc], 0x80
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 8]
jb 0x406208
pop esi
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop ebx
leave
ret 8
Function at 0x4063c8
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x2001f
xor esi, esi
push esi
push 0x40da3c
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406407
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x4063fe
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 4

Function at 0x40640e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [edi + 0x28]
mov dword [ebp - 0x1c], esi
call fcn.00405801
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x10]
push ecx
push 0x20019
xor ebx, ebx
push ebx
push 0x40da3c
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40654c
lea eax, [edi + 0x68]
mov esi, 0x2000
mov edx, esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], eax
call fcn.0040592e
mov edi, 0xff
push edi
lea eax, [ebp - 0x11b]
push ebx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], edi
mov dword [ebp - 4], esi
mov byte [ebp - 0x11c], bl
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
call fcn.0040597d
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x11c]
push eax
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x406543
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp + 8], eax
lea eax, [ebp - 0x11c]
push eax
call sub.msvcrt.dll__strupr
pop ecx
push 0xffffffffffffffff
lea eax, [ebp - 0x11c]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00405827
push dword [ebp - 4]
mov eax, dword [ebp - 0x14]
call fcn.0040597d
push eax
mov eax, dword [ebp + 8]
call fcn.00405827
inc dword [ebp - 0xc]
push edi
lea eax, [ebp - 0x11b]
push ebx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], edi
mov dword [ebp - 4], esi
mov byte [ebp - 0x11c], bl
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
call fcn.0040597d
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x11c]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x4064bd
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40725e
Capabilities:
Read .ini file

Disassembly:
push 0x4110d0
push dword [esp + 0xc]
mov byte [esi], 0
push esi
push 0x40d47b
push dword [esp + 0x14]
push 0x4111d8
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
mov eax, esi
ret