joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4041b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x45e764]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
push 0x103
lea eax, [esp + 9]
push 0
push eax
mov byte [esp + 0x10], 0
call fcn.004338b0
add esp, 0xc
push 0x104
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
call fcn.004145e0
test eax, eax
je 0x40420f
push 0x44d710
push 0x101
lea edx, [esp + 0xf]
push edx
jmp 0x40421e
push 0x44d700
push 0x101
lea eax, [esp + 0xf]
push eax
call fcn.00433fec
lea ecx, [esp + 0x10]
add esp, 0xc
push ecx
call fcn.004040d0
add esp, 4
test eax, eax
jne 0x404264
call fcn.004145e0
lea ecx, [esp + 4]
push ecx
test eax, eax
je 0x404297
push 0x44d6f0
push 0x44d6c4
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00411df0
add esp, 0x10
test eax, eax
je 0x4042e5
mov eax, dword [esp + 0x114]
lea edx, [esp + 4]
push edx
push eax
push esi
call fcn.00433fec
add esp, 0xc
mov eax, 1
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00432ccc
add esp, 0x108
ret 8
push 0x44d6ac
push 0x44d6c4
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00411df0
add esp, 0x10
test eax, eax
je 0x4042e5
mov eax, dword [esp + 0x114]
lea edx, [esp + 4]
push edx
push eax
push esi
call fcn.00433fec
add esp, 0xc
mov eax, 1
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00432ccc
add esp, 0x108
ret 8
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00432ccc
add esp, 0x108
ret 8
Function at 0x407570
Capabilities:
Get common file path

Disassembly:
sub esp, 0x408
mov eax, dword [0x45e764]
xor eax, esp
mov dword [esp + 0x404], eax
push esi
mov esi, dword [esp + 0x410]
xor eax, eax
push 0x3ff
push eax
mov dword [esp + 0xc], eax
mov byte [esp + 0x10], al
lea eax, [esp + 0x11]
push eax
call fcn.004338b0
add esp, 0xc
push 0x400
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.00406f90
mov ecx, dword [esp + 0x408]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00432ccc
add esp, 0x408
ret 4
Function at 0x411400
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
je 0x411410
mov dword [esi], 0
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x411427
pop edi
mov eax, 1
pop esi
ret
cmp dword [esp + 0x10], 0
jne 0x411433
pop edi
xor eax, eax
pop esi
ret
test esi, esi
je 0x41143d
mov dword [esi], 1
push 0
push edi
call fcn.00411330
add esp, 8
pop edi
pop esi
ret
Function at 0x411450
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x260
mov eax, dword [0x45e764]
xor eax, esp
mov dword [esp + 0x25c], eax
mov eax, dword [esp + 0x264]
push ebx
mov ebx, dword [esp + 0x26c]
push ebp
xor ebp, ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ebx
cmp eax, ebp
je 0x411668
cmp byte [eax], 0
je 0x411668
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], ebp
cmp ebx, ebp
je 0x4114a1
mov dword [ebx], ebp
push eax
lea eax, [esp + 0x160]
push 0x104
push eax
call fcn.00433fec
lea eax, [esp + 0x168]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4114c1
sub eax, edx
cmp byte [esp + eax + 0x15b], 0x5c
jne 0x4114f0
lea eax, [esp + 0x15c]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4114e0
sub eax, edx
mov byte [esp + eax + 0x15b], cl
push esi
push edi
push 0x44d6a4
lea ecx, [esp + 0x168]
push 0x105
push ecx
call fcn.004346b6
lea edx, [esp + 0x170]
push 0x5c
push edx
call fcn.004342ba
add esp, 0x14
mov esi, eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x168]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x411540
mov dword [esp + 0x18], ebp
jmp 0x41163a
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov bl, 0x2e
jmp 0x411550
push 0x44e7a0
lea edx, [esp + 0x168]
push 0x105
push edx
mov byte [esi], 0
call fcn.004346b6
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x174]
push 0x105
push ecx
call fcn.004346b6
add esp, 0x18
cmp byte [esp + 0x50], bl
je 0x4115dd
test byte [esp + 0x24], 0x10
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0
lea eax, [esp + 0x164]
push edx
je 0x4115c3
push eax
call fcn.00411450
add esp, 8
cmp dword [esp + 0x18], 0
je 0x4115b9
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x10]
add dword [esp + 0x14], ecx
jmp 0x4115dd
push 1
push eax
call fcn.00411400
add esp, 0xc
test eax, eax
je 0x4115dd
cmp dword [esp + 0x10], 0
je 0x4115dd
inc dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
push edi
call ebp
test eax, eax
jne 0x411550
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x411600
mov dword [esp + 0x18], 0
mov esi, dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x411632
lea edx, [esp + 0x10]
push edx
push 1
push esi
mov dword [esp + 0x1c], eax
call fcn.00411400
add esp, 0xc
test eax, eax
je 0x411632
cmp dword [esp + 0x10], 0
je 0x411632
inc dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
test edi, edi
je 0x411641
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
test ebx, ebx
je 0x41164d
mov eax, dword [esp + 0xc]
add dword [ebx], eax
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.00432ccc
add esp, 0x260
ret
mov ecx, dword [esp + 0x264]
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00432ccc
add esp, 0x260
ret
Function at 0x4116a0
Capabilities:
Get file version info
Identify system language via api

Disassembly:
sub esp, 0x224
mov eax, dword [0x45e764]
xor eax, esp
mov dword [esp + 0x220], eax
mov eax, dword [esp + 0x228]
push esi
push edi
mov edi, dword [esp + 0x234]
mov esi, ecx
lea ecx, [esp + 0x18]
push ecx
push esi
mov dword [esp + 0x28], eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
jne 0x4116e0
mov byte [edi], al
jmp 0x41181f
push ebx
push ebp
lea ebp, [eax + 0xa]
push ebp
call fcn.00433d18
mov edx, dword [esp + 0x24]
add esp, 4
mov ebx, eax
push ebx
push ebp
push edx
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x411711
push ebx
call fcn.0043395b
add esp, 4
xor eax, eax
jmp 0x41181d
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0x44e7a0
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x411747
cmp dword [esp + 0x2c], 0x34
jne 0x411747
mov edx, dword [esp + 0x24]
push 0x34
push edx
add esi, 0x20c
push esi
call fcn.004347f0
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x44ec30
push ebx
call sub.VERSION.dll_VerQueryValueA
xor esi, esi
test dword [esp + 0x18], 0xfffffffc
mov byte [edi], 0
jbe 0x41180f
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esp + 0x14]
lea esp, [esp]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x10], 0
movzx eax, word [ecx + esi*4 + 2]
movzx ecx, word [ecx + esi*4]
push edx
push eax
push ecx
lea edx, [esp + 0x3c]
push 0x44ec14
push edx
call ebp
add esp, 0x14
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x38]
push edx
push ebx
call sub.VERSION.dll_VerQueryValueA
cmp byte [edi], 0
jne 0x4117da
cmp dword [esp + 0x1c], 0
je 0x4117da
mov eax, dword [esp + 0x10]
mov edx, edi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4117d0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ecx, dword [esp + 0x14]
cmp ax, word [ecx + esi*4]
je 0x4117f8
mov eax, dword [esp + 0x18]
inc esi
shr eax, 2
cmp esi, eax
jb 0x411780
jmp 0x41180f
cmp dword [esp + 0x1c], 0
je 0x41180f
mov eax, dword [esp + 0x10]
sub edi, eax
mov cl, byte [eax]
mov byte [edi + eax], cl
inc eax
test cl, cl
jne 0x411805
push ebx
call fcn.0043395b
add esp, 4
mov eax, 1
pop ebp
pop ebx
mov ecx, dword [esp + 0x228]
pop edi
pop esi
xor ecx, esp
call fcn.00432ccc
add esp, 0x224
ret 8
Function at 0x411a70
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x130
mov eax, dword [0x45e764]
xor eax, esp
mov dword [esp + 0x12c], eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [esp], eax
cmp eax, 0xffffffff
jne 0x411aa1
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [esp], eax
push 0x124
lea eax, [esp + 0xc]
push 0
push eax
call fcn.004338b0
mov edx, dword [esp + 0xc]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push edx
mov dword [esp + 0xc], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x411b4b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
jmp 0x411af0
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x144]
jne 0x411b2d
push eax
push 0
push 0x1fffff
call edi
mov esi, eax
test esi, esi
je 0x411b2d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x1c], eax
je 0x411b26
push 0
push esi
call ebx
push 0x1388
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x411af0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.00432ccc
add esp, 0x130
ret

