joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443910
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 0x44397c
inc esi
and esi, 0x800000ff
jns 0x443933
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 0x443951
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 0x443922
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x443990
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x487680]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x104]
push edi
push pe_nt_image_headers32
push 0
push eax
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x10c], 0
call fcn.0044de60
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 0x4439e0
mov esi, dword [ebp - 0x108]
lea ebx, [ebp - 0x104]
mov edi, esi
mov dword [ebp - 0x108], pe_nt_image_headers32
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 0x443a41
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 0x443a20
lea ecx, [esi + 0xff]
xor eax, eax
cmp ecx, 0x488978
jb 0x443aa8
cmp esi, 0x488a77
ja 0x443aa8
sub esi, 0x488978
nop word [eax + eax]
mov cl, byte [esi + eax + 0x488978]
mov byte [eax + 0x488978], cl
inc eax
cmp eax, 0x100
jl 0x443a80
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c9ef
mov esp, ebp
pop ebp
ret
mov ecx, 0x40
mov edi, 0x488978
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.0044c9ef
mov esp, ebp
pop ebp
ret
Function at 0x445570
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push 0x1034
push 1
call fcn.00406150
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 [0x489fec]
mov dword [edi + 0x18], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
test eax, eax
jne 0x4455fc
push 0x418ab0
call fcn.00440850
add esp, 4
mov dword [0x489fec], eax
push edi
push eax
call fcn.0043fa00
add esp, 8
lea eax, [ebp - 4]
push eax
push 0
push ebx
push 0x445630
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 0x4457e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push 0x1034
push 1
call fcn.00406150
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.00405960
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 [0x489fec]
mov dword [edi + 0x44], 0
test eax, eax
jne 0x445883
push 0x418ab0
call fcn.00440850
add esp, 4
mov dword [0x489fec], eax
push edi
push eax
call fcn.0043fa00
add esp, 8
lea eax, [ebp - 4]
push eax
push 0
push ebx
push 0x4458b0
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 0x446200
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x48a81c], 0
push esi
push edi
jne 0x44625c
push str.secur32.dll
call fcn.00446320
push str.sspicli.dll
mov esi, eax
call fcn.00446320
add esp, 8
test esi, esi
je 0x446249
push str.GetUserNameExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x48a818], eax
mov dword [0x48a81c], 1
jmp 0x446261
xor eax, eax
mov dword [0x48a81c], 1
mov dword [0x48a818], eax
jmp 0x446261
mov eax, dword [0x48a818]
test eax, eax
je 0x4462c1
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.00406150
add esp, 8
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
push 8
call dword [0x48a818]
movzx edi, al
test al, al
je 0x4462b8
push 0x40
push esi
call fcn.0044d7b0
add esp, 8
test eax, eax
je 0x44630a
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.00406130
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 0x4462e4
mov eax, pe_nt_image_headers32
mov dword [ebp - 4], eax
jmp 0x4462e7
mov eax, dword [ebp - 4]
push 1
push eax
call fcn.00406150
add esp, 8
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
call edi
mov edi, eax
test edi, edi
jne 0x44630a
push esi
call fcn.00406130
add esp, 4
xor eax, eax
test edi, edi
pop edi
cmovne eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x446320
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x48a828]
push esi
push edi
test ecx, ecx
jne 0x446366
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.004061f0
add esp, 0xc
mov dword [0x48a828], eax
push esi
push eax
call edi
mov ecx, dword [0x48a828]
cmp eax, esi
jge 0x446337
push 0
push dword [ebp + 8]
push 0x47a2a4
push ecx
call fcn.00405a90
add esp, 0x10
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
mov edi, eax
call fcn.00406130
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x447f10
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x487680]
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 0x447f41
mov ax, word [0x47aa1c]
mov word [ecx], ax
mov al, byte [0x47aa1e]
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 0x447fa7
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 0x447f80
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 [0x48af1c], 0
jne 0x448044
push str.advapi32.dll
call fcn.00446320
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 4
mov dword [0x48af1c], eax
test eax, eax
je 0x447ff7
push str.CryptAcquireContextA
push eax
call edi
mov ecx, eax
mov eax, dword [0x48af1c]
jmp 0x447ff9
xor ecx, ecx
mov dword [0x48af10], ecx
test eax, eax
je 0x448014
push str.CryptGenRandom
push eax
call edi
mov ecx, eax
mov eax, dword [0x48af1c]
jmp 0x448016
xor ecx, ecx
mov dword [0x48af14], ecx
test eax, eax
je 0x448038
push str.CryptReleaseContext
push eax
call edi
cmp dword [0x48af1c], 0
mov dword [0x48af18], eax
je 0x4480a7
jmp 0x448049
mov dword [0x48af18], 0
jmp 0x4480a7
mov eax, dword [0x48af18]
mov ecx, dword [0x48af10]
test ecx, ecx
je 0x4480a7
cmp dword [0x48af14], 0
je 0x4480a7
test eax, eax
je 0x4480a7
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x270]
push eax
call ecx
test eax, eax
je 0x4480a7
lea eax, [ebp - 0x24]
push eax
push 0x20
push dword [ebp - 0x270]
call dword [0x48af14]
test eax, eax
je 0x448099
lea eax, [ebp - 0x24]
push 0x20
push eax
call esi
add esp, 8
push 0
push dword [ebp - 0x270]
call dword [0x48af18]
push esi
call fcn.0044a1d0
add esp, 4
call fcn.00448290
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0044c9ef
mov esp, ebp
pop ebp
ret
Function at 0x448130
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x487680]
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.0042d020
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.0042d020
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.0042d020
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.0042d020
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.0042d020
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.0042d020
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.0042d020
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.0042d020
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
call fcn.0044c9ef
mov esp, ebp
pop ebp
ret
Function at 0x4485b0
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
nop dword [eax]
cmp dword [ebp + 0xc], 0
je 0x4485cf
mov dword [ebp + 0xc], 0
jmp 0x448600
lea eax, [edi + 0x14]
push eax
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x448600
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x3e5
je 0x44867c
test ebx, ebx
je 0x448600
cmp ebx, 0x217
jne 0x448639
mov eax, dword [edi + 0x2c]
mov ebx, dword [edi + 0x10]
push ebx
push 0x448590
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x10]
call eax
add esp, 0xc
test eax, eax
je 0x448622
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push edi
call fcn.00448520
add esp, 8
test eax, eax
jne 0x4485c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
call fcn.004463e0
push eax
push str.Error_while_listening_to_named_pipe:__s
call fcn.00405b50
add esp, 0xc
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
mov ecx, dword [eax + 0x2c]
push edi
push 0
push dword [eax + 0xc]
mov esi, dword [ecx]
call fcn.00446c80
add esp, 4
push eax
mov eax, dword [ebp + 8]
push 1
push dword [eax + 0x2c]
mov eax, dword [esi]
call eax
push edi
call fcn.00406130
add esp, 0x1c
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x448970
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [0x48af40], 0
jne 0x448a6f
push edi
push str.winspool.drv
call fcn.00446320
push str.spoolss.dll
mov edi, eax
call fcn.00446320
add esp, 8
test edi, edi
je 0x448a17
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumPrintersA
push edi
call esi
push str.OpenPrinterA
push edi
mov dword [0x48af20], eax
call esi
push str.ClosePrinter
push edi
mov dword [0x48af24], eax
call esi
push str.StartDocPrinterA
push edi
mov dword [0x48af28], eax
call esi
push str.EndDocPrinter
push edi
mov dword [0x48af2c], eax
call esi
push str.StartPagePrinter
push edi
mov dword [0x48af30], eax
call esi
push str.EndPagePrinter
push edi
mov dword [0x48af34], eax
call esi
push str.WritePrinter
push edi
mov dword [0x48af38], eax
call esi
pop esi
mov dword [0x48af3c], eax
mov dword [0x48af40], 1
pop edi
ret
xor eax, eax
mov dword [0x48af20], 0
mov dword [0x48af24], 0
mov dword [0x48af28], 0
mov dword [0x48af2c], 0
mov dword [0x48af30], 0
mov dword [0x48af34], 0
mov dword [0x48af38], 0
mov dword [0x48af3c], eax
mov dword [0x48af40], 1
pop edi
ret
Function at 0x449000
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [0x48af50], 0
jne 0x449187
push esi
push str.advapi32.dll
mov dword [0x48af50], 1
call fcn.00446320
add esp, 4
mov dword [0x48af58], eax
test eax, eax
je 0x44917e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetSecurityInfo
push eax
call esi
mov dword [0x48ba90], eax
test eax, eax
je 0x44917e
mov eax, dword [0x48af58]
test eax, eax
je 0x449174
push str.SetSecurityInfo
push eax
call esi
mov dword [0x48ba8c], eax
test eax, eax
je 0x44917e
mov eax, dword [0x48af58]
test eax, eax
je 0x449161
push str.OpenProcessToken
push eax
call esi
mov dword [0x48baa0], eax
test eax, eax
je 0x44917e
mov eax, dword [0x48af58]
test eax, eax
je 0x44914e
push str.GetTokenInformation
push eax
call esi
mov dword [0x48ba9c], eax
test eax, eax
je 0x44917e
mov eax, dword [0x48af58]
test eax, eax
je 0x44913b
push 0x47ad14
push eax
call esi
mov dword [0x48ba98], eax
test eax, eax
je 0x44917e
mov eax, dword [0x48af58]
test eax, eax
je 0x449128
push 0x47ad34
push eax
call esi
mov dword [0x48ba94], eax
test eax, eax
je 0x44917e
mov eax, dword [0x48af58]
test eax, eax
je 0x449115
push str.SetEntriesInAclA
push eax
call esi
mov dword [0x48ba88], eax
test eax, eax
je 0x44917e
mov eax, 1
mov dword [0x48af54], eax
pop esi
ret
xor eax, eax
mov dword [0x48ba88], 0
mov dword [0x48af54], eax
pop esi
ret
xor eax, eax
mov dword [0x48ba94], 0
mov dword [0x48af54], eax
pop esi
ret
xor eax, eax
mov dword [0x48ba98], 0
mov dword [0x48af54], eax
pop esi
ret
xor eax, eax
mov dword [0x48ba9c], 0
mov dword [0x48af54], eax
pop esi
ret
xor eax, eax
mov dword [0x48baa0], 0
mov dword [0x48af54], eax
pop esi
ret
mov dword [0x48ba8c], 0
xor eax, eax
mov dword [0x48af54], eax
pop esi
ret
mov eax, dword [0x48af54]
ret
Function at 0x44a150
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 0x44a1bf
mov edx, dword [ebp + 0xc]
cmp al, 0x20
je 0x44a187
cmp al, 0x5c
je 0x44a187
cmp al, 0x2a
je 0x44a187
cmp al, 0x3f
je 0x44a187
cmp al, 0x25
je 0x44a187
lea ecx, [eax - 0x20]
cmp cl, 0x5e
ja 0x44a187
cmp al, 0x2e
jne 0x44a1aa
test edi, edi
jne 0x44a1aa
mov byte [edx], 0x25
movzx eax, byte [esi]
shr eax, 4
movzx eax, byte [eax + str.0123456789ABCDEF_]
mov byte [edx + 1], al
add edx, 2
movzx eax, byte [esi]
and eax, 0xf
movzx eax, byte [eax + str.0123456789ABCDEF_]
inc esi
mov byte [edx], al
inc edx
mov edi, 1
mov al, byte [esi]
test al, al
jne 0x44a163
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 0x44a1d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x487680]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push 1
call fcn.00449d90
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x44a25b
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 0x44a253
nop dword [eax]
mov eax, dword [ebp - 0x408]
test eax, eax
je 0x44a253
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 0x44a220
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.0044c9ef
mov esp, ebp
pop ebp
ret

Function at 0x44a270
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 0x44a280
sub ecx, edx
mov edx, dword [ebp + 0x10]
lea esi, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x44a290
sub edx, esi
push 1
lea eax, [edx + 5]
add eax, ecx
lea eax, [eax + eax*2]
push eax
call fcn.00406150
push dword [ebp + 0x10]
mov esi, eax
push dword [ebp + 0xc]
push edi
push esi
call fcn.0044a0d0
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 0x44a305
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 0x44a2e0
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.00406130
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x44a320
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x44a36c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x44a35f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x44a35f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004463e0
push eax
push dword [ebp + 8]
push str.Unable_to_delete__s:__s
call fcn.004436c0
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 0x44a6a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
call fcn.00449d90
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x44a6d0
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 0x44d598
Capabilities:
Parse pe header

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

Function at 0x45a27b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045a0f1

Function at 0x461899
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004613ec

Function at 0x4682e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x46830d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x46830d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10008733
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000b48e
push ebx
push esi
call fcn.1000b3ba
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000b34e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000b43b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000b48d
push edi
push eax
call fcn.1000c3ac
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000b45b
call fcn.10009e94
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000b48c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000b34e
add esp, 0x20
test eax, eax
jne 0x1000b47a
push edi
call fcn.10009e94
jmp 0x1000b482
push ebx
call fcn.10009e94
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1000b6fb
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10013678
push 0x10013670
push str.FlsAlloc
push 0x1f
call fcn.1000b617
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000b72f
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001214c]
call esi
jmp 0x1000b735
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000b779
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10013688
push 0x10013680
push str.FlsGetValue
push 0x21
call fcn.1000b617
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000b7b0
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001214c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000b7b8
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10013690
push 0x10013688
push str.FlsSetValue
push 0x22
call fcn.1000b617
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000b7f2
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001214c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]