joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100739d
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1001898
call fcn.01007568
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.kernel32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x10073da
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10073da
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10073f2
cmp eax, 0x20b
je 0x10073df
mov dword [ebp - 0x1c], ebx
jmp 0x1007406
cmp dword [ecx + 0x84], 0xe
jbe 0x10073da
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x1007400
cmp dword [ecx + 0x74], 0xe
jbe 0x10073da
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100ab9c], 0xffffffff
or dword [0x100aba0], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1009ab8]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1009ab4]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100aba4], eax
call fcn.010075f4
cmp dword [0x1009608], ebx
jne 0x1007461
push fcn.010075f4
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010075dd
push 0x1009010
push 0x100900c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1009ab0]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1009aac]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x1009008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x10074f7
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x10074cb
cmp al, 0x22
jne 0x10074bd
cmp byte [esi], 0x22
jne 0x10074d4
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x10074de
cmp al, 0x20
jbe 0x10074d0
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x1007502
movzx eax, word [ebp - 0x50]
jmp 0x1007505
cmp byte [esi], 0x20
jbe 0x10074d4
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10074f7
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1007522
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1007557
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010075a3
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x40288e
pop dword [ebp - 0xc]
mov eax, 0x7de8bfcf
sub eax, 0x7da89741
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xa05ed42c
add dword [ebp - 0x1c], 0xadf3711f
mov dword [ebp - 0x18], 0x49a195f0
add dword [ebp - 0x18], 0xe891b655
mov dword [ebp - 0x14], 0x5bf45065
sub dword [ebp - 0x14], 0xfa80c37
mov dword [ebp - 0x10], 0x70d5551f
sub dword [ebp - 0x10], 0x70d5551f
lea eax, [ebp - 0x1c]
push eax
mov eax, 0xfc255038
sub eax, 0xfbe4cfac
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xecdd3c82
add dword [ebp - 0x1c], 0x87952cd4
mov dword [ebp - 0x18], 0x43360ba
sub dword [ebp - 0x18], 0xc2c6ff45
mov dword [ebp - 0x14], 0x565a2dd0
sub dword [ebp - 0x14], 0xf2eac164
mov dword [ebp - 0x10], 0x68f4238f
add dword [ebp - 0x10], 0x970bdc71
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x395ba
push 0
call eax
mov ecx, 0xa8ef010c
add ecx, 0x57115200
mov edx, eax
mov ebx, 0x411000
add ebx, dword [ebp - 0xc]
mov esi, 0xf4a73be3
add dword [ebp - 4], 0x88f9a667
mov edi, dword [ebx]
xor dword [ebp - 4], 0x9718a2cb
sub edi, esi
sub dword [ebp - 4], ebx
mov dword [edx], edi
sub dword [ebp - 4], ecx
add edx, 0xd04853dd
add edx, 0x2fb7ac27
add ebx, 4
loop 0x40299f
add eax, 0x13f03
xor ebx, ebx
add ebx, eax
add eax, 0x339c215
sub eax, 0x339c210
mov ecx, 0xd4b72dbf
sub ecx, 0xd4772dbf
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x401069
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x481030]
jne 0x401073
repz ret
jmp fcn.00401b61

Function at 0x40856b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040255c
and dword [ebp - 4], 0
cmp dword [0x4838b4], 0
mov ebx, eax
jne 0x40861c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4086cd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4086cd
push eax
call fcn.004024ea
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4838b4], eax
call esi
push eax
call fcn.004024ea
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4838b8], eax
call esi
push eax
call fcn.004024ea
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4838bc], eax
call esi
push eax
call fcn.004024ea
pop ecx
mov dword [0x4838c4], eax
test eax, eax
je 0x40861c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004024ea
pop ecx
mov dword [0x4838c0], eax
mov eax, dword [0x4838c0]
cmp eax, ebx
je 0x408674
cmp dword [0x4838c4], ebx
je 0x408674
push eax
call fcn.00402565
push dword [0x4838c4]
mov esi, eax
call fcn.00402565
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408674
test edi, edi
je 0x408674
call esi
test eax, eax
je 0x40866b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40866b
test byte [ebp - 0xc], 1
jne 0x408674
or dword [ebp + 0x10], 0x200000
jmp 0x4086ad
mov eax, dword [0x4838b8]
cmp eax, ebx
je 0x4086ad
push eax
call fcn.00402565
pop ecx
test eax, eax
je 0x4086ad
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4086ad
mov eax, dword [0x4838bc]
cmp eax, ebx
je 0x4086ad
push eax
call fcn.00402565
pop ecx
test eax, eax
je 0x4086ad
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4838b4]
call fcn.00402565
pop ecx
test eax, eax
je 0x4086cd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4086cf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40ae80
Capabilities:
Set console window title

Disassembly:
mov eax, dword [0x2c61264]
sub esp, 0x1c
push ebx
mov ebx, dword [0x2c60f88]
push esi
mov esi, dword [0x481f70]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40aeb0
push str.zisodeyosebofoxojeken
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x2c61264]
mov dword [0x483a14], esi
cmp eax, 0x114e
jne 0x40aeda
lea eax, [esp + 0xc]
push eax
push str.reneceligomezimogag
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov eax, dword [0x2c61264]
cmp eax, 0x2f
jne 0x40aef7
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
push ebx
call fcn.0040ad70
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x405d43
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x405d52
pop dword [ebp - 0x50]
mov eax, 0x8fc8eb99
add eax, 0x707771b9
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x17c4819b
add dword [ebp - 0x60], 0x368dc3b0
mov dword [ebp - 0x5c], 0x95f19aba
add dword [ebp - 0x5c], 0x9c41b18b
mov dword [ebp - 0x58], 0x21457d7c
add dword [ebp - 0x58], 0x2b06c6b2
mov dword [ebp - 0x54], 0xb50ce37e
add dword [ebp - 0x54], 0x4af31c82
lea eax, [ebp - 0x60]
push eax
mov eax, 0xc7d17091
sub eax, 0xc790ff4d
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0xbf622705
sub dword [ebp - 0x60], 0x4aefbdaf
mov dword [ebp - 0x5c], 0xc7b36e63
sub dword [ebp - 0x5c], 0x86470cee
mov dword [ebp - 0x58], 0xc2496de3
sub dword [ebp - 0x58], 0x5eda0177
mov dword [ebp - 0x54], 0x563e93f
sub dword [ebp - 0x54], 0x563e93f
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x32c85
push 0
call eax
mov ecx, 0x3757
xor ebx, ebx
add ebx, eax
mov esi, 0x948cc5c5
sub esi, 0x944965c5
add esi, dword [ebp - 0x50]
mov edx, 0x2b2aed1e
sub edx, 0x2c9a3a0b
mov edi, dword [esi]
mov dword [ebp - 0x10], 0xc2017b43
xor edi, edx
mov dword [ebx], edi
sub dword [ebp - 0x28], eax
add ebx, 0x269413cf
sub ebx, 0x269413cb
add esi, 4
loop 0x405e6b
add eax, 0xd02f
xor ebx, ebx
add ebx, eax
add eax, 0x411586a
add eax, 0xfbeea79b
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x406120
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422af4], 0
push esi
jne 0x406157
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406131
mov dword [ecx*4 + 0x422af0], eax
inc ecx
cmp ecx, 0x100
jl 0x40612c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406188
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422af0]
xor eax, esi
inc ecx
dec edx
jne 0x40616a
pop edi
not eax
pop esi
ret 0xc
Function at 0x40a5d9
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jge 0x40a602
mov eax, 0xfffffffd
jmp 0x40a7a3
mov ebx, dword [0x12d0cd8]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0
je 0x40a771
mov ebx, dword [0x12d0cd8]
add ebx, 4
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0xa
jne 0x40a651
mov ebx, dword [0x12d0cd8]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 0
jne 0x40a651
mov eax, 1
jmp 0x40a656
mov eax, 0
test eax, eax
je 0x40a686
call fcn.0040a7a9
mov dword [ebp - 4], eax
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x40a673
mov eax, dword [ebp + 8]
call dword [ebp - 4]
nop
nop
leave
ret 4
mov ebx, dword [0x12d0cd8]
add ebx, 4
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 6
jne 0x40a6bd
mov ebx, dword [0x12d0cd8]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 2
jne 0x40a6bd
mov eax, 1
jmp 0x40a6c2
mov eax, 0
test eax, eax
jne 0x40a712
mov ebx, dword [0x12d0cd8]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
cmp dword [ebx], 6
jne 0x40a701
mov ebx, dword [0x12d0cd8]
add ebx, 8
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
cmp dword [ebx], 3
jne 0x40a701
mov eax, 1
jmp 0x40a706
mov eax, 0
test eax, eax
jne 0x40a712
xor eax, eax
jmp 0x40a717
mov eax, 1
test eax, eax
je 0x40a743
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x40a72c
mov eax, dword [ebp + 8]
call dword fs:[0xc0]
nop
nop
leave
ret 4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x12d0cd8]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0
jne 0x40a799
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x40a7a3
mov esp, ebp
pop ebp
ret 4

Function at 0x40b580
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.0040b5e2
test eax, eax
je 0x40b5c3
xor eax, eax
xchg dword [ebp + 8], eax
cmp eax, 0xffff
jle 0x40b5c3
cmp word [eax], 0x5a4d
jne 0x40b5c3
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x40b5c3
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.0040b6b4
mov eax, dword [ebp + 8]
jmp 0x40b5dc
mov esp, ebp
pop ebp
ret 4

Function at 0x40b5e2
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x40b695
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]
Function at 0x4b30b1
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x4b30e9
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x4b30d7
mov al, 1
jmp 0x4b3133
cmp dword [ebx + 0x54], ecx
jne 0x4b30e0
mov al, 2
jmp 0x4b3133
cmp dword [ebx + 0x7c], ecx
jne 0x4b3133
mov al, 3
jmp 0x4b3133
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x4b30fe
mov al, 4
jmp 0x4b3133
cmp ecx, 5
jne 0x4b311e
cmp ebx, 0
jne 0x4b310c
mov al, 5
jmp 0x4b3133
cmp ebx, 1
jne 0x4b3115
mov al, 6
jmp 0x4b3133
cmp ebx, 2
jne 0x4b311e
mov al, 7
jmp 0x4b3133
cmp ecx, 6
jne 0x4b312a
cmp ebx, 0
jne 0x4b312c
mov al, 8
jmp 0x4b3133
cmp ebx, 1
jne 0x4b3133
mov al, 9
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e1213
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
mov eax, 0x564d5868
mov ebx, 0
mov ecx, 0xa
mov edx, 0x5658
in eax, dx
cmp ebx, 0x564d5868
sete byte [ebp - 4]
mov eax, dword [ebp - 4]
jmp 0x4e124a
mov esp, ebp
pop ebp
ret

Function at 0x50de5b
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x50df0e
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]
Function at 0x512bf9
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.0050de5b
test eax, eax
je 0x512c3c
xor eax, eax
xchg dword [ebp + 8], eax
cmp eax, 0xffff
jle 0x512c3c
cmp word [eax], 0x5a4d
jne 0x512c3c
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x512c3c
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.00512c5b
mov eax, dword [ebp + 8]
jmp 0x512c55
mov esp, ebp
pop ebp
ret 4

Function at 0x512e11
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jge 0x512e3a
mov eax, 0xfffffffd
jmp 0x512fdb
mov ebx, dword [0x12d1150]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0
je 0x512fa9
mov ebx, dword [0x12d1150]
add ebx, 4
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0xa
jne 0x512e89
mov ebx, dword [0x12d1150]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 0
jne 0x512e89
mov eax, 1
jmp 0x512e8e
mov eax, 0
test eax, eax
je 0x512ebe
call fcn.00512fe1
mov dword [ebp - 4], eax
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x512eab
mov eax, dword [ebp + 8]
call dword [ebp - 4]
nop
nop
leave
ret 4
mov ebx, dword [0x12d1150]
add ebx, 4
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 6
jne 0x512ef5
mov ebx, dword [0x12d1150]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 2
jne 0x512ef5
mov eax, 1
jmp 0x512efa
mov eax, 0
test eax, eax
jne 0x512f4a
mov ebx, dword [0x12d1150]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
cmp dword [ebx], 6
jne 0x512f39
mov ebx, dword [0x12d1150]
add ebx, 8
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
cmp dword [ebx], 3
jne 0x512f39
mov eax, 1
jmp 0x512f3e
mov eax, 0
test eax, eax
jne 0x512f4a
xor eax, eax
jmp 0x512f4f
mov eax, 1
test eax, eax
je 0x512f7b
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x512f64
mov eax, dword [ebp + 8]
call dword fs:[0xc0]
nop
nop
leave
ret 4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x12d1150]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0
jne 0x512fd1
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x512fdb
mov esp, ebp
pop ebp
ret 4
Function at 0x547450
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x12dd8d0]
xor edx, edx
cmp eax, edx
jne 0x547476
xor eax, eax
mov byte [eax + 0x12dd7d0], al
inc eax
cmp eax, 0x100
jl 0x54745e
mov dword [0x12dd8d0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x12dd7d0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x547507
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x5474da
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x5474a8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x547580
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x5475d3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x5475ba
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x54be90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x78]
push ebx
push esi
cmp eax, 1
push edi
mov dword [esp + 0x14], ecx
jl 0x54c0b1
cmp eax, 8
jg 0x54c0b1
cmp dword [esp + 0x8c], 2
jl 0x54c0b1
mov eax, dword [esp + 0x7c]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x6c], ecx
sub ecx, esi
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x7c], ecx
test ecx, ecx
mov dword [esp + 0x70], ebx
jle 0x54c0b1
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x54c0b1
mov eax, dword [esp + 0x80]
test eax, eax
je 0x54bf17
mov edx, dword [eax]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x4c], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], eax
xor edx, edx
push ebp
test ebx, ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], edx
jle 0x54c09a
mov ebp, dword [0x6296f8]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x54bf49
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x54c081
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x54bf69
mov ecx, 0x32
lea ebx, [ecx + eax]
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push edx
lea edx, [esp + 0x34]
push eax
push edx
call dword [0x6296e4]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x54bfa8
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [0x6296ec]
lea ecx, [esp + 0x28]
push ecx
call dword [0x62972c]
test eax, eax
jne 0x54c068
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
mov eax, edi
mov ecx, esi
mov dword [esp + 0x44], edx
neg eax
neg ecx
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call ebp
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x94]
sub ecx, edi
sub eax, esi
push edx
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x9c]
push eax
call fcn.0054b4a0
cmp eax, 1
jne 0x54c092
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.0054bd50
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x54bf5d
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x54c09a
jmp 0x54bf34
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.0054b0a0
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x68
ret 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x68
ret 0x1c