Function at 0x411b60
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x234
mov eax, dword [0x45e764]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x244]
xor ebx, ebx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x411b99
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
push 0x124
lea eax, [esp + 0x14]
push 0
push eax
call fcn.004338b0
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push esi
mov dword [esp + 0x14], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x411c35
push edi
lea edx, [esp + 0x138]
push 0x105
push edx
call fcn.00433fec
lea eax, [esp + 0x140]
push 0x105
push eax
call fcn.004334d9
add esp, 0x14
lea esp, [esp]
lea ecx, [esp + 0x30]
push 0x104
push ecx
call fcn.004334d9
lea edx, [esp + 0x13c]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.00433042
add esp, 0x10
test eax, eax
jne 0x411c29
lea ecx, [esp + 0xc]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x411bf0
jmp 0x411c2e
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00432ccc
add esp, 0x234
ret
Function at 0x411c50
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x238
mov eax, dword [0x45e764]
xor eax, esp
mov dword [esp + 0x234], eax
push ebx
push esi
mov esi, dword [esp + 0x244]
push edi
xor ebx, ebx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [esp + 0xc], edi
cmp edi, 0xffffffff
jne 0x411c91
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [esp + 0xc], eax
mov edi, eax
push 0x124
lea eax, [esp + 0x18]
push 0
push eax
call fcn.004338b0
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push edi
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x411d97
push ebp
push esi
lea edx, [esp + 0x140]
push 0x105
push edx
call fcn.00433fec
lea eax, [esp + 0x148]
push 0x105
push eax
call fcn.004334d9
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x14
lea ecx, [esp + 0x38]
push 0x104
push ecx
call fcn.004334d9
lea edx, [esp + 0x144]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.00433042
add esp, 0x10
test eax, eax
je 0x411d74
mov ecx, dword [esp + 0x1c]
push ecx
push 0
push 0x1fffff
call edi
mov esi, eax
test esi, esi
jne 0x411d43
call ebp
mov edx, dword [esp + 0x1c]
push edx
push esi
push 1
call edi
mov esi, eax
test esi, esi
je 0x411d72
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x1c], eax
je 0x411d64
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
jmp 0x411d74
call ebp
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x411cf5
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
mov ecx, dword [esp + 0x240]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00432ccc
add esp, 0x238
ret

Function at 0x411df0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x45e764]
xor eax, esp
mov dword [esp + 0x10c], eax
mov ecx, dword [esp + 0x118]
mov eax, dword [esp + 0x114]
push esi
mov esi, dword [esp + 0x120]
push edi
mov edi, dword [esp + 0x128]
lea edx, [esp + 8]
push edx
push 1
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x411e68
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push esi
push edx
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x411e81
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00432ccc
add esp, 0x110
ret
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x10]
mov edx, edi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x411e96
mov ecx, dword [esp + 0x114]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.00432ccc
add esp, 0x110
ret
Function at 0x411ec0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 8
lea eax, [esp]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x411f13
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push ecx
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x411f19
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 8
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 8
ret
Function at 0x413ad0
Capabilities:
Enumerate process modules

Disassembly:
push 0xffffffffffffffff
push 0x44a2a6
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x45e764]
xor eax, esp
mov dword [esp + 0x2fc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45e764]
xor eax, esp
push eax
lea eax, [esp + 0x314]
mov dword fs:[0], eax
mov eax, dword [ecx + 0x38]
lea esi, [ecx + 0x20]
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
call fcn.0040d400
mov eax, dword [esi + 0x18]
mov edx, dword [esp + 0x324]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
xor ebx, ebx
mov dword [esi + 0x1c], ebx
mov dword [eax], eax
mov eax, dword [esi + 0x18]
push edx
push 8
mov dword [eax + 8], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x413b5b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
call esi
xor eax, eax
jmp 0x413d07
lea eax, [esp + 0xec]
push eax
push edi
mov dword [esp + 0xf4], 0x224
call sub.KERNEL32.dll_Module32First
test eax, eax
jne 0x413b86
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x413d07
mov ebp, 0x10
jmp 0x413b90
lea ecx, [esp + 0x94]
call fcn.00412c30
lea eax, [esp + 0x10c]
mov dword [esp + 0x31c], ebx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x413bb0
sub eax, edx
push eax
lea ecx, [esp + 0x110]
push ecx
lea ecx, [esp + 0xbc]
call fcn.00405730
lea eax, [esp + 0x20c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x413bd8
sub eax, edx
push eax
lea edx, [esp + 0x210]
push edx
lea ecx, [esp + 0xd8]
call fcn.00405730
mov ecx, dword [esp + 0xf4]
mov edx, dword [esp + 0xf8]
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x100]
mov dword [esp + 0xa0], edx
mov edx, dword [esp + 0x104]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xfc]
mov dword [esp + 0xa8], ecx
lea ecx, [esp + 0x94]
mov dword [esp + 0xac], edx
push ecx
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0xb8]
push edx
lea ecx, [esp + 0x28]
mov dword [esp + 0xb8], eax
call fcn.00412840
push eax
lea eax, [esp + 0x18]
push eax
mov ecx, esi
mov byte [esp + 0x324], 1
call fcn.00413540
lea ecx, [esp + 0x20]
call fcn.00405880
mov dword [esp + 0x31c], 0xffffffff
cmp dword [esp + 0xe8], ebp
jb 0x413cb3
mov ecx, dword [esp + 0xd4]
push ecx
call fcn.00414d99
add esp, 4
mov dword [esp + 0xe8], 0xf
mov dword [esp + 0xe4], ebx
mov byte [esp + 0xd4], bl
cmp dword [esp + 0xcc], ebp
jb 0x413ce5
mov edx, dword [esp + 0xb8]
push edx
call fcn.00414d99
add esp, 4
lea eax, [esp + 0xec]
push eax
push edi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x413b90
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x314]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2fc]
xor ecx, esp
call fcn.00432ccc
add esp, 0x30c
ret 4
Function at 0x414060
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x45e764]
xor eax, esp
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x114]
lea edx, [esp]
push edx
push 1
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4140be
mov edx, dword [esp]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push esi
push edx
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4140d5
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00432ccc
add esp, 0x110
ret
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 8]
push edx
push 0x104
push edi
call fcn.00433fec
mov ecx, dword [esp + 0x118]
add esp, 0xc
xor ecx, esp
mov eax, 1
call fcn.00432ccc
add esp, 0x110
ret

Function at 0x41419b
Capabilities:
Create directory

Disassembly:
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
jne 0x4141bd
push ebx
push str.C:_temp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str.C:_temp
push edi
push esi
call fcn.00433fec
add esp, 0xc
push edi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
ret

Function at 0x4141d0
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
sub esp, 0x70
mov eax, dword [0x45e764]
xor eax, esp
mov dword [esp + 0x6c], eax
push esi
mov esi, dword [esp + 0x78]
push 0x63
lea eax, [esp + 0x11]
push 0
push eax
mov byte [esp + 0x18], 0
call fcn.004338b0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 1
push 0
push str.HardwareDescriptionSystemCentralProcessor0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 0x64
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x10]
push eax
push 0
push 0
push str.ProcessorNameString
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0xc]
mov edx, esi
mov ecx, eax
sub edx, ecx
pop esi
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x414250
mov ecx, dword [esp + 0x6c]
xor ecx, esp
mov eax, 1
call fcn.00432ccc
add esp, 0x70
ret
Function at 0x414370
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x45e764]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
mov ebx, dword [esp + 0x110]
push esi
push 0x103
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call fcn.004338b0
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x44d700
lea edx, [esp + 0xf]
push 0x40
push edx
call fcn.00433fec
add esp, 0xc
lea esi, [esp + 8]
call fcn.00414270
test eax, eax
je 0x414407
mov ecx, dword [esp + 0x118]
mov eax, esi
push eax
push ecx
push ebx
call fcn.00433fec
add esp, 0xc
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00432ccc
add esp, 0x108
ret
push edi
push reloc.OLEAUT32.dll_SysReAllocString
lea edi, [esp + 0x10]
mov esi, 0x44d6f0
mov ecx, 0x44d6c4
call fcn.00414060
add esp, 4
pop edi
test eax, eax
je 0x41445a
mov eax, dword [esp + 0x118]
lea edx, [esp + 8]
push edx
push eax
push ebx
call fcn.00433fec
add esp, 0xc
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00432ccc
add esp, 0x108
ret
mov ecx, dword [esp + 0x10c]
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00432ccc
add esp, 0x108
ret

Function at 0x414660
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0xbc
mov eax, dword [0x45e764]
xor eax, esp
mov dword [esp + 0xb8], eax
push esi
lea eax, [esp + 0x28]
push eax
xor esi, esi
mov dword [esp + 0x2c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push str.GetNativeSystemInfo
push 0x44cc54
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4146ae
lea ecx, [esp + 4]
push ecx
call eax
jmp 0x4146b9
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [esp + 4]
mov ecx, 6
cmp cx, ax
jne 0x4146e1
lea eax, [ecx - 5]
pop esi
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.00432ccc
add esp, 0xbc
ret
mov edx, 9
cmp dx, ax
lea eax, [edx - 8]
je 0x4146f0
mov eax, esi
mov ecx, dword [esp + 0xbc]
pop esi
xor ecx, esp
call fcn.00432ccc
add esp, 0xbc
ret