joyce8/EMBER2024-capa huggingface dataset:
Function at 0x64449c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x6444a4
push ecx
push ebx
xor eax, eax
push ebp
push 0x6445ee
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.005f8b78
mov edx, dword [ebp - 0x10]
mov eax, 0x66a43c
call fcn.00408af8
lea eax, [ebp - 0x14]
mov ecx, dword [0x66a43c]
mov edx, 0x644608
call fcn.00409a18
mov eax, dword [ebp - 0x14]
call fcn.006013d8
mov eax, dword [0x66288c]
cmp byte [eax], 0
je 0x6444ff
mov eax, dword [0x66a43c]
call fcn.00600ae4
lea edx, [ebp - 0x18]
mov eax, dword [0x66a43c]
call fcn.005af4ec
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 4]
mov ecx, 0x644650
call fcn.00409a18
push 0
mov eax, dword [ebp - 4]
call fcn.004097c8
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x644595
call sub.kernel32.dll_GetLastError
mov ebx, eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 4]
mov al, 0x3b
call fcn.005b8018
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x30]
call fcn.00420678
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x34]
mov eax, ebx
call fcn.005b1ae4
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x28]
mov ecx, 2
mov al, 0x70
call fcn.005b7fe8
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x4197e4]
call fcn.0042648c
call fcn.00407e14
lea eax, [ebp - 8]
call fcn.0061a564
cmp dword [ebp - 8], 0
je 0x6445c6
lea eax, [ebp - 0xc]
mov ecx, 0x64466c
mov edx, dword [ebp - 4]
call fcn.00409a18
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00644444
mov eax, dword [ebp - 0xc]
call fcn.0061a5bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6445f5
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00408778
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.00408778
ret

Function at 0x647084
Capabilities:
Hide graphical window

Disassembly:
mov byte [0x66a731], 1
call fcn.005fa9a8
test al, al
jne 0x6470d6
push 5
mov eax, dword [0x662788]
mov eax, dword [eax]
mov eax, dword [eax + 0x188]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [0x662788]
mov eax, dword [eax]
mov eax, dword [eax + 0x188]
push eax
call sub.user32.dll_SetForegroundWindow
push 0
push 1
push 1
mov eax, dword [0x66279c]
mov eax, dword [eax + 0x138]
mov cl, 2
xor edx, edx
call fcn.00646e24
ret

Function at 0x64a9d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
mov ecx, 3
lea ebx, [ebp - 8]
lea esi, [ebp - 0xc]
lea edi, [ebp - 4]
movzx eax, byte [esi]
movzx edx, byte [ebx]
sub eax, edx
imul dword [ebp - 0x10]
push ecx
mov ecx, 0xff
cdq
idiv ecx
pop ecx
movzx edx, byte [ebx]
add eax, edx
mov byte [edi], al
inc edi
inc esi
inc ebx
dec ecx
jne 0x64a9f5
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x64c77c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
call sub.kernel32.dll_GetTickCount
mov ebx, eax
jmp 0x64c7a8
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jae 0x64c7b1
call fcn.0064b468
mov eax, 0xa
call fcn.005b1ef8
call fcn.0064b468
call fcn.0064c748
test al, al
jne 0x64c786
pop ebx
ret

Function at 0x64cce0
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [0x662248]
cmp dword [eax], 0
je 0x64cd8b
mov eax, dword [0x662248]
mov eax, dword [eax]
call fcn.00505fd4
test al, al
je 0x64cd8b
mov eax, dword [0x662248]
mov eax, dword [eax]
cmp byte [eax + 0x215], 0
je 0x64cd35
cmp byte [ebx + 0x3e1], 0
jne 0x64cd35
mov eax, dword [0x662788]
mov eax, dword [eax]
mov eax, dword [eax + 0x188]
push eax
call sub.user32.dll_IsIconic
test eax, eax
je 0x64cd39
xor eax, eax
jmp 0x64cd3b
mov al, 1
mov ebx, eax
mov eax, dword [0x662248]
mov eax, dword [eax]
call fcn.00505c00
push 0xfffffffffffffff0
push eax
call sub.user32.dll_GetWindowLongW
test eax, 0x10000000
setne al
cmp bl, al
je 0x64cd8b
test bl, bl
je 0x64cd77
push 5
mov eax, dword [0x662248]
mov eax, dword [eax]
call fcn.00505c00
push eax
call sub.user32.dll_ShowWindow
jmp 0x64cd8b
push 0
mov eax, dword [0x662248]
mov eax, dword [eax]
call fcn.00505c00
push eax
call sub.user32.dll_ShowWindow
pop ebx
ret
Function at 0x64ce3c
Capabilities:
Get system information on windows

