joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401dc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x4c
lea eax, [ebp - 0x34]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x401e8b
mov eax, dword [ebp - 0x20]
cmp eax, 4
jne 0x401e11
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call int.004080f8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0x40
je 0x401df9
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x38]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x40
mov dword [ebp - 0x3c], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x40], ecx
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call int.004080f8
mov ecx, dword [ebp - 0x40]
cmp ecx, 4
je 0x401e09
cmp ecx, 0x40
je 0x401e09
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401d70
lea esi, [esi]
lea edi, [edi]
Function at 0x401207
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [0x4182d8]
xor edx, edx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [0x4182dc]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x10], edx
mov esi, dword [edi]
mov ebx, dword [edi + 4]
mov dword [ebp - 4], esi
mov dword [ebp - 0x28], 0x9e3779b9
mov dword [ebp - 0x34], eax
call fcn.00401200
add dword [ebp - 0x10], 0x23f
cmp dword [0xb5cb44], 0x14
jne 0x401263
push edx
lea eax, [ebp - 0x834]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov eax, dword [0x4182e4]
mov edi, dword [0x4182e0]
push 0x20
pop edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], 2
add dword [ebp - 0x1c], 3
mov eax, esi
mov dword [ebp - 0xc], 0xedeb2e40
shl eax, 4
add eax, edi
cmp dword [0xb5cb44], 0xfa9
mov dword [ebp - 8], eax
mov eax, dword [0xb5cb40]
cmove eax, dword [ebp - 0xc]
and dword [ebp - 0xc], 0
cmp dword [0xb5cb44], 0x3eb
mov dword [0xb5cb40], eax
mov eax, dword [0xb5ca98]
cmove eax, dword [ebp - 0xc]
mov dword [0xb5ca98], eax
mov eax, dword [ebp - 0x10]
add eax, esi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
shr eax, 5
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
and dword [ebp - 0x14], 0
mov dword [0xb5cb3c], 0xf4ea3dee
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
xor eax, dword [ebp - 4]
sub ebx, eax
mov dword [ebp - 0x18], eax
mov eax, ebx
shl eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
add eax, ebx
and dword [ebp - 4], 0
mov dword [ebp - 0xc], eax
mov eax, ebx
shr eax, cl
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor dword [ebp - 0x14], eax
cmp dword [0xb5cb44], 0xb03
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
jne 0x401362
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
xor eax, dword [ebp - 0x18]
sub esi, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x28]
sub dword [ebp - 0x10], eax
dec edx
mov dword [ebp - 0x20], edx
jne 0x401277
mov edi, dword [ebp - 0x30]
mov dword [edi], esi
mov dword [edi + 4], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c062
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417f10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407f6c
mov dword [ebp - 0x14], eax
cmp dword [0x4b8334], esi
jne 0x40c155
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c0e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c235
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c235
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c235
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4b8334], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4b8338], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4b833c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4b8344], eax
test eax, eax
je 0x40c152
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4b8340], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c17a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c16d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c18f
push 4
pop eax
jmp 0x40c237
cmp dword [ebp - 0x14], esi
je 0x40c18f
push dword [0x4b8334]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c174
mov eax, dword [0x4b8340]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c1ed
cmp dword [0x4b8344], edi
je 0x40c1ed
push eax
call ebx
push dword [0x4b8344]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c1ed
test eax, eax
je 0x40c1ed
call ecx
test eax, eax
je 0x40c1e2
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c1e2
test byte [ebp - 8], 1
jne 0x40c1ed
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c21d
mov eax, dword [0x4b8338]
cmp eax, edi
je 0x40c21a
push eax
call ebx
test eax, eax
je 0x40c21a
call eax
mov esi, eax
test esi, esi
je 0x40c21a
mov eax, dword [0x4b833c]
cmp eax, edi
je 0x40c21a
push eax
call ebx
test eax, eax
je 0x40c21a
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4b8334]
call ebx
test eax, eax
je 0x40c235
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c237
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004040a8
mov esp, ebp
pop ebp
ret
Function at 0x4020d2
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x10
mov esi, dword [ebp + 8]
mov eax, dword [0x57ffac]
xor eax, ebp
mov dword [ebp - 0xc], eax
lea edi, [ebp - 0x18]
mov ecx, esi
push edi
call fcn.00422f30
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x4020fd
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, edi
call fcn.004226f0
push 0x7fffffff
push 0xffffffffffffffff
push 1
push esi
call fcn.004331a0
add esp, 0x10
mov edi, eax
cmp byte [esi + 0xb], 0
jns 0x402127
mov esi, dword [esi]
push 8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004fe871
mov eax, esi
mov edx, edi
add esp, 0x10
pop esi
pop edi
pop ebp
ret

Function at 0x402f9c
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0xb]
mov esi, dword [eax]
mov edi, dword [eax + 4]
add edi, esi
mov edx, ecx
add edx, eax
test cl, cl
cmovs edx, edi
cmovs eax, esi
sub edx, eax
mov ecx, edx
cmp edx, 4
jb 0x402fea
imul esi, dword [eax], 0x5bd1e995
mov edi, esi
shr edi, 0x18
xor edi, esi
imul esi, edi, 0x5bd1e995
imul ecx, ecx, 0x5bd1e995
xor ecx, esi
add eax, 4
add edx, 0xfffffffc
cmp edx, 3
ja 0x402fc4
cmp edx, 1
je 0x40300b
cmp edx, 2
je 0x403002
cmp edx, 3
jne 0x403016
movzx edx, byte [eax + 2]
shl edx, 0x10
xor ecx, edx
movzx edx, byte [eax + 1]
shl edx, 8
xor ecx, edx
movzx eax, byte [eax]
xor eax, ecx
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
xor eax, ecx
pop esi
pop edi
pop ebp
ret 4
Function at 0x404360
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
movdqu xmm1, xmmword [ecx]
movdqu xmm2, xmmword [ecx + 0x10]
movdqu xmm4, xmmword [ecx + 0x20]
movdqu xmm3, xmmword [ecx + 0x30]
movd xmm0, dword [ebp + 0x10]
pxor xmm0, xmm1
add eax, 0xffffffc0
add ecx, 0x40
cmp eax, 0x40
jb 0x40444e
nop word cs:[eax + eax]
nop
movdqa xmm6, xmm0
movdqa xmm1, xmmword [0x52a850]
pclmulqdq xmm6, xmm1, 0
movdqa xmm5, xmmword [0x52a860]
pclmulqdq xmm0, xmm5, 0x11
movdqa xmm7, xmm0
pxor xmm7, xmm6
movdqa xmm0, xmm2
movdqa xmm1, xmmword [0x52a850]
pclmulqdq xmm0, xmm1, 0
pclmulqdq xmm2, xmm5, 0x11
movdqa xmm6, xmm2
pxor xmm6, xmm0
movdqa xmm0, xmm4
pclmulqdq xmm0, xmm1, 0
movdqa xmm2, xmm1
pclmulqdq xmm4, xmm5, 0x11
movdqa xmm1, xmm4
pxor xmm1, xmm0
movdqa xmm0, xmm3
pclmulqdq xmm0, xmm2, 0
pclmulqdq xmm3, xmm5, 0x11
movdqa xmm5, xmm3
pxor xmm5, xmm0
movdqu xmm0, xmmword [ecx]
pxor xmm0, xmm7
movdqu xmm2, xmmword [ecx + 0x10]
pxor xmm2, xmm6
movdqu xmm4, xmmword [ecx + 0x20]
pxor xmm4, xmm1
movdqu xmm3, xmmword [ecx + 0x30]
pxor xmm3, xmm5
add eax, 0xffffffc0
add ecx, 0x40
cmp eax, 0x3f
ja 0x4043a0
movdqa xmm1, xmmword [0x52a870]
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm1, 0
pxor xmm5, xmm2
movdqa xmm2, xmmword [0x52a880]
pclmulqdq xmm0, xmm2, 0x11
pxor xmm0, xmm5
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm1, 0
pxor xmm5, xmm4
pclmulqdq xmm0, xmm2, 0x11
pxor xmm0, xmm5
movdqa xmm4, xmm0
pclmulqdq xmm4, xmm1, 0
pxor xmm4, xmm3
pclmulqdq xmm0, xmm2, 0x11
pxor xmm0, xmm4
cmp eax, 0x10
jb 0x404588
lea edx, [eax - 0x10]
mov esi, edx
shr esi, 4
add esi, 1
and esi, 3
je 0x4044e7
nop
movdqu xmm3, xmmword [ecx]
movdqa xmm4, xmm0
pclmulqdq xmm4, xmm1, 0
pxor xmm4, xmm3
pclmulqdq xmm0, xmm2, 0x11
pxor xmm0, xmm4
add ecx, 0x10
add eax, 0xfffffff0
add esi, 0xffffffff
jne 0x4044c0
movdqa xmm3, xmm0
cmp edx, 0x30
jb 0x40458c
nop word cs:[eax + eax]
nop
movdqa xmm4, xmm0
pclmulqdq xmm4, xmm1, 0
pclmulqdq xmm0, xmm2, 0x11
movdqu xmm3, xmmword [ecx]
pxor xmm3, xmm4
pxor xmm3, xmm0
movdqu xmm0, xmmword [ecx + 0x10]
movdqa xmm4, xmm3
pclmulqdq xmm4, xmm1, 0
pxor xmm4, xmm0
pclmulqdq xmm3, xmm2, 0x11
pxor xmm3, xmm4
movdqu xmm0, xmmword [ecx + 0x20]
movdqa xmm4, xmm3
pclmulqdq xmm4, xmm1, 0
pxor xmm4, xmm0
pclmulqdq xmm3, xmm2, 0x11
pxor xmm3, xmm4
movdqu xmm0, xmmword [ecx + 0x30]
movdqa xmm4, xmm3
pclmulqdq xmm4, xmm1, 0
pxor xmm4, xmm0
pclmulqdq xmm3, xmm2, 0x11
pxor xmm3, xmm4
add eax, 0xffffffc0
add ecx, 0x40
movdqa xmm0, xmm3
cmp eax, 0xf
ja 0x404500
jmp 0x40458c
movdqa xmm3, xmm0
movdqa xmm0, xmmword [0x52a880]
pclmulqdq xmm0, xmm3, 1
psrldq xmm3, 8
pxor xmm3, xmm0
pxor xmm0, xmm0
pxor xmm1, xmm1
pblendw xmm1, xmm3, 3
psrldq xmm3, 4
pclmulqdq xmm1, xmmword [0x52a890], 0
pxor xmm1, xmm3
pxor xmm2, xmm2
pblendw xmm2, xmm1, 3
pclmulqdq xmm2, xmmword [0x52a8a0], 0x10
pblendw xmm2, xmm0, 0xfc
pclmulqdq xmm2, xmmword [0x52a8b0], 0
pxor xmm2, xmm1
pextrd eax, xmm2, 1
pop esi
pop ebp
ret
Function at 0x40504a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, dword [ebp + 8]
cmp dword [ecx], ebx
je 0x40507e
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, esi
call fcn.00405024
lea eax, [ebx + 1]
cmp eax, 2
jb 0x405077
mov dword [esi], ebx
call fcn.00424a50
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x408bd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov dword [ebp - 0x20], ecx
mov eax, dword [0x57ffac]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edi, dword [ebp - 0x20]
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx]
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x18]
push edx
push dword [edi + 0x28]
call dword [eax + 0x10]
mov ebx, eax
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
sub esi, eax
push dword [edi + 0x20]
push esi
push 1
push eax
call fcn.00514f9a
add esp, 0x10
cmp eax, esi
jne 0x408c40
cmp ebx, 1
je 0x408be9
cmp ebx, 2
mov esi, 0xffffffff
je 0x408c43
mov eax, dword [ebp - 0x20]
push dword [eax + 0x20]
call fcn.00514b3b
add esp, 4
neg eax
sbb esi, esi
jmp 0x408c43
xor esi, esi
dec esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe871
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x408c60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
cmp byte [ecx + 0x2c], 0
je 0x408c84
push dword [ecx + 0x20]
push esi
push 1
push eax
call fcn.00514f9a
add esp, 0x14
jmp 0x408cb3
test esi, esi
jle 0x408cac
mov dword [ebp - 0x10], ecx
xor edi, edi
mov ebx, eax
movzx eax, byte [eax + edi]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
call dword [edx + 0x30]
cmp eax, 0xffffffff
je 0x408cae
inc edi
cmp esi, edi
mov eax, ebx
jne 0x408c8d
mov edi, esi
jmp 0x408cae
xor edi, edi
mov eax, edi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x408cc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov ebx, dword [ebp + 8]
mov eax, dword [0x57ffac]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp ebx, 0xffffffff
je 0x408d03
mov esi, ecx
mov byte [ebp - 0x19], bl
cmp byte [ecx + 0x2c], 0
je 0x408d1b
xor edi, edi
inc edi
lea eax, [ebp - 0x19]
push dword [esi + 0x20]
push edi
push edi
push eax
call fcn.00514f9a
add esp, 0x10
cmp eax, edi
je 0x408d05
xor ebx, ebx
dec ebx
jmp 0x408d05
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe871
mov eax, ebx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 4
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x20]
mov dword [ecx], eax
lea ebx, [ebp - 0x19]
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 0x18]
push edx
push ebx
push dword [esi + 0x28]
call dword [eax + 8]
cmp dword [ebp - 0x24], ebx
je 0x408cfe
mov edi, eax
cmp eax, 3
je 0x408d7c
cmp edi, 1
ja 0x408cfe
mov ebx, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
sub ebx, eax
push dword [esi + 0x20]
push ebx
push 1
push eax
call fcn.00514f9a
add esp, 0x10
cmp eax, ebx
jne 0x408cfe
mov ebx, dword [ebp - 0x24]
cmp edi, 1
je 0x408d26
jmp 0x408d95
xor edi, edi
inc edi
push dword [esi + 0x20]
push edi
push edi
push ebx
call fcn.00514f9a
add esp, 0x10
cmp eax, edi
jne 0x408cfe
mov ebx, dword [ebp + 8]
jmp 0x408d05

Function at 0x408dd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
cmp byte [ecx + 0x2c], 0
je 0x408df4
push dword [ecx + 0x20]
push esi
push 2
push eax
call fcn.00514f9a
add esp, 0x14
jmp 0x408e24
test esi, esi
jle 0x408e1d
mov dword [ebp - 0x10], ecx
xor edi, edi
mov ebx, eax
movzx eax, word [eax + edi*2]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
call dword [edx + 0x30]
cmp ax, 0xffff
je 0x408e1f
inc edi
cmp esi, edi
mov eax, ebx
jne 0x408dfd
mov edi, esi
jmp 0x408e1f
xor edi, edi
mov eax, edi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x408e30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
movzx esi, word [ebp + 8]
mov eax, dword [0x57ffac]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp si, 0xffff
je 0x408e76
mov edi, ecx
mov word [ebp - 0x1a], si
cmp byte [ecx + 0x2c], 0
je 0x408e8e
lea eax, [ebp - 0x1a]
push dword [edi + 0x20]
push 1
push 2
push eax
call fcn.00514f9a
add esp, 0x10
cmp eax, 1
je 0x408e78
xor esi, esi
dec esi
jmp 0x408e78
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe871
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 4
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x20]
mov dword [ecx], eax
lea esi, [ebp - 0x1a]
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 0x18]
push edx
push esi
push dword [edi + 0x28]
call dword [eax + 8]
cmp dword [ebp - 0x24], esi
je 0x408e71
mov ebx, eax
cmp eax, 3
je 0x408eef
cmp ebx, 1
ja 0x408e71
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
sub esi, eax
push dword [edi + 0x20]
push esi
push 1
push eax
call fcn.00514f9a
add esp, 0x10
cmp eax, esi
jne 0x408e71
mov esi, dword [ebp - 0x24]
cmp ebx, 1
je 0x408e99
jmp 0x408f08
xor ebx, ebx
inc ebx
push dword [edi + 0x20]
push ebx
push ebx
push esi
call fcn.00514f9a
add esp, 0x10
cmp eax, ebx
jne 0x408e71
movzx esi, word [ebp + 8]
jmp 0x408e78

Function at 0x4090a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor eax, eax
cmp edx, ecx
je 0x4090cf
shl eax, 4
movsx esi, byte [edx]
add esi, eax
mov edi, esi
and edi, 0xf0000000
mov eax, edi
shr eax, 0x18
or eax, edi
xor eax, esi
inc edx
cmp ecx, edx
jne 0x4090b1
pop esi
pop edi
pop ebp
ret 8

Function at 0x4091e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor eax, eax
cmp edx, ecx
je 0x409211
shl eax, 4
movzx esi, word [edx]
add esi, eax
mov edi, esi
and edi, 0xf0000000
mov eax, edi
shr eax, 0x18
or eax, edi
xor eax, esi
add edx, 2
cmp ecx, edx
jne 0x4091f1
pop esi
pop edi
pop ebp
ret 8
Function at 0x412774
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.0041b344
mov ebx, eax
test esi, esi
je 0x4127ad
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
je 0x41279a
movzx eax, word [eax]
jmp 0x4127a1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
cmp ax, 0xffff
je 0x4127ad
test bl, bl
jne 0x4127b3
jmp 0x412810
xor esi, esi
test bl, bl
jne 0x412801
mov ecx, dword [edi]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4127c2
movzx eax, word [eax]
jmp 0x4127c7
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
movzx eax, ax
push eax
push 8
call dword [edx + 0xc]
test al, al
je 0x4127f2
mov ecx, dword [edi]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4127eb
add eax, 2
mov dword [ecx + 0xc], eax
jmp 0x412780
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x412780
mov ecx, edi
call fcn.0041b344
mov ebx, eax
test esi, esi
jne 0x412819
jmp 0x41280a
mov ecx, edi
call fcn.0041b344
mov ebx, eax
test bl, bl
jne 0x412838
jmp 0x41283e
mov ecx, edi
call fcn.0041b344
mov ebx, eax
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
je 0x412826
movzx eax, word [eax]
jmp 0x41282d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
cmp ax, 0xffff
sete al
xor bl, al
jne 0x41283e
mov eax, dword [ebp + 0x10]
or byte [eax], 2
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
Function at 0x41f370
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword [0x5819c8]
test edi, edi
jne 0x41f416
push 0x24
call fcn.004fe808
add esp, 4
mov esi, eax
mov dword [eax + 4], 0
mov dword [eax], 0
push 0xc
call fcn.004fe808
add esp, 4
mov dword [esi + 8], eax
lea ecx, [eax + 0xc]
mov dword [esi + 0x10], ecx
mov dword [eax + 8], 0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [esi + 0xc], ecx
lea eax, [esi + 0x18]
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], 1
mov dword [0x5819c8], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor edx, edx
test eax, eax
je 0x41f40d
cmp word [eax], 0
je 0x41f40d
xor ecx, ecx
nop dword [eax + eax]
lea edx, [ecx + 1]
cmp word [eax + ecx*2 + 2], 0
mov ecx, edx
jne 0x41f400
mov ecx, esi
push edx
push eax
call fcn.0041f420
test edi, edi
sete al
pop esi
pop edi
pop ebp
ret
Function at 0x41f420
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov edi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [0x57ffac]
xor edx, ebp
mov dword [ebp - 0x10], edx
lea ebx, [ebp - 0x20]
push 3
push ecx
push eax
push ebx
call fcn.0042ca10
add esp, 0x10
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41f61b
mov esi, dword [ebp - 0x20]
mov dword [edi], esi
mov dword [edi + 4], eax
mov dword [ebp - 0x14], 0
push 0x800
push 0
push str.api_ms_win_downlevel_shell32_l1_1_0.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x41f49a
push 0x52e126
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41f4a9
mov ecx, eax
lea eax, [ebp - 0x14]
push eax
push esi
call ecx
jmp 0x41f4a5
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
jmp 0x41f4ab
xor esi, esi
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
test eax, eax
je 0x41f5b1
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], edi
cmp eax, 0x15555556
jae 0x41f63b
shl eax, 2
mov dword [ebp - 0x30], eax
lea esi, [eax + eax*2]
push esi
call fcn.004fe808
add esp, 4
mov edi, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
add eax, esi
mov dword [ebp - 0x18], eax
xor eax, eax
mov esi, dword [ebp - 0x24]
jmp 0x41f545
mov byte [edi + 0xb], bl
mov eax, edi
test ebx, ebx
je 0x41f531
mov ecx, ebx
add ecx, ebx
push ecx
push dword [ebp - 0x34]
push eax
mov esi, eax
call fcn.00501dd0
mov eax, esi
mov esi, dword [ebp - 0x24]
add esp, 0xc
mov word [eax + ebx*2], 0
add edi, 0xc
mov eax, dword [ebp - 0x38]
add eax, 4
cmp dword [ebp - 0x30], eax
je 0x41f5a8
mov dword [ebp - 0x38], eax
mov eax, dword [esi + eax]
mov dword [edi + 4], 0
mov dword [edi], 0
mov dword [edi + 8], 0
mov dword [ebp - 0x34], eax
push eax
call fcn.00516c94
add esp, 4
cmp eax, 0x7ffffff0
jae 0x41f62f
mov ebx, eax
cmp eax, 5
jb 0x41f510
lea esi, [ebx + 8]
and esi, 0xfffffff8
js 0x41f636
lea eax, [esi + esi]
push eax
call fcn.004fe808
add esp, 4
mov dword [edi], eax
or esi, 0x80000000
mov dword [edi + 8], esi
mov dword [edi + 4], ebx
jmp 0x41f519
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp - 0x28]
lea ebx, [ebp - 0x20]
mov ecx, edi
push ebx
call fcn.0041f090
mov dword [edi], 0
mov dword [edi + 4], 0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x41f5db
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x41f61b
mov eax, dword [ebp - 0x1c]
cmp eax, esi
jne 0x41f5f6
mov eax, esi
jmp 0x41f60f
mov eax, edi
cmp esi, edi
je 0x41f60c
lea edi, [eax - 0xc]
cmp byte [eax - 1], 0
jns 0x41f5f0
push dword [eax - 0xc]
call fcn.004fe838
add esp, 4
jmp 0x41f5f0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], esi
push eax
call fcn.004fe838
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe871
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov ecx, edi
call fcn.0041c034
call fcn.00510edd
lea ecx, [ebp - 0x20]
call fcn.0041df3c
int3