joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407d90
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x44
mov eax, dword [0x4762c4]
xor eax, esp
mov dword [esp + 0x40], eax
cmp dword [0x477a54], 1
mov eax, dword [esp + 0x48]
push esi
mov esi, dword [esp + 0x50]
push eax
push 0x40
jne 0x407dde
cmp byte [0x477a60], 0
je 0x407dcd
lea eax, [esp + 0xc]
push eax
push 0x462a70
push str.NTx64_Ver
jmp 0x407ded
lea ecx, [esp + 0xc]
push ecx
push 0x462a70
push str.NT_Ver
jmp 0x407ded
lea edx, [esp + 0xc]
push edx
push 0x462a70
push str.9X_Ver
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x407e60
mov eax, dword [0x477a54]
mov dword [esi], eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov cl, byte [0x477a60]
lea edx, [esp + 4]
push 0x462b80
push edx
mov byte [esi + 0xc], cl
call fcn.00442255
add esp, 8
test eax, eax
je 0x407e60
push 0xa
push 0
push eax
call fcn.0044222b
push 0x462b7c
push 0
mov dword [esi + 4], eax
call fcn.00442255
add esp, 0x14
test eax, eax
je 0x407e60
push 0xa
push 0
push eax
call fcn.0044222b
add esp, 0xc
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x44]
pop esi
xor ecx, esp
mov al, 1
call fcn.00440494
add esp, 0x44
ret 8

Function at 0x407e80
Capabilities:
Copy file
Get common file path
Move file

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4762c4]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x11c]
push ebx
mov ebx, dword [esp + 0x11c]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileA]
push esi
mov esi, dword [esp + 0x11c]
push edi
mov edi, dword [esp + 0x124]
push 0
push edi
push esi
mov dword [esp + 0x1c], eax
call ebp
test eax, eax
jne 0x407f46
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x407eda
mov eax, 7
jmp 0x407f4f
cmp eax, 0x20
jne 0x407f4a
lea ecx, [esp + 0x14]
push ecx
push 0
push str._ESTMP
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x407f1f
push 0
lea edx, [esp + 0x18]
push edx
push esi
call ebp
test eax, eax
je 0x407f4a
cmp dword [0x477a54], 0
jne 0x407f26
lea eax, [esp + 0x14]
push eax
push edi
call fcn.0042e2b0
add esp, 8
test al, al
jne 0x407f3f
mov eax, 8
jmp 0x407f4f
push 5
push edi
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x407f3f
mov eax, 8
jmp 0x407f4f
mov edx, dword [esp + 0x10]
mov byte [edx], 1
xor eax, eax
jmp 0x407f4f
mov eax, 9
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00440494
add esp, 0x10c
ret 0x10
Function at 0x408c90
Capabilities:
Create process on windows
Get common file path
Get file version info