Disassembly:
push ebx
push esi
add esp, 0xffffffd4
mov byte [0x66a6e9], 0
push 0x64cfc8
call sub.kernel32.dll_GetModuleHandleW
mov ebx, eax
push 0x64cfe4
push ebx
call fcn.00411e58
mov esi, eax
test esi, esi
je 0x64cee4
lea eax, [esp + 2]
push eax
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call esi
test eax, eax
je 0x64cee4
cmp word [esp], 0
je 0x64cee4
mov byte [0x66a6e9], 1
movzx eax, word [esp + 2]
sub ax, 0x14c
je 0x64cea8
sub ax, 0xb4
je 0x64ceb4
sub ax, 0x8464
je 0x64cec0
sub ax, 0x2400
je 0x64cecc
jmp 0x64ced8
mov byte [0x662085], 1
jmp 0x64cf80
mov byte [0x662085], 3
jmp 0x64cf80
mov byte [0x662085], 2
jmp 0x64cf80
mov byte [0x662085], 4
jmp 0x64cf80
mov byte [0x662085], 0
jmp 0x64cf80
push 0x64d004
push ebx
call fcn.00411e58
test eax, eax
je 0x64cf2c
lea edx, [esp + 8]
push edx
call eax
push 0x64d02c
push ebx
call fcn.00411e58
mov esi, eax
test esi, esi
je 0x64cf36
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call esi
test eax, eax
je 0x64cf36
cmp dword [esp + 4], 0
je 0x64cf36
mov byte [0x66a6e9], 1
jmp 0x64cf36
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetSystemInfo
movzx eax, word [esp + 8]
sub ax, 1
jb 0x64cf55
sub ax, 5
je 0x64cf5e
sub ax, 3
je 0x64cf67
sub ax, 3
je 0x64cf70
jmp 0x64cf79
mov byte [0x662085], 1
jmp 0x64cf80
mov byte [0x662085], 3
jmp 0x64cf80
mov byte [0x662085], 2
jmp 0x64cf80
mov byte [0x662085], 4
jmp 0x64cf80
mov byte [0x662085], 0
cmp byte [0x66a6e9], 0
je 0x64cfc1
call fcn.005f75c8
test al, al
je 0x64cfba
push 0x64d04c
push ebx
call fcn.00411e58
test eax, eax
je 0x64cfba
push 0x64d080
push 0x64d0a0
call sub.kernel32.dll_GetModuleHandleW
push eax
call fcn.00411e58
test eax, eax
jne 0x64cfc1
mov byte [0x66a6e9], 0
add esp, 0x2c
pop esi
pop ebx
ret

Function at 0x64d0bc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push 0
push 1
lea eax, [ebp - 4]
push eax
mov ecx, 0x64d12c
mov edx, 0x80000002
xor eax, eax
call fcn.005b0f7c
test eax, eax
jne 0x64d125
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x64d180
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x64d11c
cmp dword [ebp - 0xc], 4
jne 0x64d11c
cmp dword [ebp - 8], 4
jne 0x64d11c
movzx eax, word [ebp - 0x10]
mov word [0x66a700], ax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
mov esp, ebp
pop ebp
ret
Function at 0x64d328
Capabilities:
Check os version

