joyce8/EMBER2024-capa huggingface dataset:
Function at 0x485d00
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push ecx
cmp byte [esp + 8], 0
push ebx
push ebp
push esi
push edi
mov ebx, edx
mov esi, ecx
je 0x485d6b
lea eax, [esp + 0x10]
push eax
push 0x1f4
push 2
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x485d78
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x485d78
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
test edi, edi
je 0x485d78
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x485d78
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
xor edi, edi
test ebx, ebx
cmovns edi, ebx
test edi, edi
je 0x485dd1
mov ebx, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call ebx
mov edx, 1
mov dword [esp + 0x18], eax
mov ecx, 0x8000012f
call fcn.004015e0
mov ebp, dword [sym.imp.USER32.dll_IsWindow]
push esi
call ebp
test eax, eax
je 0x485dd1
add edi, dword [esp + 0x18]
nop
call ebx
mov ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x485dd1
mov edx, 1
mov ecx, 0x8000012f
call fcn.004015e0
push esi
call ebp
test eax, eax
jne 0x485db0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x487350
Capabilities:
Get graphical window text

Disassembly:
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x64]
test ecx, ecx
je 0x4873f3
mov eax, dword [esi]
test eax, eax
je 0x4873f3
push edi
test al, 1
jne 0x487377
mov eax, dword [esi + 0x1c]
cmp word [eax], 0
je 0x48738e
push 0x7fff
lea edi, [esi + 0x6c]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x48738e
mov word [edi], ax
test byte [esi], 4
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
je 0x4873a2
lea eax, [esi + 0x68]
push eax
push dword [esi + 0x64]
call edi
test byte [esi], 0x20
je 0x4873d8
lea eax, [esp + 8]
push eax
push dword [esi + 0x64]
call edi
test eax, eax
je 0x4873d8
movzx eax, byte [esi + 0x3c]
lea edx, [esi + 0x1026c]
push eax
push ecx
mov ecx, dword [esp + 0x10]
call fcn.0042905a
add esp, 8
test eax, eax
jne 0x4873d8
mov word [esi + 0x1026c], ax
test byte [esi], 8
pop edi
je 0x4873f3
push 0x101
lea eax, [esi + 0x1006a]
push eax
push dword [esi + 0x64]
call dword [sym.imp.USER32.dll_GetClassNameW]
pop esi
pop ecx
ret

Function at 0x487830
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [0x4e7ef4], 0
mov eax, dword [0x4e37f8]
mov byte [eax + 0x53], 1
je 0x4878e8
push ebx
mov bl, byte [0x4e8005]
mov al, bl
and al, 0xc0
movzx ecx, al
neg ecx
push esi
sbb ecx, ecx
and ecx, 8
mov edx, ecx
or edx, 1
test bl, 0xc
cmove edx, ecx
mov ecx, edx
or ecx, 4
test bl, 0x30
cmove ecx, edx
mov esi, ecx
or esi, 2
test bl, 3
cmove esi, ecx
mov edx, esi
mov ecx, esi
and dl, 2
neg dl
sbb dl, dl
and dl, 3
mov al, dl
or al, 0x30
and cl, 4
movzx ebx, al
movzx eax, dl
cmove ebx, eax
or bl, 0xcc
not bl
and bl, byte [0x4e7eff]
je 0x4878e6
cmp esi, 8
jne 0x4878cf
movzx eax, word [0x4e3d74]
lea ecx, [esi - 6]
mov dl, byte [0x4e38be]
push 0xffc3d44d
push 0
push 0
push eax
call fcn.00419a70
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
xor cl, cl
call fcn.0041bac0
add esp, 0x10
pop esi
pop ebx
push 0x4bf
call dword [sym.imp.USER32.dll_GetQueueStatus]
shr eax, 0x10
test eax, eax
je 0x487907
mov edx, 1
or ecx, 0xffffffff
jmp fcn.004015e0
ret
Function at 0x487c70
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b6cb0
push eax
mov eax, 0x1047c
mov dword fs:[0], esp
call fcn.004b5610
xorps xmm0, xmm0
mov dword [ebp - 0x10488], 0
mov dword [ebp - 0x10480], 0
mov dword [ebp - 0x1047c], 0
mov dword [ebp - 0x1046c], 0x4cdea8
mov byte [ebp - 0x1044b], 0
movups xmmword [ebp - 0x10448], xmm0
mov dword [ebp - 0x10438], 0
mov dword [ebp - 0x10428], 0
mov dword [ebp - 0x10424], 0
mov dword [ebp - 4], 0
mov eax, dword [ecx + 8]
mov dword [ebp - 0x10434], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10430], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1042c], eax
lea eax, [ebp - 0x10488]
push eax
push 0x488440
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [ebp - 0x10444], 0
je 0x487d3d
mov eax, dword [0x4e37f8]
mov ecx, dword [eax + 0x64]
cmp ecx, 0xffffffff
jle 0x487d3d
mov edx, 1
call fcn.004015e0
push dword [ebp - 0x10480]
call fcn.0049ee02
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x487d60
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b6860
push eax
mov eax, 0x10478
mov dword fs:[0], esp
call fcn.004b5610
push edi
mov edi, ecx
cmp dword [edi + 8], 0
jne 0x487d9e
xor eax, eax
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov byte [edi], 1
cmp dword [0x4e8e98], edi
je 0x487db9
mov dword [0x4e8e98], edi
mov dword [0x4e8ea0], 0
cmp dword [0x4e8e9c], 0
jne 0x487dd9
mov ecx, 0x7d0
call fcn.0047e400
test eax, eax
je 0x487fd7
mov dword [0x4e8e9c], eax
push ebx
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, dword [0x4e37f8]
mov esi, eax
add ecx, 0x58
push ecx
push esi
mov ecx, edi
call fcn.00488220
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x487e06
xor ecx, ecx
mov dword [0x4e8ea0], ecx
jmp 0x487e0c
mov ecx, dword [0x4e8ea0]
mov dword [ebp - 0x1047c], 0
mov dword [ebp - 0x10478], 0
mov dword [ebp - 0x10444], 0
mov dword [ebp - 0x10440], 0
mov dword [ebp - 0x1043c], 0
mov dword [ebp - 0x10430], 0
mov dword [ebp - 0x10424], 0
mov dword [ebp - 0x10420], 0
cmp byte [ebp + 8], 0
mov dword [ebp - 4], 0
je 0x487e74
mov byte [ebp - 0x10447], 0
test eax, eax
je 0x487e7b
mov byte [ebp - 0x10447], 1
mov eax, dword [0x4e37f8]
mov edx, dword [0x4e8e9c]
mov dword [ebp - 0x10438], edx
mov dword [ebp - 0x10434], ecx
mov dword [ebp - 0x10468], 0x4cdea8
mov dword [ebp - 0x10464], 0
mov dword [ebp - 0x10460], 0x4cdea8
mov dword [ebp - 0x1045c], 0x4cdea8
test eax, eax
je 0x487ec9
add eax, 0x58
mov dword [ebp - 0x10480], eax
jmp 0x487ed3
mov dword [ebp - 0x10480], 0
test ecx, ecx
mov dword [ebp - 0x10450], edi
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x10484], 0x10
setg bl
nop dword [eax + eax]
test edi, edi
je 0x487f1c
xor eax, eax
test ecx, ecx
jle 0x487f0a
nop word [eax + eax]
cmp dword [edx + eax*4], esi
je 0x487f1c
inc eax
cmp eax, ecx
jl 0x487f00
cmp ecx, 0x1f4
jge 0x487f1c
mov dword [edx + ecx*4], esi
inc ecx
mov dword [0x4e8ea0], ecx
lea eax, [ebp - 0x10484]
mov dword [ebp - 0x10434], ecx
push eax
push 0x486420
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [ebp - 0x10440]
test ecx, ecx
jne 0x487f56
test bl, bl
je 0x487f52
mov edx, dword [0x4e8e9c]
xor bl, bl
mov dword [0x4e8ea0], ecx
jmp 0x487ef0
xor esi, esi
jmp 0x487fb4
xor dl, dl
call fcn.004859a0
mov ecx, dword [0x4e8ea0]
xor eax, eax
mov esi, dword [ebp - 0x10440]
mov edx, dword [0x4e8e9c]
test ecx, ecx
jle 0x487f7f
cmp dword [edx + eax*4], esi
je 0x487f97
inc eax
cmp eax, ecx
jl 0x487f75
cmp ecx, 0x1f4
jge 0x487f97
mov dword [edx + ecx*4], esi
inc ecx
mov esi, dword [ebp - 0x10440]
mov dword [0x4e8ea0], ecx
mov eax, dword [0x4e37f8]
mov ecx, dword [eax + 0x64]
cmp ecx, 0xffffffff
jle 0x487fb4
mov edx, 1
call fcn.004015e0
mov esi, dword [ebp - 0x10440]
push dword [ebp - 0x1047c]
call fcn.0049ee02
mov ecx, dword [ebp - 0xc]
add esp, 4
mov eax, esi
mov dword fs:[0], ecx
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
call fcn.0040dba0
int3
Function at 0x487fe0
Capabilities:
Enumerate gui resources
Find taskbar

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b6840
push eax
mov eax, 0x10474
mov dword fs:[0], esp
call fcn.004b5610
push esi
mov esi, ecx
push edi
mov byte [esi], 0
cmp dword [0x4e8e98], esi
je 0x488021
mov dword [0x4e8e98], esi
mov dword [0x4e8ea0], 0
cmp dword [0x4e8e9c], 0
jne 0x488041
mov ecx, 0x7d0
call fcn.0047e400
test eax, eax
je 0x48820c
mov dword [0x4e8e9c], eax
push ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
push 4
push edi
call ebx
test eax, eax
je 0x48806b
nop dword [eax]
push 4
push eax
mov edi, eax
call ebx
test eax, eax
jne 0x488060
mov eax, dword [0x4e37f8]
mov ecx, esi
add eax, 0x58
push eax
push edi
call fcn.00488220
pop ebx
test eax, eax
je 0x48808b
xor ecx, ecx
mov dword [0x4e8ea0], ecx
jmp 0x488091
mov ecx, dword [0x4e8ea0]
mov dword [ebp - 0x10480], 0
mov dword [ebp - 0x10478], 0
mov dword [ebp - 0x10474], 0
mov dword [ebp - 0x10464], 0x4cdea8
mov dword [ebp - 0x10440], 0
mov dword [ebp - 0x1043c], 0
mov dword [ebp - 0x10438], 0
mov dword [ebp - 0x10420], 0
mov dword [ebp - 0x1041c], 0
cmp byte [ebp + 8], 0
mov dword [ebp - 4], 0
je 0x488103
mov byte [ebp - 0x10443], 0
test ecx, ecx
je 0x48810a
mov byte [ebp - 0x10443], 1
mov eax, dword [0x4e8e9c]
mov dword [ebp - 0x10434], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x1042c], eax
lea eax, [ebp - 0x10480]
push eax
push 0x488330
mov dword [ebp - 0x10430], ecx
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 0x1043c]
test eax, eax
je 0x48819d
push eax
call dword [sym.imp.USER32.dll_GetLastActivePopup]
xor dl, dl
mov ecx, eax
call fcn.004859a0
mov ecx, dword [0x4e8ea0]
xor eax, eax
mov edx, dword [ebp - 0x1043c]
mov esi, dword [0x4e8e9c]
test ecx, ecx
jle 0x488172
cmp dword [esi + eax*4], edx
je 0x488184
inc eax
cmp eax, ecx
jl 0x488168
cmp ecx, 0x1f4
jge 0x488184
mov dword [esi + ecx*4], edx
inc ecx
mov dword [0x4e8ea0], ecx
mov eax, dword [0x4e37f8]
mov ecx, dword [eax + 0x64]
cmp ecx, 0xffffffff
jle 0x4881ec
mov edx, 1
call fcn.004015e0
jmp 0x4881ec
mov eax, dword [0x4e8ea0]
test eax, eax
je 0x4881d6
cmp eax, 1
mov dword [0x4e8ea0], 0
setg al
test al, al
je 0x4881ec
mov eax, dword [0x4e8e9c]
mov ecx, esi
push 0
mov dword [0x4e8ea0], 1
mov dword [eax], edi
call fcn.00487fe0
jmp 0x4881ec
push 0
push 0x4d49c8
call dword [sym.imp.USER32.dll_FindWindowW]
xor dl, dl
mov ecx, eax
call fcn.004859a0
push dword [ebp - 0x10478]
call fcn.0049ee02
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.0040dba0
int3
Function at 0x49bd59
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
je 0x49bd98
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x49bd98
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x49bd98
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x49bd98
cmp dword [ecx + 0x74], 0xe
jbe 0x49bd98
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4ada3f
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4e1040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4ada8a
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004adbda
test al, al
jne 0x4ada84
sub edx, 2
cmp edx, edi
jne 0x4ada6a
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4adaac
lea eax, [edi + 2]
cmp edx, eax
je 0x4adaac
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004ad98b
add esp, 0x10
jmp 0x4adba6
push esi
lea ecx, [ebp - 0x255]
call fcn.004adbda
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4adaef
push dword [ebp - 0x25c]
jmp 0x4ada9c
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4adb2c
cmp word [ebp - 0x226], 0
je 0x4adb4d
cmp word [ebp - 0x226], ax
jne 0x4adb2c
cmp word [ebp - 0x224], 0
je 0x4adb4d
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004ad98b
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4adb99
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4adb06
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4adb81
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor eax, eax
jmp 0x4adba6
push 0x4ad7bb
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004a8ff0
add esp, 0x10
jmp 0x4adb76
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049bfb3
leave
ret

Function at 0x4ae8e0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4ba80c
push 0x4ba804
push 0x4b8430
push 0x1f
call fcn.004ae81b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4ae914
push dword [ebp + 8]
mov ecx, esi
call dword [0x4b77ac]
call esi
jmp 0x4ae91a
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x4ae95e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4ba81c
push 0x4ba814
push 0x4b8454
push 0x21
call fcn.004ae81b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4ae995
push dword [ebp + 8]
mov ecx, esi
call dword [0x4b77ac]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.DLL_TlsGetValue]

Function at 0x4ae99d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4ba824
push 0x4ba81c
push 0x4b8468
push 0x22
call fcn.004ae81b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4ae9d7
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4b77ac]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.DLL_TlsSetValue]
Function at 0x4b51c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4b51ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4b51ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x5043700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0504378f
jae 0x504370e
xor ecx, ecx
call fcn.0504378f
jae 0x504373d
xor eax, eax
call fcn.0504378f
jae 0x504374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0504378f
adc al, al
jae 0x504372f
jne 0x5043779
stosb byte es:[edi], al
jmp 0x5043711
call fcn.0504379b
sub ecx, ebx
jne 0x5043756
call fcn.05043799
jmp 0x5043775
lodsb al, byte [esi]
shr eax, 1
je 0x5043783
adc ecx, ecx
jmp 0x5043772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.05043799
cmp eax, 0x7d00
jae 0x5043772
cmp ah, 5
jae 0x5043773
cmp eax, 0x7f
ja 0x5043774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5043711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8

