joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48d03c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x48d088
mov eax, esi
call fcn.004a290c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x48d088
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x48d088
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x48d1c7
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x48d0c8
cmp eax, 0x108
ja 0x48d0c8
mov eax, esi
call fcn.004a290c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x48d1be
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x48d1c7
jmp 0x48d1be
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x48d1a7
cmp eax, 0x20a
ja 0x48d1a7
test byte [esi + 0x50], 0x80
jne 0x48d0fa
sub eax, 0x203
je 0x48d0f7
sub eax, 3
je 0x48d0f7
sub eax, 3
jne 0x48d0fa
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x48d10e
dec eax
je 0x48d123
dec eax
je 0x48d140
dec eax
je 0x48d123
jmp 0x48d147
mov ecx, ebx
mov eax, dword [0x4bf5a0]
mov eax, dword [eax]
mov edx, esi
call fcn.004ac1ec
jmp 0x48d1be
cmp byte [esi + 0x5d], 1
jne 0x48d139
mov eax, esi
mov si, 0xffed
call fcn.00403f84
jmp 0x48d1c7
or word [esi + 0x54], 1
jmp 0x48d1be
and word [esi + 0x54], 0xfffe
jmp 0x48d1be
mov eax, dword [0x4c3e64]
cmp byte [eax + 0x20], 0
je 0x48d1be
mov eax, dword [0x4c3e64]
cmp dword [eax + 0x1c], 0
je 0x48d1be
mov eax, dword [ebx]
mov edx, dword [0x4c3e64]
cmp eax, dword [edx + 0x1c]
jne 0x48d1be
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.004a2850
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.00403f84
jmp 0x48d1c7
cmp eax, 0xb00b
jne 0x48d1be
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0048b950
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x490748
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x490764
cmp dword [esi + 4], 0
je 0x490791
test byte [ebx + 0x55], 1
jne 0x490783
mov eax, ebx
call fcn.0048f2e8
test eax, eax
jne 0x490783
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4908a1
mov edx, esi
mov eax, ebx
call fcn.0049026c
jmp 0x4908a1
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x49089a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004925b8
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0048cf70
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00490748
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004925b8
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4908a1
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x496f80
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4bf718]
cmp byte [eax + 0xc], 0
je 0x4970ed
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4970e6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4c3eb8], 0
jne 0x496fd4
push 0x4970f4
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4970fc
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c3eb8], eax
cmp dword [0x4be54c], 0
jne 0x4970cf
push 0x49710c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4be54c], eax
cmp dword [0x4be54c], 0
je 0x4970cf
push 0x497118
mov eax, dword [0x4be54c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c3ebc], eax
push 0x497128
mov eax, dword [0x4be54c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c3ec0], eax
push 0x49713c
mov eax, dword [0x4be54c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c3ec4], eax
push 0x497154
mov eax, dword [0x4be54c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c3ec8], eax
push 0x49716c
mov eax, dword [0x4be54c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c3ecc], eax
push 0x497180
mov eax, dword [0x4be54c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c3ed0], eax
push 0x497198
mov eax, dword [0x4be54c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c3ed4], eax
push 0x4971b0
mov eax, dword [0x4be54c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c3ed8], eax
push 0x4971cc
mov eax, dword [0x4be54c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c3edc], eax
push 0x4971d8
mov eax, dword [0x4be54c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c3ee0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4970ed
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x49afa0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404c70
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x49afef
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404ee0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a27c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4a2810]
test si, 4
je 0x4a27d4
or bl, 1
test si, 8
je 0x4a27de
or bl, 4
test si, 1
je 0x4a27e8
or bl, 8
test si, 2
je 0x4a27f2
or bl, 0x10
test si, 0x10
je 0x4a27fc
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4a280b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4a2814
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4a284c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4a282d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4a283c
or bl, 4
test esi, 0x20000000
je 0x4a2847
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4a8f10
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4a8f22
add esp, 0xfffffff0
call fcn.004040b4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041c5e4
mov eax, dword [0x4bf3c4]
mov dword [eax + 4], ebx
mov dword [eax], 0x4a92b4
mov eax, dword [0x4bf3d0]
mov dword [eax + 4], ebx
mov dword [eax], 0x4a92c0
mov eax, ebx
call fcn.004a92cc
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x413f54]
call fcn.00403d4c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x413f54]
call fcn.00403d4c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x413f54]
call fcn.00403d4c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x413f54]
call fcn.00403d4c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x413f54]
call fcn.00403d4c
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x4a56e4
push eax
push 0
push 0
mov eax, dword [0x4bf52c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x473b40]
call fcn.004752d8
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x473b40]
call fcn.004752d8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x473b40]
call fcn.004752d8
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004a971c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4a95e4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4a95e4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4a95e4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4a905f
call fcn.0040410c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4a93c8
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a9573
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4a9554
mov dl, 1
mov eax, dword [0x414370]
call fcn.00403d4c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404c70
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4a9543
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004972e0
test al, al
je 0x4a9536
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4a9584
lea eax, [ebp - 0x254]
call fcn.0040a864
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4a9536
xor eax, eax
push ebp
push 0x4a952f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4a95bc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4a9518
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404ee0
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4a9518
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404ee0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a9536
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4a9439
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00418140
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a957a
lea eax, [ebp - 0x260]
call fcn.00404c70
ret

Function at 0x4a9ebc
Capabilities:
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4c3f04]
cmp byte [eax + 0xa5], 0
jne 0x4a9f2d
cmp dword [0x4c3f1c], 0
jne 0x4a9eee
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4a9e78
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4c3f1c], eax
cmp dword [0x4c3f18], 0
jne 0x4a9f09
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4c3f18], eax
cmp dword [0x4c3f20], 0
jne 0x4a9f2d
push esp
push 0
push 0
push 0x4a9e1c
push 0x3e8
push 0
call fcn.004071e8
mov dword [0x4c3f20], eax
pop edx
ret
Function at 0x4aa5c0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4c3f04]
cmp dword [eax + 0x30], 0
je 0x4aa66a
cmp dword [ebx + 0x94], 0
jne 0x4aa664
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4aa550
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4aa664
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4aa62a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4aa664
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041632c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4aa639
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4ab1c8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4ab1fd
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404d60
jmp 0x4ab20a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404cc4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4ac334
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4ac375
mov eax, esi
call fcn.004928bc
test al, al
je 0x4ac375
mov eax, dword [ebx + 0x84]
call fcn.004925b8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4ac375
push 0
mov eax, dword [ebx + 0x84]
call fcn.004925b8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4ade48
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
test dl, dl
je 0x4ade5b
add esp, 0xfffffff0
call fcn.004040b4
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
test esi, esi
jbe 0x4adf71
cmp dword [ebp + 8], 0
jne 0x4ade7b
push 0
push esi
call sub.kernel32.dll_GetFileSize_1
mov dword [ebp + 8], eax
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingA
mov edi, eax
mov dword [ebx + 0x14], edi
test edi, edi
jne 0x4adeb1
mov eax, ebx
call fcn.004adaa4
mov ecx, 0x4adf9c
mov dl, 1
mov eax, dword [0x4ad99c]
call fcn.0040d6c0
call fcn.004045e0
push 0
push 0
push 0
push 4
mov eax, dword [ebx + 0x14]
push eax
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
mov dword [ebx + 4], esi
test esi, esi
jne 0x4adee8
mov eax, ebx
call fcn.004adaa4
mov ecx, 0x4adfb4
mov dl, 1
mov eax, dword [0x4ad99c]
call fcn.0040d6c0
call fcn.004045e0
or esi, 0xffffffff
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
sub edx, 5
sub edx, eax
jl 0x4adf11
inc edx
mov ecx, dword [ebx + 4]
add ecx, eax
mov ecx, dword [ecx]
inc ecx
cmp ecx, 0x4034b51
jne 0x4adf0d
mov esi, eax
jmp 0x4adf11
inc eax
dec edx
jne 0x4adef9
test esi, esi
jge 0x4adf3b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
sub edx, 5
sub edx, eax
jl 0x4adf3b
inc edx
mov ecx, dword [ebx + 4]
add ecx, eax
mov ecx, dword [ecx]
inc ecx
cmp ecx, 0x6054b51
jne 0x4adf37
mov esi, eax
jmp 0x4adf3b
inc eax
dec edx
jne 0x4adf23
test esi, esi
jge 0x4adf5c
mov eax, ebx
call fcn.004adaa4
mov ecx, 0x4adfcc
mov dl, 1
mov eax, dword [0x4ad99c]
call fcn.0040d6c0
call fcn.004045e0
mov eax, dword [ebp + 8]
sub eax, esi
push eax
mov eax, dword [ebx + 4]
lea ecx, [eax + esi]
xor edx, edx
mov eax, ebx
call fcn.004adadc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4adf88
call fcn.0040410c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x4b0a14
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
je 0x4b0a3b
neg ecx
je 0x4b0a3b
not eax
push ebx
test dl, 3
je 0x4b0a3d
movzx ebx, byte [edx]
inc edx
xor bl, al
shr eax, 8
xor eax, dword [ebx*4 + 0x4c3f2c]
inc ecx
jne 0x4b0a1f
pop ebx
not eax
ret
repz ret
sub edx, ecx
add ecx, 8
jg 0x4b0b1e
push esi
push edi
mov edi, edx
mov edx, eax
mov ebx, dword [ecx + edi - 4]
xor edx, dword [ecx + edi - 8]
movzx esi, bl
mov eax, dword [esi*4 + 0x4c4b2c]
movzx esi, bh
xor eax, dword [esi*4 + 0x4c472c]
shr ebx, 0x10
movzx esi, bl
xor eax, dword [esi*4 + 0x4c432c]
movzx esi, bh
xor eax, dword [esi*4 + 0x4c3f2c]
movzx esi, dl
xor eax, dword [esi*4 + 0x4c5b2c]
movzx esi, dh
xor eax, dword [esi*4 + 0x4c572c]
shr edx, 0x10
movzx esi, dl
xor eax, dword [esi*4 + 0x4c532c]
movzx esi, dh
xor eax, dword [esi*4 + 0x4c4f2c]
add ecx, 8
jg 0x4b0b1a
mov ebx, dword [ecx + edi - 4]
xor eax, dword [ecx + edi - 8]
movzx esi, bl
mov edx, dword [esi*4 + 0x4c4b2c]
movzx esi, bh
xor edx, dword [esi*4 + 0x4c472c]
shr ebx, 0x10
movzx esi, bl
xor edx, dword [esi*4 + 0x4c432c]
movzx esi, bh
xor edx, dword [esi*4 + 0x4c3f2c]
movzx esi, al
xor edx, dword [esi*4 + 0x4c5b2c]
movzx esi, ah
xor edx, dword [esi*4 + 0x4c572c]
shr eax, 0x10
movzx esi, al
xor edx, dword [esi*4 + 0x4c532c]
movzx esi, ah
xor edx, dword [esi*4 + 0x4c4f2c]
add ecx, 8
jle 0x4b0a4e
mov eax, edx
mov edx, edi
pop edi
pop esi
sub ecx, 8
jl 0x4b0b27
pop ebx
not eax
ret
movzx ebx, byte [ecx + edx]
xor bl, al
shr eax, 8
xor eax, dword [ebx*4 + 0x4c3f2c]
inc ecx
jne 0x4b0b27
pop ebx
not eax
ret
Function at 0x4b4f34
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, ebx
dec eax
mov dword [ebp - 8], eax
mov eax, dword [esi]
mov dword [ebp - 0xc], eax
add esi, 4
mov dword [ebp - 0x10], 1
cmp esi, dword [ebp - 4]
jae 0x4b505d
mov eax, dword [ebp - 0xc]
and eax, dword [ebp - 0x10]
jne 0x4b4faa
mov al, byte [esi]
mov byte [ebx], al
inc esi
inc ebx
cmp esi, dword [ebp - 4]
jae 0x4b505d
mov eax, ebx
sub eax, 3
cmp eax, dword [ebp - 8]
jbe 0x4b4f9f
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, eax
shr edx, 0xc
xor eax, edx
and eax, 0xfff
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [edx + eax*4], ecx
shl dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 0
jne 0x4b4f61
jmp 0x4b4f49
movzx eax, word [esi]
add esi, 2
mov edx, eax
and edx, 0xf
add edx, 2
mov dword [ebp - 0x14], edx
shr eax, 4
cmp dword [ebp - 0x14], 2
jne 0x4b4fcf
xor edx, edx
mov dl, byte [esi]
add edx, 0x12
mov dword [ebp - 0x14], edx
inc esi
mov edx, dword [ebp + 8]
mov edx, dword [edx + eax*4]
mov ecx, ebx
sub ecx, edx
cmp ecx, dword [ebp - 0x14]
jae 0x4b4fef
mov ecx, dword [ebp + 8]
mov eax, edx
mov ecx, dword [ebp - 0x14]
mov edx, ebx
call fcn.004b4f20
jmp 0x4b5016
cmp dword [ebp - 0x14], 8
jbe 0x4b5006
mov ecx, dword [ebp + 8]
mov eax, edx
mov edx, ebx
mov ecx, dword [ebp - 0x14]
call fcn.00402dc0
jmp 0x4b5016
mov edx, dword [ebp + 8]
mov eax, dword [edx + eax*4]
mov edx, dword [eax]
mov dword [ebx], edx
mov edx, dword [eax + 4]
mov dword [ebx + 4], edx
cmp esi, dword [ebp - 4]
jae 0x4b505d
cmp ebx, dword [ebp - 8]
jbe 0x4b5042
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, eax
shr edx, 0xc
xor eax, edx
and eax, 0xfff
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [edx + eax*4], ecx
cmp ebx, dword [ebp - 8]
ja 0x4b5020
add ebx, dword [ebp - 0x14]
mov eax, ebx
dec eax
mov dword [ebp - 8], eax
shl dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 0
jne 0x4b4f61
jmp 0x4b4f49
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x402000
Capabilities:
Access peb ldr_data

Disassembly:
push 0
push 2
push 0x403068
push 0x403053
call dword [sym.imp.Winmm.dll_mciSendStringA]
cmp eax, 0x107
je 0x40201c
ret
mov edi, edi
mov esi, 0x4020c7
mov edi, esi
push 1
push 0x403086
push 1
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateSemaphoreA]
mov edx, eax
pop ebx
mov ecx, 0x3ab
mov al, byte [esi]
sub al, bl
stosb byte es:[edi], al
inc esi
loop 0x402040
push dword fs:[0x30]
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
cmp word [eax], 0x5a4d
je 0x402066
xor eax, eax
mov dword [0x403099], eax
add esp, 4
ret

Function at 0x4ca24a
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x4c9fca
add edi, edi
and ecx, ecx
and edi, ecx
call fcn.004ca27a
or ecx, ecx
mov edi, ecx
xor dword [eax], esi
sub edi, ecx
inc eax
add ecx, ecx
add ecx, 1
and ecx, edi
cmp eax, ebx
jne fcn.004ca24a
sub ecx, 0x672b15ff
ret
Function at 0x10001dbd
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x190
push ebx
push esi
mov esi, ecx
mov bl, dl
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x10001e05
lea eax, [esp + 8]
push eax
mov eax, dword [ebp + 8]
movzx ecx, al
shl cx, 8
movzx eax, bl
or cx, ax
movzx eax, cx
push eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000201d
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1000904f
push 0
push dword [esi + 4]
test al, al
je 0x10002060
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x10002076
push fcn.10001631
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
mov esp, ebp
pop ebp
ret