joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x403203
pop dword [ebp - 0x18]
mov eax, 0xc988bb2d
add eax, 0x36b776d6
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x146d7b85
add dword [ebp - 0x28], 0x39e4c9c6
mov dword [ebp - 0x24], 0x924c92b3
sub dword [ebp - 0x24], 0x6019466e
mov dword [ebp - 0x20], 0x8605a754
add dword [ebp - 0x20], 0xc6469cda
mov dword [ebp - 0x1c], 0xdce4eea3
add dword [ebp - 0x1c], 0x231b115d
lea eax, [ebp - 0x28]
push eax
mov eax, 0xcb16c6b5
add eax, 0x3529b9d7
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x3342e57d
sub dword [ebp - 0x28], 0xbed07c27
mov dword [ebp - 0x24], 0x13a466a6
sub dword [ebp - 0x24], 0xd2380531
mov dword [ebp - 0x20], 0x5df72d64
add dword [ebp - 0x20], 0x5783f08
mov dword [ebp - 0x1c], 0x261a7244
sub dword [ebp - 0x1c], 0x261a7244
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0xacd5dd16
add eax, 0x536aa3be
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x39a65
push 0
call eax
mov ecx, 0x5439
mov edx, eax
mov ebx, 0x411000
add ebx, dword [ebp - 0x18]
mov esi, 0xf39c6618
sub esi, 0xac07ed4c
mov edi, dword [ebx]
xor dword [ebp - 4], 0x4d57b5b1
xor edi, esi
sub dword [ebp - 0x10], edx
mov dword [edx], edi
sub dword [ebp - 0x14], 0x7a6057f7
add edx, 0x1ca20d8e
sub edx, 0x1ca20d8a
add ebx, 0x96d1db6a
add ebx, 0x692e249a
loop 0x403319
add eax, 0x470171db
sub eax, 0x47002e24
xor ebx, ebx
add ebx, eax
add eax, 0xda04f97b
add eax, 0x25fb068a
mov ecx, 0x400000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x4023e3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402422
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402422
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402422
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402422
cmp dword [ecx + 0x74], 0xe
jbe 0x402422
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x408058
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 0x4080f5
push ebx
push esi
call fcn.00408021
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.00407fb5
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4080a2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4080f4
push edi
push eax
call fcn.004069bb
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4080c2
call fcn.00406a09
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4080f3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00407fb5
add esp, 0x20
test eax, eax
jne 0x4080e1
push edi
call fcn.00406a09
jmp 0x4080e9
push ebx
call fcn.00406a09
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 0x409304
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x465a90
push 0x465a88
push str.FlsAlloc
push 0x1f
call fcn.004091c3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409338
push dword [ebp + 8]
mov ecx, esi
call dword [0x414130]
call esi
jmp 0x40933e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x409382
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x465aa0
push 0x465a98
push str.FlsGetValue
push 0x21
call fcn.004091c3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4093b9
push dword [ebp + 8]
mov ecx, esi
call dword [0x414130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4093c1
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x465aa8
push 0x465aa0
push str.FlsSetValue
push 0x22
call fcn.004091c3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4093fb
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x414130]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x402b74
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x436008], 0x8088405
inc edx
mov dword [ebx + 0x436008], edx
fld qword [ebx + 0x43605c]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret

Function at 0x403008
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x43601c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4030a0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403080
xor eax, eax
push ebp
push 0x403079
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 0x4030bc
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 0x403080
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x43601c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x43601c], ax
mov esp, ebp
pop ebp
ret

Function at 0x403988
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x442044], 0
je 0x4039e9
cmp word [0x442218], 0xd7b2
jne 0x4039b1
cmp dword [0x442220], 0
jbe 0x4039b1
mov eax, 0x442214
call dword [0x442230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x43606c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403a10
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x436028], 0
jne 0x403a05
push 0
push 0x436064
push 0x43606c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404f68
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x404fce
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403d60
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b9c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404fb8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404fd5
lea eax, [ebp - 0x10]
call fcn.00403b0c
ret

Function at 0x406478
Capabilities:
Accept command line arguments

Disassembly:
push edi
mov edi, edx
test eax, eax
jne 0x4064a6
sub esp, 0x104
mov ecx, esp
push 0x104
push ecx
push 0
call sub.kernel32.dll_GetModuleFileNameA_2
xchg ecx, eax
mov edx, esp
mov eax, edi
call fcn.00403bfc
add esp, 0x104
pop edi
ret
push eax
call sub.kernel32.dll_GetCommandLineA_1
pop ecx
inc ecx
call fcn.0040cca4
mov edx, eax
call fcn.0040ccb4
loop 0x4064ae
mov ecx, eax
sub ecx, edx
cmp ecx, 2
jl 0x4064d2
cmp byte [edx], 0x22
jne 0x4064d2
cmp byte [eax - 1], 0x22
jne 0x4064d2
inc edx
dec eax
sub eax, edx
xchg ecx, eax
xchg edi, eax
call fcn.00403bfc
pop edi
ret

Function at 0x406748
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
add esp, 0xfffffff4
mov esi, edx
mov ebx, eax
mov dword [esp + 8], 4
xor eax, eax
mov dword [esp], eax
test ebx, ebx
je 0x40678c
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0
mov eax, esi
call fcn.00403fa8
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40678c
cmp dword [esp + 4], 4
je 0x406791
xor eax, eax
mov dword [esp], eax
mov eax, dword [esp]
add esp, 0xc
pop esi
pop ebx
ret

Function at 0x40679c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
push eax
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.00403fa8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete al
pop ebp
ret

Function at 0x4068e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, edx
mov ebx, eax
test ebx, ebx
je 0x406911
lea eax, [esp + 4]
push eax
push 0
lea eax, [esp + 8]
push eax
push 0
mov eax, esi
call fcn.00403fa8
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x406915
xor eax, eax
jmp 0x406917
mov al, 1
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x4069c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x406a7f
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.0040c2e8
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push edi
call sub.advapi32.dll_RegQueryInfoKeyA_1
test eax, eax
jne 0x406a69
cmp dword [ebp - 8], 0
jbe 0x406a67
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
call fcn.00402888
mov ebx, eax
xor esi, esi
jmp 0x406a45
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00403ce8
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0040c2d8
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], eax
inc esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push edi
call sub.advapi32.dll_RegEnumKeyExA_1
cmp eax, 0x103
jne 0x406a28
mov eax, ebx
call fcn.004028b8
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a86
lea eax, [ebp - 0x10]
call fcn.00403b0c
ret

Function at 0x406aa0
Capabilities:
Create thread

Disassembly:
push ebx
mov byte [0x442045], 1
mov edx, dword [0x4057b8]
xor eax, eax
call fcn.0040a210
mov ebx, eax
mov byte [ebx + 0x18], 1
lea eax, [ebx + 0x1e]
push eax
push 4
push ebx
push 0x406a90
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [ebx + 0x1a], eax
mov eax, ebx
pop ebx
ret

Function at 0x406bb8
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov byte [ebx + 0x18], 0
mov eax, dword [ebx + 0x1a]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jbe 0x406bd3
mov byte [ebx + 0x18], 1
pop ebx
ret
cmp word [ebx + 0x2c], 0
je 0x406be2
mov edx, ebx
mov eax, dword [ebx + 0x2e]
call dword [ebx + 0x2a]
pop ebx
ret

Function at 0x406be4
Capabilities:
Suspend thread

Disassembly:
push ebx
mov ebx, eax
mov byte [ebx + 0x18], 1
cmp word [ebx + 0x24], 0
je 0x406bff
push dword [ebx + 0x26]
push dword [ebx + 0x22]
mov eax, ebx
call fcn.00406c0c
mov eax, dword [ebx + 0x1a]
push eax
call sub.kernel32.dll_SuspendThread
pop ebx
ret

Function at 0x406c40
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, eax
push 0
mov eax, dword [ebx + 0x1a]
push eax
call sub.kernel32.dll_TerminateThread
mov byte [ebx + 0x19], 1
pop ebx
ret
Function at 0x409d80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x409ee5
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov ebx, 0x10
test edi, edi
jne 0x409dbd
or ebx, 0x8000000
lea eax, [ebp - 0x58]
mov edx, 0x44
call fcn.004056f4
mov dword [ebp - 0x58], 0x44
mov word [ebp - 0x28], di
mov dword [ebp - 0x2c], 1
cmp dword [ebp + 8], 0
je 0x409de9
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 8], 0
je 0x409dff
mov eax, dword [ebp - 8]
call fcn.00403fa8
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.00403ba4
cmp dword [ebp - 0x14], 0
je 0x409e43
mov eax, dword [ebp - 0x14]
cmp byte [eax], 0x22
je 0x409e43
mov edx, dword [ebp - 0x14]
mov eax, 0x409f00
call fcn.00404048
test eax, eax
jle 0x409e43
push 0x409f0c
push dword [ebp - 0x14]
push 0x409f0c
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00403e68
cmp dword [ebp - 0x14], 0
je 0x409e5a
test esi, esi
je 0x409e5a
lea eax, [ebp - 0x14]
mov edx, 0x409f00
call fcn.00403db0
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
push ebx
push 0
push 0
push 0
lea eax, [ebp - 0x6c]
mov ecx, esi
mov edx, dword [ebp - 0x14]
call fcn.00403df4
mov eax, dword [ebp - 0x6c]
call fcn.00403fa8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x409ec7
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
jne 0x409eb0
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_CloseHandle
mov byte [ebp - 9], 1
jmp 0x409ebe
cmp dword [ebp + 8], 0
je 0x409ebe
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x68]
mov dword [eax], edx
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409eec
lea eax, [ebp - 0x6c]
call fcn.00403b0c
lea eax, [ebp - 0x14]
call fcn.00403b0c
ret

Function at 0x40b730
Capabilities:
Hide graphical window

Disassembly:
and byte [eax + 0x27], 0xef
test dl, dl
je 0x40b73c
or byte [eax + 0x27], 0x10
mov ecx, dword [eax + 0x1c]
jecxz 0x40b755
push eax
je 0x40b756
call dword [0x436118]
pop eax
push 5
push dword [eax + 0x1c]
call sub.user32.dll_ShowWindow
ret
and byte [eax + 0x37], 0xfe
push 0
push ecx
call sub.user32.dll_ShowWindow
pop eax
call dword [0x436118]
ret
Function at 0x40cd54
Capabilities:
Get file attributes

Disassembly:
call fcn.00405bc8
push eax
call sub.kernel32.dll_GetFileAttributesA
inc eax
je 0x40cd68
dec eax
and al, 0x10
sete al
ret

Function at 0x40cda4
Capabilities:
Get common file path

Disassembly:
push eax
sub esp, 0x108
push esp
push 0x105
call sub.kernel32.dll_GetTempPathA
mov edx, esp
mov eax, dword [esp + 0x108]
call fcn.00403ce8
add esp, 0x108
pop edx
mov eax, dword [edx]
call fcn.00406620
ret