Function at 0x5063700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0506378f
jae 0x506370e
xor ecx, ecx
call fcn.0506378f
jae 0x506373d
xor eax, eax
call fcn.0506378f
jae 0x506374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0506378f
adc al, al
jae 0x506372f
jne 0x5063779
stosb byte es:[edi], al
jmp 0x5063711
call fcn.0506379b
sub ecx, ebx
jne 0x5063756
call fcn.05063799
jmp 0x5063775
lodsb al, byte [esi]
shr eax, 1
je 0x5063783
adc ecx, ecx
jmp 0x5063772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.05063799
cmp eax, 0x7d00
jae 0x5063772
cmp ah, 5
jae 0x5063773
cmp eax, 0x7f
ja 0x5063774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5063711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x40b17d
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x40b230
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 0x413f2a
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004140da
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x414028
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x413fcb
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x41400e
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x413fe2
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x413ffd
test al, 0x40
je 0x413ff4
mov ecx, dword [edi + 0x20]
jmp 0x413ffb
test al, 0x80
je 0x41400e
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x41400e
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x413f9a
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x4658d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x87de50]
xor edx, edx
cmp eax, edx
jne 0x4658f6
xor eax, eax
mov byte [eax + 0x87dd50], al
inc eax
cmp eax, 0x100
jl 0x4658de
mov dword [0x87de50], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x87dd50
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x465987
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 0x46595a
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 0x465928
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x465a00
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 0x465a53
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 0x465a3a
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 0x46cec0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x46d058
cmp ebp, ebx
jle 0x46d058
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x46cf1e
dec eax
or eax, 0xfffffff8
inc eax
je 0x46cf25
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x46cf34
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x46cf3b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.004ef54b
add esp, 4
cmp eax, ebx
je 0x46cf5c
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.004ef54b
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x46d04e
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x46d035
mov al, byte [edx]
cmp al, 0xc0
jbe 0x46d021
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x46d016
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x46d024
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x46d024
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x46cfc0
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x46cfb1
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret