joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f770
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push 0x1034
push 1
call fcn.00406130
mov ecx, dword [ebp + 8]
add esp, 8
mov edi, eax
lea ebx, [edi + 4]
mov dword [ebx], ecx
push 0
push 0
push 0
push 0
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x1030], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x24], eax
mov eax, dword [0x4cc418]
mov dword [edi + 0x18], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
test eax, eax
jne 0x43f7fc
push 0x43f4c0
call fcn.0043de80
add esp, 4
mov dword [0x4cc418], eax
push edi
push eax
call fcn.0043d010
add esp, 8
lea eax, [ebp - 4]
push eax
push 0
push ebx
push 0x43f830
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x1c], 1
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43f9e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push 0x1034
push 1
call fcn.00406130
mov ecx, dword [ebp + 8]
add esp, 8
mov edi, eax
lea ebx, [edi + 4]
mov dword [ebx], ecx
push 0
push 0
push 0
push 0
mov dword [edi], 1
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x38]
push eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.00405760
mov eax, dword [ebp + 0xc]
add esp, 4
mov dword [edi + 0x48], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x24], eax
mov eax, dword [0x4cc418]
mov dword [edi + 0x44], 0
test eax, eax
jne 0x43fa83
push 0x43f4c0
call fcn.0043de80
add esp, 4
mov dword [0x4cc418], eax
push edi
push eax
call fcn.0043d010
add esp, 8
lea eax, [ebp - 4]
push eax
push 0
push ebx
push 0x43fab0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x440570
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4cc428], 0
push esi
push edi
jne 0x4405cc
push str.secur32.dll
call fcn.004406c0
push str.sspicli.dll
mov esi, eax
call fcn.004406c0
add esp, 8
test esi, esi
je 0x4405b9
push str.GetUserNameExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cc424], eax
mov dword [0x4cc428], 1
jmp 0x4405d1
xor eax, eax
mov dword [0x4cc428], 1
mov dword [0x4cc424], eax
jmp 0x4405d1
mov eax, dword [0x4cc424]
test eax, eax
je 0x440631
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push 0
push 8
call eax
push 1
push dword [ebp - 4]
call fcn.00406130
add esp, 8
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
push 8
call dword [0x4cc424]
movzx edi, al
test al, al
je 0x440628
push 0x40
push esi
call fcn.0044b6c0
add esp, 8
test eax, eax
je 0x44067a
mov byte [eax], 0
xor eax, eax
test edi, edi
pop edi
cmovne eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call fcn.00406110
add esp, 4
mov edi, dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 4]
push eax
push 0
mov dword [ebp - 4], 0
call edi
test eax, eax
jne 0x440654
mov eax, 0x100
mov dword [ebp - 4], eax
jmp 0x440657
mov eax, dword [ebp - 4]
push 1
push eax
call fcn.00406130
add esp, 8
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
call edi
mov edi, eax
test edi, edi
jne 0x44067a
push esi
call fcn.00406110
add esp, 4
xor eax, eax
test edi, edi
pop edi
cmovne eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4406c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x4cc434]
push esi
push edi
test ecx, ecx
jne 0x440706
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor esi, esi
lea eax, [esi + esi*2]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
push 1
add esi, 0x200
push esi
push ecx
call fcn.004061d0
add esp, 0xc
mov dword [0x4cc434], eax
push esi
push eax
call edi
mov ecx, dword [0x4cc434]
cmp eax, esi
jge 0x4406d7
push 0
push dword [ebp + 8]
push 0x4b9260
push ecx
call fcn.004059c0
add esp, 0x10
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
mov edi, eax
call fcn.00406110
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x442f50
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x4cb180]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x12c]
push edi
push 0x107
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x12c]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x442f81
mov ax, word [0x4b9c10]
mov word [ecx], ax
mov al, byte [0x4b9c12]
mov byte [ecx + 2], al
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x442fe7
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
nop
lea eax, [ebp - 0x26c]
push 0x140
push eax
call esi
add esp, 8
lea eax, [ebp - 0x26c]
push eax
push edi
call ebx
test eax, eax
jne 0x442fc0
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x274]
push 4
push eax
call esi
add esp, 8
cmp dword [0x4ccb2c], 0
jne 0x443084
push str.advapi32.dll
call fcn.004406c0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 4
mov dword [0x4ccb2c], eax
test eax, eax
je 0x443037
push str.CryptAcquireContextA
push eax
call edi
mov ecx, eax
mov eax, dword [0x4ccb2c]
jmp 0x443039
xor ecx, ecx
mov dword [0x4ccb20], ecx
test eax, eax
je 0x443054
push str.CryptGenRandom
push eax
call edi
mov ecx, eax
mov eax, dword [0x4ccb2c]
jmp 0x443056
xor ecx, ecx
mov dword [0x4ccb24], ecx
test eax, eax
je 0x443078
push str.CryptReleaseContext
push eax
call edi
cmp dword [0x4ccb2c], 0
mov dword [0x4ccb28], eax
je 0x4430e7
jmp 0x443089
mov dword [0x4ccb28], 0
jmp 0x4430e7
mov eax, dword [0x4ccb28]
mov ecx, dword [0x4ccb20]
test ecx, ecx
je 0x4430e7
cmp dword [0x4ccb24], 0
je 0x4430e7
test eax, eax
je 0x4430e7
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x270]
push eax
call ecx
test eax, eax
je 0x4430e7
lea eax, [ebp - 0x24]
push eax
push 0x20
push dword [ebp - 0x270]
call dword [0x4ccb24]
test eax, eax
je 0x4430d9
lea eax, [ebp - 0x24]
push 0x20
push eax
call esi
add esp, 8
push 0
push dword [ebp - 0x270]
call dword [0x4ccb28]
push esi
call fcn.00447120
add esp, 4
call fcn.004432d0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0044a3f7
mov esp, ebp
pop ebp
ret
Function at 0x443170
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x4cb180]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push 4
push eax
call fcn.00431c90
add esp, 8
call dword [sym.imp.USER32.dll_GetCapture]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push 4
push eax
call fcn.00431c90
add esp, 8
call dword [sym.imp.USER32.dll_GetClipboardOwner]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push 4
push eax
call fcn.00431c90
add esp, 8
push 0x1cbf
call dword [sym.imp.USER32.dll_GetQueueStatus]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push 4
push eax
call fcn.00431c90
add esp, 8
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x54]
push 8
push eax
call fcn.00431c90
add esp, 8
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.00431c90
add esp, 8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadTimes]
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.00431c90
add esp, 8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.00431c90
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
call fcn.0044a3f7
mov esp, ebp
pop ebp
ret
Function at 0x444c50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + edi + 0x78]
mov ebx, dword [eax + edi + 0x1c]
lea ecx, [ebx + edi]
mov dword [ebp - 8], ecx
mov ecx, dword [eax + edi + 0x20]
mov eax, dword [eax + edi + 0x24]
add ecx, edi
add eax, edi
mov dword [ebp + 8], ecx
mov dword [ebp - 4], eax
test ebx, ebx
je 0x444ca0
mov eax, dword [ecx + esi*4]
add eax, edi
push eax
call fcn.004449b0
add esp, 4
cmp eax, dword [ebp + 0xc]
je 0x444ca9
mov ecx, dword [ebp + 8]
inc esi
cmp esi, ebx
jb 0x444c85
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
movzx eax, word [eax + esi*2]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x444cd0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004013b0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x444cef
pop ebp
jmp fcn.0043e560
pop ebp
ret

Function at 0x444e10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp dword [ebp + 0x10], ebx
jbe 0x444e7c
inc esi
and esi, 0x800000ff
jns 0x444e33
dec esi
or esi, 0xffffff00
inc esi
mov eax, dword [ebp + 8]
mov cl, byte [esi + eax]
movzx edx, cl
add edi, edx
mov dword [ebp - 4], edx
and edi, 0x800000ff
jns 0x444e51
dec edi
or edi, 0xffffff00
inc edi
movzx eax, byte [edi + eax]
mov edx, dword [ebp + 8]
mov byte [esi + edx], al
mov eax, edx
mov byte [edi + eax], cl
mov ecx, edx
movzx eax, byte [esi + eax]
add eax, dword [ebp - 4]
movzx eax, al
movzx eax, byte [eax + ecx]
mov ecx, dword [ebp + 0xc]
xor byte [ebx + ecx], al
inc ebx
cmp ebx, dword [ebp + 0x10]
jb 0x444e22
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x444e90
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4cb180]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x104]
push edi
push 0x100
push 0
push eax
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x10c], 0
call fcn.0044c430
mov edi, esi
lea eax, [ebp - 0x104]
mov esi, dword [ebp + 0xc]
add esp, 0xc
xor ebx, ebx
sub edi, eax
nop
mov eax, ebx
lea ecx, [ebp - 0x104]
xor edx, edx
add ecx, ebx
div dword [ebp + 0x10]
mov byte [edi + ecx], bl
inc ebx
mov al, byte [edx + esi]
mov byte [ecx], al
cmp ebx, 0x100
jl 0x444ee0
mov esi, dword [ebp - 0x108]
lea ebx, [ebp - 0x104]
mov edi, esi
mov dword [ebp - 0x108], 0x100
sub ebx, esi
nop word [eax + eax]
mov dl, byte [edi]
movzx eax, byte [ebx + edi]
add eax, dword [ebp - 0x10c]
movzx ecx, dl
add ecx, eax
and ecx, 0x800000ff
jns 0x444f41
dec ecx
or ecx, 0xffffff00
inc ecx
mov al, byte [esi + ecx]
mov byte [edi], al
inc edi
sub dword [ebp - 0x108], 1
mov dword [ebp - 0x10c], ecx
mov byte [esi + ecx], dl
jne 0x444f20
lea ecx, [esi + 0xff]
xor eax, eax
cmp ecx, 0x4ccb30
jb 0x444fa8
cmp esi, 0x4ccc2f
ja 0x444fa8
sub esi, 0x4ccb30
nop word [eax + eax]
mov cl, byte [esi + eax + 0x4ccb30]
mov byte [eax + 0x4ccb30], cl
inc eax
cmp eax, 0x100
jl 0x444f80
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044a3f7
mov esp, ebp
pop ebp
ret
mov ecx, 0x40
mov edi, 0x4ccb30
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044a3f7
mov esp, ebp
pop ebp
ret
Function at 0x445930
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [0x4ccc4c], 0
jne 0x445ab7
push esi
push str.advapi32.dll
mov dword [0x4ccc4c], 1
call fcn.004406c0
add esp, 4
mov dword [0x4ccc54], eax
test eax, eax
je 0x445aae
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetSecurityInfo
push eax
call esi
mov dword [0x4ce010], eax
test eax, eax
je 0x445aae
mov eax, dword [0x4ccc54]
test eax, eax
je 0x445aa4
push str.SetSecurityInfo
push eax
call esi
mov dword [0x4ce00c], eax
test eax, eax
je 0x445aae
mov eax, dword [0x4ccc54]
test eax, eax
je 0x445a91
push str.OpenProcessToken
push eax
call esi
mov dword [0x4ce020], eax
test eax, eax
je 0x445aae
mov eax, dword [0x4ccc54]
test eax, eax
je 0x445a7e
push str.GetTokenInformation
push eax
call esi
mov dword [0x4ce01c], eax
test eax, eax
je 0x445aae
mov eax, dword [0x4ccc54]
test eax, eax
je 0x445a6b
push 0x4ba8ac
push eax
call esi
mov dword [0x4ce018], eax
test eax, eax
je 0x445aae
mov eax, dword [0x4ccc54]
test eax, eax
je 0x445a58
push 0x4ba8cc
push eax
call esi
mov dword [0x4ce014], eax
test eax, eax
je 0x445aae
mov eax, dword [0x4ccc54]
test eax, eax
je 0x445a45
push str.SetEntriesInAclA
push eax
call esi
mov dword [0x4ce008], eax
test eax, eax
je 0x445aae
mov eax, 1
mov dword [0x4ccc50], eax
pop esi
ret
xor eax, eax
mov dword [0x4ce008], 0
mov dword [0x4ccc50], eax
pop esi
ret
xor eax, eax
mov dword [0x4ce014], 0
mov dword [0x4ccc50], eax
pop esi
ret
xor eax, eax
mov dword [0x4ce018], 0
mov dword [0x4ccc50], eax
pop esi
ret
xor eax, eax
mov dword [0x4ce01c], 0
mov dword [0x4ccc50], eax
pop esi
ret
xor eax, eax
mov dword [0x4ce020], 0
mov dword [0x4ccc50], eax
pop esi
ret
mov dword [0x4ce00c], 0
xor eax, eax
mov dword [0x4ccc50], eax
pop esi
ret
mov eax, dword [0x4ccc50]
ret
Function at 0x446d60
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
lea edi, [eax + eax*2]
push 1
push edi
call fcn.00406130
mov esi, dword [ebp + 8]
add esp, 8
mov ebx, eax
mov edx, dword [esi + 4]
push edi
push ebx
push edx
push dword [esi]
lea ecx, [edx + 1]
mov dword [esi + 4], ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x446db1
push dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
push esi
push ebx
call fcn.00447870
push ebx
call fcn.00406110
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
push ebx
call fcn.00406110
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x446f10
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov al, byte [esi]
test al, al
je 0x446f7f
mov edx, dword [ebp + 0xc]
cmp al, 0x20
je 0x446f47
cmp al, 0x5c
je 0x446f47
cmp al, 0x2a
je 0x446f47
cmp al, 0x3f
je 0x446f47
cmp al, 0x25
je 0x446f47
lea ecx, [eax - 0x20]
cmp cl, 0x5e
ja 0x446f47
cmp al, 0x2e
jne 0x446f6a
test edi, edi
jne 0x446f6a
mov byte [edx], 0x25
movzx eax, byte [esi]
shr eax, 4
movzx eax, byte [eax + str.0123456789ABCDEFUnable_to_create_registry_key_nHKEY_CURRENT_USER_s]
mov byte [edx + 1], al
add edx, 2
movzx eax, byte [esi]
and eax, 0xf
movzx eax, byte [eax + str.0123456789ABCDEFUnable_to_create_registry_key_nHKEY_CURRENT_USER_s]
inc esi
mov byte [edx], al
inc edx
mov edi, 1
mov al, byte [esi]
test al, al
jne 0x446f23
pop edi
mov byte [edx], al
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
pop edi
pop esi
mov byte [eax], 0
pop ebp
ret