Function at 0x40d588
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffdc
mov ebp, eax
push esp
call sub.kernel32.dll_QueryPerformanceFrequency
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
push 0
mov eax, dword [0x4429cc]
push eax
mov eax, dword [0x4429c4]
push eax
push 8
call dword [0x44292c]
push ebp
call sub.kernel32.dll_Sleep
push 0
mov eax, dword [0x4429cc]
push eax
mov eax, dword [0x4429c8]
push eax
push 8
call dword [0x44292c]
lea eax, [esp + 0x10]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0xc]
jne 0x40d5f3
cmp eax, dword [esp + 8]
jbe 0x40d60f
jmp 0x40d5f5
jle 0x40d60f
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub eax, dword [esp + 8]
sbb edx, dword [esp + 0xc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
jmp 0x40d639
mov eax, dword [esp]
mov edx, dword [esp + 4]
push edx
push eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub eax, dword [esp + 0x18]
sbb edx, dword [esp + 0x1c]
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
push 0
push 0x186a0
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
call fcn.00404604
push edx
push eax
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
call fcn.00404604
mov ebp, eax
xor esi, esi
mov al, byte [0x442910]
dec eax
test al, al
jb 0x40d6b3
inc eax
mov byte [esp + 0x20], al
mov bl, 0
mov eax, ebp
xor edx, edx
push edx
push eax
xor eax, eax
mov al, bl
mov edi, eax
add edi, edi
lea edi, [edi + edi*2]
mov eax, dword [0x4429c8]
mov edx, dword [eax + edi*8 + 4]
mov eax, dword [eax + edi*8]
push edx
push eax
mov eax, dword [0x4429c4]
mov edx, dword [eax + edi*8 + 4]
mov eax, dword [eax + edi*8]
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00404604
add esi, eax
inc ebx
dec byte [esp + 0x20]
jne 0x40d671
xor eax, eax
mov al, byte [0x442910]
push eax
mov eax, esi
pop edx
mov ecx, edx
xor edx, edx
div ecx
mov esi, eax
cmp esi, 0x64
jbe 0x40d6d0
mov esi, 0x64
mov eax, esi
push eax
mov al, 0x64
pop edx
sub al, dl
add esp, 0x24
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40d6e0
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov al, byte [esp + 0x14]
add esp, 0x24
ret
Function at 0x40dcd0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40ddda
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
push 9
push 0
mov eax, esi
call fcn.00403fa8
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x40dda7
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
jne 0x40dd9e
cmp dword [ebp - 0x10], 1
jae 0x40dd43
mov dword [ebp - 0x10], 1
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.00404090
xor edi, edi
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00403fa8
push eax
push edi
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x40dd9e
mov eax, dword [ebp - 8]
call fcn.00403fa8
mov edx, eax
lea eax, [ebp - 0x14]
call fcn.00403ce8
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0040dcd0
test al, al
jne 0x40dd50
inc edi
jmp 0x40dd50
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, esi
call fcn.00403fa8
push eax
push ebx
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete al
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dde1
lea eax, [ebp - 0x14]
call fcn.00403b0c
lea eax, [ebp - 8]
call fcn.00403b0c
ret

Function at 0x40e550
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
mov eax, ebx
call fcn.00403fa8
push eax
call sub.kernel32.dll_GetEnvironmentVariableA
mov eax, esi
mov edx, esp
mov ecx, 0x105
call fcn.00403d60
add esp, 0x108
pop esi
pop ebx
ret
Function at 0x40e600
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], ecx
mov edi, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
call fcn.00403f98
xor eax, eax
push ebp
push 0x40e733
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00403fa8
mov ebx, eax
push ebx
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x40e707
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
mov ecx, 1
mov edx, dword [0x40e5dc]
call fcn.00404854
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
push ebx
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x40e748
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e707
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 8], eax
mov esi, dword [ebx + 8]
mov dword [ebp - 4], esi
lea eax, [ebp - 0x20]
push eax
mov eax, esi
call fcn.004056f0
movzx eax, ax
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0
movzx eax, word [ebx + 8]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
mov eax, dword [ebx + 0xc]
call fcn.004056f0
movzx eax, ax
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
movzx eax, word [ebx + 0xc]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
lea edx, [ebp - 0x40]
mov ecx, 3
mov eax, 0x40e754
call fcn.0040cd1c
mov edx, dword [ebp - 0x20]
mov eax, edi
call fcn.00403b60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e73a
lea eax, [ebp - 0x20]
call fcn.00403b0c
lea eax, [ebp - 0x18]
mov edx, dword [0x40e5dc]
call fcn.00404860
lea eax, [ebp - 0xc]
call fcn.00403b0c
ret

Function at 0x40e86c
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov bl, 1
mov eax, dword [0x4429f8]
call fcn.00403fa8
push eax
push 0xffffffffffffffff
push 4
call sub.kernel32.dll_OpenFileMappingA
mov esi, eax
test esi, esi
je 0x40e8ee
push 4
push 0
push 0
push 4
push esi
call sub.kernel32.dll_MapViewOfFile
mov dword [esp], eax
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
mov eax, dword [eax]
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov eax, dword [esp + 4]
push eax
push 0xffffffffffffffff
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov dword [esp + 4], eax
push 0
push 0
push 0x10
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
push eax
call sub.user32.dll_PostMessageA
push 0xbb8
mov eax, dword [esp + 8]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
jne 0x40e8ee
xor ebx, ebx
mov eax, ebx
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x40e8f8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
xor eax, eax
push ebp
push 0x40e96a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x442a20], 0
je 0x40e91f
mov eax, dword [0x442a20]
push eax
call sub.kernel32.dll_CloseHandle
push 0
push 0
lea eax, [ebp - 4]
mov ecx, dword [0x4429f8]
mov edx, 0x40e97c
call fcn.00403df4
mov eax, dword [ebp - 4]
call fcn.00403fa8
push eax
push 0x40e98c
push 0
push 0
call sub.shell32.dll_ShellExecuteA
push 0
call sub.kernel32.dll_ExitProcess_1