Disassembly:
sub esp, 0x374
mov eax, dword [0x4762c4]
xor eax, esp
mov dword [esp + 0x370], eax
push ebx
push 0x104
lea eax, [esp + 0x170]
push eax
mov byte [esp + 0xf], 0
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x408e16
push ebp
push esi
push edi
push str.HHCTRL.OCX
lea ecx, [esp + 0x17c]
push ecx
push str._s_s
lea edx, [esp + 0x80]
push 0x104
push edx
call fcn.00408310
add esp, 0x14
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x78]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, eax
push edi
push 8
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x408df9
push esi
push edi
push 0
lea edx, [esp + 0x80]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x408d5e
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x462a84
push esi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x14]
cmp dword [eax + 8], 0x4004a
jae 0x408d60
cmp dword [eax + 0xc], 0x22ab0000
jae 0x408d60
mov bl, 1
push esi
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test bl, bl
je 0x408df9
cmp dword [0x477abc], 0x10
mov eax, dword [0x477aa8]
jae 0x408d87
mov eax, 0x477aa8
push str.LIBHHUPD.EXE__Q
push eax
push str._s_s
lea edx, [esp + 0x288]
push 0x104
push edx
call fcn.00408310
push 0x40
lea eax, [esp + 0x4c]
push 0
push eax
call fcn.00440b30
add esp, 0x20
xor eax, eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x34]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
lea eax, [esp + 0x29c]
push eax
push 0
mov dword [esp + 0x58], 0x44
mov dword [esp + 0x40], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
mov al, 1
jne 0x408dfd
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x370]
xor ecx, esp
call fcn.00440494
add esp, 0x374
ret
mov ecx, dword [esp + 0x374]
pop ebx
xor ecx, esp
xor al, al
call fcn.00440494
add esp, 0x374
ret
Function at 0x40b6b0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x254
mov eax, dword [0x4762c4]
xor eax, esp
mov dword [esp + 0x250], eax
cmp dword [0x477ab8], 0
push esi
mov esi, dword [esp + 0x25c]
push edi
mov edi, ecx
mov dword [esp + 0xc], esi
jne 0x40b6e3
xor al, al
jmp 0x40b835
cmp dword [0x477abc], 0x10
mov eax, dword [0x477aa8]
jae 0x40b6f6
mov eax, 0x477aa8
push 0x462c80
push 0x462c5c
push eax
push str._s_s_s
lea eax, [esp + 0x164]
push 0x104
push eax
call fcn.00408310
add esp, 0x18
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 8], eax
je 0x40b81b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push ebp
test byte [esp + 0x1c], 0x10
je 0x40b7f6
push 0x462c70
lea eax, [esp + 0x4c]
push eax
call ebx
test eax, eax
je 0x40b7f6
push 0x462c6c
lea ecx, [esp + 0x4c]
push ecx
call ebx
test eax, eax
je 0x40b7f6
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 4
jne 0x40b7f6
push 0x10
lea eax, [esp + 0x4c]
push 0
push eax
call fcn.0044222b
movzx ebp, ax
add esp, 0xc
mov dword [esp + 0x18], ebp
xor esi, esi
mov ecx, dword [edi + 0x8f8]
test ecx, ecx
je 0x40b7e0
mov eax, dword [edi + 0x8fc]
sub eax, ecx
sar eax, 1
cmp esi, eax
jae 0x40b7e0
test ecx, ecx
je 0x40b7ca
mov eax, dword [edi + 0x8fc]
sub eax, ecx
sar eax, 1
cmp esi, eax
jb 0x40b7cf
call fcn.00440a0f
mov ecx, dword [edi + 0x8f8]
cmp bp, word [ecx + esi*2]
je 0x40b7f6
add esi, 1
jmp 0x40b7a0
test bp, bp
je 0x40b7f6
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
add ecx, 4
call fcn.0040b2a0
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40b743
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x14]
pop ebp
pop ebx
mov eax, dword [esi + 8]
test eax, eax
je 0x40b6dc
mov ecx, dword [esi + 0xc]
sub ecx, eax
sar ecx, 1
je 0x40b6dc
mov al, 1
mov ecx, dword [esp + 0x258]
pop edi
pop esi
xor ecx, esp
call fcn.00440494
add esp, 0x254
ret 4
Function at 0x40b850
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x4762c4]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [edi + 8]
cmp dword [edi + 4], esi
mov dword [esp + 0x10], eax
jbe 0x40b884
call fcn.00440a0f
mov ebx, dword [edi + 4]
cmp ebx, dword [edi + 8]
jbe 0x40b891
call fcn.00440a0f
push esi
push edi
push ebx
push edi
lea ecx, [esp + 0x28]
push ecx
mov ecx, edi
call fcn.00409b20
mov edx, dword [esp + 0x10]
push edx
push 0x100
lea eax, [esp + 0x28]
push eax
push 0
push 0
push str.LanguageMapping
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40b9ba
xor ebx, ebx
cmp byte [esp + 0x20], bl
je 0x40b9ba
lea esi, [esp + 0x20]
jmp 0x40b8e0
lea eax, [esp + 0x18]
mov ecx, eax
mov edx, 8
sub esi, ecx
lea ecx, [ecx]
lea ecx, [edx + 0x7ffffff6]
test ecx, ecx
je 0x40b90d
mov cl, byte [esi + eax]
test cl, cl
je 0x40b90d
mov byte [eax], cl
add eax, 1
sub edx, 1
jne 0x40b8f0
jmp 0x40b911
test edx, edx
jne 0x40b914
sub eax, 1
mov edx, dword [esp + 0x10]
push edx
push 0x100
mov byte [eax], 0
lea eax, [esp + 0x128]
push eax
push 0
lea ecx, [esp + 0x28]
push ecx
push str.LanguageMapping
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40b99c
lea edx, [esp + 0x120]
push 0x462c84
push edx
call fcn.00441f42
add esp, 8
test eax, eax
je 0x40b99c
push 0x10
push 0
push eax
call fcn.0044222b
push 0x10
mov word [esp + 0x24], ax
lea eax, [esp + 0x28]
push 0
push eax
call fcn.0044222b
add esp, 0x18
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
mov word [esp + 0x1a], ax
call fcn.0040b350
push 0x462c84
push 0
call fcn.00441f42
add esp, 8
test eax, eax
jne 0x40b958
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [ebx + eax + 1]
cmp byte [esp + ebx + 0x20], 0
lea esi, [esp + ebx + 0x20]
jne 0x40b8e0
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00440494
mov esp, ebp
pop ebp
ret 8
Function at 0x40b9e0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x4762c4]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push esi
mov esi, dword [esp + 0x114]
push edi
mov edi, dword [esi + 8]
cmp dword [esi + 4], edi
mov dword [esp + 8], eax
jbe 0x40ba15
call fcn.00440a0f
push ebx
mov ebx, dword [esi + 4]
cmp ebx, dword [esi + 8]
jbe 0x40ba23
call fcn.00440a0f
cmp ebx, edi
je 0x40ba49
mov eax, dword [esi + 8]
sub eax, edi
sar eax, 1
test eax, eax
lea ecx, [eax + eax]
push ebp
lea ebp, [ecx + ebx]
jle 0x40ba45
push ecx
push edi
push ecx
push ebx
call fcn.00440acd
add esp, 0x10
mov dword [esi + 8], ebp
pop ebp
cmp dword [0x477a54], 0
pop ebx
jne 0x40bac3
mov ecx, dword [esp + 8]
push ecx
push 0x100
lea edx, [esp + 0x14]
push edx
push 0
push str.ExcludeLocale_9X
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40bac3
lea eax, [esp + 0xc]
push 0x462c84
push eax
call fcn.00441f42
add esp, 8
test eax, eax
je 0x40bac3
mov edi, edi
push 0x10
push 0
push eax
call fcn.0044222b
movzx ecx, ax
add esp, 0xc
lea edx, [esp + 8]
mov dword [esp + 8], ecx
push edx
mov ecx, esi
call fcn.0040b2a0
push 0x462c84
push 0
call fcn.00441f42
add esp, 8
test eax, eax
jne 0x40ba90
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
xor ecx, esp
call fcn.00440494
add esp, 0x108
ret 8

Function at 0x40c0f0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x118
mov eax, dword [0x4762c4]
xor eax, esp
mov dword [esp + 0x114], eax
cmp dword [0x477abc], 0x10
mov eax, dword [0x477aa8]
push ebx
push esi
push edi
mov esi, ecx
jae 0x40c11c
mov eax, 0x477aa8
push str.SETUP.INI
push eax
push str._s_s
lea eax, [esp + 0x28]
push 0x104
push eax
call fcn.00408310
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esp, 0x14
lea ecx, [esp + 0x1c]
push ecx
push 0x100
lea edi, [esi + 0x308]
push edi
push 0x462a70
push str.Setup
push str.General
call ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call edi
test eax, eax
jne 0x40c188
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00440494
add esp, 0x118
ret
lea edx, [esi + 0x8c0]
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.00407d90
test al, al
je 0x40c16e
lea ecx, [esp + 0x1c]
push ecx
push 0x10
lea edx, [esp + 0x14]
push edx
push str.0x0809
push str.DefaultLocale
push str.General
call ebx
lea eax, [esp + 0xc]
push eax
call edi
test eax, eax
je 0x40c1df
push 0x10
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.0044222b
add esp, 0xc
mov word [esi + 0x718], ax
lea edx, [esi + 0x8f4]
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.0040b9e0
lea ecx, [esi + 0x904]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.0040b850
lea eax, [esp + 0x1c]
push eax
push 0
push str.PrivilegeCheckMode
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [esp + 0x1c]
push ecx
push 0x104
mov dword [esi + 0x71c], eax
add esi, 0x614
push esi
push str.EPSON_Scanner
push str.UninstRegKey
push str.General
call ebx
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.00440494
add esp, 0x118
ret
Function at 0x40c260
Capabilities:
Identify system language via api

Disassembly:
push ebx
push ebp
xor eax, eax
push esi
mov esi, dword [esp + 0x10]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov ebp, ecx
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push esi
mov ecx, ebp
movzx ebx, ax
call fcn.0040b6b0
test al, al
jne 0x40c294
pop esi
pop ebp
pop ebx
ret 4
mov ax, word [0x477a6a]
test ax, ax
je 0x40c2aa
mov word [esi], ax
pop esi
pop ebp
mov al, 1
pop ebx
ret 4
push edi
xor edi, edi
lea ecx, [ecx]
mov ecx, dword [ebp + 0x908]
test ecx, ecx
je 0x40c317
mov eax, dword [ebp + 0x90c]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x40c317
test ecx, ecx
je 0x40c2dc
mov eax, dword [ebp + 0x90c]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x40c2e1
call fcn.00440a0f
mov eax, dword [ebp + 0x908]
cmp bx, word [eax + edi*4]
je 0x40c2f2
add edi, 1
jmp 0x40c2b0
mov ecx, eax
test ecx, ecx
je 0x40c307
mov eax, dword [ebp + 0x90c]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x40c30c
call fcn.00440a0f
mov ecx, dword [ebp + 0x908]
movzx ebx, word [ecx + edi*4 + 2]
xor edi, edi
lea esp, [esp]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x40c37d
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 1
cmp edi, eax
jae 0x40c37d
test ecx, ecx
je 0x40c341
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 1
cmp edi, eax
jb 0x40c346
call fcn.00440a0f
mov edx, dword [esi + 8]
cmp word [edx + edi*2], bx
je 0x40c354
add edi, 1
jmp 0x40c320
mov ecx, edx
test ecx, ecx
je 0x40c365
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 1
cmp edi, eax
jb 0x40c36a
call fcn.00440a0f
mov eax, dword [esi + 8]
mov cx, word [eax + edi*2]
pop edi
mov word [esi], cx
pop esi
pop ebp
mov al, 1
pop ebx
ret 4
cmp word [esi], 0
jne 0x40c3e1
xor edi, edi
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x40c3e1
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 1
cmp edi, eax
jae 0x40c3e1
test ecx, ecx
je 0x40c3a6
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 1
cmp edi, eax
jb 0x40c3ab
call fcn.00440a0f
mov edx, dword [esi + 8]
cmp byte [edx + edi*2], bl
je 0x40c3b8
add edi, 1
jmp 0x40c385
mov ecx, edx
test ecx, ecx
je 0x40c3c9
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 1
cmp edi, eax
jb 0x40c3ce
call fcn.00440a0f
mov eax, dword [esi + 8]
mov cx, word [eax + edi*2]
pop edi
mov word [esi], cx
pop esi
pop ebp
mov al, 1
pop ebx
ret 4
mov dx, word [ebp + 0x718]
pop edi
mov word [esi], dx
pop esi
pop ebp
mov al, 1
pop ebx
ret 4
Function at 0x40d700
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x45cbf8
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x4762c4]
xor eax, esp
mov dword [esp + 0x15c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4762c4]
xor eax, esp
push eax
lea eax, [esp + 0x174]
mov dword fs:[0], eax
mov edi, dword [esp + 0x18c]
xor ebx, ebx
mov dword [esp + 0x17c], ebx
lea ebp, [edi + 0x28]
test edi, edi
mov dword [esp + 0x14], ebx
je 0x40d8dc
mov eax, dword [esp + 0x190]
mov esi, eax
sub esi, edi
sar esi, 6
cmp ebx, esi
jae 0x40d8bb
mov eax, dword [esp + 0x184]
cmp eax, dword [ebp - 0x28]
jne 0x40d881
cmp ebx, esi
jb 0x40d789
call fcn.00440a0f
cmp dword [ebp - 8], 0x10
lea edi, [ebp - 0x1c]
jb 0x40d796
mov eax, dword [edi]
jmp 0x40d798
mov eax, edi
push eax
call fcn.0042d5b0
add esp, 4
test al, al
je 0x40d87a
push 0x40
lea ecx, [esp + 0x30]
push 0
push ecx
call fcn.00440b30
xor eax, eax
add esp, 0xc
cmp ebx, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0x44
jb 0x40d7dd
call fcn.00440a0f
cmp dword [ebp + 0x14], 0x10
jb 0x40d7e8
mov ebx, dword [ebp]
jmp 0x40d7ea
mov ebx, ebp
cmp dword [esp + 0x14], esi
jb 0x40d7f5
call fcn.00440a0f
cmp dword [ebp - 8], 0x10
jb 0x40d7ff
mov eax, dword [edi]
jmp 0x40d801
mov eax, edi
push ebx
push eax
push str._s__s
lea edx, [esp + 0x78]
push 0x104
push edx
call fcn.00408310
add esp, 0x14
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x8c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40d88c
cmp dword [esp + 0x14], esi
jb 0x40d84f
call fcn.00440a0f
cmp byte [ebp - 0x24], 0
je 0x40d876
mov eax, dword [esp + 0x18]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x1c]
push edx
call esi
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18c]
add ebx, 1
add ebp, 0x40
jmp 0x40d74e
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x190]
mov esi, dword [esp + 0x18c]
push eax
lea ecx, [esp + 0x18c]
push ecx
push edx
push esi
call fcn.0040ad00
push esi
call fcn.0042f837
add esp, 0x14
xor al, al
jmp 0x40d8de
test edi, edi
je 0x40d8dc
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x18c]
push edx
push eax
push edi
call fcn.0040ad00
push edi
call fcn.0042f837
add esp, 0x14
mov al, 1
mov ecx, dword [esp + 0x174]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x15c]
xor ecx, esp
call fcn.00440494
add esp, 0x16c
ret 0x14
Function at 0x40d910
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x45cc38
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x4762c4]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4762c4]
xor eax, esp
push eax
lea eax, [esp + 0x178]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x18c]
xor edi, edi
mov dword [esp + 0x180], edi
mov dword [esp + 0x14], edi
lea ebp, [ebx + 0x28]
test ebx, ebx
mov dword [esp + 0x18], edi
je 0x40db05
mov eax, dword [esp + 0x190]
mov esi, eax
sub esi, ebx
sar esi, 6
cmp edi, esi
jae 0x40dae4
cmp dword [ebp - 8], 0x10
lea ebx, [ebp - 0x1c]
jb 0x40d991
mov eax, dword [ebx]
jmp 0x40d993
mov eax, ebx
push eax
call fcn.0042d5b0
add esp, 4
test al, al
je 0x40da90
cmp edi, esi
jb 0x40d9ad
call fcn.00440a0f
cmp dword [ebp + 0x10], 0
je 0x40da90
push 0x40
lea eax, [esp + 0x34]
push 0
push eax
call fcn.00440b30
xor eax, eax
add esp, 0xc
cmp edi, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0x44
jb 0x40d9eb
call fcn.00440a0f
cmp dword [ebp + 0x14], 0x10
jb 0x40d9f6
mov edi, dword [ebp]
jmp 0x40d9f8
mov edi, ebp
cmp dword [esp + 0x18], esi
jb 0x40da03
call fcn.00440a0f
cmp dword [ebp - 8], 0x10
jb 0x40da0d
mov eax, dword [ebx]
jmp 0x40da0f
mov eax, ebx
push edi
push eax
push str._s__s
lea ecx, [esp + 0x7c]
push 0x104
push ecx
call fcn.00408310
add esp, 0x14
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x90]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40dab5
mov edx, dword [esp + 0x1c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x20]
push eax
call esi
mov eax, dword [esp + 0x14]
sub eax, 1
jne 0x40daa2
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x18c]
add edi, 1
add ebp, 0x40
jmp 0x40d962
lea ecx, [esp + 0x188]
sub eax, 1
call fcn.0040bc80
xor al, al
jmp 0x40db07
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x190]
mov esi, dword [esp + 0x18c]
push ecx
lea edx, [esp + 0x18c]
push edx
push eax
push esi
call fcn.0040ad00
push esi
call fcn.0042f837
add esp, 0x14
xor al, al
jmp 0x40db07
test ebx, ebx
je 0x40db05
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x18c]
push edx
push eax
push ebx
call fcn.0040ad00
push ebx
call fcn.0042f837
add esp, 0x14
mov al, 1
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.00440494
add esp, 0x170
ret 0x14
Function at 0x410310
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ebx
push 0
lea eax, [esp + 8]
push eax
push 0
push 2
push 0
push 0
push 0
push ecx
push edx
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x410370
push esi
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 8]
add eax, 1
push eax
mov eax, dword [esp + 0x1c]
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
jne 0x410365
mov bl, 1
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop ecx
ret

Function at 0x410380
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ebx
push 0
lea eax, [esp + 8]
push eax
push 0
push 2
push 0
push 0
push 0
push ecx
push edx
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4103d5
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0x1c]
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4103ca
mov bl, 1
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop ecx
ret

Function at 0x4103e0
Capabilities:
Delete registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ebx
lea eax, [esp + 4]
push eax
push 2
push 0
push ecx
push edx
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41042c
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x41041a
cmp eax, 2
jne 0x41041c
mov bl, 1
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop ecx
ret
cmp eax, 2
mov al, 1
je 0x410435
mov al, bl
pop ebx
pop ecx
ret

Function at 0x410440
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4762c4]
xor eax, esp
mov dword [esp + 0x108], eax
mov ecx, dword [esp + 0x114]
mov eax, dword [esp + 0x110]
push ebx
mov ebx, dword [esp + 0x11c]
push esi
push edi
mov edi, dword [esp + 0x128]
lea edx, [esp + 0xc]
push edx
push 0x20019
xor esi, esi
push esi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4104d7
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push esi
push esi
push ebx
push edx
mov dword [esp + 0x28], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4104cc
mov ecx, dword [esp + 0x12c]
lea eax, [esp + 0x14]
push eax
push ecx
push edi
call section..text
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x114]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00440494
add esp, 0x10c
ret