Function at 0x447120
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x4cb180]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push 1
call fcn.00446880
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x4471ab
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x408]
push 0
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push esi
call edi
test eax, eax
je 0x4471a3
nop dword [eax]
mov eax, dword [ebp - 0x408]
test eax, eax
je 0x4471a3
push eax
lea eax, [ebp - 0x404]
push eax
call ebx
add esp, 8
lea eax, [ebp - 0x408]
push 0
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push esi
call edi
test eax, eax
jne 0x447170
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0044a3f7
mov esp, ebp
pop ebp
ret
Function at 0x447330
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4473ad
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp + 8]
push eax
push 0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4473ad
cmp dword [ebp + 8], 1
jne 0x4473ad
mov eax, dword [ebp - 4]
push esi
inc eax
push 1
push eax
call fcn.00406130
add esp, 8
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push 0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x44739c
cmp dword [ebp + 8], 1
jne 0x44739c
mov eax, dword [ebp - 4]
mov byte [esi + eax], 0
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push esi
call fcn.00406110
add esp, 4
xor eax, eax
pop esi
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4473c0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4cb180]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10c]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push 0x105
push eax
push 0
push esi
call edi
test eax, eax
jne 0x447453
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop word [eax + eax]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x10c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x44742f
push dword [ebp - 0x110]
call fcn.004473c0
add esp, 4
push dword [ebp - 0x110]
call ebx
lea eax, [ebp - 0x10c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x105
lea eax, [ebp - 0x10c]
push eax
push 0
push esi
call edi
test eax, eax
je 0x447400
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0044a3f7
mov esp, ebp
pop ebp
ret

Function at 0x447490
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4474a0
sub ecx, edx
mov edx, dword [ebp + 0x10]
lea esi, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x4474b0
sub edx, esi
push 1
lea eax, [edx + 5]
add eax, ecx
lea eax, [eax + eax*2]
push eax
call fcn.00406130
push dword [ebp + 0x10]
mov esi, eax
push dword [ebp + 0xc]
push edi
push esi
call fcn.00446e90
add esp, 0x18
lea eax, [ebp - 4]
push eax
push str.SoftwareSimonTathamqwertSshHostKeys
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x447525
mov edx, dword [ebp + 0x14]
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x447500
sub ecx, edi
lea eax, [ecx + 1]
push eax
push edx
push 1
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.00406110
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4477d0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x44781c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x44780f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x44780f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00440780
push eax
push dword [ebp + 8]
push str.Unable_to_delete__s:__s
call fcn.00444d80
add esp, 0x10
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xffffffff
xor eax, eax
pop ebp
ret
xor eax, eax
mov edx, 0x80
push 0
cmp ecx, 2
cmove eax, edx
push eax
xor eax, eax
cmp ecx, 2
setne al
xor edx, edx
add eax, 2
cmp ecx, 2
push eax
push 0
mov eax, 3
cmove eax, edx
mov edx, 0x40000000
push eax
mov eax, 0x80000000
cmove eax, edx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp + 0x10]
mov edx, eax
xor eax, eax
cmp edx, 0xffffffff
setne al
mov dword [ecx], edx
pop ebp
ret
Function at 0x447bd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
call fcn.00446880
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x447c00
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x44b090
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x44b0cf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44b0cf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44b0cf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x44b0cf
cmp dword [ecx + 0x74], 0xe
jbe 0x44b0cf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4846e8
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x484727
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x484727
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x484727
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x484727
cmp dword [ecx + 0x74], 0xe
jbe 0x484727
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x48e6d8
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c0a2c
push 0x4c0a24
push str.FlsAlloc
push 0x1f
call fcn.0048e3a6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48e70c
push dword [ebp + 8]
mov ecx, esi
call dword [0x4aa284]
call esi
jmp 0x48e712
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x48e756
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c0a3c
push 0x4c0a34
push str.FlsGetValue
push 0x21
call fcn.0048e3a6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48e78d
push dword [ebp + 8]
mov ecx, esi
call dword [0x4aa284]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x48e795
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.am_pm
push 0x4c0a3c
push str.FlsSetValue
push 0x22
call fcn.0048e3a6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48e7cf
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4aa284]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]