joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d2e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e5ce
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x5d7f50]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
push 0x207
lea eax, [ebp - 0x21b]
mov dword [ebp - 4], ebx
push ebx
push eax
mov dword [ebp - 0x224], ebx
mov byte [ebp - 0x21c], bl
call fcn.00543bb0
add esp, 0xc
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x230], 0x208
mov dword [ebp - 0x228], ebx
call fcn.00402770
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x220]
call fcn.004078f0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x220]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40d399
push ebx
lea ecx, [ebp - 0x220]
call fcn.00402950
mov edx, dword [ebp - 0x220]
lea ecx, [ebp - 0x224]
push ecx
push 0x20019
push ebx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x40d3cd
push 0x5c9e00
lea edx, [ebp - 0x234]
push edx
mov dword [ebp - 0x234], eax
call fcn.00543f24
push 0x208
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.00543bb0
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
mov ecx, dword [ebp - 0x224]
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x228]
push eax
push ebx
push str.UninstallString
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x40d425
push 0x5c9e00
lea edx, [ebp - 0x22c]
push edx
mov dword [ebp - 0x22c], eax
call fcn.00543f24
lea eax, [ebp - 0x21c]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40d430
sub eax, edx
cmp eax, ebx
jbe 0x40d479
push ecx
mov ecx, esp
mov dword [ebp - 0x238], esp
push str._SP____VERYSILENT__norestart
call fcn.00402770
push ecx
lea eax, [ebp - 0x21c]
mov ecx, esp
mov dword [ebp - 0x23c], esp
push eax
mov byte [ebp - 4], 3
call fcn.00402770
mov ecx, dword [ebp + 8]
push ecx
mov byte [ebp - 4], 2
call fcn.0040ea70
add esp, 0xc
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x224]
cmp eax, ebx
je 0x40d491
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x64
mov dword [ebp - 0x224], ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d4c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d4ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0053c99c
mov esp, ebp
pop ebp
ret
Function at 0x40ea70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x38
xor esi, esi
lea eax, [ebp - 0x38]
push esi
push eax
mov dword [ebp - 0x3c], 0x3c
call fcn.00543bb0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], ecx
add esp, 0xc
lea ecx, [ebp - 0x3c]
push ecx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x40eafe
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ead8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40eaf7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
lea ecx, [ebp + 8]
push ecx
mov dword [ebp + 8], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push edx
call esi
cmp dword [ebp + 8], 0x103
jne 0x40eb3c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
lea eax, [ebp + 8]
push eax
push ecx
call esi
push 0x3e8
call edi
cmp dword [ebp + 8], 0x103
je 0x40eb21
pop edi
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40eb5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40eb7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x410740
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d1d0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
push edi
mov eax, dword [0x5d7f50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x44
lea eax, [ebp - 0x6c]
push 0
push eax
mov dword [ebp - 4], 0
call fcn.00543bb0
mov ecx, dword [ebp + 8]
xor eax, eax
push 0x5c
push ecx
mov dword [ebp - 0x6c], 0x44
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
call fcn.0053d7f2
add esp, 0x14
test eax, eax
jne 0x4107a9
or eax, 0xffffffff
jmp 0x4107ac
sub eax, dword [ebp + 8]
push eax
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp + 8]
call fcn.00407c50
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x4107dc
push 0
lea ecx, [ebp + 8]
call fcn.00402950
mov edx, dword [ebp + 8]
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x6c]
push ecx
push edi
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x410857
mov byte [ebp - 4], al
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41081e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410844
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x410863
mov ecx, dword [ebp - 0x24]
push 0xffffffffffffffff
push ecx
jmp 0x410868
mov edx, dword [ebp - 0x24]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [ebp - 0x20]
push ecx
call esi
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4108a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4108c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4108e0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e429
mov eax, dword fs:[0]
push eax
sub esp, 0x1c4
mov eax, dword [0x5d7f50]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x1b0], esi
mov dword [ebp - 0x1ac], edi
mov dword [ebp - 4], edi
call fcn.0044b779
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x41093a
push 0x80004005
call fcn.00402bc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1ac], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x1d0]
push edx
call fcn.00407e30
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c8]
push eax
lea ecx, [ebp - 0x1a8]
call fcn.00402770
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1a8]
cmp dword [ecx - 0xc], 1
jge 0x410995
lea edx, [ebp + 8]
push edx
lea ecx, [ebp - 0x1a8]
call fcn.00402ac0
lea eax, [ebp - 0x1a4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov edx, dword [ebp - 0x1a8]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x4109ce
push edi
lea ecx, [ebp - 0x1a8]
call fcn.00402950
mov edx, dword [ebp - 0x1a8]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, edi
jne 0x4109eb
mov ecx, dword [ebp + 8]
push ecx
push str.Cant_resolve__s_r_n
lea edx, [ebp - 0x1ac]
push edx
jmp 0x410a06
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push 0x5af0c4
lea eax, [ebp - 0x1ac]
push eax
call fcn.004078c0
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov edi, dword [ebp - 0x1ac]
add edi, 0xfffffff0
push edi
call fcn.00402b50
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1a8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
add esp, 4
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410a51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [ebp - 0x1d0]
call fcn.00407f90
or edx, 0xffffffff
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410a79
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410a9f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1b0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0053c99c
mov esp, ebp
pop ebp
ret
Function at 0x411c30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x560
mov eax, dword [0x5d7f50]
xor eax, esp
mov dword [esp + 0x55c], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0xc], eax
call fcn.0042d170
push 0
push 0x20
lea ecx, [esp + 0x460]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x411c84
push 0
lea edx, [esp + 0x45c]
push 0
push edx
call fcn.0042d210
add esp, 0xc
push 0x1ff
lea eax, [esp + 0x15]
push 0
push eax
mov byte [esp + 0x1c], 0
call fcn.00543bb0
add esp, 0xc
push 0xb4
lea ecx, [esp + 0x3a4]
push 0
push ecx
mov dword [esp + 0x2a4], 0
call fcn.00543bb0
add esp, 0xc
mov esi, str.IDS_DELETE_TEMP_FILE
mov ecx, str.CheckRes
call fcn.00425600
lea edx, [esp + 0x3a0]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x411cd7
xor eax, eax
jmp 0x411cf0
mov cl, byte [esp + eax + 0x3a0]
mov byte [esp + eax + 0x29c], cl
inc eax
test cl, cl
jne 0x411cf0
lea eax, [esp + 0x10]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411d10
lea edi, [esp + 0x29c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x411d21
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x210]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0041f520
mov ecx, dword [esp + 0x568]
add esp, 4
pop edi
pop esi
xor ecx, esp
call fcn.0053c99c
mov esp, ebp
pop ebp
ret 4
Function at 0x413830
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56da92
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x5d7f50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xb0], 0
call fcn.0044b779
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41388d
push 0x80004005
call fcn.00402bc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
lea ecx, [ebp - 0xac]
mov dword [ebp - 4], 0
mov ebx, 1
push ecx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xac], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0xa8]
cmp eax, 5
jne 0x413903
mov eax, dword [ebp - 0xa4]
test eax, eax
jne 0x4138e5
push 0xc
push str.Windows_2000
jmp 0x41397f
cmp eax, 2
jne 0x4138f6
push 0xc
push str.Windows_2003
jmp 0x41397f
cmp eax, ebx
jne 0x413978
push 0xa
push str.Windows_XP
jmp 0x41397f
cmp eax, 6
jne 0x413978
mov eax, dword [ebp - 0xa4]
test eax, eax
jne 0x413931
mov ecx, esi
cmp byte [ebp - 0x12], bl
jne 0x413925
push str.Windows_Vista
call fcn.00402730
jmp 0x413986
push str.Windows_2008
call fcn.00402730
jmp 0x413986
cmp eax, ebx
jne 0x413954
mov ecx, esi
cmp byte [ebp - 0x12], bl
jne 0x413948
push str.Windows_7
call fcn.00402730
jmp 0x413986
push str.WINDOWS_2008_R2
call fcn.00402730
jmp 0x413986
cmp eax, 2
jne 0x413978
mov ecx, esi
cmp byte [ebp - 0x12], bl
jne 0x41396c
push str.Windows_8
call fcn.00402730
jmp 0x413986
push str.Windows_Server_2012
call fcn.00402730
jmp 0x413986
push 0x1b
push 0x5af46c
mov ecx, esi
call fcn.00402a20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053c99c
mov esp, ebp
pop ebp
ret
Function at 0x414cd0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56fa20
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5d7f50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x48]
push eax
mov edx, str.DisplayName
mov ecx, str.CRYPTOKIT.CERTENROLLMENT.PRO.x8603020209
call fcn.0040ac80
add esp, 4
cmp dword [eax + 0x14], 0x10
mov esi, dword [eax + 0x10]
mov ecx, esi
jb 0x414d1f
mov edx, dword [eax]
jmp 0x414d21
mov edx, eax
xor eax, eax
mov ecx, 0x5ad324
call fcn.00401e20
test eax, eax
jne 0x414d38
test esi, esi
setne al
test eax, eax
sete bl
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x34], 0x10
jb 0x414d54
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0043cd76
add esp, 4
test bl, bl
je 0x414d5f
xor ecx, ecx
call fcn.00414a30
lea edx, [ebp - 0x50]
test edx, edx
je 0x414d93
push str.GetNativeSystemInfo
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x414d89
lea ecx, [ebp - 0x50]
push ecx
call eax
jmp 0x414d93
lea edx, [ebp - 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [ebp - 0x50]
cmp ax, 9
je 0x414da3
cmp ax, 6
jne 0x414e21
lea eax, [ebp - 0x2c]
push eax
mov edx, str.DisplayName
mov ecx, str.CRYPTOKIT.CERTENROLLMENT.PRO.X6403020209
call fcn.0040ac80
add esp, 4
mov esi, dword [eax + 0x10]
mov ecx, esi
cmp ecx, esi
jae 0x414dc2
cmp dword [eax + 0x14], 0x10
jb 0x414dcc
mov edx, dword [eax]
jmp 0x414dce
mov edx, eax
xor eax, eax
mov ecx, 0x5ad324
call fcn.00401e20
test eax, eax
jne 0x414de5
test esi, esi
setne al
test eax, eax
sete bl
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0x10
jb 0x414e01
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0043cd76
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
test bl, bl
je 0x414e21
mov ecx, 1
call fcn.00414a30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053c99c
mov esp, ebp
pop ebp
ret
Function at 0x414e40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56da43
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x5d7f50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 4], ebx
push 0x1f
push str.SOFTWAREJANSHETO_KEY_CSRCBANK
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
call fcn.00402320
mov byte [ebp - 4], 1
cmp dword [ebp - 0x11c], 0x10
mov eax, dword [ebp - 0x130]
jae 0x414ebf
lea eax, [ebp - 0x130]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [ebp - 0x134]
push ecx
push 1
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
je 0x414f6a
cmp dword [ebp - 0x11c], 0x10
mov eax, dword [ebp - 0x130]
jae 0x414ef4
lea eax, [ebp - 0x130]
lea edx, [ebp - 0x134]
push edx
push 0x101
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
je 0x414f6a
push ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push 0x5ad324
mov ecx, esi
mov byte [esi], bl
call fcn.00402320
mov edi, 0x10
cmp dword [ebp - 0x11c], edi
jb 0x414f42
mov eax, dword [ebp - 0x130]
push eax
call fcn.0043cd76
add esp, 4
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
cmp dword [ebp + 0x1c], edi
jb 0x41503a
mov ecx, dword [ebp + 8]
push ecx
jmp 0x415032
push 0x103
lea edx, [ebp - 0x113]
push ebx
push edx
mov byte [ebp - 0x114], bl
call fcn.00543bb0
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 0x138], 0x104
jae 0x414f9b
lea eax, [ebp + 8]
lea ecx, [ebp - 0x138]
push ecx
lea edx, [ebp - 0x114]
push edx
push ebx
push ebx
push eax
mov eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x134]
cmp eax, ebx
je 0x414fd0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x134], ebx
mov edi, 0xf
lea eax, [ebp - 0x114]
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov byte [esi], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x414fe6
sub eax, edx
push eax
lea ecx, [ebp - 0x114]
push ecx
mov ecx, esi
call fcn.00402320
cmp dword [ebp - 0x11c], 0x10
jb 0x415016
mov edx, dword [ebp - 0x130]
push edx
call fcn.0043cd76
add esp, 4
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
jb 0x41503a
mov eax, dword [ebp + 8]
push eax
call fcn.0043cd76
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053c99c
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x417090
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xd4]
sub esp, 8
push ebx
push esi
push edi
push ecx
lea ecx, [ebp - 8]
call fcn.00452f03
mov esi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov edi, 0x100
cmp dword [esi + 4], edi
jne 0x4170da
push 0x74
call ebx
test ax, ax
jns 0x4170da
lea ecx, [ebp - 8]
call fcn.0045263b
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, 0x8000
test dx, ax
je 0x417116
cmp dword [esi + 4], edi
jne 0x417116
push 0x4f
call ebx
test ax, ax
js 0x4170c7
cmp dword [esi + 4], edi
jne 0x417116
push 0x50
call ebx
test ax, ax
js 0x4170c7
cmp dword [esi + 4], edi
jne 0x417116
push 0x4e
call ebx
test ax, ax
js 0x4170c7
lea ecx, [ebp - 8]
call fcn.0045263b
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x417970
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov ebx, eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x41798d
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
call fcn.0043cd6b
mov esi, eax
add esp, 4
test esi, esi
je 0x417a18
push edi
push 0
push esi
call fcn.00543bb0
add esp, 0xc
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x417a0f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x417a0f
push edi
push eax
push esi
call fcn.005461a0
mov eax, dword [ebp + 8]
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
test ebx, ebx
je 0x417a0f
push 0
lea ecx, [ebp - 4]
push ecx
push edi
push esi
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
test eax, eax
jne 0x417a21
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0043cd76
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
cmp edi, dword [ebp - 4]
jne 0x417a10
call fcn.0043cd76
add esp, 4
pop esi
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41f3a0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x5d7f50]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call fcn.00543bb0
add esp, 0xc
lea ecx, [ebp - 0x110]
call fcn.0041f670
lea eax, [ebp - 0x110]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x41f3e2
mov ecx, dword [str.Log_]
mov dl, byte [0x5b0604]
mov dword [eax], ecx
lea ecx, [ebp - 0x110]
mov byte [eax + 4], dl
call fcn.00425080
test eax, eax
jne 0x41f418
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test esi, esi
je 0x41f432
lea eax, [ebp - 0x110]
mov edx, esi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41f428
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053c99c
mov esp, ebp
pop ebp
ret

Function at 0x41f440
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x5d7f50]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x7f
lea eax, [ebp - 0x83]
push 0
push eax
mov byte [ebp - 0x84], 0
call fcn.00543bb0
push 0x7f
lea ecx, [ebp - 0x84]
push 0x20
push ecx
call fcn.00543bb0
mov eax, edi
add esp, 0x18
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41f482
sub eax, ecx
push eax
lea edx, [ebp - 0x84]
push edi
push edx
call fcn.005461a0
lea eax, [ebp - 0x84]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41f4a5
mov ecx, dword [esi]
push ecx
sub eax, edx
push eax
lea edx, [ebp - 0x84]
push 1
push edx
call fcn.0053f459
mov eax, dword [esi]
push eax
push 1
push 1
push str._t_t_t_t
call fcn.0053f459
mov eax, ebx
add esp, 0x20
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41f4e0
mov ecx, dword [esi]
push ecx
sub eax, edx
push eax
push 1
push ebx
call fcn.0053f459
mov edx, dword [esi]
push edx
push 1
push 2
push 0x5ae6e0
call fcn.0053f459
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x20
call fcn.0053c99c
mov esp, ebp
pop ebp
ret