joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e8ef
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
lea ebx, [ecx + 0x6c]
push edi
push dword [esp + 0x14]
push dword [esp + 0x14]
mov esi, ecx
call fcn.0043ee38
mov edi, eax
push 1
push edi
mov ecx, ebx
call fcn.0042fbc4
lea eax, [edi*4]
add eax, dword [esi + 0x70]
cmp dword [eax - 4], 0
jne 0x43e92f
cmp dword [eax], 0
jne 0x43e92f
push 1
mov ecx, ebx
push edi
call fcn.0042fbc4
mov ecx, esi
call fcn.00440c85
cmp dword [esi + 0x68], 0
mov edi, eax
je 0x43e968
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x98]
test eax, eax
jne 0x43e968
cmp dword [esi + 0x74], 1
jne 0x43e95b
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
jmp 0x43e96f
push 0
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x43e96f
or byte [edi + 0xbc], 0xc
pop edi
pop esi
pop ebx
ret 8

Function at 0x43f328
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
cmp dword [ecx + 0x74], 0
mov esi, ecx
je 0x43f372
push dword [ebp + 8]
mov ecx, esi
call fcn.004473d7
mov esi, eax
test esi, esi
jne 0x43f34c
xor eax, eax
jmp 0x43f39d
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 1
sbb eax, eax
neg eax
jmp 0x43f39d
push dword [ebp + 0x10]
push 0x45a6d4
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x10]
push dword [esi + 0x84]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4417cb
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4418dd
push eax
mov dword fs:[0], esp
sub esp, 4
mov dword [ebp - 0x10], ecx
push ebx
push edi
call fcn.0043151a
xor edi, edi
push 0xa
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0x10]
add ecx, 0x64
call fcn.0042f700
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0xa8
call fcn.0043100b
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 2
mov dword [eax], 0x4524e8
mov dword [eax + 0x98], edi
mov dword [eax + 0x38], edi
mov dword [eax + 0x3c], edi
mov dword [eax + 0x88], edi
mov dword [eax + 0x8c], edi
mov dword [eax + 0x90], edi
mov dword [eax + 0x94], edi
mov dword [eax + 0x9c], edi
mov dword [eax + 0xa0], edi
mov dword [eax + 0x80], edi
mov dword [eax + 0x60], edi
mov dword [eax + 0xa4], edi
mov dword [eax + 0xbc], edi
mov dword [eax + 0x34], 0xffffffff
mov dword [eax + 0x30], 1
add eax, 0x50
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x44], edi
mov dword [eax + 0x40], edi
mov dword [eax + 0x4c], edi
mov dword [eax + 0xb4], edi
mov ecx, eax
mov dword [eax + 0x48], edi
mov dword [eax + 0x84], 0xffffffff
mov dword [eax + 0xb8], edi
call fcn.00441978
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x441dd9
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
push ebp
push 5
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
test edi, edi
je 0x441e79
mov esi, dword [esp + 0x14]
push edi
call fcn.00431a35
mov ebp, eax
test ebp, ebp
je 0x441e6a
mov eax, dword [ebx + 0x1c]
cmp edi, eax
je 0x441e6a
push edi
push eax
call fcn.00441c02
test eax, eax
je 0x441e6a
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
test esi, esi
jne 0x441e4d
mov ecx, eax
and ecx, 0x18000000
cmp ecx, 0x10000000
jne 0x441e49
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp + 0x28], 1
jmp 0x441e6a
test esi, esi
je 0x441e6a
test eax, 0x18000000
jne 0x441e6a
cmp dword [ebp + 0x28], 0
je 0x441e6a
push 4
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp + 0x28], 0
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
test edi, edi
jne 0x441dfc
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x442b3b
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push ebp
mov ecx, esi
call fcn.00440c85
mov edi, eax
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
test ebp, ebp
je 0x442b69
push ebx
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x70]
or byte [edi + 0xbc], 0xc
jmp 0x442bad
cmp ebx, 1
sbb eax, eax
and eax, 0x40
add eax, 0x40
or al, 0x17
push eax
push 0
push 0
push 0
push 0
push 0
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebx
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x70]
test ebx, ebx
jne 0x442ba1
mov ecx, esi
call fcn.00440509
test eax, eax
jne 0x442bad
push 0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + pe_nt_image_headers32]
mov ecx, esi
call fcn.00440509
test eax, eax
je 0x442c3e
mov ecx, dword [esi + 0x60]
test ecx, ecx
je 0x442bcd
mov eax, dword [ecx]
call dword [eax + 0x98]
jmp 0x442bd3
cmp ebx, 1
sbb eax, eax
inc eax
cmp eax, 1
jne 0x442c03
test ebx, ebx
je 0x442c03
mov dword [edi + 0x84], 0xffffffff
test ebp, ebp
je 0x442bf6
mov dword [edi + 0x84], 8
jmp 0x442c32
push 8
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x442c3e
test eax, eax
jne 0x442c2e
mov dword [edi + 0x84], 0xffffffff
test ebp, ebp
je 0x442c21
mov dword [edi + 0x84], 0
jmp 0x442c3e
push 0
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x442c3e
test ebp, ebp
jne 0x442c3e
push 0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + pe_nt_image_headers32]
pop ebp
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x443a66
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
mov edi, dword [ebp + 8]
cmp dword [edi + 0x5c], 0
je 0x443ac3
mov ebx, dword [edi + 0x60]
test ebx, ebx
je 0x443ac3
cmp dword [ebx + 0x68], 0
je 0x443ac3
mov ecx, ebx
call fcn.0043e664
cmp eax, 1
jne 0x443ac3
mov eax, dword [ebx + 0x54]
and eax, dword [ebp + 0x14]
test ah, 0xf0
je 0x443ac3
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00431a1d
push 0x15
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x443b30
push dword [ebp + 0x14]
mov ecx, esi
call fcn.0044392e
mov esi, eax
push 0x15
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esi + 0x20], 0
jne 0x443af2
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x20], eax
push 0xe81f
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.00431a1d
push 0
mov ecx, eax
push edi
call fcn.0043e6b2
push 1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + pe_nt_image_headers32]
push 8
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x447050
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447112
push eax
mov dword fs:[0], esp
sub esp, 4
mov dword [ebp - 0x10], ecx
push esi
push 0xa
add ecx, 0xb4
xor esi, esi
call fcn.0043007f
push 0xa
mov dword [ebp - 4], esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xd0
call fcn.0043007f
mov byte [ebp - 4], 1
push 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0xec
call fcn.0042f700
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 2
mov dword [eax + 0x18], esi
mov dword [eax + 0x1c], esi
mov dword [eax + 0x20], esi
mov dword [eax + 0x24], esi
mov dword [eax + 0x108], esi
push dword [0x45acb0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x4470dd
push dword [ebp - 0x10]
push dword [0x45acb0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x44718d
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447235
push eax
mov dword fs:[0], esp
sub esp, 4
mov dword [ebp - 4], 2
push esi
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp - 0x10]
add esi, 0xc
mov eax, dword [esi]
test eax, eax
je 0x4471ce
push eax
call fcn.00422be6
add esp, 4
mov dword [esi], 0
mov eax, dword [0x45acb0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, dword [ebp - 0x10]
jne 0x4471ed
push 0
mov eax, dword [0x45acb0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov byte [ebp - 4], 1
call fcn.00447219
mov byte [ebp - 4], 0
call fcn.00447227
mov dword [ebp - 4], 0xffffffff
call fcn.0044723f
mov eax, dword [ebp - 0xc]
pop esi
mov dword fs:[0], eax
mov esp, ebp
pop ebp
ret

Function at 0x44724d
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x45acb0]
cmp eax, 0xffffffff
jne 0x447274
call fcn.00437c81
mov dword [0x45acb0], eax
cmp eax, 0xffffffff
jne 0x447274
xor eax, eax
jmp 0x4472ae
push eax
mov dword [0x45acb0], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x4472a5
push 0x10c
mov edi, 0
call fcn.0044712a
add esp, 4
mov ecx, eax
test ecx, ecx
je 0x4472a5
call fcn.00447050
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret
Function at 0x401350
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x914
mov eax, dword [0x416050]
xor eax, esp
mov dword [esp + 0x910], eax
push esi
push edi
push 0xff
lea eax, [esp + 0x1d]
push 0
push eax
mov esi, ecx
or edi, 0xffffffff
mov dword [esp + 0x14], 0
mov byte [esp + 0x24], 0
call fcn.00404310
push esi
lea ecx, [esp + 0x28]
push str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_sConnection
push ecx
call fcn.004037f9
add esp, 0x18
lea edx, [esp + 8]
push edx
push 0x20019
push 0
lea eax, [esp + 0x24]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40147d
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [esp + 0x122]
push edx
mov word [esp + 0x124], cx
call fcn.00404310
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x11c]
push ecx
push 0
push 0
push str.PnpInstanceID
push edx
mov dword [esp + 0x28], 0x800
call esi
test eax, eax
jne 0x401472
push 3
push 0x413f34
lea eax, [esp + 0x120]
push eax
push 0
call dword [sym.imp.SHLWAPI.dll_StrIsIntlEqualW]
test eax, eax
je 0x401472
mov eax, dword [esp + 8]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 0
push str.MediaSubType
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 4
call esi
cmp eax, 2
je 0x401470
test eax, eax
jne 0x401472
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x401470
cmp eax, 2
jne 0x401472
lea edi, [eax - 1]
jmp 0x401472
xor edi, edi
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x918]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.004037ea
add esp, 0x914
ret
Function at 0x401f40
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x411426
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x416050]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
mov eax, dword [0x416050]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
xor ebx, ebx
push 0x63
lea eax, [esp + 0x35]
push ebx
push eax
mov esi, ecx
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x3c], bl
call fcn.00404310
push 1
push 0x64
push esi
push str.SoftwareKuaiZipInstall
lea ecx, [esp + 0x30]
push 0x80000001
push ecx
call fcn.00410f70
add esp, 0x24
mov dword [esp + 0xa0], ebx
lea esi, [ebx + 0x10]
cmp dword [esp + 0x28], ebx
je 0x40200b
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x2c], esi
jae 0x401fcc
lea ecx, [esp + 0x18]
lea edx, [esp + 0x30]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x401fd0
lea ecx, [esp + 0xf]
call fcn.00410ca0
push 0x64
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x17]
mov byte [esp + 0xa8], 1
call fcn.00410d20
lea ecx, [esp + 0xf]
mov byte [esp + 0xa0], bl
call fcn.00410c90
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x1c]
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
push eax
mov ecx, edi
mov byte [edi + 4], bl
call fcn.00402d80
cmp dword [esp + 0x2c], esi
jb 0x40203a
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00403949
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.004037ea
add esp, 0x98
ret
Function at 0x403490
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
mov cl, byte [eax + 0x100]
mov byte [ebp - 2], cl
mov edx, dword [ebp + 0x10]
mov al, byte [edx + 0x101]
mov byte [ebp - 1], al
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 0
jmp 0x4034c6
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jge 0x403576
movzx ecx, byte [ebp - 2]
add ecx, 1
and ecx, 0x800000ff
jns 0x4034e9
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [ebp - 2], cl
movzx edx, byte [ebp - 2]
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + edx]
movzx edx, byte [ebp - 1]
add ecx, edx
and ecx, 0x800000ff
jns 0x40350d
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [ebp - 1], cl
movzx eax, byte [ebp - 1]
add eax, dword [ebp - 0x10]
push eax
movzx ecx, byte [ebp - 2]
add ecx, dword [ebp - 0x10]
push ecx
call fcn.004035a0
add esp, 8
movzx edx, byte [ebp - 2]
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + edx]
movzx edx, byte [ebp - 1]
mov eax, dword [ebp - 0x10]
movzx edx, byte [eax + edx]
add ecx, edx
and ecx, 0x800000ff
jns 0x403550
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [ebp - 9], cl
movzx eax, byte [ebp - 9]
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + eax]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
movzx ecx, byte [eax]
xor ecx, edx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
mov byte [edx], cl
jmp 0x4034bd
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 2]
mov byte [eax + 0x100], cl
mov edx, dword [ebp + 0x10]
mov al, byte [ebp - 1]
mov byte [edx + 0x101], al
mov esp, ebp
pop ebp
ret

Function at 0x4037ea
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x416050]
jne 0x4037f4
repz ret
jmp fcn.00404ed0
Function at 0x40de3c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00407f1d
and dword [ebp - 4], 0
cmp dword [0x417bf8], 0
mov ebx, eax
jne 0x40deed
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40df9e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40df9e
push eax
call fcn.00407eab
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x417bf8], eax
call esi
push eax
call fcn.00407eab
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x417bfc], eax
call esi
push eax
call fcn.00407eab
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x417c00], eax
call esi
push eax
call fcn.00407eab
pop ecx
mov dword [0x417c08], eax
test eax, eax
je 0x40deed
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00407eab
pop ecx
mov dword [0x417c04], eax
mov eax, dword [0x417c04]
cmp eax, ebx
je 0x40df45
cmp dword [0x417c08], ebx
je 0x40df45
push eax
call fcn.00407f26
push dword [0x417c08]
mov esi, eax
call fcn.00407f26
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40df45
test edi, edi
je 0x40df45
call esi
test eax, eax
je 0x40df3c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40df3c
test byte [ebp - 0xc], 1
jne 0x40df45
or dword [ebp + 0x10], 0x200000
jmp 0x40df7e
mov eax, dword [0x417bfc]
cmp eax, ebx
je 0x40df7e
push eax
call fcn.00407f26
pop ecx
test eax, eax
je 0x40df7e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40df7e
mov eax, dword [0x417c00]
cmp eax, ebx
je 0x40df7e
push eax
call fcn.00407f26
pop ecx
test eax, eax
je 0x40df7e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x417bf8]
call fcn.00407f26
pop ecx
test eax, eax
je 0x40df9e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40dfa0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x410970
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov byte [eax + 0x68], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], 0
mov eax, dword [ebp - 4]
mov dword [eax], 0x67452301
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], 0xefcdab89
mov edx, dword [ebp - 4]
mov dword [edx + 8], 0x98badcfe
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0x10325476
mov esp, ebp
pop ebp
ret
Function at 0x410dc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x80000001
jne 0x410df3
lea ecx, [ebp - 8]
push ecx
push 0x20019
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
je 0x410df3
xor al, al
jmp 0x410e33
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x410e0d
xor al, al
jmp 0x410e33
push 0
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 4], 0
sete al
mov esp, ebp
pop ebp
ret

Function at 0x410ed0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x80000001
jne 0x410f02
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
je 0x410f02
xor al, al
jmp 0x410f60
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x410f54
mov ecx, dword [ebp + 0x14]
call fcn.00402f70
push eax
mov ecx, dword [ebp + 0x14]
call fcn.00402f50
push eax
push 1
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
jne 0x410f5e
mov al, 1
jmp 0x410f60
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x410f70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411305
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x416050]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x30]
call fcn.00403380
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x80000001
jne 0x410ffe
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
je 0x410ffe
mov ecx, dword [ebp + 8]
call fcn.00403380
mov eax, dword [ebp - 0x40]
or eax, 1
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00402f20
mov eax, dword [ebp + 8]
jmp 0x411089
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x41105d
mov dword [ebp - 0x3c], 1
mov edx, dword [ebp + 0x18]
push edx
lea ecx, [ebp - 0x30]
call fcn.00402f90
lea eax, [ebp + 0x18]
push eax
lea ecx, [ebp - 0x30]
call fcn.00402f50
push eax
lea ecx, [ebp - 0x3c]
push ecx
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x30]
call fcn.00402f50
push eax
mov ecx, dword [ebp + 8]
call fcn.004029b0
mov edx, dword [ebp - 0x40]
or edx, 1
mov dword [ebp - 0x40], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00402f20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004037ea
mov esp, ebp
pop ebp
ret
Function at 0x402eac
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040474c
test esi, esi
jne 0x402ee3
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.0040483c
jmp 0x402f04
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d48
mov dword [esp], eax
test esi, esi
je 0x402f04
cmp dword [ebx], 0
je 0x402f04
dec esi
jmp 0x402eeb
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403204
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x524008], 0x8088405
inc edx
mov dword [ebx + 0x524008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x40372c
Capabilities:
Query or enumerate registry value

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

Function at 0x404524
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x52704c], 0
je 0x404585
cmp word [0x527220], 0xd7b2
jne 0x40454d
cmp dword [0x527228], 0
jbe 0x40454d
mov eax, 0x52721c
call dword [0x527238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x524070
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 0x4045ac
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x524034], 0
jne 0x4045a1
push 0
push 0x524068
push 0x524070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404700
Capabilities:
Create thread

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