joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53c230
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x53c24e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x53c243
pop esi
ret

Function at 0x53c4c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
push eax
call fcn.00540800
mov esi, dword [esp + 0x38]
mov ebx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ebp
test ebx, ebx
je 0x53c610
test ecx, ecx
je 0x53c610
inc ecx
push ecx
call fcn.00541b07
mov ebp, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov edx, ecx
mov esi, edi
mov edi, ebp
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00541ae0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x53c539
mov byte [edi], 0
inc edi
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
call dword [sym.imp.advapi32.dll_RegOpenKeyA]
test eax, eax
jne 0x53c5fd
push 0x400
mov dword [esp + 0x18], 0x400
mov dword [esp + 0x1c], 1
call fcn.00541b07
add esp, 4
mov ebx, dword [sym.imp.advapi32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
push 0
push edi
push eax
call ebx
test eax, eax
je 0x53c5c1
cmp eax, 0xea
jne 0x53c5e9
push esi
call fcn.00541acf
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00541b07
mov ecx, dword [esp + 0x24]
add esp, 8
lea edx, [esp + 0x14]
mov esi, eax
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push 0
push edi
push ecx
call ebx
test eax, eax
jne 0x53c58c
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x53c5cf
cmp eax, 2
jne 0x53c5e9
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
call fcn.00540110
add esp, 8
mov dword [esp + 0x10], eax
push esi
call fcn.00541acf
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
push ebp
call fcn.00541acf
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
jne 0x53c63e
mov ebp, eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x53c64a
mov edx, dword [esp + 0x40]
test edx, edx
je 0x53c64a
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.00540110
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x53e590
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
ret
Function at 0x53e7e0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x28]
sub esp, 0x18
push ebx
push ebp
xor ebx, ebx
xor ebp, ebp
cmp eax, 0x80000301
push edi
ja 0x53e860
je 0x53e851
cmp eax, 0x80000101
ja 0x53e84a
je 0x53e851
cmp eax, reloc.WS2_32.dll_connect
je 0x53e82d
cmp eax, reloc.WS2_32.dll_getpeername
jne 0x53e875
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], 3
test eax, eax
je 0x53e8bb
mov ebx, dword [eax + 4]
lea ebp, [eax + 8]
jmp 0x53e8bb
mov ebp, dword [esp + 0x44]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc], 1
mov ebx, ecx
inc ebx
jmp 0x53e8bb
cmp eax, 0x80000201
jne 0x53e875
mov ebx, 4
lea ebp, [esp + 0x44]
mov dword [esp + 0xc], ebx
jmp 0x53e8bb
cmp eax, 0x80000401
je 0x53e8a6
cmp eax, 0x80000501
je 0x53e892
cmp eax, 0x80000601
je 0x53e87e
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
fld qword [esp + 0x44]
mov ebx, 4
mov dword [esp + 0xc], ebx
call fcn.005415e4
jmp 0x53e8b3
fld dword [esp + 0x44]
mov ebx, 4
mov dword [esp + 0xc], ebx
call fcn.005415e4
jmp 0x53e8b3
mov eax, dword [esp + 0x44]
mov ebx, 4
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
lea ebp, [esp + 0x10]
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00540800
mov edi, dword [esp + 0x3c]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [esp + 0x20], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], 0
test edx, edx
je 0x53e996
test ecx, ecx
je 0x53e996
inc ecx
push esi
push ecx
call fcn.00541b07
mov edi, dword [esp + 0x40]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x2c], edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00541ae0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x53e938
mov byte [esi], 0
inc esi
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push 0
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edi
push edx
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
test eax, eax
jne 0x53e98c
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push ebx
push ebp
push eax
push 0
push esi
push ecx
call dword [sym.imp.advapi32.dll_RegSetValueExA]
test eax, eax
jne 0x53e981
mov dword [esp + 0x1c], 1
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
push edi
call fcn.00541acf
add esp, 4
pop esi
mov eax, dword [esp + 0x18]
pop edi
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x53e9c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
push eax
push 0x104
xor esi, esi
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x53e9fd
lea ecx, [esp + 4]
push ecx
call fcn.0053fae0
lea edx, [esp + 8]
push eax
push edx
call fcn.00540110
add esp, 0xc
pop esi
add esp, 0x104
ret
mov eax, esi
pop esi
add esp, 0x104
ret
Function at 0x53ea20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [esp + 0x11c]
push ebp
push esi
push edi
push eax
call fcn.00540800
mov esi, dword [esp + 0x138]
mov ebp, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], edx
test ebp, ebp
je 0x53eb0e
test ecx, ecx
je 0x53eb0e
inc ecx
push ebx
push ecx
call fcn.00541b07
mov ebx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov edx, ecx
mov esi, edi
mov edi, ebx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00541ae0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x53eaa2
mov byte [esi], 0
inc esi
lea eax, [esp + 0x10]
push eax
push ebx
push ebp
call dword [sym.imp.advapi32.dll_RegOpenKeyA]
test eax, eax
jne 0x53eaf6
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push esi
push ecx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
je 0x53eae3
cmp eax, 0xea
jne 0x53eaeb
mov dword [esp + 0x14], 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
push ebx
call fcn.00541acf
mov eax, dword [esp + 0x18]
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x114
ret
pop edi
pop esi
mov eax, edx
pop ebp
add esp, 0x114
ret
Function at 0x53ec10
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x140
push ebx
mov ebx, dword [esp + 0x154]
push ebp
push esi
mov esi, dword [ebx]
push edi
mov edi, dword [esp + 0x154]
xor ebp, ebp
test edi, edi
je 0x53ec8f
push edi
call fcn.0053fae0
add esp, 4
test eax, eax
jbe 0x53ec8f
test esi, esi
je 0x53ec4d
cmp esi, 0xffffffff
je 0x53ec4d
push esi
call dword [sym.imp.kernel32.dll_FindClose]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebx], esi
je 0x53ecd1
mov eax, dword [esp + 0x15c]
test eax, eax
je 0x53ec7b
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
je 0x53ec8f
jmp 0x53ec8a
mov edx, dword [esp + 0x158]
mov eax, dword [esp + 0x10]
test edx, eax
je 0x53ec8f
mov ebp, 1
test esi, esi
je 0x53ecd1
cmp esi, 0xffffffff
je 0x53ecd1
test ebp, ebp
jne 0x53ed08
mov eax, dword [esp + 0x15c]
mov edi, dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
lea eax, [esp + 0x10]
push eax
push esi
je 0x53ecde
call edi
test eax, eax
je 0x53ecd1
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
jne 0x53ed08
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x53ecb9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x140
ret
call edi
test eax, eax
je 0x53ecd1
mov ebx, dword [esp + 0x158]
test dword [esp + 0x10], ebx
jne 0x53ed08
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
test eax, eax
jne 0x53eceb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
lea edx, [esp + 0x3c]
push edx
call fcn.0053fae0
inc eax
push eax
call fcn.00539950
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret

Function at 0x54b9a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 8
xor ecx, ecx
xor eax, eax
push ebp
mov ebp, dword [esp + 0x18]
mov byte [eax + ebp], al
inc eax
cmp eax, 0x100
jl 0x54b9ac
mov eax, dword [esp + 0x14]
mov byte [ebp + 0x100], cl
cmp eax, ecx
mov byte [ebp + 0x101], cl
jle 0x54ba3f
push ebx
push esi
push edi
mov byte [esp + 0x24], cl
xor esi, esi
mov ebx, ebp
mov dword [esp + 0x10], 0x100
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
and edi, 0xff
xor eax, eax
xor edx, edx
mov al, byte [edi + ecx]
mov dl, byte [ebx]
add esi, eax
add edx, esi
and edx, 0x800000ff
jns 0x54ba09
dec edx
or edx, 0xffffff00
inc edx
mov byte [esp + 0x14], dl
mov esi, dword [esp + 0x14]
and esi, 0xff
lea eax, [esi + ebp]
push eax
push ebx
call fcn.0054ba50
lea eax, [edi + 1]
add esp, 8
cdq
idiv dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc ebx
dec eax
mov dword [esp + 0x10], eax
mov byte [esp + 0x24], dl
jne 0x54b9de
pop edi
pop esi
pop ebx
pop ebp
add esp, 8
ret
Function at 0x54ba70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x14]
push ebx
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
mov al, byte [esi + 0x100]
mov cl, byte [esi + 0x101]
test edx, edx
mov byte [esp + 0x20], al
mov byte [esp + 8], cl
jle 0x54bb6d
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x28]
and edi, 0xff
and ebp, 0xff
lea eax, [edi + 1]
and eax, 0x800000ff
jns 0x54bac2
dec eax
or eax, 0xffffff00
inc eax
mov byte [esp + 0x28], al
xor ecx, ecx
mov edi, dword [esp + 0x28]
and edi, 0xff
mov cl, byte [edi + esi]
lea eax, [edi + esi]
add ecx, ebp
mov dword [esp + 0x18], eax
and ecx, 0x800000ff
jns 0x54baee
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ebp, dword [esp + 0x10]
and ebp, 0xff
lea ecx, [esi + ebp]
push ecx
push eax
mov dword [esp + 0x1c], ecx
call fcn.0054ba50
mov eax, dword [esp + 0x1c]
xor edx, edx
xor ecx, ecx
add esp, 8
mov dl, byte [eax]
mov eax, dword [esp + 0x18]
mov cl, byte [eax]
add edx, ecx
and edx, 0x800000ff
jns 0x54bb2f
dec edx
or edx, 0xffffff00
inc edx
mov eax, dword [esp + 0x20]
and edx, 0xff
mov cl, byte [edx + esi]
mov dl, byte [ebx + eax]
xor dl, cl
mov byte [ebx + eax], dl
mov eax, dword [esp + 0x24]
inc ebx
cmp ebx, eax
jl 0x54bab1
mov dl, byte [esp + 0x28]
mov al, byte [esp + 0x10]
pop edi
mov byte [esi + 0x100], dl
mov byte [esi + 0x101], al
pop ebp
pop esi
pop ebx
add esp, 0xc
ret
mov byte [esi + 0x100], al
mov byte [esi + 0x101], cl
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x54cad0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x971ae4]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x54cae3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x54cb24
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x971b8c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x54cb56
mov bl, byte [esp + ecx + 0x4c]
jmp 0x54cb5a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x54cb4b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x54cb78
mov bl, byte [esp + ecx + 0x4c]
jmp 0x54cb7c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x54cb6d
xor ecx, ecx
mov eax, 0x971af4
xor ebx, ebx
mov bl, byte [ecx + 0x971b9c]
cmp byte [esp + ebx + 0x14], 0
je 0x54cba7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x971bb4]
cmp byte [esp + ebx + 0x14], 0
je 0x54cbbe
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x54cb8e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x54cb17
lea edx, [esp + 0x84]
push edx
call fcn.0054cc00
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x54e3b0
Capabilities:
Terminate thread

Disassembly:
push esi
push 0
mov esi, dword [esp + 0xc]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
push esi
call fcn.0054e330
mov eax, dword [0x98e540]
add esp, 0x2c
push eax
call dword [sym.imp.KERNEL32.dll_Sleep_1]
cmp dword [esi + 4], 2
je 0x54e3f2
mov ecx, dword [esi + 0x1c]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread_1]
pop esi
ret
mov eax, 1
pop esi
ret

Function at 0x561c35
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x561c6d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0055fce9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA_1]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0055fcc1
jmp 0x561c79
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x563323
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x563365
call fcn.00568de1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x563365
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x56335c
xor eax, eax
jmp 0x56336d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00563373
pop edi
pop esi
pop ebx
ret 4
Function at 0x1000a460
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x1000a46f
pop dword [ebp - 8]
mov eax, 0xeeb927eb
sub eax, 0xdeb8837c
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xf138c934
add dword [ebp - 0x18], 0x5d197c17
mov dword [ebp - 0x14], 0xb19e1c0e
sub dword [ebp - 0x14], 0x7f6acfc9
mov dword [ebp - 0x10], 0x3f97a489
add dword [ebp - 0x10], 0xcb49fa5
mov dword [ebp - 0xc], 0x86a74dac
add dword [ebp - 0xc], 0x7958b254
lea eax, [ebp - 0x18]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x454bd87b
sub dword [ebp - 0x18], 0xd0d96f25
mov dword [ebp - 0x14], 0xaac1d31
sub dword [ebp - 0x14], 0xc93fbbbc
mov dword [ebp - 0x10], 0xbbd13077
sub dword [ebp - 0x10], 0x5861c40b
mov dword [ebp - 0xc], 0xcb34b4f2
sub dword [ebp - 0xc], 0xcb34b4f2
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0xee5bef28
sub eax, 0xde59fedc
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x416bd
push 0
call eax
mov ecx, 0x566b
xor esi, esi
add esi, eax
mov edx, 0x1ec1608c
sub edx, 0xebeb48c
add edx, dword [ebp - 8]
mov ebx, 0xb6fe0699
add ebx, 0x8bf19e95
sub dword [ebp - 4], edx
mov edi, dword [edx]
xor edi, ebx
xor dword [ebp - 4], ebx
mov dword [esi], edi
sub dword [ebp - 4], ebx
add esi, 0x76ecb16
sub esi, 0x76ecb12
add edx, 4
loop 0x1000a588
add eax, 0x14c7f
xor ebx, ebx
add ebx, eax
add eax, 0x29ca6905
add eax, 0xd6359700
mov ecx, 0x2fdcf261
sub ecx, 0x1fdcf261
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x40217c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x40218b
pop dword [ebp - 0x1c]
mov eax, 0x40218b
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x38375a84
add dword [ebp - 0x2c], 0x161aeac7
mov dword [ebp - 0x28], 0x5ab93f76
add dword [ebp - 0x28], 0xd77a0ccf
mov dword [ebp - 0x24], 0x27cacc88
add dword [ebp - 0x24], 0x248177a6
mov dword [ebp - 0x20], 0x3e2153c4
sub dword [ebp - 0x20], 0x3e2153c4
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x32d71656
sub eax, 0x3294e5e2
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x9c7b2862
add dword [ebp - 0x2c], 0xd7f740f4
mov dword [ebp - 0x28], 0x80c53e2
add dword [ebp - 0x28], 0x39600d93
mov dword [ebp - 0x24], 0x701226f2
add dword [ebp - 0x24], 0xf35d457a
mov dword [ebp - 0x20], 0x6f084310
sub dword [ebp - 0x20], 0x6f084310
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0x27ab910c
sub eax, 0x27695fe8
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x43278
push 0
call eax
mov ecx, 0x5dd5
xor edx, edx
add edx, eax
mov esi, 0x399bea15
sub esi, 0x3958a615
add esi, dword [ebp - 0x1c]
mov ebx, 0xbe35e788
add ebx, 0x60006302
sub dword [ebp - 4], 0x8ae2134e
mov edi, dword [esi]
xor dword [ebp - 4], 0x12e9fd33
add edi, ebx
mov dword [edx], edi
add dword [ebp - 0x10], ebx
add edx, 0x48a13d92
add edx, 0xb75ec272
add esi, 0x8eb67465
sub esi, 0x8eb67461
loop 0x4022a4
add eax, 0x5472d0b3
sub eax, 0x5471668c
xor ebx, ebx
add ebx, eax
add eax, 0x8a9fabb5
sub eax, 0x8a9fabb0
mov ecx, 0x400000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x4422e4
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x450a30
call fcn.00442860
mov edi, 0x94
mov eax, edi
call fcn.00448b10
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x45c408], ecx
mov eax, dword [esi + 4]
mov dword [0x45c414], eax
mov edx, dword [esi + 8]
mov dword [0x45c418], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x45c40c], esi
cmp ecx, 2
je 0x442344
or esi, 0x8000
mov dword [0x45c40c], esi
shl eax, 8
add eax, edx
mov dword [0x45c410], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x44237f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44237f
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x442397
cmp eax, 0x20b
je 0x442384
mov dword [ebp - 0x1c], esi
jmp 0x4423ab
cmp dword [ecx + 0x84], 0xe
jbe 0x44237f
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4423a5
cmp dword [ecx + 0x74], 0xe
jbe 0x44237f
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00442edd
pop ecx
test eax, eax
jne 0x4423bf
push 0x1c
call fcn.004422c0
pop ecx
call fcn.00443eb4
test eax, eax
jne 0x4423d0
push 0x10
call fcn.004422c0
pop ecx
call fcn.00445914
mov dword [ebp - 4], esi
call fcn.00446348
test eax, eax
jge 0x4423e9
push 0x1b
call fcn.0044229b
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x46e624], eax
call fcn.004489e4
mov dword [0x45c454], eax
call fcn.00448942
test eax, eax
jge 0x44240f
push 8
call fcn.0044229b
pop ecx
call fcn.0044870f
test eax, eax
jge 0x442420
push 9
call fcn.0044229b
pop ecx
push 1
call fcn.00440b07
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x442436
push eax
call fcn.0044229b
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004486b2
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x442457
movzx eax, word [ebp - 0x40]
jmp 0x44245a
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401786
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x442478
push edi
call fcn.00440c34
call fcn.00440c56
jmp 0x4424aa
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0044289b
ret
Function at 0x4052af
Capabilities:
Set file attributes

Disassembly:
test edx, 0xf0000000
je 0x4052bd
and edx, 0x3fff
jmp fcn.00405221

Function at 0x4052c2
Capabilities:
Delete directory

Disassembly:
mov eax, 0x43c014
call fcn.0043b650
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00407f9a
mov esi, dword [sym.imp.kernel32.dll_RemoveDirectoryW]
mov ebx, eax
cmp ebx, 1
je 0x4052f1
push edi
call esi
test eax, eax
je 0x4052f1
mov al, 1
jmp 0x405335
test ebx, ebx
je 0x405333
lea ecx, [ebp - 0x18]
call fcn.00402b75
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.004080a3
test al, al
push dword [ebp - 0x18]
je 0x40532d
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401c54
test esi, esi
pop ecx
setne al
jmp 0x405335
call fcn.00401c54
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x405344
Capabilities:
Move file

Disassembly:
mov eax, 0x43c030
call fcn.0043b650
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], ecx
call fcn.00407f9a
mov ecx, dword [ebp - 0x10]
mov esi, eax
call fcn.00407f9a
mov edi, dword [sym.imp.kernel32.dll_MoveFileW]
mov dword [ebp - 0x14], eax
push 1
pop ebx
cmp esi, ebx
je 0x40538d
cmp eax, ebx
je 0x40538d
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x40538d
mov al, bl
jmp 0x405404
test esi, esi
jne 0x405396
cmp dword [ebp - 0x14], esi
je 0x405402
lea ecx, [ebp - 0x30]
call fcn.00402b75
and dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00402b75
cmp esi, ebx
mov byte [ebp - 4], bl
je 0x4053b6
cmp dword [ebp - 0x14], ebx
jne 0x4053b8
xor ebx, ebx
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00406ea6
test al, al
push dword [ebp - 0x24]
je 0x4053f3
push dword [ebp - 0x30]
call edi
mov esi, eax
push dword [ebp - 0x24]
call fcn.00401c54
push dword [ebp - 0x30]
call fcn.00401c54
pop ecx
test esi, esi
pop ecx
setne al
jmp 0x405404
call fcn.00401c54
push dword [ebp - 0x30]
call fcn.00401c54
pop ecx
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40550f
Capabilities:
Create directory

Disassembly:
mov eax, 0x43c060
call fcn.0043b650
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00407f9a
mov esi, dword [sym.imp.kernel32.dll_CreateDirectoryW]
mov ebx, eax
cmp ebx, 1
je 0x40554d
push 0
push edi
call esi
test eax, eax
je 0x405540
mov al, 1
jmp 0x405596
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
je 0x405594
test ebx, ebx
je 0x405594
lea ecx, [ebp - 0x18]
call fcn.00402b75
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.004080a3
test al, al
je 0x40558b
push 0
push dword [ebp - 0x18]
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401c54
test esi, esi
pop ecx
setne al
jmp 0x405596
push dword [ebp - 0x18]
call fcn.00401c54
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret