joyce8/EMBER2024-capa huggingface dataset:
Function at 0x482a60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx + 0x1c]
test ecx, ecx
je 0x482a76
cmp dword [ecx + 4], 0
jle 0x482a76
pop ebp
jmp fcn.004a72f0
xor eax, eax
pop ebp
ret 8

Function at 0x482bb0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [esi + 0x1c]
xor eax, eax
test ecx, ecx
je 0x482bf7
cmp dword [ecx + 4], eax
je 0x482bf7
mov edx, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ecx + 8]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x482bf2
mov ecx, dword [esi + 0x1c]
mov edx, dword [ecx + 8]
push edx
call fcn.00448400
add esp, 4
xor eax, eax
pop esi
pop ebp
ret 8
mov eax, 1
pop esi
pop ebp
ret 8

Function at 0x482c00
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ecx + 0x1c]
xor eax, eax
test ecx, ecx
je 0x482c6b
cmp dword [ecx + 4], eax
je 0x482c6b
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push eax
mov eax, dword [ecx + 8]
push edi
push ebx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x482c3d
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp esi, 8
jle 0x482c68
movzx ecx, word [ebx + 4]
add ecx, 8
cmp esi, ecx
jge 0x482c68
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
push 0
sub edi, esi
push edi
lea edx, [esi + ebx]
push edx
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WS2_32.dll_recv]
add eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x484460
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e4041
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x66c0e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
mov edi, 1
mov dword [ebp - 4], edi
call fcn.004b5c24
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4844b0
push 0x80004005
call fcn.004047e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x18], edi
test esi, esi
jne 0x4844d3
call fcn.004bf945
mov esi, dword [eax + 0xc]
push 0x10
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4845c4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4845c4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4845bd
push str.VarFileInfoTranslation
push 0x66fcb0
mov dword [ebp - 0x10], 0
call fcn.005bbf72
add esp, 8
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x10]
push eax
push 0x66fcb0
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x48457a
cmp dword [ebp - 0x14], 4
jne 0x48457a
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
mov edx, dword [ebp + 0x10]
push edx
mov ecx, eax
shr ecx, 0x10
and ecx, 0xff
push ecx
mov edx, eax
movzx ecx, al
shr edx, 0x18
push edx
push ecx
shr eax, 8
and eax, 0xff
push eax
push str.StringFileInfo_02X_02X_02X_02X_s
push 0x66fcb0
call fcn.005bbf72
add esp, 0x1c
jmp 0x48459a
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push eax
push str.StringFileInfo_04X04B0_s
push 0x66fcb0
call fcn.005bbf72
add esp, 0x10
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0x66fcb0
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4845bd
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
push eax
call fcn.00415540
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4845e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x484b20
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
xor edi, edi
cmp eax, edi
je 0x484b38
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi], edi
mov eax, dword [ebp + 8]
push eax
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi], eax
cmp eax, edi
jne 0x484b63
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.VideoTrans_ParamsToRaw
push eax
call edi
mov ecx, dword [esi]
push str.VideoTrans_ParamsFromRaw
push ecx
mov dword [esi + 4], eax
call edi
mov edx, dword [esi]
push str.VideoTrans_Convert
push edx
mov dword [esi + 8], eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi]
push str.VideoTrans_GetFileMediaInfo
push eax
call edi
mov ecx, dword [esi]
push str.VideoTrans_ExcuteCmdStr
push ecx
mov dword [esi + 0x10], eax
call edi
mov edx, dword [esi]
push str.VideoTrans_GetAvailabelEncDecs
push edx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
pop edi
mov eax, 1
pop esi
pop ebp
ret 4

Function at 0x489ad0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e44e8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x66c0e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor ebx, ebx
lea eax, [esi + 4]
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [eax], ebx
push eax
cmp dword [ebp + 0xc], ebx
je 0x489b19
mov eax, dword [ebp + 8]
push eax
call sub.gdiplus.dll_GdipLoadImageFromFileICM
jmp 0x489b22
mov ecx, dword [ebp + 8]
push ecx
call sub.gdiplus.dll_GdipLoadImageFromFile
mov dword [esi + 8], eax
mov dword [esi], vtable.ImageEx.0
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 8], 2
mov dword [esi + 0x14], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x34], ebx
call fcn.004bf945
mov edx, dword [eax + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x20], edx
mov byte [esi + 0x31], bl
call edi
push ebx
push 1
push 1
push ebx
mov dword [esi + 0x1c], eax
call edi
mov ecx, esi
mov dword [esi + 0x18], eax
mov byte [esi + 0x48], 1
mov byte [esi + 0x30], 1
call fcn.00489970
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x489ee0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x66c0e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x400
mov edi, ecx
mov ecx, dword [ebp + 0x14]
lea edx, [ebp - 0x404]
push 0
push edx
mov dword [ebp - 0x408], eax
mov dword [ebp - 0x40c], ecx
mov dword [ebp - 0x410], 0
call fcn.005bb320
mov ecx, dword [ebp - 0x40c]
mov edx, dword [ebp - 0x408]
add esp, 0xc
push edi
push 0x400
lea eax, [ebp - 0x404]
push eax
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x404]
push eax
mov ecx, esi
call fcn.00406c70
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.005bb30e
mov esp, ebp
pop ebp
ret 0x10

Function at 0x48a0c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e3038
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x66c0e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004b5c24
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x48a100
push 0x80004005
call fcn.004047e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
push ecx
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.004aff32
mov edx, dword [ebp - 0x10]
push 1
push 0
push 0
push edx
push 0x605cd8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, esi
call fcn.004ae4d1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48a165
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x48b700
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
xor edi, edi
cmp eax, edi
je 0x48b718
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi], edi
mov eax, dword [ebp + 8]
push eax
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi], eax
cmp eax, edi
jne 0x48b74c
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LmVideo_Create
push eax
call edi
mov ecx, dword [esi]
push str.LmVideo_Destroy
push ecx
mov dword [esi + 4], eax
call edi
mov edx, dword [esi]
push str.LmVideo_GetSize
push edx
mov dword [esi + 8], eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi]
push str.LmVideo_GetFrameCount
push eax
call edi
mov ecx, dword [esi]
push str.LmVideo_DrawNextFrame
push ecx
mov dword [esi + 0x10], eax
call edi
mov edx, dword [esi]
push str.LmVideo_GetPosition
push edx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi]
push str.LmVideo_Seek
push eax
call edi
mov ecx, dword [esi]
push str.LmVideo_GetInterval
push ecx
mov dword [esi + 0x1c], eax
call edi
mov edx, dword [esi]
push str.LmVideo_SaveAsLaf
push edx
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x24], eax
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x48f9e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e4a1d
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x66c0e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x220], ebx
call fcn.004b5c24
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x48fa45
push 0x80004005
call fcn.004047e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov edi, 1
mov ecx, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x220], edi
call fcn.00405ef0
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x48fb14
lea edx, [ebp - 0x114]
push edx
push ebx
push ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x48fb14
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x48faa5
sub eax, edx
push eax
lea ecx, [ebp - 0x114]
push ecx
mov ecx, esi
call fcn.00406350
lea ecx, [ebp - 0x23c]
call fcn.004c0de6
mov eax, dword [esi]
push ebx
push 0x9021
push eax
lea ecx, [ebp - 0x23c]
mov dword [ebp - 4], edi
call fcn.004c0cc4
test eax, eax
je 0x48fb06
mov edi, dword [ebp - 0x21c]
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x48faf0
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0x23c]
call fcn.004c0e7f
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], bl
call fcn.004c10c3
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bb30e
mov esp, ebp
pop ebp
ret 8

Function at 0x48fb40
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e4a58
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x66c0e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp + 8]
push ecx
mov ecx, esi
xor ebx, ebx
xor edi, edi
call fcn.0048f9e0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ebx
cmp dword [eax - 0xc], ebx
je 0x48fb9c
push eax
mov ecx, esi
call fcn.0048e310
mov edx, dword [ebp + 8]
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [esi + 0x188], bl
mov dword [esi + 0x18c], ebx
mov dword [esi + 0x1a4], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48fbd1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x48fee0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e4ac3
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x66c0e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.004bd4f0
xor ecx, ecx
mov dword [esi], vtable.CMyMemDC.0
mov dword [ebp - 4], ecx
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], vtable.CBitmap.0
mov ebx, dword [ebp + 8]
lea edi, [esi + 0x20]
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ecx
xor eax, eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ecx
cmp dword [ebx + 0xc], ecx
mov byte [ebp - 4], 1
sete al
mov dword [esi + 0x30], eax
cmp eax, ecx
je 0x48ffb7
mov eax, dword [ebx]
mov edx, dword [eax + 0x50]
push edi
mov ecx, ebx
call edx
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.004bdac2
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
push eax
mov eax, dword [ebx + 4]
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
lea ebx, [esi + 0x10]
push eax
mov ecx, ebx
call fcn.004bdd96
test ebx, ebx
je 0x48ff96
mov ebx, dword [ebx + 4]
mov ecx, dword [esi + 4]
push ebx
push ecx
call fcn.004bde27
mov edx, dword [esi + 0x24]
mov dword [esi + 0x18], eax
mov eax, dword [edi]
push edx
push eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.004bd672
jmp 0x48ffc9
mov edx, dword [ebx + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov ecx, dword [ebx + 8]
mov dword [esi + 8], ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4923a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
test eax, eax
jne 0x4923ae
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0x10]
push eax
push ecx
push edx
call fcn.005bc8fb
add esp, 0x10
pop ebp
ret 0xc

Function at 0x4923d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
test eax, eax
jne 0x4923de
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0x10]
push eax
push ecx
push edx
call fcn.005bfae8
add esp, 0x10
pop ebp
ret 0xc
Function at 0x497160
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
mov dword [esi + 0xf860], eax
mov edx, 1
shl dx, cl
mov dword [esi + 0xf85c], ecx
mov dword [esi + 0xf850], ecx
dec ecx
mov eax, 1
shl eax, cl
push edi
xor edi, edi
dec dx
mov dword [esi + 0xf864], eax
inc eax
mov dword [esi + 0xf868], eax
mov ax, word [esi + 0xf864]
add ax, 2
mov word [esi + 0xf856], ax
mov eax, dword [esi + 0x1cc]
mov dword [esi + 0xf858], edi
mov dword [esi + 0x1d4], edi
mov dword [esi + 0x1d0], edi
mov word [esi + 0xf854], dx
mov dword [esi + 0xf86c], edi
cmp eax, edi
jne 0x4971e6
mov dword [ebp + 8], 0xffffffff
jmp 0x497225
mov ecx, dword [esi + 0x1c8]
mov edx, dword [esi + 0x1c4]
push ecx
dec eax
push edx
mov ecx, esi
mov dword [esi + 0x1cc], eax
call fcn.00498fe0
inc dword [esi + 0x1c4]
movzx ecx, al
mov eax, dword [esi + 0x1c4]
cmp eax, dword [esi + 0xc]
jne 0x497222
dec dword [esi + 0x1c8]
mov dword [esi + 0x1c4], edi
mov dword [ebp + 8], ecx
xor ecx, ecx
mov eax, 0x138b
lea esp, [esp]
add eax, eax
inc ecx
cmp eax, 0x10000
jl 0x497230
mov eax, 8
sub eax, ecx
push 0x138b
mov ecx, esi
mov dword [ebp + 0xc], eax
call fcn.00495130
movzx eax, word [esi + 0xf864]
push eax
mov ecx, esi
call fcn.00496910
nop
mov eax, dword [esi + 0x1cc]
test eax, eax
je 0x49739f
mov ecx, dword [esi + 0x1c8]
mov edx, dword [esi + 0x1c4]
push ecx
dec eax
push edx
mov ecx, esi
mov dword [esi + 0x1cc], eax
call fcn.00498fe0
inc dword [esi + 0x1c4]
mov ecx, dword [esi + 0x1c4]
movzx eax, al
mov dword [ebp - 4], eax
cmp ecx, dword [esi + 0xc]
jne 0x4972b1
dec dword [esi + 0x1c8]
mov dword [esi + 0x1c4], 0
cmp eax, 0xffffffff
je 0x49739f
mov ecx, dword [ebp + 0xc]
movsx edi, ax
shl edi, cl
mov ebx, eax
shl ebx, 0xc
add ebx, dword [ebp + 8]
xor edi, dword [ebp + 8]
mov ecx, dword [esi + edi*4 + 0x830c]
lea eax, [esi + edi*4 + 0x830c]
cmp ecx, ebx
jne 0x4972ef
movzx eax, word [esi + edi*2 + 0xd138]
mov dword [ebp + 8], eax
jmp 0x497260
test ecx, ecx
js 0x497325
mov ecx, 0x138b
sub ecx, edi
test edi, edi
jne 0x497303
mov ecx, 1
lea edx, [ecx*4]
sub eax, edx
sub edi, ecx
jns 0x49731b
add edi, 0x138b
add eax, 0x4e2c
mov edx, dword [eax]
cmp edx, ebx
je 0x497362
test edx, edx
jg 0x497303
mov edx, dword [ebp + 8]
push edx
mov ecx, esi
call fcn.00496910
mov eax, dword [ebp - 4]
mov dword [ebp + 8], eax
movzx eax, word [esi + 0xf856]
mov ecx, 0x1000
cmp ax, cx
jge 0x497372
mov word [esi + edi*2 + 0xd138], ax
inc word [esi + 0xf856]
mov dword [esi + edi*4 + 0x830c], ebx
jmp 0x497260
movzx ecx, word [esi + edi*2 + 0xd138]
mov dword [ebp + 8], ecx
jmp 0x497260
push 0x138b
mov ecx, esi
call fcn.00495130
mov dx, word [esi + 0xf864]
add dx, 2
mov word [esi + 0xf856], dx
mov dword [esi + 0xf858], 1
jmp 0x497250
mov ecx, dword [ebp + 8]
push ecx
mov ecx, esi
call fcn.00496910
movzx edx, word [esi + 0xf868]
push edx
mov ecx, esi
call fcn.00496910
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x49a4f0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x49a522
push esi
call fcn.0049f9e0
add esp, 4
cmp byte [esi + 0x40], 0
je 0x49a51b
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
pop ebp
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x49a59e
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x49a58d
mov eax, dword [esi + 8]
test eax, eax
je 0x49a547
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
mov edx, dword [esi + 0x190]
mov eax, dword [edx]
push esi
call eax
add esp, 4
test eax, eax
je 0x49a588
cmp eax, 2
je 0x49a58d
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x49a538
cmp eax, 3
je 0x49a56f
cmp eax, 1
jne 0x49a538
inc dword [ecx + 4]
mov ecx, dword [ecx + 4]
mov eax, dword [esi + 8]
cmp ecx, dword [eax + 8]
jl 0x49a538
mov ecx, dword [esi + 0x11c]
add dword [eax + 8], ecx
jmp 0x49a538
xor al, al
pop esi
pop ebp
ret
mov edx, dword [esi + 0x7c]
mov dword [esi + 0x84], edx
call fcn.0049a380
pop esi
pop ebp
ret
cmp eax, 0xcc
je 0x49a5c0
mov eax, dword [esi]
mov dword [eax + 0x14], 0x14
mov ecx, dword [esi]
mov edx, dword [esi + 0x14]
mov dword [ecx + 0x18], edx
mov eax, dword [esi]
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
call fcn.0049a380
pop esi
pop ebp
ret
Function at 0x4a4350
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x4c], 1
push esi
mov esi, dword [ebx + 0x1a8]
push edi
mov dword [ebp - 0x14], esi
jne 0x4a4378
mov dword [ebp - 4], 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x4a4383
mov dword [ebp - 4], 0
mov byte [esi + 0x1c], 0
mov ecx, dword [ebx + 0x64]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 4]
mov eax, dword [eax + 8]
push ecx
add edx, 0x100
push edx
push 1
push ebx
call eax
xor edi, edi
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
mov dword [ebp - 8], edi
cmp dword [ebx + 0x64], edi
jle 0x4a448f
jmp 0x4a43be
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 0x14]
mov ecx, dword [esi + edi*4 + 0x20]
cdq
idiv ecx
cmp dword [ebp - 4], 0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
je 0x4a43de
mov edx, dword [esi + 0x18]
add dword [edx + edi*4], 0xff
lea eax, [edx + edi*4]
mov eax, dword [esi + 0x18]
mov edi, dword [eax + edi*4]
lea eax, [ecx + 0xfe]
lea esi, [ecx + ecx - 2]
cdq
idiv esi
xor ebx, ebx
mov dword [ebp - 0x18], edi
xor ecx, ecx
mov esi, eax
lea ebx, [ebx]
cmp ecx, esi
jle 0x4a443c
mov eax, dword [ebp - 0xc]
mov edx, ebx
imul edx, edx, 0x1fe
lea edi, [edx + eax + 0xfe]
jmp 0x4a4420
mov esi, dword [ebp - 0xc]
add edi, 0x1fe
mov eax, edi
cdq
lea esi, [esi + esi - 2]
idiv esi
inc ebx
mov esi, eax
cmp ecx, esi
jg 0x4a4420
mov edi, dword [ebp - 0x18]
mov al, byte [ebp - 0x10]
imul bl
mov byte [ecx + edi], al
inc ecx
cmp ecx, 0xff
jle 0x4a4400
cmp dword [ebp - 4], 0
je 0x4a447c
mov eax, 1
lea ecx, [edi - 1]
jmp 0x4a4460
movzx edx, byte [edi]
mov byte [ecx], dl
movzx edx, byte [edi + 0xff]
mov byte [edi + eax + 0xff], dl
inc eax
dec ecx
cmp eax, 0xff
jle 0x4a4460
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ecx + 0x64]
jl 0x4a43b5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a63f0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
call fcn.004a75d0
mov eax, dword [0x670758]
push 0x320
push eax
mov byte [0x66fe03], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [0x670310]
lea ecx, [ebp - 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x4a643f
cmp dword [ebp - 4], 0x103
jne 0x4a643f
mov eax, dword [0x670310]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
push esi
push 0
call fcn.004a7690
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
mov eax, dword [0x670754]
test eax, eax
je 0x4a6466
push eax
call esi
mov dword [0x670754], 0
mov eax, dword [0x670758]
test eax, eax
je 0x4a647c
push eax
call esi
mov dword [0x670758], 0
call fcn.004a7550
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret