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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
aaa
inc ebp
or byte [eax - 0x1174fbbf], ch
or al, 0x53
mov dword [ecx + 0x14], eax
xor esi, ebx
push esi
xor ebp, dword [eax + edx*8 - 0x49a497ff]
cmpsd dword [esi], dword es:[edi]
xchg esp, eax
mov edi, dword [ecx + 4]
inc ebx
mov dword [ecx + 0x18], eax
mov byte [ecx + 0x1c], al
mov dword [ecx + 0x20], ebx
mov dword [ecx + 0x24], eax
xlatb
pop es
or byte [edi + 0x8708bfc], ch
mov ecx, esi
call fcn.00529035
mov ecx, edi
call esi
pop ecx
jp 0x53dcd4
sbb eax, 0x5f7154
inc ebx
mov esi, dword [ebp - 4]
push 0
mov dword [esi + 0x28], ebx
call 0x5552a186
mov dword [esi + 0xc], eax
lea eax, [esi + 0x2c]
push eax
mov eax, dword [esi - 0x10]
push 0x10000
push esi
push 0x53ab4e
shl eax, 0xa
push eax
push 0
call 0xff64a7aa
add esp, 0x1c
mov dword [esi + 8], eax
mov es, eax
jne 0x53dd78
push dword [esi + 0xc]
call dword [fcn.005521d8]
mov edi, dword [esi + 4]
mov eax, dword [edi]
mov ecx, dword [esi + 0x4ace8b0c]
int 0xb2
invalid
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x90

Function at 0x54a963
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
stosb byte es:[edi], al
mov ebp, esp
cmp esp, ebp
sbb al, 0x53
stosb byte es:[edi], al
mov al, 0x33
fisttp dword [ebp - 0x76ac1bbb]
pop ebp
cld
call 0x3c4ddb
mov esp, dword [eax]
out dx, eax
jns 0x54a988
pop edi
mov eax, dword [eax + 0x9c]
add eax, 0x90000d0
mov dword [ebp - 8], eax
mov esi, eax
mov ebx, dword [edi]
in al, 0x8d
dec edx
add ah, byte [esi - 0x75]
xchg ebx, eax
xor byte [ebx], bl
add ah, byte [esi + 0x3b]
inc ebp
invalid

Function at 0x551ede
Capabilities:
Terminate process

Disassembly:
mov ebx, dword [esi]
push ebp
mov ebp, esp
mov eax, dword [0x5f710a]
and eax, 0x1f
push 0x48
pop ecx
sub ecx, dword [ecx - 0x2c42ba75]
enter 0x533, 0x28
jno 0x551f37
mov bl, 0x5d
add ecx, dword [ebx - 0x1356aa01]
xor edx, dword [ecx]
cmp dword [ebp + 8], 0xe06d7363
invalid
call fcn.0055426a
pop ecx
adc dword [eax], 0xfffffffc
add byte [eax + 0x64d0843d], al
add dh, bl
jne 0x554be7
xor eax, eax
inc eax
mov ecx, 0x60b4ae
xchg dword [eax - 0x39], ebx
mov cl, 0xfc
add dword [eax], eax
add byte [eax], al
inc ebx
jge fcn.00551f10
test edi, edi
jne 0x551fa2
mov ebx, dword [eax + 0x5f4b28]
clc
rol dword [ebx + 0x206a1fe2], cl
pop ecx
pop eax
retf 0xc033
cmp edi, 1
jne 0x551fb2
push 0x60d37a
call fcn.00556349
pop ecx
and dword [ebp - 4], 0
test edi, edi
jne 0x551fcb
popal
pushal
in al, 0x58
add byte [eax - 0x10], ch
sub byte [eax], bl
call fcn.00556667
pop ecx
pop ecx
push 0x58288e
push 0x58f064
call fcn.0055c1b6
pop ecx
pop ecx
test esi, esi
jbe 0x552057
mov byte [0xa6d082], 0xf
invalid
push dword [ebp + 8]
call fcn.0055206a
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
imul eax, edx, 0x241cda51
dec esp
push edx
add cl, cl
pop ecx
xor dword [ebp - 0x7cd28140], eax
clc
add bh, byte [esi + 0x61]
and dword [ebx + 0x48], 0x75
and ebx, ebx
inc ebp
adc byte [ebx + 0x5ddd10db], al
hlt
Function at 0x551ee0
Capabilities:
Terminate process

Disassembly:
mov ebx, dword [esi]
push ebp
mov ebp, esp
mov eax, dword [0x5f710a]
and eax, 0x1f
push 0x48
pop ecx
sub ecx, dword [ecx - 0x2c42ba75]
enter 0x533, 0x28
jno 0x551f37
mov bl, 0x5d
add ecx, dword [ebx - 0x1356aa01]
xor edx, dword [ecx]
cmp dword [ebp + 8], 0xe06d7363
invalid
call fcn.0055426a
pop ecx
adc dword [eax], 0xfffffffc
add byte [eax + 0x64d0843d], al
add dh, bl
jne 0x554be7
xor eax, eax
inc eax
mov ecx, 0x60b4ae
xchg dword [eax - 0x39], ebx
mov cl, 0xfc
add dword [eax], eax
add byte [eax], al
inc ebx
jge fcn.00551f10
test edi, edi
jne 0x551fa2
mov ebx, dword [eax + 0x5f4b28]
clc
rol dword [ebx + 0x206a1fe2], cl
pop ecx
pop eax
retf 0xc033
cmp edi, 1
jne 0x551fb2
push 0x60d37a
call fcn.00556349
pop ecx
and dword [ebp - 4], 0
test edi, edi
jne 0x551fcb
popal
pushal
in al, 0x58
add byte [eax - 0x10], ch
sub byte [eax], bl
call fcn.00556667
pop ecx
pop ecx
push 0x58288e
push 0x58f064
call fcn.0055c1b6
pop ecx
pop ecx
test esi, esi
jbe 0x552057
mov byte [0xa6d082], 0xf
invalid
push dword [ebp + 8]
call fcn.0055206a
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
imul eax, edx, 0x241cda51
dec esp
push edx
add cl, cl
pop ecx
xor dword [ebp - 0x7cd28140], eax
clc
add bh, byte [esi + 0x61]
and dword [ebx + 0x48], 0x75
and ebx, ebx
inc ebp
adc byte [ebx + 0x5ddd10db], al
hlt

Function at 0x55202a
Capabilities:
Terminate process

Disassembly:
push dword [edx - 0x5c171375]
xchg ecx, eax
add byte [edi], al
test al, al
je 0x552057
test al, 0x30
add byte [eax], al
add byte [ebx + 0x69c16827], cl
or byte [eax - 0xb], ah
jne 0x552057
push dword [ebp + 8]
call dword [0x1e9e21e4]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]

Function at 0x55ac2e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0xd75f71d1]
xor eax, ebp
mov edx, esi
cld
push esi
push 0x5c8940
push 0x5c8938
push 0x5cd658
push 0x4c
call 0xff5ea93c
add esp, 0xffffffe4
mov ebx, dword [ebx - 1]
jne 0x55ac9e
test esi, esi
je 0x55ac6d
mov ebx, dword [edi - 1]
adc eax, 0x58279c
add al, 0xeb
jmp 0x55ac73
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov edi, dword [esp + edi*8 - 0x17a132d5]
lahf
invalid
invalid
Function at 0x402040
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x40f018]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x14]
call fcn.00401b20
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00401d90
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4020ab
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x14]
call fcn.00401b80
mov eax, dword [ebp - 0x224]
jmp 0x40213c
mov dword [ebp - 4], pe_nt_image_headers32
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x402111
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00402040
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x402108
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x228], edx
lea ecx, [ebp - 0x14]
call fcn.00401b80
mov eax, dword [ebp - 0x228]
jmp 0x40213c
mov dword [ebp - 4], pe_nt_image_headers32
jmp 0x4020b2
lea ecx, [ebp - 0x14]
call fcn.00401cc0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x230]
call fcn.00401c00
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x14]
call fcn.00401b80
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0040740a
mov esp, ebp
pop ebp
ret 4
Function at 0x406650
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x40f018]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x21c], ecx
mov ecx, dword [ebp - 0x21c]
call fcn.00408620
test eax, eax
je 0x406682
mov eax, 1
jmp 0x406727
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4066a1
xor eax, eax
jmp 0x406727
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push str.RPCSS
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
push 1
push 3
push 0x10
push 0xf01ff
mov edx, dword [ebp - 0x21c]
add edx, 0x230
push edx
mov eax, dword [ebp - 0x21c]
add eax, 0x230
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40670e
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x406727
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0040740a
mov esp, ebp
pop ebp
ret

Function at 0x406740
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x2c]
call fcn.00408620
test eax, eax
jne 0x40675f
mov eax, 1
jmp 0x4067ea
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40677b
xor eax, eax
jmp 0x4067ea
push 0x10020
mov eax, dword [ebp - 0x2c]
add eax, 0x230
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4067aa
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x4067ea
lea eax, [ebp - 0x28]
push eax
push 1
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 8], 0
je 0x4067e8
mov eax, 1
jmp 0x4067ea
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40740a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40f018]
jne 0x407414
repz ret
jmp fcn.00407996
Function at 0x407dc0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x40f018]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x430], ax
push 0x208
push 0
lea ecx, [ebp - 0x42e]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
xor edx, edx
mov word [ebp - 0x218], dx
push 0x208
push 0
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x438], 0
push 0x105
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x438]
push edx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x434]
push ecx
push 0x105
lea edx, [ebp - 0x430]
push edx
push 0x40b8e8
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x407e86
push 0xa
push 0x104
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x434]
push ecx
call dword [sym.imp.MSVCR90.dll__itow_s]
add esp, 0x10
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x10
jge 0x407ea8
push str.thsnYaViMRAeBoda
push 0x104
mov eax, dword [ebp + 8]
push eax
call fcn.004062f0
cmp dword [ebp + 0xc], 0
je 0x407ec0
mov ecx, dword [ebp + 0xc]
push ecx
push 0x104
mov edx, dword [ebp + 8]
push edx
call fcn.004062f0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040740a
mov esp, ebp
pop ebp
ret
Function at 0x4080f0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x40f018]
xor eax, ebp
mov dword [ebp - 8], eax
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
call fcn.00408040
add esp, 4
lea eax, [ebp - 0x210]
push eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x408193
push 0x40be34
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004062a0
push str.Could_not_open_file_mapping_object.
push 0x104
mov edx, dword [ebp + 0xc]
add edx, 0x208
push edx
call fcn.004062a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x410], eax
xor eax, eax
jmp 0x40828e
push 0x1e78
push 0
push 0
push 4
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jne 0x408209
push 0x40bee8
push 0x104
mov eax, dword [ebp + 0xc]
push eax
call fcn.004062a0
push str.Could_not_map_view_of_file.
push 0x104
mov ecx, dword [ebp + 0xc]
add ecx, 0x208
push ecx
call fcn.004062a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x410], eax
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40828e
mov dword [ebp - 4], 0xe3c
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x218]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR90.dll_memcpy_s]
add esp, 0x10
mov edx, dword [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.ReadSharedMemory__:
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004062a0
lea edx, [ebp - 0x210]
push edx
push str.succeeded._mapping_obj_name:__s
push 0x104
mov eax, dword [ebp + 0xc]
add eax, 0x208
push eax
call dword [sym.imp.MSVCR90.dll_swprintf_s]
add esp, 0x10
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x410], 0
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040740a
mov esp, ebp
pop ebp
ret
Function at 0x408550
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x40f018]
xor eax, ebp
mov dword [ebp - 8], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp - 0x210]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push pe_nt_image_headers32
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.MSVCR90.dll_vswprintf_s]
add esp, 0x10
mov dword [ebp - 0x210], 0
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x20c], ecx
mov edx, dword [ebp + 8]
cmp dword [edx + 0x454], 0
je 0x4085f3
mov eax, dword [ebp + 8]
add eax, 0x230
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4085f1
push 0
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 1
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x408603
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.MSVCR90.dll__putws]
add esp, 4
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040740a
mov esp, ebp
pop ebp
ret

Function at 0x408710
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x40f018]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [str._unknown_]
mov dword [ebp - 0x210], eax
mov ecx, dword [0x40c1c8]
mov dword [ebp - 0x20c], ecx
mov edx, dword [0x40c1cc]
mov dword [ebp - 0x208], edx
mov eax, dword [0x40c1d0]
mov dword [ebp - 0x204], eax
mov ecx, dword [0x40c1d4]
mov dword [ebp - 0x200], ecx
push 0x1f4
push 0
lea edx, [ebp - 0x1fc]
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x408802
mov dword [ebp - 0x214], 0
lea ecx, [ebp - 0x21c]
push ecx
push 4
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4087d6
push 0x104
lea ecx, [ebp - 0x210]
push ecx
mov edx, dword [ebp - 0x218]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.PSAPI.DLL_GetModuleBaseNameW
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
je 0x408802
lea ecx, [ebp - 0x210]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x408802
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x408814
cmp dword [ebp - 4], 0
je 0x408812
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040740a
mov esp, ebp
pop ebp
ret
Function at 0x408f10
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00409da0
lea eax, [ebp - 0x1008]
push eax
push 0x1000
lea ecx, [ebp - 0x1000]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x408f40
xor al, al
jmp 0x408fc9
mov edx, dword [ebp - 0x1008]
shr edx, 2
mov dword [ebp - 0x100c], edx
mov dword [ebp - 0x1004], 0
jmp 0x408f6a
mov eax, dword [ebp - 0x1004]
add eax, 1
mov dword [ebp - 0x1004], eax
mov ecx, dword [ebp - 0x1004]
cmp ecx, dword [ebp - 0x100c]
jae 0x408fc7
mov edx, dword [ebp - 0x1004]
cmp dword [ebp + edx*4 - 0x1000], 0
je 0x408fc5
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1004]
mov edx, dword [ebp + ecx*4 - 0x1000]
push edx
call fcn.00408710
add esp, 8
movzx eax, al
test eax, eax
je 0x408fc5
cmp dword [ebp + 0xc], 0
je 0x408fc1
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x1004]
mov eax, dword [ebp + edx*4 - 0x1000]
mov dword [ecx], eax
mov al, 1
jmp 0x408fc9
jmp 0x408f5b
xor al, al
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x40f018]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [ebp + 8], 0
jne 0x409560
xor eax, eax
jmp 0x4095f7
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4095f5
mov dword [ebp - 0x258], 0
push 0x24c
push 0
lea ecx, [ebp - 0x254]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [ebp - 0x258]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4095f5
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0xc], 0xffffffff
je 0x4095ce
mov edx, dword [ebp - 0x238]
cmp edx, dword [ebp + 0xc]
je 0x4095ce
xor eax, eax
jmp 0x4095f7
mov eax, dword [ebp + 8]
push eax
call fcn.00408fd0
add esp, 4
test eax, eax
je 0x4095f5
cmp dword [ebp + 0xc], 0xffffffff
jne 0x4095ee
mov eax, dword [ebp - 0x238]
jmp 0x4095f7
mov eax, 1
jmp 0x4095f7
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040740a
mov esp, ebp
pop ebp
ret
Function at 0x224be39
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov byte [esp + 2], bl
push dword [esp + 2]
lea edi, [edi - 0x26]
mov dl, bh
jmp 0x224c505
lea edx, [edi + ebp]

Function at 0x224c51b
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dword [esp + 0x3c], ecx
call fcn.0224c336
mov al, ah
mov bx, bp
jmp 0x224c4d3
rdtsc
jmp 0x224c4e7
xor edi, 0x20650f02
shr bx, 4
je 0x224c4bd
rdtsc
jmp 0x224c55c
xchg bx, ax
mov eax, 0x11abc636
mov bh, 0xbd
bsf eax, eax
xchg dx, ax
call 0x224c51b
pop edx
fisttp word [edi + 0x2a]
fst dword [edx - 0x4e]
lodsd eax, dword [esi]
mov esp, 0x2f148d8f
mov edx, 0x17c058ae
xchg dword [esp + 8], edi
bt edx, esp
mov dl, ch
call fcn.0224beda
lea esp, [esp + 4]
sub edi, 0x4256c456
mov dx, 0x3f8b
jmp 0x224c536
bsf eax, eax
jmp 0x224c4f4
sub edx, 0x64ff2775
jbe 0x224c583
mov bx, dx
mov ebx, 0x363e01cd
jmp 0x224c568
xchg bx, ax
mov eax, 0x11abc636
mov bh, 0xbd
jmp 0x224c531
dec edi
rdtsc
mov eax, 0xc81b6998
btr ebx, edx
jge 0x224c5a3
lea ebx, [eax + 0x55]
mov ebx, esi
jmp 0x224c5a5
mov bx, dx
mov ebx, 0x363e01cd
jmp 0x224c568
lea ebx, [eax + 0x55]
mov ebx, esi
jmp 0x224c5a5
jmp 0x224c58d
xor edi, 0x90fbc8c
sub esp, 0x1a
jge 0x224c8b3
xor al, 0x5f
jmp 0x224c5d3
dec dl
pop ebx
lea esp, [esp + 2]
jmp 0x224c5fa
add edi, dword [esi]
rdtsc
lea eax, [eax + ebx]
mov dx, sp
mov ax, word [esp]
call fcn.0224cc84
pop es
scasb al, byte es:[edi]
mov ecx, 0x5bcafe98
dec dl
pop ebx
lea esp, [esp + 2]
jmp 0x224c5dc
xor al, 0x5f
jmp 0x224c5f3

Function at 0x2256493
Capabilities:
Encode data using xor

Disassembly:
and al, 4
jmp fcn.0223bd51
push cs
pushfd
sti
push ss
mov dword [0x5633a307], eax
movsd dword es:[edi], dword [esi]
lea sp, [esp + 4]
lea esp, [esp + 4]
bswap ebp
call fcn.022564c6
cmc
insb byte es:[edi], dx
loop 0x225640d
je 0x225644d
in eax, 0x79
jmp 0xdaefe019
push ebx
mov word [esp], di
mov dword [esp], ebp
jmp 0x225647d
Function at 0x2493c80
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x2493d8c
test eax, eax
je 0x2493d8c
push esi
push edi
mov ecx, 0x10
mov esi, 0x24aeff0
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0x2493d73
lea edi, [eax + 4]
jmp 0x2493cd7
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x2493cec
mov dword [ebp - 4], 2
jmp 0x2493d0d
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x2493d03
mov dword [ebp - 4], 1
jmp 0x2493d0d
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x2493d83
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0x2493d46
mov byte [ecx], 0x3d
jmp 0x2493d52
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0x2493d5d
mov byte [ecx], 0x3d
jmp 0x2493d63
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x2493cd4
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret