joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402440
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x404ac8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x424868], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x424864], ecx
shl ecx, 8
add ecx, edx
mov dword [0x424860], ecx
shr eax, 0x10
mov dword [0x42485c], eax
call fcn.00402660
test eax, eax
jne 0x4024aa
push 0x1c
call fcn.00402610
add esp, 4
mov dword [ebp - 4], 0
call fcn.004047d0
call fcn.004047c0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x42a8f0], eax
call fcn.004041a0
mov dword [0x424838], eax
test eax, eax
je 0x4024dd
mov eax, dword [0x42a8f0]
test eax, eax
jne 0x4024e7
push 0xffffffffffffffff
call fcn.00403b00
add esp, 4
call fcn.00403ef0
call fcn.00403e00
call fcn.00403ad0
mov esi, dword [0x42a8f0]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x4025c6
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x40252e
test al, al
je 0x40252e
and eax, 0xff
push eax
call fcn.00403da0
add esp, 4
test eax, eax
je 0x402508
inc esi
mov dword [ebp - 0x64], esi
jmp 0x402508
cmp byte [esi], 0x22
jne 0x402537
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x402547
cmp al, 0x20
ja 0x402547
inc esi
mov dword [ebp - 0x64], esi
jmp 0x402537
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x402568
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x40256d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00403b00
jmp 0x4025ab
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x402537
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4025c6

Function at 0x402610
Capabilities:
Terminate process

Disassembly:
cmp dword [0x424840], 1
jne 0x40261e
call fcn.00404ba0
mov eax, dword [esp + 4]
push eax
call fcn.00404be0
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x403b40
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x424898]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x403b5f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x424894], 1
mov byte [0x424890], bl
jne 0x403bb9
mov ecx, dword [0x42a8e8]
test ecx, ecx
je 0x403ba7
mov esi, dword [0x42a8e4]
sub esi, 4
cmp esi, ecx
jb 0x403ba7
mov eax, dword [esi]
test eax, eax
je 0x403ba0
call eax
mov ecx, dword [0x42a8e8]
sub esi, 4
cmp esi, ecx
jae 0x403b92
push 0x41f01c
push 0x41f014
call fcn.00403bf0
add esp, 8
push 0x41f024
push 0x41f020
call fcn.00403bf0
add esp, 8
test ebx, ebx
jne 0x403be0
push ebp
mov dword [0x424898], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x4041a0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x4249a8]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x4041e2
call edi
mov esi, eax
test esi, esi
je 0x4041cc
mov eax, 1
jmp 0x4041dd
call ebp
mov ebx, eax
test ebx, ebx
je 0x4042ef
mov eax, 2
mov dword [0x4249a8], eax
cmp eax, 1
jne 0x404282
test esi, esi
jne 0x4041fb
call edi
mov esi, eax
test esi, esi
je 0x4042ef
cmp word [esi], 0
mov eax, esi
je 0x404215
add eax, 2
cmp word [eax], 0
jne 0x404203
add eax, 2
cmp word [eax], 0
jne 0x404203
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x404274
push edi
call fcn.00402320
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x404274
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x404266
push ebx
call fcn.00402e90
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x4042ef
test ebx, ebx
jne 0x404293
call ebp
mov ebx, eax
test ebx, ebx
je 0x4042ef
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x4042ab
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40429b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40429b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00402320
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4042cd
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x404be0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x421468
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x404c04
add eax, 8
inc ebp
cmp eax, 0x4214f8
jb 0x404bf5
cmp ecx, dword [ebp*8 + 0x421468]
jne 0x404dab
mov eax, dword [0x424840]
cmp eax, 1
je 0x404d6d
test eax, eax
jne 0x404c30
cmp dword [0x41f294], 1
je 0x404d6d
cmp ecx, 0xfc
je 0x404dab
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404c6b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x404cb4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x41e358
add ebx, ecx
push ebx
call fcn.004057a0
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41e338
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x42146c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00405710
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x42a7e0]
test eax, eax
je 0x404d7e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x404d88
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x42146c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x404e80
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x42a8e0]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x40502d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x42a7e0]
lea edi, [ecx*4 + 0x42a7e0]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x40502d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x404eee
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x404eff
push 2
push ebp
push eax
call fcn.00404dc0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x40505e
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x404fa9
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x404f5a
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x404f47
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x404f2a
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40504f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x404fa5
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x404f26
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40501e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x404ff2
cmp eax, 5
jne 0x404fdb
mov dword [0x424854], eax
mov dword [0x424850], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.004058a0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x405012
cmp byte [ebp], 0x1a
jne 0x405012
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x424850], 0x1c
jmp 0x405037
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x424850], 9
pop edi
pop esi
pop ebp
mov dword [0x424854], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x404fa5
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40508f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x404fa9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x404fa9
Function at 0x408740
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0x18]
sub esp, 0xc
lea ecx, [esp + 4]
push esi
push eax
push ecx
call fcn.00408670
lea ecx, [esp + 0xc]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
add esp, 8
push ecx
push 1
push 0
push edx
push eax
call dword [0x42b270]
lea ecx, [esp + 0x24]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0xc]
push edx
push 0
push ecx
push eax
call dword [0x42b274]
mov ecx, dword [esp + 4]
mov esi, dword [0x42b278]
push ecx
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
mov eax, dword [esp + 0x24]
pop esi
add esp, 0xc
ret 0x18

Function at 0x4087b0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0xc
lea ecx, [esp + 4]
push esi
push edi
push eax
push ecx
call fcn.00408670
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
add esp, 8
push ecx
push edx
mov eax, dword [esp + 0x20]
push 0
mov ecx, dword [esp + 0x18]
push 0xf003f
push 0
push str.REG_SZ
push 0
push eax
push ecx
call dword [0x42b268]
mov edx, dword [esp + 0x20]
mov ecx, 0xffffffff
mov edi, edx
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 1
push 0
push eax
push ecx
call dword [0x42b26c]
mov ecx, dword [esp + 8]
mov esi, dword [0x42b278]
push ecx
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
xor eax, eax
pop edi
pop esi
add esp, 0xc
ret 0x10
Function at 0x40d900
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
cmp dword [esi + 0x4504], 0
je 0x40d95e
mov ecx, dword [esp + 0x1c]
cmp esi, 0xffffbaf8
je 0x40d962
test ecx, ecx
je 0x40d962
lea eax, [esi + 0x4508]
mov dl, byte [eax]
cmp byte [ecx], dl
jne 0x40d962
mov edi, ecx
mov dl, byte [eax]
cmp dl, byte [edi]
jne 0x40d951
or dl, dl
je 0x40d94d
mov dl, byte [eax + 1]
cmp dl, byte [edi + 1]
jne 0x40d951
add eax, 2
add edi, 2
or dl, dl
jne 0x40d931
xor eax, eax
jmp 0x40d956
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40d962
xor eax, eax
jmp 0x40d967
mov ecx, dword [esp + 0x1c]
mov eax, 1
mov edi, dword [esp + 0x20]
test eax, eax
jne 0x40d97b
cmp dword [esi + 0x460c], edi
je 0x40da20
test eax, eax
je 0x40d994
push 0x100
lea eax, [esi + 0x4508]
push ecx
push eax
call fcn.0040bc10
add esp, 0xc
mov ecx, 0xffffffff
sub eax, eax
mov dword [esi + 0x460c], edi
lea edi, [esi + 0x4508]
repne scasb al, byte es:[edi]
lea eax, [esp + 0xc]
xor edi, edi
not ecx
dec ecx
mov dword [eax], edi
mov dword [eax + 4], edi
test ecx, ecx
jle 0x40d9da
lea eax, [edi + 2]
inc edi
cdq
xor eax, edx
sub eax, edx
and eax, 7
xor eax, edx
sub eax, edx
mov dl, byte [edi + esi + 0x4507]
xor byte [esp + eax + 0xc], dl
cmp edi, ecx
jl 0x40d9bb
xor eax, eax
lea ecx, [eax*8]
mov edx, dword [esi + 0x460c]
sar edx, cl
xor byte [esp + eax + 0xc], dl
inc eax
cmp eax, 4
jl 0x40d9dc
xor edi, edi
lea ecx, [esp + edi + 0xc]
xor eax, eax
mov al, byte [ecx]
mov ebx, 0xfb
inc edi
lea eax, [eax + eax*2]
cdq
idiv ebx
mov byte [ecx], dl
cmp edi, 8
jl 0x40d9f7
lea eax, [esp + 0xc]
push eax
push esi
call fcn.00410730
add esp, 8
mov dword [esi + 0x4504], 1
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x410730
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [esp + 0x10]
push ebp
cmp dword [esi + 0x3cfc], ebx
jle 0x4107a4
lea ebp, [esi + 0x2bfc]
mov edi, dword [esp + 0x18]
push 8
push ebp
push edi
call fcn.00410b00
add esp, 0xc
test eax, eax
jne 0x41076d
add ebp, 0x110
inc ebx
cmp dword [esi + 0x3cfc], ebx
jg 0x41074c
jmp 0x4107a8
mov eax, ebx
shl eax, 4
add eax, ebx
shl eax, 4
lea edx, [eax + esi + 0x2c04]
pop ebp
mov dword [esi + 0x2bf0], edx
lea ecx, [eax + esi]
pop edi
lea eax, [ecx + 0x2c0c]
add ecx, 0x2c8c
mov dword [esi + 0x2bf4], eax
mov dword [esi + 0x2bf8], ecx
pop esi
pop ebx
ret
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x3cfc]
inc eax
mov dword [esi + 0x3cfc], eax
cmp eax, 0x10
jle 0x4107c4
mov dword [esi + 0x3cfc], 0x10
mov eax, dword [esi + 0x3cfc]
dec eax
mov ecx, eax
shl ecx, 4
add ecx, eax
mov eax, dword [edi]
shl ecx, 4
add ecx, esi
lea edx, [ecx + 0x2bfc]
mov dword [edx], eax
lea eax, [ecx + 0x2c0c]
mov ebx, dword [edi + 4]
add ecx, 0x2c8c
mov dword [edx + 4], ebx
lea edx, [ecx - 0x88]
xor ebx, ebx
mov dword [esi + 0x2bf0], edx
mov dword [esi + 0x2bf4], eax
mov dword [esi + 0x2bf8], ecx
mov eax, dword [esi + 0x2bf0]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov eax, ebx
mov ebp, 3
cdq
xor eax, edx
sub eax, edx
and eax, 7
xor eax, edx
sub eax, edx
mov cl, byte [edi + eax]
mov eax, ebx
cdq
idiv ebp
and cl, 0xfe
inc ebx
mov al, byte [edi + edx]
mov edx, dword [esi + 0x2bf0]
shr al, 1
xor cl, al
cmp ebx, 8
mov byte [edx + ebx - 1], cl
jl 0x410818
push 0
mov eax, dword [esi + 0x2bf4]
push edi
push eax
call fcn.004109c0
add esp, 0xc
mov eax, dword [esi + 0x2bf8]
push 1
push edi
push eax
call fcn.004109c0
add esp, 0xc
cmp dword [esi + 0x3d00], 0
je 0x41088e
push esi
call fcn.004108a0
mov dword [esi + 0x3d00], 0
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4108a0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0x2c
xor eax, eax
push ebx
push esi
push edi
push ebp
xor ecx, ecx
xor edx, edx
mov dl, byte [ecx + 0x423440]
sub edx, eax
cmp edx, 1
je 0x4108c2
inc ecx
cmp ecx, 0x20
jl 0x4108ab
jmp 0x4108c6
mov byte [esp + eax + 0x1c], cl
inc eax
cmp eax, 0x20
jl 0x4108a9
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
add ecx, dword [esp + 0x10]
and edi, 1
shl edi, 4
mov dword [eax + ecx*4 + 0x3d04], 0
mov ecx, dword [esp + 0x10]
xor ebx, ebx
and ecx, 0x1e
shr ecx, 1
or edi, ecx
mov ecx, dword [esp + 0x10]
and ecx, 0x20
or edi, ecx
xor edx, edx
mov ecx, dword [esp + 0x14]
mov esi, 8
mov dl, byte [edi + ecx + 0x423460]
mov cl, bl
sar esi, cl
test esi, edx
je 0x410952
mov edx, dword [esp + 0x14]
mov esi, 1
mov ebp, dword [esp + 0x18]
add ebp, ebx
add edx, dword [esp + 0x10]
mov cl, 0x1f
sub cl, byte [esp + ebp + 0x1c]
shl esi, cl
or dword [eax + edx*4 + 0x3d04], esi
inc ebx
cmp ebx, 4
jl 0x410916
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x40
jl 0x4108e2
add dword [esp + 0x18], 4
add dword [esp + 0x14], 0x40
cmp dword [esp + 0x14], 0x200
jl 0x4108da
xor edi, edi
add eax, 0x3d04
mov edx, 8
mov esi, 0x40
mov ecx, dword [eax]
inc edi
mov ebx, ecx
add ecx, ecx
shr ebx, 0x1f
or ebx, ecx
cmp edi, 4
mov dword [eax], ebx
jne 0x4109a5
xor edi, edi
add eax, 4
dec esi
jne 0x410990
dec edx
jne 0x41098b
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x2c
ret
Function at 0x4109c0
Capabilities:
Encrypt data using des

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x78
xor ecx, ecx
push ebx
push esi
push edi
push ebp
xor edx, edx
xor ebx, ebx
mov dl, byte [ecx + 0x423660]
dec edx
mov esi, edx
and edx, 7
sar esi, 3
mov bl, byte [esi + eax]
and ebx, dword [edx*4 + 0x4236d8]
cmp ebx, 1
sbb dl, dl
inc ecx
inc dl
cmp ecx, 0x38
mov byte [esp + ecx + 0x17], dl
jl 0x4109cd
xor esi, esi
mov ecx, dword [esp + 0x8c]
lea eax, [esp + 0x10]
xor edi, edi
mov dword [eax], 0
mov dword [eax + 4], 0
cmp dword [esp + 0x94], 0
mov eax, esi
je 0x410a2a
mov eax, 0xf
sub eax, esi
xor edx, edx
cmp edi, 0x1c
mov dl, byte [eax + 0x423698]
lea eax, [edx + edi]
mov edx, 0x38
jge 0x410a44
mov edx, 0x1c
cmp edx, eax
jg 0x410a4b
sub eax, 0x1c
mov al, byte [esp + eax + 0x18]
inc edi
cmp edi, 0x38
mov byte [esp + edi + 0x4f], al
jl 0x410a17
xor edi, edi
xor eax, eax
mov al, byte [edi + 0x4236a8]
cmp byte [esp + eax + 0x4f], 0
je 0x410a8e
mov ebx, 6
mov eax, edi
cdq
idiv ebx
mov ebp, 6
lea ebx, [esp + eax + 0x10]
mov eax, edi
cdq
idiv ebp
mov eax, dword [edx*4 + 0x4236d8]
sar eax, 2
or byte [ebx], al
inc edi
cmp edi, 0x30
jl 0x410a5b
xor eax, eax
xor edx, edx
mov al, byte [esp + 0x10]
mov dl, byte [esp + 0x14]
shl eax, 0x10
or eax, edx
xor edx, edx
shl eax, 8
mov dl, byte [esp + 0x12]
shl edx, 0x10
or eax, edx
xor edx, edx
mov dl, byte [esp + 0x16]
or eax, edx
xor edx, edx
mov dl, byte [esp + 0x15]
mov dword [ecx], eax
xor eax, eax
mov al, byte [esp + 0x11]
shl eax, 0x10
or eax, edx
xor edx, edx
shl eax, 8
mov dl, byte [esp + 0x13]
shl edx, 0x10
add ecx, 8
or eax, edx
inc esi
xor edx, edx
mov dl, byte [esp + 0x17]
or eax, edx
cmp esi, 0x10
mov dword [ecx - 4], eax
jl 0x410a04
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x78
ret

Function at 0x410b30
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x10
cdq
push ebx
xor eax, edx
push esi
sub eax, edx
push edi
and eax, 0
push ebp
xor eax, edx
sub eax, edx
je 0x410b56
mov eax, 0xffffffe2
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret
mov ebp, dword [esp + 0x24]
lea edx, [esp + 0x10]
xor ebx, ebx
mov eax, dword [ebp + 0x2bf0]
cmp dword [esp + 0x30], ebx
mov ecx, dword [eax]
mov dword [edx], ecx
mov eax, dword [eax + 4]
mov dword [edx + 4], eax
jle 0x410bd4
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov edx, dword [ebp + 0x2bf4]
push edx
push ebp
call fcn.0040fca0
add esp, 0xc
xor ecx, ecx
lea edx, [ebx + ecx]
inc ecx
mov al, byte [edx + esi]
xor al, byte [esp + ecx + 0x1e]
cmp ecx, 1
mov byte [edx + edi], al
jl 0x410ba3
mov ecx, 6
mov al, byte [esp + ecx + 0x10]
mov byte [esp + ecx + 0x11], al
dec ecx
jns 0x410bbb
mov al, byte [edi + ebx]
inc ebx
mov byte [esp + 0x10], al
cmp ebx, dword [esp + 0x30]
jl 0x410b7e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x410be0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x10
cdq
push ebx
xor eax, edx
push esi
sub eax, edx
push edi
and eax, 0
push ebp
xor eax, edx
sub eax, edx
je 0x410c06
mov eax, 0xffffffce
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret
mov ebp, dword [esp + 0x24]
lea edx, [esp + 0x10]
xor ebx, ebx
mov eax, dword [ebp + 0x2bf0]
cmp dword [esp + 0x30], ebx
mov ecx, dword [eax]
mov dword [edx], ecx
mov eax, dword [eax + 4]
mov dword [edx + 4], eax
jle 0x410c84
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov edx, dword [ebp + 0x2bf4]
push edx
push ebp
call fcn.0040fca0
add esp, 0xc
xor ecx, ecx
lea edx, [ebx + ecx]
inc ecx
mov al, byte [edx + esi]
xor al, byte [esp + ecx + 0x1e]
cmp ecx, 1
mov byte [edx + edi], al
jl 0x410c53
mov ecx, 6
mov al, byte [esp + ecx + 0x10]
mov byte [esp + ecx + 0x11], al
dec ecx
jns 0x410c6b
mov al, byte [esi + ebx]
inc ebx
mov byte [esp + 0x10], al
cmp ebx, dword [esp + 0x30]
jl 0x410c2e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x4187a0
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x4187bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4187be
xor eax, eax
test eax, eax
je 0x4187cf
push eax
call fcn.004058a0
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x4187e0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4187f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4187f9
xor eax, eax
test eax, eax
je 0x41880a
push eax
call fcn.004058a0
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret