joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45633c
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 0x4564e7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4564c8
mov dl, 1
mov eax, dword [0x4158c4]
call fcn.0040323c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403fbc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4564b7
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.00444130
test al, al
je 0x4564aa
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, 0x4564f8
lea eax, [ebp - 0x254]
call fcn.00409190
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4564aa
xor eax, eax
push ebp
push 0x4564a3
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 0x456530
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45648c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040422c
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 0x45648c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040422c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4564aa
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4563ad
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004193bc
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 0x4564ee
lea eax, [ebp - 0x260]
call fcn.00403fbc
ret

Function at 0x456e1c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x47bbe0]
cmp byte [eax + 0xa5], 0
jne 0x456e8d
cmp dword [0x47bbf8], 0
jne 0x456e4e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x456dd8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x47bbf8], eax
cmp dword [0x47bbf4], 0
jne 0x456e69
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x47bbf4], eax
cmp dword [0x47bbfc], 0
jne 0x456e8d
push esp
push 0
push 0
push 0x456d7c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x47bbfc], eax
pop edx
ret
Function at 0x456f84
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x456f9b
add esp, 0xfffffff0
call fcn.00403590
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041d290
mov eax, dword [0x47a2c0]
cmp word [eax + 2], 0
jne 0x456fc3
mov eax, dword [0x47a2c0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045865c
mov eax, dword [0x47a374]
cmp word [eax + 2], 0
jne 0x456fdd
mov eax, dword [0x47a374]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00458854
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4154a8]
call fcn.0040323c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4154a8]
call fcn.0040323c
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41f7e4]
call fcn.00426fb4
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x457164
mov eax, dword [0x47a1d8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00427384
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x458e04
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x47a1d8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c948
test eax, eax
je 0x4570d2
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408b70
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c970
test eax, eax
je 0x4570e6
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040422c
mov eax, dword [0x47a0a8]
cmp byte [eax], 0
jne 0x45711a
mov eax, ebx
call fcn.0045728c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00458fe0
mov eax, ebx
call fcn.004599a4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45715a
call fcn.004035e8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45750c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x47bbe0]
cmp dword [eax + 0x30], 0
je 0x4575b6
cmp dword [ebx + 0x94], 0
jne 0x4575b0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45749c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4575b0
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 0x457576
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4575b0
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.00417810
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x457585
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x458118
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 0x45814d
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.004040ac
jmp 0x45815a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404010
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4591bc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4591fd
mov eax, esi
call fcn.0043f718
test al, al
je 0x4591fd
mov eax, dword [ebx + 0x84]
call fcn.0043f414
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4591fd
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043f414
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45c080
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45c1a1
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetVersion_1
mov edx, dword [0x47a3e0]
mov dword [edx], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [0x47a3e0]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, 0x45c1b8
call fcn.00409210
mov eax, dword [ebp - 4]
call fcn.00470f04
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x47a1e0]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
mov eax, dword [0x47a3a8]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
lea edx, [ebp - 0x20]
mov ecx, 1
mov eax, 0x45c1d4
call fcn.00409210
mov eax, dword [ebp - 0x10]
call fcn.00470f04
call sub.kernel32.dll_GetCurrentThreadId_1
mov esi, eax
push esi
push 0
push 0x45bda8
push 5
call sub.user32.dll_SetWindowsHookExA
mov dword [ebx + 0x1c], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, 0x45c1f4
call fcn.00409210
mov eax, dword [ebp - 0x24]
call fcn.00470f04
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, 0x45c20c
call fcn.00409210
mov eax, dword [ebp - 0x28]
call fcn.00470f04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c1a8
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00403fe0
lea eax, [ebp - 0x10]
call fcn.00403fbc
lea eax, [ebp - 4]
call fcn.00403fbc
ret

