joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49e1d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, eax
mov byte [ebp - 1], 0
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov edi, 1
jmp 0x49e1f1
inc edi
mov eax, esi
call fcn.00405710
cmp edi, eax
jg 0x49e203
cmp byte [esi + edi - 1], 0x20
je 0x49e1f0
mov eax, esi
test eax, eax
je 0x49e20e
sub eax, 4
mov eax, dword [eax]
cmp eax, edi
jl 0x49e2ce
cmp byte [esi + edi - 1], 0x2e
je 0x49e2f0
jmp 0x49e2ce
cmp byte [esi + edi - 1], 0x2e
jne 0x49e27d
inc dword [ebp - 8]
cmp dword [ebp - 8], 3
jg 0x49e2f0
cmp dword [ebp - 0xc], 0xff
jg 0x49e2f0
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esi
cmp dword [ebp - 0x10], 0
je 0x49e260
mov eax, dword [ebp - 0x10]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
cmp edi, dword [ebp - 0x10]
jl 0x49e269
mov bl, 1
jmp 0x49e277
movzx eax, byte [esi + edi]
add al, 0xd0
sub al, 0xa
setb bl
xor bl, 1
test bl, bl
jne 0x49e2f0
jmp 0x49e2cd
movzx eax, byte [esi + edi - 1]
add al, 0xd0
sub al, 0xa
jae 0x49e2a0
mov eax, dword [ebp - 0xc]
add eax, eax
lea eax, [eax + eax*4]
movzx edx, byte [esi + edi - 1]
add eax, edx
sub eax, 0x30
mov dword [ebp - 0xc], eax
jmp 0x49e2cd
inc edi
mov eax, esi
call fcn.00405710
cmp edi, eax
jg 0x49e2b2
cmp byte [esi + edi - 1], 0x20
je 0x49e29f
mov dword [ebp - 0x14], esi
cmp dword [ebp - 0x14], 0
je 0x49e2c6
mov eax, dword [ebp - 0x14]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
cmp edi, dword [ebp - 0x14]
jle 0x49e2f0
jmp 0x49e2dd
inc edi
mov eax, esi
call fcn.00405710
cmp edi, eax
jle 0x49e226
cmp dword [ebp - 8], 3
jne 0x49e2f0
cmp dword [ebp - 0xc], 0xff
jg 0x49e2f0
mov byte [ebp - 1], 1
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b2430
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
test dl, dl
je 0x4b2443
add esp, 0xfffffff0
call fcn.00404874
mov esi, ecx
mov ebx, edx
mov edi, eax
mov eax, esi
call fcn.004b23f4
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x10], eax
lea edx, [edi + 4]
mov eax, dword [edi + 0xc]
mov ecx, 5
call fcn.00403274
lea eax, [ebp - 4]
push eax
push 0x40
push 5
mov eax, dword [edi + 0xc]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, edi
test bl, bl
je 0x4b248f
call fcn.004048cc
pop dword fs:[0]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x4e31c8
Capabilities:
Set global application hook

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x587c7c], 0
jne 0x4e31ee
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4e3110
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x587c7c], eax
pop ebp
ret
Function at 0x4f1494
Capabilities:
Encode data using base64
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
add eax, eax
add eax, eax
mov ecx, 3
cdq
idiv ecx
mov edx, eax
add edx, 4
mov ecx, esi
xor eax, eax
call fcn.00405c00
cmp byte [ebp - 1], 0
jne 0x4f14f4
mov eax, esi
call fcn.0040596c
movzx edx, byte [ebp - 0xc]
dec edx
and dl, 0x3f
add dl, 0x21
mov byte [eax], dl
mov eax, dword [ebp - 0xc]
add eax, 2
mov ecx, 3
cdq
idiv ecx
lea eax, [eax + eax*2]
mov dword [ebp - 0xc], eax
mov edi, 2
xor eax, eax
mov dword [ebp - 0x10], eax
xor ebx, ebx
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x4f150e
sub al, 2
jb 0x4f1515
jmp 0x4f151a
mov ebx, 2
jmp 0x4f151a
mov ebx, 1
mov eax, esi
call fcn.0040596c
mov byte [eax + ebx - 1], 0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jge 0x4f15fe
test edi, edi
jle 0x4f1576
mov eax, esi
call fcn.0040596c
lea eax, [eax + ebx - 1]
push eax
mov ecx, edi
mov eax, 0x3f
shl eax, cl
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx edx, byte [edx + ecx]
and eax, edx
mov ecx, edi
shr eax, cl
mov edx, dword [esi]
or al, byte [edx + ebx - 1]
pop edx
mov byte [edx], al
sub edi, 6
inc ebx
mov eax, esi
call fcn.0040596c
mov byte [eax + ebx - 1], 0
jmp 0x4f15f2
test edi, edi
jge 0x4f15bc
mov eax, edi
cdq
xor eax, edx
sub eax, edx
mov edi, eax
mov eax, esi
call fcn.0040596c
lea eax, [eax + ebx - 1]
push eax
mov ecx, edi
mov eax, 0x3f
shr eax, cl
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
and al, byte [edx + ecx]
mov ecx, edi
shl al, cl
mov edx, dword [esi]
or al, byte [edx + ebx - 1]
pop edx
mov byte [edx], al
mov eax, 8
sub eax, edi
mov edi, eax
inc dword [ebp - 0x10]
jmp 0x4f15f2
mov eax, esi
call fcn.0040596c
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx edx, byte [edx + ecx]
and dl, 0x3f
mov ecx, dword [esi]
movzx ecx, byte [ecx + ebx - 1]
or dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
inc dword [ebp - 0x10]
mov eax, esi
call fcn.0040596c
mov byte [eax + ebx - 1], 0
mov edi, 2
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jl 0x4f1532
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x4f160f
sub al, 2
jb 0x4f1649
jmp 0x4f1691
cmp edi, 2
jne 0x4f1615
dec ebx
mov eax, ebx
sub eax, 2
jl 0x4f1691
inc eax
mov dword [ebp - 0x14], eax
mov edi, 2
mov eax, esi
call fcn.0040596c
mov edx, dword [esi]
movzx edx, byte [edx + edi - 1]
mov ecx, dword [0x57dbc8]
movzx edx, byte [ecx + edx]
mov byte [eax + edi - 1], dl
inc edi
dec dword [ebp - 0x14]
jne 0x4f1625
jmp 0x4f1691
cmp edi, 2
jne 0x4f164f
dec ebx
test ebx, ebx
jle 0x4f168c
mov dword [ebp - 0x14], ebx
mov edi, 1
mov eax, esi
call fcn.0040596c
mov edx, dword [esi]
movzx edx, byte [edx + edi - 1]
mov ecx, dword [0x57dbcc]
movzx edx, byte [ecx + edx]
mov byte [eax + edi - 1], dl
inc edi
dec dword [ebp - 0x14]
jne 0x4f165b
jmp 0x4f168c
inc ebx
mov eax, esi
call fcn.0040596c
mov byte [eax + ebx - 1], 0x3d
test bl, 3
jne 0x4f167f
mov eax, esi
mov edx, ebx
call fcn.00405b9c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4f319c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4f31ed
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4f31d4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4f31c4
jmp 0x4f31ed
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4f31d5
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x510468
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x51050f
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
mov eax, esi
call fcn.00405914
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jbe 0x5104f9
lea eax, [ebp - 4]
mov edx, edi
call fcn.00405b9c
mov eax, dword [ebp - 4]
push eax
push edi
mov eax, dword [ebp - 0x10]
push eax
mov eax, esi
call fcn.00405914
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x5104f9
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x510520
mov eax, dword [ebp - 4]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x5104f9
cmp dword [ebp - 0xc], 0x34
jne 0x5104f9
mov bl, 1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x510516
lea eax, [ebp - 4]
call fcn.00405450
ret

Function at 0x5106ac
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x510815
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x24
call fcn.00403c1c
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x14]
mov dword [0x5816bc], eax
mov eax, dword [ebp - 0xc]
mov dword [0x5816c0], eax
mov eax, dword [ebp - 0x24]
mov dword [0x5816c4], eax
mov eax, dword [0x581f70]
cmp dword [eax], 2
sete byte [0x58162c]
push 0x510820
call sub.kernel32.dll_GetModuleHandleA_2
lea edx, [ebp - 4]
call fcn.00510434
cmp byte [0x58162c], 0
jne 0x510738
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.00510468
test al, al
je 0x510738
mov eax, dword [ebp - 0x4c]
mov dword [0x588230], eax
jmp 0x51073f
xor eax, eax
mov dword [0x588230], eax
call fcn.00510544
and eax, 0x7f
cmp eax, 0xb
ja case.0x510750.0
jmp dword [eax*4 + 0x510757]
mov byte [0x581618], 1
jmp case.0x510750.0
mov byte [0x58161c], 1
jmp case.0x510750.0
mov byte [0x581620], 1
jmp case.0x510750.0
mov byte [0x581624], 1
jmp case.0x510750.0
mov byte [0x581628], 1
jmp case.0x510750.0
mov byte [0x581630], 1
mov byte [0x581634], 1
jmp case.0x510750.0
mov byte [0x581630], 1
mov byte [0x581638], 1
jmp case.0x510750.0
mov byte [0x581630], 1
mov byte [0x58163c], 1
jmp case.0x510750.0
mov byte [0x581640], 1
jmp case.0x510750.0
mov byte [0x581644], 1
jmp case.0x510750.0
mov byte [0x581648], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51081c
lea eax, [ebp - 4]
call fcn.00405450
ret

Function at 0x5108fc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
xor ebx, ebx
mov eax, esi
call fcn.00405914
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x51091d
test ah, 4
setne bl
mov eax, ebx
pop esi
pop ebx
pop ebp
ret
Function at 0x511cec
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405904
xor eax, eax
push ebp
push 0x511dab
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test eax, eax
je 0x511d21
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
test ebx, ebx
jle 0x511d89
push edi
mov ecx, ebx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00405974
lea eax, [ebp - 8]
mov edx, dword [edi]
call fcn.004054e8
mov eax, dword [ebp - 8]
call fcn.00405914
push eax
call sub.kernel32.dll_GetFileAttributesA
mov esi, eax
cmp esi, 0xffffffff
je 0x511d5e
test esi, 0x400
jne 0x511d62
xor eax, eax
jmp 0x511d64
mov al, 1
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x511d90
jmp 0x511d70
dec ebx
test ebx, ebx
jle 0x511d84
mov eax, dword [ebp - 4]
movzx eax, byte [eax + ebx - 1]
sub al, 0x2f
je 0x511d84
sub al, 0x2d
jne 0x511d6f
dec ebx
test ebx, ebx
jg 0x511d27
mov eax, edi
call fcn.00405450
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x511db2
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405474
ret
Function at 0x512090
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov byte [ebp - 0x11], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406d40
xor eax, eax
push ebp
push 0x512276
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x12], 0
lea eax, [ebp - 0x10]
call fcn.00405450
xor eax, eax
push ebp
push 0x512239
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406a00
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x51217c
inc ebx
xor esi, esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + esi*4]
lea edx, [ebp - 8]
call fcn.0040e0e4
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.004054e8
push 1
push 0
mov ecx, 0x512290
mov edx, 0x51229c
mov eax, dword [ebp - 8]
call fcn.00512608
test eax, eax
jle 0x51213f
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0xc]
call fcn.0040de80
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
call fcn.004054e8
mov eax, dword [ebp - 0xc]
call fcn.00515d64
test al, al
je 0x512174
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.00511cec
cmp dword [ebp - 0x38], 0
ja 0x512174
push dword [ebp - 0x10]
push dword [ebp - 8]
push 0x5122ac
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004057d4
inc esi
dec ebx
jne 0x5120f6
cmp dword [ebp - 0x10], 0
jne 0x51218c
call fcn.00404e70
jmp 0x512240
xor eax, eax
push ebp
push 0x5121da
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x30]
xor ecx, ecx
mov edx, 0x1e
call fcn.00403c1c
mov dword [ebp - 0x2c], 3
mov eax, dword [ebp - 0x10]
call fcn.00405914
mov dword [ebp - 0x28], eax
mov word [ebp - 0x20], 0x454
lea eax, [ebp - 0x30]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete byte [ebp - 0x12]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5121e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x512240
movzx eax, byte [ebp - 0x12]
xor al, 1
and al, byte [ebp - 0x11]
je 0x512238
mov byte [ebp - 0x12], 1
mov eax, dword [ebp - 4]
call fcn.00406a00
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x512238
inc ebx
xor esi, esi
cmp byte [ebp - 0x12], 0
je 0x51222b
mov eax, dword [ebp - 4]
mov eax, dword [eax + esi*4]
call fcn.0051a650
test al, al
jne 0x51222f
xor eax, eax
jmp 0x512231
mov al, 1
mov byte [ebp - 0x12], al
inc esi
dec ebx
jne 0x512216
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51227d
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.00405474
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00405474
lea eax, [ebp - 4]
mov edx, dword [0x407aec]
call fcn.00406cdc
ret
Function at 0x513338
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov edi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405904
xor eax, eax
push ebp
push 0x5133f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00405450
mov eax, dword [ebp - 4]
call fcn.00405914
push eax
push ebx
mov eax, dword [0x5847f8]
push eax
call sub.kernel32.dll_FindResourceA
mov esi, eax
push esi
mov eax, dword [0x5847f8]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
je 0x5133d8
push esi
mov eax, dword [0x5847f8]
push eax
call sub.kernel32.dll_SizeofResource
mov esi, eax
push ebx
call sub.kernel32.dll_LockResource
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
mov edx, esi
call fcn.00405b9c
lea eax, [ebp - 8]
call fcn.0040596c
mov edx, eax
mov eax, dword [ebp - 0xc]
mov ecx, esi
call fcn.00403274
push ebx
call sub.kernel32.dll_FreeResource
mov eax, edi
mov edx, dword [ebp - 8]
call fcn.004054a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5133fa
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405474
ret
Function at 0x514088
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe90
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405904
mov eax, dword [ebp - 8]
call fcn.00405904
xor eax, eax
push ebp
push 0x5142cf
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x11], 0
xor eax, eax
push ebp
push 0x5142aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00513ce8
test al, al
jne 0x5140ef
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5142b4
mov eax, dword [ebp - 4]
call fcn.00515cf0
test al, al
jne 0x514107
mov eax, dword [0x581b20]
mov eax, dword [eax]
call fcn.0040316c
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040de80
cmp dword [ebp - 0xc], 0
jbe 0x514131
mov eax, dword [ebp - 0xc]
call fcn.00513fe8
test al, al
jne 0x514131
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5142b4
call fcn.00403254
test bl, bl
je 0x514193
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x160]
call fcn.00403890
mov edx, 1
lea eax, [ebp - 0x160]
call fcn.00403dc0
call fcn.00403254
test eax, eax
je 0x514176
mov edx, 1
lea eax, [ebp - 0x160]
call fcn.00403ddc
jmp 0x51423f
lea eax, [ebp - 0x160]
call fcn.00403bd0
mov edx, eax
lea eax, [ebp - 0x160]
call fcn.00403de8
jmp 0x51423f
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x170], eax
mov byte [ebp - 0x16c], 0xb
mov eax, 0x7fffffff
call fcn.00403558
mov dword [ebp - 0x168], eax
mov byte [ebp - 0x164], 0
lea edx, [ebp - 0x170]
mov ecx, 1
mov eax, 0x5142ec
call fcn.0040eb08
mov dl, 1
mov eax, dword [ebp - 0x10]
call fcn.00513ce8
test al, al
jne 0x514221
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x170], eax
mov byte [ebp - 0x16c], 0xb
mov eax, 0x3e7
call fcn.00403558
mov dword [ebp - 0x168], eax
mov byte [ebp - 0x164], 0
lea edx, [ebp - 0x170]
mov ecx, 1
mov eax, 0x514300
call fcn.0040eb08
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x160]
call fcn.00403890
mov edx, 1
lea eax, [ebp - 0x160]
call fcn.00403ddc
call fcn.00403254
test eax, eax
je 0x514252
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5142b4
lea eax, [ebp - 0x160]
mov edx, dword [ebp - 8]
call fcn.00513f78
test al, al
jne 0x51426e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5142b4
lea eax, [ebp - 0x160]
call fcn.00403a2c
test bl, bl
jne 0x51429c
mov eax, dword [ebp - 4]
call fcn.00405914
mov ebx, eax
push ebx
call sub.kernel32.dll_DeleteFileA
push ebx
mov eax, dword [ebp - 0x10]
call fcn.00405914
push eax
call sub.kernel32.dll_MoveFileA
mov byte [ebp - 0x11], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5142b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5142d6
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00405474
ret
Function at 0x514db8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405904
xor eax, eax
push ebp
push 0x514e3d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403c1c
lea eax, [ebp - 0x58]
xor ecx, ecx
mov edx, 0x10
call fcn.00403c1c
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.00405914
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x514e44
lea eax, [ebp - 4]
call fcn.00405450
ret

Function at 0x515bb4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
lea edx, [ebp - 0xc]
push edx
push eax
call sub.kernel32.dll_GetFileSize_1
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x515be5
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x515be5
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 4], 0xffffffff
jmp 0x515c04
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0xc]
xor edx, edx
mov edx, eax
xor eax, eax
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x519c8c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ecx, edx
test ecx, ecx
js 0x519c9e
mov ebx, dword [eax + ecx*4]
dec ecx
push ebx
jns 0x519c97
mov eax, esp
lea esi, [edx + 1]
dec esi
test esi, esi
jl 0x519cc4
inc esi
mov ebx, eax
mov edx, dword [0x581b74]
movzx edx, byte [edx]
xor dl, 1
mov eax, dword [ebx]
call fcn.0046ae70
add ebx, 4
dec esi
jne 0x519cab
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x51a650
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405904
lea eax, [ebp - 0x168]
mov edx, dword [0x40ba40]
call fcn.004060ac
xor eax, eax
push ebp
push 0x51a7d9
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x169], 0
mov eax, dword [ebp - 4]
call fcn.0040db48
test al, al
je 0x51a6ba
mov eax, dword [ebp - 4]
call fcn.00405914
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x169], al
jmp 0x51a7ad
mov edx, 0x51a7f4
mov eax, dword [ebp - 4]
call fcn.004595c8
test al, al
jne 0x51a6e9
mov edx, 0x51a800
mov eax, dword [ebp - 4]
call fcn.004595c8
test al, al
jne 0x51a6e9
lea eax, [ebp - 4]
mov edx, 0x51a80c
call fcn.0040571c
lea ecx, [ebp - 0x168]
mov edx, 0x3f
mov eax, dword [ebp - 4]
call fcn.0040dca8
test eax, eax
jne 0x51a7ad
xor eax, eax
push ebp
push 0x51a7a6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x154]
mov edx, 0x51a818
call fcn.00405860
je 0x51a776
mov eax, dword [ebp - 0x154]
mov edx, 0x51a824
call fcn.00405860
je 0x51a776
push dword [ebp - 4]
push 0x51a830
push dword [ebp - 0x154]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004057d4
mov eax, dword [ebp - 0x158]
and eax, 0x10
test al, al
je 0x51a768
mov eax, dword [ebp - 8]
call fcn.0051a650
jmp 0x51a776
mov eax, dword [ebp - 8]
call fcn.00405914
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x168]
call fcn.0040dd14
test eax, eax
je 0x51a712
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51a7ad
lea eax, [ebp - 0x168]
call fcn.0040dd50
mov eax, dword [ebp - 4]
call fcn.0040359c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51a7e0
lea eax, [ebp - 0x168]
mov edx, dword [0x40ba40]
call fcn.0040617c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405474
ret
Function at 0x53d578
Capabilities:
Move file
Persist via lnk shortcut

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405904
mov eax, dword [ebp - 8]
call fcn.00405904
xor eax, eax
push ebp
push 0x53d632
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00515b30
mov eax, dword [ebp + 8]
push eax
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.005390b0
pop ecx
mov edx, 0x53d648
mov eax, dword [ebp - 0xc]
call fcn.00517154
test al, al
je 0x53d5fa
mov edx, 0x53d648
mov eax, dword [ebp - 4]
call fcn.00517154
test al, al
jne 0x53d5fa
lea eax, [ebp - 0x10]
mov edx, 0x53d648
call fcn.0040c774
mov eax, dword [ebp - 0x10]
call fcn.00405914
push eax
mov eax, dword [ebp - 0xc]
call fcn.00405914
push eax
call sub.kernel32.dll_MoveFileA
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53d639
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00405474
ret

Function at 0x5456bc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405904
xor eax, eax
push ebp
push 0x545705
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405914
push eax
call sub.kernel32.dll_GetFileAttributesA
call fcn.00545688
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54570c
lea eax, [ebp - 4]
call fcn.00405450
ret