Disassembly:
add esp, 0xfffffdd0
mov dword [esp], 0x114
push esp
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x64d3d7
movzx eax, byte [esp + 4]
shl eax, 0x18
movzx edx, byte [esp + 8]
shl edx, 0x10
or eax, edx
movzx edx, word [esp + 0xc]
or eax, edx
mov dword [0x66a6fc], eax
cmp byte [0x66a6e8], 0
je 0x64d3d7
mov eax, dword [esp + 4]
cmp eax, 5
jb 0x64d3c8
mov dword [esp + 0x114], 0x11c
lea eax, [esp + 0x114]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x64d3d7
movzx eax, byte [esp + 0x228]
shl eax, 8
movzx edx, byte [esp + 0x22a]
or ax, dx
mov word [0x66a700], ax
movzx eax, byte [esp + 0x22e]
mov byte [0x66a702], al
movzx eax, word [esp + 0x22c]
mov word [0x66a704], ax
jmp 0x64d3d7
cmp eax, 4
jne 0x64d3d7
call fcn.0064d0bc
call fcn.0064d198
add esp, 0x230
ret

Function at 0x64e360
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x64e408
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x64e424
push ebx
push 0x64e434
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00409aa0
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00405ce4
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004097c8
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x64e3e6
mov eax, dword [0x66279c]
mov eax, dword [eax + 0x1c8]
call fcn.0064e2b8
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
mov ebx, dword [ebp - 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64e40f
lea eax, [ebp - 4]
call fcn.00408718
ret
Function at 0x64ed7c
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x64ef6a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.005b0b4c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.005f89fc
test al, al
jne 0x64ede9
xor eax, eax
push ebp
push 0x64eddf
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
xor eax, eax
call fcn.005f8ef4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x64ede9
push 0
mov eax, dword [ebp - 4]
call fcn.004097c8
push eax
mov eax, dword [0x66a7dc]
call fcn.004097c8
push eax
call sub.kernel32.dll_CopyFileW
test eax, eax
jne 0x64ee18
mov eax, dword [0x66279c]
mov eax, dword [eax + 0x1c4]
call fcn.0064e2b8
push 0x80
mov eax, dword [ebp - 4]
call fcn.004097c8
push eax
call sub.kernel32.dll_SetFileAttributesW
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x666634]
push eax
push 0
mov ecx, 0x64ef78
mov edx, 0x64ef7c
xor eax, eax
call fcn.00412b68
mov dword [ebp - 8], eax
push 0x64e478
push 0xfffffffffffffffc
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_SetWindowLongW
mov dword [0x66a808], eax
xor eax, eax
push ebp
push 0x64ef33
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x662788]
mov eax, dword [eax]
mov eax, dword [eax + 0x188]
push eax
call sub.user32.dll_SetWindowPos
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x28]
xor eax, eax
call fcn.005b0518
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x24]
mov ecx, 1
mov eax, 0x64ef98
call fcn.00421a6c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
call fcn.005b03f8
mov edx, dword [ebp - 0x2c]
pop eax
call fcn.004099c0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0064e360
mov dword [ebp - 0xc], eax
call fcn.0064e43c
test al, al
jne 0x64ef13
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xc]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x64eef1
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64ef3a
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_DestroyWindow
ret
Function at 0x650308
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x6505bc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x662788]
mov eax, dword [eax]
mov edx, 0x6505d8
call fcn.005a2a3c
push 5
mov eax, dword [0x662788]
mov eax, dword [eax]
mov eax, dword [eax + 0x188]
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
push ebp
push 0x650583
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.00647310
lea eax, [ebp - 0x10]
call fcn.005b09c4
mov eax, dword [ebp - 0x10]
call fcn.00421594
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.005b0518
mov edx, dword [ebp - 0x14]
mov eax, 0x66a7dc
call fcn.00408af8
call fcn.0064e648
lea ecx, [ebp - 0x18]
mov edx, 0x6505f8
mov eax, dword [0x66a7dc]
call fcn.005af5d8
mov edx, dword [ebp - 0x18]
mov eax, 0x66a7e0
call fcn.00408af8
lea ecx, [ebp - 0x1c]
mov edx, 0x650610
mov eax, dword [0x66a7dc]
call fcn.005af5d8
mov edx, dword [ebp - 0x1c]
mov eax, 0x66a7e4
call fcn.00408af8
push 2
push 0
push 1
mov ecx, dword [0x66a7dc]
mov dl, 1
mov eax, dword [0x5b616c]
call fcn.005b6ac8
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x650460
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 4]
mov edx, dword [ebp - 0x24]
sub edx, 8
mov eax, dword [ebp - 4]
call fcn.005b6a88
lea edx, [ebp - 0xc]
mov ecx, 8
mov eax, dword [ebp - 4]
call fcn.005b6a60
cmp dword [ebp - 0xc], 0x67734d49
je 0x65043b
mov cl, 1
xor edx, edx
mov eax, dword [0x66a7e4]
call fcn.005b81c4
jmp 0x65044a
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [0x66a7dc]
call fcn.005b81c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x650467
mov eax, dword [ebp - 4]
call fcn.004069c8
ret
Function at 0x650754
Capabilities:
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 0x25c], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x650891
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x25c]
mov ecx, 0x6508ac
mov edx, ebx
call fcn.00409a18
mov eax, dword [ebp - 0x25c]
call fcn.004097c8
push eax
call sub.kernel32.dll_FindFirstFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x65086b
xor eax, eax
push ebp
push 0x650864
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x6508c8
lea eax, [ebp - 0x22c]
mov ecx, 5
call fcn.00421714
test eax, eax
jne 0x650835
test byte [ebp - 0x258], 0x10
jne 0x650835
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x22c]
mov ecx, 0x104
call fcn.00409868
mov ecx, dword [ebp - 0x260]
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00409a18
mov esi, dword [ebp - 0x258]
test esi, 1
je 0x65082d
and esi, 0xfffffffe
push esi
mov eax, dword [ebp - 4]
call fcn.004097c8
push eax
call sub.kernel32.dll_SetFileAttributesW
mov eax, dword [ebp - 4]
call fcn.00420f94
lea eax, [ebp - 0x258]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x6507c5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x65086b
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindClose
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x650898
lea eax, [ebp - 0x260]
mov edx, 2
call fcn.00408778
lea eax, [ebp - 4]
call fcn.00408718
ret
Function at 0x6508d4
Capabilities:
Check if file exists
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x6509d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
call fcn.00408718
lea edx, [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.005afa70
xor edi, edi
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x6509ec
call fcn.00421a6c
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00409a18
mov eax, dword [ebp - 8]
call fcn.004097c8
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x650972
test esi, 0x10
jne 0x6509a2
test esi, 1
je 0x650972
and esi, 0xfffffffe
push esi
mov eax, dword [ebp - 8]
call fcn.004097c8
push eax
call sub.kernel32.dll_SetFileAttributesW
push 1
mov eax, dword [ebp - 8]
call fcn.004097c8
push eax
mov eax, dword [ebp - 0xc]
call fcn.004097c8
push eax
call sub.kernel32.dll_MoveFileExW
test eax, eax
je 0x65099c
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00408af8
jmp 0x6509af
inc edi
cmp edi, 0xa
je 0x6509af
inc ebx
cmp ebx, 0x3e8
jne 0x650913
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6509d9
lea eax, [ebp - 0x14]
call fcn.00408718
lea eax, [ebp - 8]
mov edx, 2
call fcn.00408778
ret
Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x58501fdb
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x2033f16
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x640014a0
Capabilities:
Create pipe
Create thread
Create two anonymous pipes

Disassembly:
push 0xffffffffffffffff
push 0x640224c8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6402c09c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, dword [esp + 0x48]
sub edi, edi
push 0x10
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], edi
call fcn.64012101
add esp, 4
cmp eax, edi
je 0x640014f2
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
push eax
pop esi
jmp 0x640014f4
sub esi, esi
mov dword [esp + 0x34], esi
push edi
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x48], edi
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x38], 0xc
mov dword [esp + 0x40], 1
mov dword [esp + 0x3c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.kernel32.dll_CreatePipe]
or eax, eax
mov ebx, dword [sym.imp.kernel32.dll_GetLastError]
mov ebp, dword [sym.imp.kernel32.dll_CloseHandle]
je 0x64001594
mov edi, dword [esi + 8]
or edi, edi
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
je 0x64001561
call ebx
push edi
mov dword [esp + 0x1c], eax
call ebp
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.kernel32.dll_SetLastError]
mov eax, dword [esp + 0x14]
mov dword [esi + 8], eax
mov edi, dword [esi + 0xc]
or edi, edi
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], ecx
je 0x6400158b
call ebx
push edi
mov dword [esp + 0x18], eax
call ebp
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.kernel32.dll_SetLastError]
mov eax, dword [esp + 0x18]
mov dword [esi + 0xc], eax
sub edi, edi
push edi
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.kernel32.dll_CreatePipe]
or eax, eax
je 0x64001602
mov edi, dword [esi]
or edi, edi
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], ecx
je 0x640015d0
call ebx
push edi
mov dword [esp + 0x18], eax
call ebp
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.kernel32.dll_SetLastError]
mov eax, dword [esp + 0x18]
mov dword [esi], eax
mov edi, dword [esi + 4]
or edi, edi
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], ecx
je 0x640015f9
call ebx
push edi
mov dword [esp + 0x18], eax
call ebp
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.kernel32.dll_SetLastError]
mov eax, dword [esp + 0x18]
mov dword [esi + 4], eax
sub edi, edi
mov ecx, dword [esp + 0x24]
push esi
pop edx
call fcn.640011c0
push edi
push edi
push esi
push 0x640010d0
push edi
push edi
call dword [sym.imp.kernel32.dll_CreateThread]
push eax
pop esi
cmp esi, edi
je 0x64001631
call ebx
push esi
push eax
pop edi
call ebp
push edi
call dword [sym.imp.kernel32.dll_SetLastError]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
Function at 0x64001f30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.kernel32.dll_LoadResource]
or eax, eax
jne 0x64001f49
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.kernel32.dll_LockResource]
push eax
pop esi
or esi, esi
je 0x64001f84
push edi
push ebx
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x64001f80
lea ebx, [ebx]
cmp esi, eax
jae 0x64001f84
add ecx, 0xffffffff
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x64001f70
cmp esi, eax
jb 0x64001f8a
pop esi
pop edi
sub eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x640023f0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x64022b60
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x6402c09c]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
sub ebx, ebx
push ebx
push 0x80
push 2
push ebx
push ebx
mov dword [esp + 0x78], ebx
mov edi, dword [esp + 0x80]
push 0x40000000
push edi
call fcn.6400df80
call eax
push eax
pop esi
mov dword [esp + 0x10], esi
cmp esi, 0xffffffff
mov byte [esp + 0x64], 1
push ebx
jne 0x6400248b
push 0x64026636
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.64001860
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x68], 2
call fcn.64002020
push 0x64029dd4
lea ecx, [esp + 0x38]
push ecx
call fcn.6401216b
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
lea edx, [esp + 0x18]
push edx
push eax
push ecx
push esi
call dword [sym.imp.kernel32.dll_WriteFile]
or eax, eax
jne 0x640024e6
push ebx
push 0x64026636
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.64001860
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x38]
mov byte [esp + 0x68], 3
call fcn.64002020
push 0x64029dd4
lea eax, [esp + 0x38]
push eax
call fcn.6401216b
cmp esi, ebx
je 0x64002500
call dword [sym.imp.kernel32.dll_GetLastError]
push esi
push eax
pop ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
push ebx
call dword [sym.imp.kernel32.dll_SetLastError]
lea eax, [edi - 0x10]
mov dword [esp + 0x64], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
or edx, edx
jg 0x64002524
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x58
ret
Function at 0x64002bf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
shl eax, 1
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
or eax, eax
jne 0x64002c5e
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x64002c2f
cmp eax, 2
jne 0x64002c4a
or esi, esi
mov eax, dword [esp]
je 0x64002c58
or eax, eax
je 0x64002c53
test al, 1
jne 0x64002c4a
push eax
pop ecx
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x64002c58
push 0xd
pop eax
nop
nop
pop ecx
ret 8
mov word [esi], 0
shr eax, 1
mov dword [edi], eax
sub eax, eax
pop ecx
ret 8