Function at 0x4630a0
Capabilities:
Capture webcam image

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov edi, edx
mov ebx, eax
push 0xfffffffffffffff0
mov eax, dword [ebx + 0x4c]
push eax
call sub.user32.dll_GetWindowLongA
mov esi, eax
mov eax, esp
push eax
push 0
push 0x419
mov eax, dword [ebx + 0x4c]
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
test esi, 2
jbe 0x4630ee
mov edx, dword [ebx + 0x48]
cmp dword [edx + 0x140], 0
je 0x4630ee
mov eax, dword [ebx + 0x48]
mov eax, dword [eax + 0x140]
mov eax, dword [eax + 0x14]
jmp 0x4630fe
mov edx, dword [ebx + 0x48]
mov edx, dword [edx + 0x13c]
test edx, edx
je 0x4630fe
mov eax, dword [edx + 0x14]
test eax, eax
je 0x463117
push eax
push 2
push 5
mov edx, dword [edi + 0x10]
lea ecx, [esp + 0xc]
mov eax, ebx
call fcn.00460a98
jmp 0x46315a
mov edx, dword [edi + 0x10]
mov eax, dword [ebx + 0x34]
call fcn.00421614
mov eax, dword [ebx + 0x34]
mov eax, dword [eax + 0x14]
call fcn.00420e10
mov esi, eax
mov eax, dword [ebx + 0x48]
mov edx, dword [eax + 0xa8]
mov eax, dword [ebx + 0x34]
mov eax, dword [eax + 0x10]
call fcn.00420b38
mov edx, esp
mov eax, dword [ebx + 0x34]
call fcn.00421360
mov eax, dword [ebx + 0x34]
mov eax, dword [eax + 0x10]
mov edx, esi
call fcn.00420b38
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x467f94
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff00
mov edi, edx
mov ebp, eax
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.0044f7fc
mov ebx, eax
mov dx, word [edi + 4]
mov eax, ebp
call fcn.00467e40
mov esi, eax
test esi, esi
je 0x467fe1
mov al, byte [0x467ff4]
cmp al, bl
jne 0x467fe1
mov edx, esi
mov eax, ebp
call fcn.00467de8
mov dword [edi + 0xc], 1
mov byte [ebp + 0x31], 1
jmp 0x467fe9
mov edx, edi
mov eax, dword [ebp + 0x3c]
call dword [ebp + 0x38]
add esp, 0x100
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x46b084
Capabilities:
Get graphical window text

Disassembly:
push ebx
add esp, 0xfffffc14
mov ebx, edx
mov edx, esp
push edx
push 0x3e8
push 0xd
push eax
call sub.user32.dll_SendMessageA
mov edx, ebx
mov eax, esp
call fcn.00408d20
add esp, 0x3ec
pop ebx
ret

Function at 0x46c464
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, edx
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, eax
mov eax, dword [ebx + 0xf4]
mov eax, dword [eax + 0x34]
call fcn.0044a930
mov edi, eax
dec edi
test edi, edi
jl 0x46c517
inc edi
xor esi, esi
mov eax, dword [ebx + 0xf4]
mov eax, dword [eax + 0x34]
mov edx, esi
call fcn.0044a940
mov eax, dword [eax + 0xc]
sub eax, 1
jb 0x46c4ae
je 0x46c4cf
dec eax
je 0x46c4f0
jmp 0x46c50f
mov eax, dword [ebx + 0xf4]
mov eax, dword [eax + 0x34]
mov edx, esi
call fcn.0044a940
cmp byte [ebx + 0x164], 0
setne dl
call fcn.0044a85c
jmp 0x46c50f
mov eax, dword [ebx + 0xf4]
mov eax, dword [eax + 0x34]
mov edx, esi
call fcn.0044a940
cmp byte [ebx + 0x164], 1
setne dl
call fcn.0044a85c
jmp 0x46c50f
mov eax, dword [ebx + 0xf4]
mov eax, dword [eax + 0x34]
mov edx, esi
call fcn.0044a940
cmp byte [ebx + 0x164], 2
setne dl
call fcn.0044a85c
inc esi
dec edi
jne 0x46c48f
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebx + 0x88]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x8c]
cdq
cmp edx, dword [esp + 4]
jne 0x46c53c
cmp eax, dword [esp]
pop edx
pop eax
jae 0x46c59d
jmp 0x46c540
pop edx
pop eax
jge 0x46c59d
mov esi, 2
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0x88], eax
mov eax, dword [ebx + 0x138]
test byte [eax + 0x50], 2
je 0x46c579
cmp byte [ebx + 0x161], 2
je 0x46c579
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov eax, dword [ebx + 0xf4]
mov ebx, dword [eax]
call dword [ebx + 0x40]
jmp 0x46c5c2
push 0
mov eax, dword [ebx + 0x12c]
push eax
push 0
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push eax
push esi
mov eax, dword [ebx + 0x104]
push eax
call sub.user32.dll_TrackPopupMenu
jmp 0x46c5c2
cmp dword [ebx + 0x11c], 0
je 0x46c5c2
xor edx, edx
mov eax, dword [ebx + 0x58]
call fcn.0042c918
push 0
push 0
push 0x10
mov eax, dword [ebx + 0x12c]
push eax
call sub.user32.dll_PostMessageA
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x475810
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x475981
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x88], 1
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x475966
lea eax, [ebp - 0x10d]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 8]
lea eax, [ebp - 0x10d]
call fcn.00408d20
mov dl, 1
mov eax, dword [0x45a3c0]
call fcn.0045a418
mov edx, dword [ebp - 4]
mov dword [edx + 0x80], eax
mov dl, 1
mov eax, dword [0x415bb4]
call fcn.0040323c
mov edx, dword [ebp - 4]
mov dword [edx + 0x40], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x84]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
call fcn.0045a494
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x475963
mov dl, 1
mov eax, dword [0x45ae60]
call fcn.0045aec8
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x40]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov edx, 0x475998
call fcn.0045a7e0
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.004042c8
xor eax, eax
push ebp
push 0x47595c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x40]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
call fcn.0045b1c8
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004759a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475963
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
call fcn.0040326c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
call fcn.0040326c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
call fcn.0040326c
ret
mov bl, byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475988
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403fe0
ret
Function at 0x4937a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x15d50a8]
xor edx, edx
cmp eax, edx
jne 0x4937c6
xor eax, eax
mov byte [eax + 0x15d4fa8], al
inc eax
cmp eax, 0x100
jl 0x4937ae
mov dword [0x15d50a8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x15d4fa8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x493857
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 0x49382a
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 0x4937f8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4938d0
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 0x493923
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 0x49390a
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 0x497bc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x78]
push ebx
push esi
cmp eax, 1
push edi
mov dword [esp + 0x14], ecx
jl 0x497de1
cmp eax, 8
jg 0x497de1
cmp dword [esp + 0x8c], 2
jl 0x497de1
mov eax, dword [esp + 0x7c]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x6c], ecx
sub ecx, esi
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x7c], ecx
test ecx, ecx
mov dword [esp + 0x70], ebx
jle 0x497de1
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x497de1
mov eax, dword [esp + 0x80]
test eax, eax
je 0x497c47
mov edx, dword [eax]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x4c], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], eax
xor edx, edx
push ebp
test ebx, ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], edx
jle 0x497dca
mov ebp, dword [0x5276fc]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x497c79
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x497db1
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x497c99
mov ecx, 0x32
lea ebx, [ecx + eax]
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push edx
lea edx, [esp + 0x34]
push eax
push edx
call dword [0x5276ec]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x497cd8
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [0x5276f0]
lea ecx, [esp + 0x28]
push ecx
call dword [0x527730]
test eax, eax
jne 0x497d98
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
mov eax, edi
mov ecx, esi
mov dword [esp + 0x44], edx
neg eax
neg ecx
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call ebp
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x94]
sub ecx, edi
sub eax, esi
push edx
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x9c]
push eax
call fcn.004971d0
cmp eax, 1
jne 0x497dc2
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.00497a80
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x497c8d
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x497dca
jmp 0x497c64
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.00496dd0
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x68
ret 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x68
ret 0x1c
Function at 0x49a360
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 0x49a4f8
cmp ebp, ebx
jle 0x49a4f8
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, reloc.OLEAUT32.dll_VariantInit
mov dword [esp + 0x10], edi
jns 0x49a3be
dec eax
or eax, 0xfffffff8
inc eax
je 0x49a3c5
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x49a3d4
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x49a3db
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.005129f2
add esp, 4
cmp eax, ebx
je 0x49a3fc
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.005129f2
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 0x49a4ee
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 0x49a4d5
mov al, byte [edx]
cmp al, 0xc0
jbe 0x49a4c1
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x49a4b6
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 0x49a4c4
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x49a4c4
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x49a460
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 0x49a451
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