joyce8/EMBER2024-capa huggingface dataset:
Function at 0xffd4c7f
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, dword [ebp + 8]
mov edi, eax
cmp edi, ebx
je 0xffd4ccd
lea eax, [ebp - 8]
push eax
push ebx
push esi
push 0xffd49bf
push 0x2000
push ebx
mov dword [esi + 0x80], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0xffd4cd5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x80], ebx
jmp 0xffd4cf5
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 8]
push edi
mov dword [esi + 0x80], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0xffda8df
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [0xffeba48]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0
push dword [0xffeba48]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [edi]
call sym.wow32.dll_WOWGlobalUnlockFree16
push dword [edi + 4]
call sym.wow32.dll_WOWGlobalUnlockFree16
push dword [edi + 8]
call sym.wow32.dll_WOWGlobalUnlockFree16
push dword [edi + 0xc]
call sym.wow32.dll_WOWGlobalUnlockFree16
push 0xffec7e0
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
lea eax, [ebp - 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov eax, dword [0xffec7c0]
jmp 0xffda969
mov edx, dword [eax + 0xc]
cmp edx, dword [edi + 0x14]
mov ecx, eax
jne 0xffda967
mov esi, dword [ecx]
lea edx, [eax + 4]
mov eax, dword [edx]
mov ebx, eax
mov dword [ebx], esi
mov dword [esi + 4], ebx
mov esi, dword [ebp - 8]
lea ebx, [ebp - 0xc]
mov dword [ecx], ebx
mov dword [edx], esi
mov dword [esi], ecx
mov dword [ebp - 8], ecx
mov eax, dword [eax]
cmp eax, 0xffec7c0
jne 0xffda940
push 0xffec7e0
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov esi, dword [ebp - 0xc]
jmp 0xffda9c4
and word [ebp - 2], 0
push 4
lea eax, [ebp - 4]
push eax
push 0x80
push 0xffff
mov word [ebp - 4], 1
push dword [esi + 8]
call dword [0xffeb964]
push dword [esi + 8]
call dword [0xffeb8d4]
mov ecx, dword [esi]
lea eax, [esi + 4]
mov ebx, dword [eax]
mov eax, ebx
mov dword [eax], ecx
mov dword [ecx + 4], eax
mov ecx, esi
call fcn.0ffb622b
mov esi, dword [ebx]
lea eax, [ebp - 0xc]
cmp esi, eax
jne 0xffda980
push 0
push dword [0xffeba48]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, edi
call fcn.0ffb622b
pop edi
pop esi
pop ebx
leave
ret
Function at 0xffdb0ef
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov edi, 0xffec7e0
push edi
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
push 0
push dword [ebp + 8]
call fcn.0ffdb00f
mov esi, eax
test esi, esi
je 0xffdb11f
push edi
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov ax, word [esi + 0x10]
jmp 0xffdb18e
push ebx
push dword [0xffeba48]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call ebx
test eax, eax
jne 0xffdb137
xor di, di
jmp 0xffdb17f
call fcn.0ffdb043
mov edi, eax
test di, di
je 0xffdb132
push 0x14
pop ecx
call fcn.0ffb4893
mov esi, eax
test esi, esi
je 0xffdb132
mov eax, dword [ebp + 8]
mov word [esi + 0x10], di
mov dword [esi + 8], eax
push dword [0xffeba48]
call ebx
mov eax, dword [eax + 0x14]
mov dword [esi + 0xc], eax
mov eax, dword [0xffec7c4]
mov dword [esi], 0xffec7c0
mov dword [esi + 4], eax
mov dword [eax], esi
mov dword [0xffec7c4], esi
push 0xffec7e0
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov ax, di
pop ebx
pop edi
pop esi
pop ebp
ret 8

Function at 0xffdc9cf
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0xffdcaa8
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0xffdcaa7
mov dword [ebx], 0x42
movsx eax, word [esi + 4]
mov dword [ebx + 4], eax
xor eax, eax
mov ax, word [esi + 6]
push eax
call fcn.0ffdc352
test eax, eax
mov dword [ebp + 8], eax
je 0xffdca5d
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call edi
push dword [ebx + 8]
mov dword [ebp - 4], eax
call edi
mov edx, dword [ebp - 4]
test edx, edx
je 0xffdca53
test eax, eax
je 0xffdca53
movzx ecx, word [edx + 0x24]
mov edi, eax
mov eax, ecx
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [ebx + 8]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call esi
push dword [ebp + 8]
call esi
mov esi, dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov ecx, dword [esi + 0xc]
mov eax, dword [ebx + 0x14]
and eax, 0x30000
and ecx, 0xfffc3fff
or ecx, eax
or ecx, 0x80000000
mov dword [ebx + 0x14], ecx
mov ax, word [esi + 0x10]
mov word [ebx + 0x18], ax
mov ax, word [esi + 0x12]
mov word [ebx + 0x1a], ax
mov ax, word [esi + 0x14]
mov word [ebx + 0x1c], ax
mov ax, word [esi + 0x16]
mov word [ebx + 0x1e], ax
mov ax, word [esi + 0x18]
mov word [ebx + 0x20], ax
mov eax, dword [esi + 0x1c]
mov dword [ebx + 0x26], eax
pop ebx
pop esi
leave
ret 8
Function at 0xffdcab2
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
push edi
call fcn.0ffb37a5
mov edi, eax
test edi, edi
je 0xffdcb74
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0xffdcb73
test byte [esi + 0x15], 3
je 0xffdcaea
push dword [esi + 0x10]
call fcn.0ffc48ed
mov word [edi + 0xa], ax
push dword [esi + 8]
xor eax, eax
mov ax, word [edi + 6]
mov dword [ebp - 4], eax
xor eax, eax
mov ax, word [edi + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
call fcn.0ffdc3db
mov ecx, dword [ebp + 8]
call fcn.0ffb37a5
push dword [esi + 0xc]
lea eax, [ebp - 8]
push eax
call fcn.0ffdc4e8
mov ecx, dword [ebp + 8]
call fcn.0ffb37a5
mov cx, word [ebp - 4]
mov edx, dword [eax + 0xc]
mov word [eax + 6], cx
mov cx, word [ebp - 8]
mov word [eax + 8], cx
mov ecx, dword [esi + 0x14]
and ecx, 0x7ffc3fff
and edx, 0x3c000
or ecx, edx
mov dword [eax + 0xc], ecx
mov cx, word [esi + 0x18]
mov word [eax + 0x10], cx
mov cx, word [esi + 0x1a]
mov word [eax + 0x12], cx
mov cx, word [esi + 0x1c]
mov word [eax + 0x14], cx
mov cx, word [esi + 0x1e]
mov word [eax + 0x16], cx
mov cx, word [esi + 0x20]
mov word [eax + 0x18], cx
pop esi
pop edi
leave
ret 8
Function at 0xffdf87d
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], 0x8000
call fcn.0ffdf7eb
test eax, eax
je 0xffdf8f6
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0xffdf8f6
cmp dword [ebp + 0xc], ebx
je 0xffdf8f6
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFree]
push 4
push 0x1000
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
cmp esi, ebx
je 0xffdf8f6
lea eax, [ebp + 8]
push eax
push dword [ebp - 4]
push esi
push 5
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, ebx
jge 0xffdf8ff
cmp eax, 0xc0000004
push 0x8000
push ebx
push esi
jne 0xffdf8f4
add dword [ebp - 4], 0x2000
call edi
jmp 0xffdf8b0
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
mov ecx, dword [ebp - 8]
mov dword [ebp + 8], ebx
cmp dword [esi + 0x44], ecx
mov eax, esi
je 0xffdf91f
mov eax, dword [eax]
cmp eax, ebx
je 0xffdf8f6
add dword [ebp + 8], eax
mov eax, dword [ebp + 8]
add eax, esi
cmp dword [eax + 0x44], ecx
jne 0xffdf90c
mov ecx, dword [eax + 0x3c]
cmp ecx, ebx
je 0xffdf8f6
movzx eax, word [eax + 0x38]
mov esi, dword [ebp + 0xc]
push ebx
push ebx
push dword [ebp + 0x10]
push esi
push eax
push ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov byte [esi + eax], bl
jmp 0xffdf8f8
Function at 0xffe2647
Capabilities:
Get disk information

Disassembly:
push 0x4c
push 0xffb3738
call fcn.0ffe120c
mov eax, dword fs:[0x18]
lea edi, [eax + 0xbf8]
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, esi
jne 0xffe2670
mov eax, 0xffb2410
push eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.ntdll.dll_RtlInitString]
push esi
lea eax, [ebp - 0x5c]
push eax
push edi
call dword [sym.imp.ntdll.dll_RtlOemStringToUnicodeString]
cmp eax, esi
jge 0xffe26ac
cmp eax, 0x80000005
jne 0xffe2699
push 0xce
jmp 0xffe26a1
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0xffe27d3
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x40], esi
mov word [ebp - 0x3a], si
mov word [ebp - 0x42], si
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x50], ecx
mov edi, dword [ebp + 0x10]
lea eax, [edi + 1]
mov word [ebp - 0x52], ax
mov edx, dword [ebp + 0x20]
mov dword [ebp - 0x48], edx
mov ebx, dword [ebp + 0x24]
lea edx, [ebx + 1]
mov word [ebp - 0x4a], dx
mov dword [ebp - 4], esi
cmp ecx, esi
je 0xffe2713
movzx eax, ax
shl eax, 1
mov word [ebp - 0x3a], ax
mov eax, dword fs:[0x18]
mov dword [ebp - 0x28], eax
movzx ecx, word [ebp - 0x3a]
push ecx
push esi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x38], eax
cmp eax, esi
jne 0xffe2713
push 8
jmp 0xffe27c0
cmp dword [ebp + 0x20], esi
je 0xffe2744
movzx eax, word [ebp - 0x4a]
shl eax, 1
mov word [ebp - 0x42], ax
mov eax, dword fs:[0x18]
mov dword [ebp - 0x2c], eax
movzx ecx, word [ebp - 0x42]
push ecx
push esi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x40], eax
cmp eax, esi
je 0xffe270c
push ebx
push dword [ebp - 0x40]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push edi
push dword [ebp - 0x38]
mov eax, dword [ebp - 0x1c]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov dword [ebp - 0x24], eax
cmp eax, esi
je 0xffe27d7
cmp dword [ebp + 0xc], esi
je 0xffe2790
push dword [ebp - 0x38]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push esi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeStringToOemString]
mov dword [ebp - 0x20], eax
cmp eax, esi
jl 0xffe27b8
cmp dword [ebp + 0x20], esi
je 0xffe27d7
push dword [ebp - 0x40]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push esi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeStringToOemString]
mov dword [ebp - 0x20], eax
cmp eax, esi
jge 0xffe27d7
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call fcn.0ffe13f3
pop ecx
pop ecx
xor eax, eax
jmp 0xffe27e3
or dword [ebp - 4], 0xffffffff
call fcn.0ffe27ed
mov eax, dword [ebp - 0x24]
call fcn.0ffe1247
ret 0x20
Function at 0x4f80bf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push esi
push edi
mov edi, dword [ebx]
lea esi, [edx + 0x1000]
mov dword [ebp - 4], 0x10
xor ecx, dword [esi]
mov dword [ebp - 8], ecx
call fcn.004f808c
xor eax, edi
mov edi, dword [ebp - 8]
add esi, 4
dec dword [ebp - 4]
mov ecx, eax
jne 0x4f80da
mov eax, dword [edx + 0x1040]
xor eax, ecx
mov ecx, dword [edx + 0x1044]
mov edx, dword [ebp + 8]
xor ecx, edi
pop edi
mov dword [edx], ecx
mov dword [ebx], eax
pop esi
leave
ret

Function at 0x4f810e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push esi
push edi
mov edi, dword [ebx]
lea esi, [edx + 0x1044]
mov dword [ebp - 4], 0x10
xor ecx, dword [esi]
mov dword [ebp - 8], ecx
call fcn.004f808c
xor eax, edi
mov edi, dword [ebp - 8]
sub esi, 4
dec dword [ebp - 4]
mov ecx, eax
jne 0x4f8129
mov eax, dword [edx + 0x1004]
xor eax, ecx
mov ecx, dword [edx + 0x1000]
mov edx, dword [ebp + 8]
xor ecx, edi
pop edi
mov dword [edx], ecx
mov dword [ebx], eax
pop esi
leave
ret
Function at 0x51bc60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xf8
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x78]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
add edx, dword [ecx + 0x20]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x1c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x24], 0
jmp 0x51bccc
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
cmp eax, dword [edx + 0x18]
jae 0x51bd13
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.005333a2
add esp, 8
test eax, eax
jne 0x51bd11
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x51bd15
jmp 0x51bcc3
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x525ffa
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x52600a
xor eax, eax
jmp 0x5261d3
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x52618b
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x55b4c4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x55b4c4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x55b4c4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x55b4c4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x55b4c4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x55b4c4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x55b4c4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x55b4c4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 8
mov dword [ebp + 0x10], ecx
jmp 0x526013
cmp dword [ebp + 0x10], 0
je 0x5261cd
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
mov eax, dword [ecx*4 + 0x55b4c4]
xor eax, edx
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
cmp dword [ebp + 0x10], 0
jne 0x526191
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x401620
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push esi
cdq
sub eax, edx
xor ecx, ecx
mov esi, eax
sar esi, 1
test esi, esi
jle 0x40164b
mov edx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x14]
mov al, byte [edx]
add edx, 2
xor al, 0xad
mov byte [ecx + edi], al
inc ecx
cmp ecx, esi
jl 0x40163b
pop edi
pop esi
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401fd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x70
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, esp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x4027b0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
add eax, dword [ecx + 0x3c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x78]
add eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov word [ebp - 0x42], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x30]
jae 0x40216f
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x50]
mov dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp - 0x68]
mov dword [esp], eax
call fcn.00402810
sub esp, 4
cmp dword [ebp + 8], 0
jbe 0x402134
cmp dword [ebp + 0xc], 3
jbe 0x402134
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x10], 0
mov eax, esp
lea ecx, [ebp - 0x68]
mov dword [eax], ecx
mov dword [eax + 4], 0x14d
call fcn.00401e40
mov dword [ebp - 0x74], eax
jmp 0x4020d3
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x40212f
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp + 0xc]
jne 0x40212a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x24]
mov ecx, dword [ebp - 0x48]
shl ecx, 1
add eax, ecx
mov ax, word [eax]
mov word [ebp - 0x42], ax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x1c]
movzx ecx, word [ebp - 0x42]
shl ecx, 2
add eax, ecx
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x70], 2
jmp 0x402144
jmp 0x40212f
jmp 0x402134
mov eax, dword [ebp - 0x2c]
add eax, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x70], 0
lea ecx, [ebp - 0x68]
call fcn.004028d0
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x402161
jmp 0x40215c
jmp 0x40216f
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
jmp 0x402068
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x38]
add eax, ecx
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x70
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4021b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x451e00], eax
pop esi
pop edi
pop ebp
ret
Function at 0x410b60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x410b8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x410b8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401380
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401399
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4013ad
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4013ce
cmp esi, eax
jae 0x4013a7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4013c0
cmp esi, eax
jae 0x4013a7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402b50
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push edi
mov edi, ecx
mov al, byte [edi + 0x44]
test al, al
je 0x402b76
mov eax, dword [edi + 0x4c]
push 0
push eax
call esi
mov ecx, dword [edi + 0x50]
push 0
push ecx
jmp 0x402b84
mov edx, dword [edi + 0x4c]
push 1
push edx
call esi
mov eax, dword [edi + 0x50]
push 1
push eax
call esi
mov ebx, dword [esp + 0x34]
mov edx, dword [edi + ebx*4 + 0x4c]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
add ecx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], ecx
add eax, edx
mov edx, dword [edi + ebx*4 + 0x4c]
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_ScreenToClient]
movzx esi, word [esp + 0x14]
movzx eax, word [esp + 0x10]
mov ecx, dword [edi + ebx*4 + 0x4c]
mov ebp, dword [sym.imp.USER32.dll_PostMessageA]
shl esi, 0x10
or esi, eax
push esi
push 1
push 0x201
push ecx
call ebp
mov edx, dword [edi + ebx*4 + 0x4c]
push esi
push 1
push 0x202
push edx
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc