joyce8/EMBER2024-capa huggingface dataset:
Function at 0x301b8799
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
push edi
or edi, 0xffffffff
test eax, eax
je 0x301b87d5
add eax, 0xfffffff8
je 0x301b87d5
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x301b87bb
add ecx, 0xfffffff8
jmp 0x301b87bd
xor ecx, ecx
mov eax, dword [eax + 0x28]
cmp eax, edi
jae 0x301b87ca
test eax, eax
mov edi, eax
je 0x301b87d0
test ecx, ecx
mov eax, ecx
jne 0x301b87af
cmp edi, 0xa
jbe 0x301b8818
push dword [0x3026b738]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esi + 0x20]
lea edx, [ecx - 8]
neg ecx
sbb ecx, ecx
and ecx, edx
je 0x301b8818
mov edx, dword [ecx + 8]
test edx, edx
je 0x301b87fb
add edx, 0xfffffff8
jmp 0x301b87fd
xor edx, edx
cmp dword [ecx + 0x10], eax
jne 0x301b8812
mov ecx, dword [ecx + 0x40]
sub ecx, dword [ebp + 8]
jns 0x301b880c
xor ecx, ecx
cmp ecx, edi
jae 0x301b8812
mov edi, ecx
test edx, edx
mov ecx, edx
jne 0x301b87ef
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x301b91c8
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, ecx
mov eax, dword [edi]
test eax, eax
je 0x301b91dc
mov ebx, dword [eax - 4]
jmp 0x301b91de
xor ebx, ebx
mov ecx, dword [ebp + 8]
test ecx, ecx
jl 0x301b9299
cmp ecx, ebx
jge 0x301b9299
dec ebx
test ebx, ebx
push esi
mov dword [ebp + 8], ebx
jle 0x301b9269
cmp ecx, ebx
jge 0x301b9216
mov edx, ebx
sub edx, ecx
lea eax, [eax + ecx*4]
shl edx, 2
push edx
lea ecx, [eax + 4]
push ecx
push eax
call sub.MSVCR80.dll_memmove
add esp, 0xc
push dword [0x30262eb8]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call esi
test eax, eax
je 0x301b9262
push dword [0x30262eb8]
call esi
mov esi, dword [edi]
push 0
push 0xffffffffffffffff
push 0
mov dword [ebp - 4], eax
mov eax, dword [eax]
push 4
push ebx
sub esi, 4
mov dword [ebp - 8], eax
call fcn.301939da
mov ecx, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push esi
call dword [eax + 8]
test eax, eax
mov ebx, dword [ebp + 8]
je 0x301b9262
add eax, 4
mov dword [edi], eax
mov eax, dword [edi]
mov dword [eax - 4], ebx
jmp 0x301b9293
push dword [0x30262eb8]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call esi
test eax, eax
je 0x301b9290
push dword [0x30262eb8]
call esi
mov ecx, dword [edi]
mov edx, dword [eax]
sub ecx, 4
push ecx
mov ecx, eax
call dword [edx + 0x10]
and dword [edi], 0
xor eax, eax
inc eax
pop esi
jmp 0x301b929b
xor eax, eax
pop edi
pop ebx
leave
ret 4

Function at 0x301b92d1
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x30262eb8]
mov edi, ecx
call esi
test eax, eax
je 0x301b932c
push dword [0x30262eb8]
call esi
mov esi, eax
mov eax, dword [edi]
xor ecx, ecx
cmp eax, ecx
je 0x301b9305
add eax, 0xfffffffc
mov dword [ebp - 4], eax
jmp 0x301b9308
mov dword [ebp - 4], ecx
push ebx
mov ebx, dword [esi]
push ecx
push 0xffffffffffffffff
push ecx
push 4
push dword [ebp + 8]
call fcn.301939da
push eax
push dword [ebp - 4]
mov ecx, esi
call dword [ebx + 8]
test eax, eax
pop ebx
je 0x301b9337
add eax, 4
mov dword [edi], eax
mov eax, dword [edi]
mov ecx, dword [ebp + 8]
mov dword [eax - 4], ecx
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 8

Function at 0x301b9837
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x10]
jmp 0x301b986e
cmp esi, dword [edi + 0xc]
mov eax, 0x1000
jne 0x301b9855
mov eax, dword [edi + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [esi]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x301b987a
mov esi, dword [esi + 4]
test esi, esi
jne 0x301b9848
xor eax, eax
pop edi
pop esi
leave
ret 4
mov eax, 0x80004005
jmp 0x301b9874
Function at 0x301c7b7a
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
call fcn.301ac10c
test eax, eax
jne 0x301c7b90
mov eax, 0x80004005
jmp 0x301c7c88
push esi
push edi
mov edi, 0x3027f838
push edi
call dword [0x3026ac48]
mov esi, eax
test esi, esi
jne 0x301c7bdd
push 0x40
mov eax, 0x1000
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x301c7c7a
push ebx
lea ebx, [esi + 0xfc0]
push esi
push edi
call dword [0x3026ac4c]
add esi, 0x24
cmp esi, ebx
jb 0x301c7bc5
test esi, esi
pop ebx
je 0x301c7c7a
mov eax, 0x301c7a6b
sub eax, esi
push 0xd
sub eax, 0xd
push esi
mov dword [esi], 0x42444c7
mov dword [esi + 4], esi
mov byte [esi + 8], 0xe9
mov dword [esi + 9], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x14], eax
mov byte [esi + 0x20], 0
mov byte [esi + 0x21], 1
mov byte [esi + 0x22], 0
cmp dword [0x3027f840], 0
jne 0x301c7c5a
push 0x300d1ccc
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
test eax, eax
mov dword [0x3027f840], eax
jne 0x301c7c5a
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jg 0x301c7c4c
call edi
jmp 0x301c7c5c
call edi
and eax, 0xffff
or eax, 0x80070000
jmp 0x301c7c5c
xor eax, eax
test eax, eax
jl 0x301c7c86
mov eax, dword [ebp + 8]
push esi
push 0xfffffffffffffffc
push eax
mov dword [esi + 0x18], eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
test eax, eax
jne 0x301c7c81
push esi
call fcn.301c79ee
mov eax, 0x8007000e
jmp 0x301c7c86
mov dword [esi + 0x1c], eax
xor eax, eax
pop edi
pop esi
xor ecx, ecx
test eax, eax
setge cl
mov eax, ecx
pop ebp
ret 0xc

Function at 0x301ebf06
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
cmp edi, dword [esi + 0x18]
jle 0x301ebf4f
push dword [0x30262eb8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 1
push 0xffffffffffffffff
push 0
push edi
push 1
mov ebx, eax
call fcn.301939da
push eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
test eax, eax
jne 0x301ebf42
xor eax, eax
jmp 0x301ebfa6
mov ecx, dword [esi + 0xc]
mov dword [eax], ecx
mov dword [esi + 0xc], eax
add eax, 4
jmp 0x301ebfa6
cmp dword [esi + 8], 0
je 0x301ebf5a
cmp edi, dword [esi + 0x10]
jle 0x301ebf9a
push dword [0x30262eb8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [eax]
push 1
push 0xffffffffffffffff
push 0
push dword [esi + 0x14]
mov dword [ebp + 8], eax
push 1
call fcn.301939da
mov ecx, dword [ebp + 8]
push eax
call dword [ebx + 4]
test eax, eax
je 0x301ebf3e
mov ecx, dword [esi + 8]
mov dword [eax], ecx
mov ecx, dword [esi + 0x14]
mov dword [esi + 8], eax
add eax, 4
mov dword [esi + 0x10], ecx
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
sub dword [esi + 0x10], edi
lea ecx, [eax + edi]
mov dword [esi + 4], ecx
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x301ebfad
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0xc]
jmp 0x301ebfe5
mov eax, dword [edi]
push dword [0x30262eb8]
mov dword [ebp - 4], eax
call ebx
test eax, eax
je 0x301ebfe2
push dword [0x30262eb8]
call ebx
mov edx, dword [eax]
push edi
mov ecx, eax
call dword [edx + 0x10]
mov edi, dword [ebp - 4]
test edi, edi
jne 0x301ebfc1
and dword [esi + 0xc], edi
mov edi, dword [esi + 8]
jmp 0x301ec01e
mov eax, dword [edi]
test eax, eax
mov dword [ebp - 4], eax
jne 0x301ebfff
cmp dword [ebp + 8], eax
je 0x301ec024
push dword [0x30262eb8]
call ebx
test eax, eax
je 0x301ec01b
push dword [0x30262eb8]
call ebx
mov edx, dword [eax]
push edi
mov ecx, eax
call dword [edx + 0x10]
mov edi, dword [ebp - 4]
test edi, edi
jne 0x301ebff1
jmp 0x301ec033
mov eax, dword [esi + 0x14]
mov dword [esi + 8], edi
add edi, 4
mov dword [esi + 0x10], eax
mov dword [esi + 4], edi
xor eax, eax
cmp dword [ebp + 8], eax
je 0x301ec043
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0x10], eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x301ec1f3
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, ecx
lea ecx, [esi + 0x40]
call fcn.301ec176
lea ecx, [esi + 0x20]
call fcn.301ec176
mov ecx, esi
pop esi
jmp fcn.301ec176
push esi
mov esi, ecx
mov ecx, dword [esi + 0x16c]
or dword [esi + 0x194], 2
test ecx, ecx
je 0x301ec224
push esi
push 0x301ec126
call fcn.301b1bf9
test eax, eax
je 0x301ec21d
mov ecx, esi
call fcn.301ec0dc
and dword [esi + 0x16c], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x301ec232
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push 1
lea ecx, [esi + 0x170]
call fcn.301ebfad
lea ecx, [esi + 0x168]
call fcn.301f194b
lea ecx, [esi + 0x6c]
call fcn.301ed76b
lea ecx, [esi + 0xc]
pop esi
jmp 0x301ec1db
Function at 0x301ec2f8
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push dword [0x3026b738]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
xor edi, edi
cmp eax, edi
je 0x301ec31b
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
jmp 0x301ec3af
push ebx
push esi
mov dword [ebp - 4], 0x80070057
call fcn.301ec2cd
mov esi, eax
cmp esi, edi
jne 0x301ec33b
mov dword [ebp - 4], 0x8007000e
jmp 0x301ec3ca
push edi
push edi
push edi
push edi
call dword [sym.imp.GDI32.dll_CreateRectRgn]
cmp eax, edi
mov dword [esi + 8], eax
jne 0x301ec355
mov dword [ebp - 4], 0x8007000e
jmp 0x301ec3b6
lea eax, [esi + 0x194]
mov ecx, dword [eax]
xor ecx, dword [ebp + 8]
mov ebx, str.H_0
and ecx, 1
xor dword [eax], ecx
lea edi, [esi + 0x18c]
mov ecx, dword [ebx]
mov eax, dword [ecx]
push esi
call dword [eax]
test eax, eax
mov dword [edi], eax
je 0x301ec3b4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 4]
test eax, eax
mov dword [ebp - 4], eax
jl 0x301ec3b4
add ebx, 4
add edi, 4
cmp ebx, 0x30273690
jl 0x301ec370
push esi
push dword [0x3026b738]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret 8
xor edi, edi
mov eax, dword [esi + 8]
cmp eax, edi
je 0x301ec3c4
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call fcn.301b2d0d
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov eax, dword [ebp - 4]
jmp 0x301ec3ad

Function at 0x301ed67c
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
call fcn.301ecc2c
mov eax, dword [ebp + 0xc]
push dword [0x3026b738]
add eax, 0xf
cdq
and edx, 0xf
add eax, edx
mov ebx, eax
mov eax, dword [ebp + 0x10]
add eax, 0xf
cdq
and edx, 0xf
add eax, edx
sar eax, 4
shl eax, 4
sar ebx, 4
shl ebx, 4
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [eax + 0x2c]
call fcn.301ebe4f
push 0xa
pop ecx
lea edx, [esi + 0x2c]
mov dword [ebp + 0xc], eax
xor eax, eax
push edx
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0x10]
lea eax, [esi + 0x54]
push eax
push edi
push ebx
push 0
push dword [ebp + 0xc]
mov dword [edx], 0x28
call fcn.301f1bb9
mov dword [esi + 0x20], eax
push dword [0x3026b738]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [ebp + 0xc]
lea ecx, [eax + 0x2c]
call fcn.301ebe9e
xor eax, eax
cmp dword [esi + 0x20], eax
je 0x301ed717
mov dword [esi + 4], ebx
mov dword [esi + 8], edi
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x301edce6
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x3002450c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push 0
push esi
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [esi], edi
call dword [sym.imp.USER32.dll_GetMessageTime]
and dword [esi + 0x18], 0
mov dword [esi + 0x1c], eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x301edd8e
mov eax, 0x80
test byte [ebp - 0x103], al
je 0x301edd3e
or dword [esi + 0x18], 0x40
test byte [ebp - 0x102], al
je 0x301edd49
or dword [esi + 0x18], eax
test byte [ebp - 0x100], al
je 0x301edd58
or dword [esi + 0x18], 0x100
test byte [ebp - 0x64], al
je 0x301edd61
or dword [esi + 0x18], 4
test byte [ebp - 0x63], al
je 0x301edd6a
or dword [esi + 0x18], 8
test byte [ebp - 0x62], al
je 0x301edd73
or dword [esi + 0x18], 1
test byte [ebp - 0x61], al
je 0x301edd7c
or dword [esi + 0x18], 2
test byte [ebp - 0x60], al
je 0x301edd85
or dword [esi + 0x18], 0x10
test byte [ebp - 0x5f], al
je 0x301edd8e
or dword [esi + 0x18], 0x20
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.30136bd1
leave
ret 8
Function at 0x301f6898
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
or dword [ebp - 0xc], 0xffffffff
push ebx
mov ebx, dword [ebp + 0xc]
push edi
xor edi, edi
cmp ebx, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
jne 0x301f68bf
mov dword [ebp - 4], 0x57
jmp 0x301f6a01
mov ecx, dword [ebp + 8]
cmp ecx, edi
push esi
mov dword [ebx], edi
je 0x301f69c3
cmp word [ecx], di
je 0x301f69c3
cmp dword [ebp + 0x10], edi
je 0x301f69c3
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x301f69c3
push edi
push edi
push 3
push edi
push 1
push SysReAllocString
push ecx
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
jne 0x301f6915
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x301f69e7
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x301f6932
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x301f69d8
mov eax, dword [0x300dde10]
shr eax, 3
inc eax
cmp esi, eax
jae 0x301f694b
mov dword [ebp - 4], 0x6f
jmp 0x301f69d8
push esi
call sub.MSVCR80.dll_malloc
cmp eax, edi
pop ecx
mov dword [ebp - 8], eax
je 0x301f69a3
push edi
lea ecx, [ebp + 0xc]
push ecx
push esi
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x301f6980
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp - 8]
call fcn.301f6860
test eax, eax
jne 0x301f698b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x301f69ca
lea eax, [esi - 0x90]
mov esi, dword [ebp + 0x10]
push eax
mov dword [esi], eax
call sub.MSVCR80.dll_malloc
cmp eax, edi
pop ecx
mov dword [ebx], eax
jne 0x301f69ac
mov dword [ebp - 4], 8
jmp 0x301f69ca
push dword [esi]
mov ecx, dword [ebp - 8]
add ecx, 0x80
push ecx
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
jmp 0x301f69ca
mov dword [ebp - 4], 0x57
cmp dword [ebp - 8], edi
je 0x301f69d8
push dword [ebp - 8]
call sub.MSVCR80.dll_free
pop ecx
cmp dword [ebp - 0xc], 0xffffffff
je 0x301f69e7
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], edi
pop esi
je 0x301f6a0e
mov eax, dword [ebx]
cmp eax, edi
je 0x301f6a01
push eax
call sub.MSVCR80.dll_free
mov eax, dword [ebp + 0x10]
mov dword [ebx], edi
pop ecx
mov dword [eax], edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x301f6a11
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret 0x14

Function at 0x301f6e2a
Capabilities:
Hash data with md5

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret 4
Function at 0x40f862
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], ecx
call dword [0x425090]
mov ecx, dword [ebp + 8]
mov esi, eax
xor ebx, ebx
add esi, esi
or edx, 0xffffffff
cmp dword [0x42ed08], ebx
jne 0x40f8c2
mov dword [0x42ed08], 1
mov ecx, ebx
push 8
mov eax, ecx
pop edi
test al, 1
je 0x40f8a8
shr eax, 1
xor eax, 0xedb88320
jmp 0x40f8aa
shr eax, 1
dec edi
test edi, edi
jg 0x40f89b
mov dword [ecx*4 + 0x42e908], eax
inc ecx
cmp ecx, 0xff
jle 0x40f896
mov ecx, dword [ebp + 8]
test esi, esi
je 0x40f8de
movzx eax, byte [ecx]
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x42e908]
inc ecx
sub esi, 1
jne 0x40f8c6
mov ecx, dword [ebp - 4]
not edx
mov eax, edx
mov dword [ebp - 8], ebx
xor edx, edx
div dword [ecx + 0xc]
mov esi, edx
cmp dword [ecx + 0xc], ebx
jbe 0x40f920
imul edi, esi, 0xc
add edi, dword [ecx + 8]
cmp dword [ebp + 0xc], ebx
je 0x40f92e
cmp dword [edi + 4], ebx
je 0x40f91c
push dword [ebp + 8]
push dword [edi + 4]
call dword [0x42508c]
test eax, eax
je 0x40f95d
mov ecx, dword [ebp - 4]
cmp dword [edi + 4], ebx
jne 0x40f946
cmp dword [edi], ebx
jne 0x40f946
xor ebx, ebx
inc ebx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [edi + 4], ebx
je 0x40f95d
push dword [ebp + 8]
push dword [edi + 4]
call dword [0x42508c]
test eax, eax
je 0x40f95d
mov ecx, dword [ebp - 4]
inc esi
cmp esi, dword [ecx + 0xc]
jb 0x40f94f
sub esi, dword [ecx + 0xc]
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ecx + 0xc]
jb 0x40f8f4
jmp 0x40f920
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
jmp 0x40f923
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..data
mov ebx, 0x408ecc
nop
mov ecx, 0x324e2c99
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x62e17901
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
jmp 0x401219

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x5ddc4597
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x344c4cfa
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x570cf0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push edx
push eax
call sub.ws2_32.dll_connect
mov esp, ebp
pop ebp
ret

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e072
nop
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x168827d0
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e060
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0xb4c47f8
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x9ad058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.009ad1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x9ad07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9ad06a
add dl, dl
jne 0x9ad089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9ad0dc
xor eax, eax
add dl, dl
jne 0x9ad096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9ad17d
add dl, dl
jne 0x9ad0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9ad0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9ad0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9ad0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9ad0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x9ad075
mov eax, 1
add dl, dl
jne 0x9ad0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9ad0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9ad0e1
sub eax, ebx
mov ebx, 1
jne 0x9ad128
mov ecx, 1
add dl, dl
jne 0x9ad10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9ad119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9ad105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9ad075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x9ad13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9ad14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9ad136
cmp eax, 0x7d00
jae 0x9ad16d
cmp eax, 0x500
jb 0x9ad168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9ad075
cmp eax, 0x7f
ja 0x9ad170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9ad075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x9ad19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x9ad075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10