joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41966c
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x429280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004147b8
mov dword [ebp - 0x14], eax
cmp dword [0x42b3f8], esi
jne 0x41975f
push 0x800
push esi
push 0x42270c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4196ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41983f
push esi
push esi
push 0x42270c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x41983f
push 0x422724
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41983f
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x42b3f8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x42b3fc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x42b400], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42b408], eax
test eax, eax
je 0x41975c
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42b404], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x419784
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x419777
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x419799
push 4
pop eax
jmp 0x419841
cmp dword [ebp - 0x14], esi
je 0x419799
push dword [0x42b3f8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41977e
mov eax, dword [0x42b404]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4197f7
cmp dword [0x42b408], edi
je 0x4197f7
push eax
call ebx
push dword [0x42b408]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4197f7
test eax, eax
je 0x4197f7
call ecx
test eax, eax
je 0x4197ec
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4197ec
test byte [ebp - 8], 1
jne 0x4197f7
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x419827
mov eax, dword [0x42b3fc]
cmp eax, edi
je 0x419824
push eax
call ebx
test eax, eax
je 0x419824
call eax
mov esi, eax
test esi, esi
je 0x419824
mov eax, dword [0x42b400]
cmp eax, edi
je 0x419824
push eax
call ebx
test eax, eax
je 0x419824
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x42b3f8]
call ebx
test eax, eax
je 0x41983f
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x419841
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410c0e
mov esp, ebp
pop ebp
ret
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x18a072c6
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..rdata
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x5d275ed3
nop
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x40332c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4cf008], 0x8088405
inc edx
mov dword [ebx + 0x4cf008], edx
fld qword [ebx + 0x4cf780]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret

Function at 0x403a0c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4cf024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403aa4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403a84
xor eax, eax
push ebp
push 0x403a7d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403adc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403a84
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x4cf024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4cf024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404bb4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d7050], 0
je 0x404c15
cmp word [0x4d732c], 0xd7b2
jne 0x404bdd
cmp dword [0x4d7334], 0
jbe 0x404bdd
mov eax, 0x4d7328
call dword [0x4d7344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404c40
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4cf030], 0
jne 0x404c31
push 0
push 0x4cf788
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x407a60
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x4093ec
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4d9b2c
push 0xa
push 0x409480
mov eax, dword [0x4d9b1c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x409410
call fcn.00412808
push ebx
mov eax, dword [0x4d9b1c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x409427
call fcn.00412808
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x409439
call fcn.00412808
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4d9b30], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4d9b34], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4d9b38], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4d9b3c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4d9b40], ecx
add edx, dword [eax + 0x14]
mov dword [0x4d9b44], edx
pop esi
pop ebx
ret

Function at 0x40abe4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40ac8d
test eax, edx
je 0x40ac90
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40ac0d
push edx
mov edx, eax
mov eax, esp
call fcn.004059e0
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40ac23
push eax
lea eax, [esp + 8]
call fcn.004059e0
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40ac32
movzx eax, word [eax]
sub eax, ecx
jmp 0x40ac59
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40ac73
add ecx, 4
js 0x40ac4a
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40ac70
push eax
mov eax, ecx
mov edx, 2
call fcn.00404e54
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40ac57
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40ac59
xor eax, eax
ret
test eax, eax
je 0x40aca0
test edx, edx
jne 0x40abf4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40bd5c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405840
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40bd7a
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40bd9b
cmp ebx, 3
je 0x40bd9b
cmp ebx, 0x7b
je 0x40bd9b
mov eax, esi
call fcn.0040bd1c
test al, al
jne 0x40bd9f
xor eax, eax
jmp 0x40bda1
mov al, 1
pop esi
pop ebx
ret

Function at 0x40bda4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405840
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40bdbd
test al, 0x10
jne 0x40bdc1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x40ffe0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x410019
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004058f0
jmp 0x410022
mov eax, ebx
mov edx, esi
call fcn.004057b4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41002c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x41004e
movzx eax, word [esp]
jmp 0x410050
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4107b4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffff004
push eax
add esp, 0xffffff7c
push 0x800
lea ecx, [esp + 0x88]
call fcn.004105ec
mov eax, dword [0x4d6298]
cmp byte [eax], 0
je 0x410846
mov eax, dword [0x4d5e64]
call fcn.00403434
call fcn.0040316c
lea eax, [esp + 0x884]
push eax
lea eax, [esp + 0x88]
push eax
call sub.user32.dll_CharToOemW
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x88c]
call fcn.0040c060
push eax
lea eax, [esp + 0x890]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x410894
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x41087f
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4d5dc0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4d9b1c]
call fcn.00406da8
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x8c]
push eax
push 0
call sub.user32.dll_MessageBoxW
add esp, 0x1084
ret
Function at 0x41145c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x411532
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405808
lea eax, [ebp - 4]
call fcn.004060dc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405840
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x41151c
mov eax, ebx
call fcn.00403004
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x411515
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405840
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4114ff
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x411544
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4114ff
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41151c
mov eax, dword [ebp - 0x10]
call fcn.00403020
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411539
lea eax, [ebp - 4]
call fcn.004057a4
ret

Function at 0x4126b0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00405174
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x41265a
mov eax, edi
add eax, eax
call fcn.00403004
mov esi, eax
jmp 0x41265c
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x412695
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x41267f
mov eax, esp
cmp esi, eax
je 0x4126a2
mov eax, esi
call fcn.00403020
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x4126dc
cmp bl, 0
je 0x4126d8
cmp bl, 0x41
jl 0x4126d3
cmp bl, 0x5a
jg 0x4126d3
or bl, 0x20
xor al, bl
inc esi
jmp 0x4126b7
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41261c

Function at 0x4234b0
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004231b4
dec esi
jne 0x4234d2
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x42467c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4dbe60
cmp dword [edi], 0
jne 0x4246f8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4dbe5c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4cfc40
mov ecx, 2
call fcn.00403200
mov edx, 0x424654
lea eax, [esi + 5]
call fcn.00424674
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00424674
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x4246cd
mov dword [0x4dbe5c], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x427634
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00405840
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x42768c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4d64b4]
mov dl, 1
mov eax, dword [0x4270bc]
call fcn.00410990
call fcn.00404638
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00427244
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x428928
Capabilities:
Encode data using xor

Disassembly:
add byte [eax], al
or byte [edi + 0x72], al
popal
jo 0x42888b
imul esp, dword [ebx + 0x73], 0xc0850000
je 0x42883a
cmp eax, dword [0x4dbeb4]
je 0x42883a
push eax
call sub.gdi32.dll_DeleteObject
ret
nop
xchg esp, eax
mov byte [edx], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
xchg esp, eax
mov byte [edx], al
pushfd
mov byte [edx], al
sub byte [eax], al
add byte [eax], al
call 0x42c879
cmp eax, 0x3d080040
inc eax
add byte [eax - 0x5fffbfc2], ch
inc eax
add al, al
inc eax
add ah, al
inc eax
add al, cl
inc eax
add byte [esi + edi + 0x3bdc0040], bh
inc eax
add al, bh
cmp eax, dword [eax]
js 0x42881b
add byte [eax - 0x77], bh
inc edx
add byte [ecx], al
add bh, bh
call esp
mov eax, dword [edx]
adc byte [edx + edx*2 + 0x65], dl
jae 0x428911
jne 0x428916
arpl word [ebp + 0x4d], sp
popal
outsb dx, byte [esi]
popal
jb 0x42883b
inc eax
add byte [eax], cl
mov dword [edx], eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
or byte [ecx - 0x76efffbe], cl
inc edx
add byte [eax], ch
add byte [eax], al
add byte [eax + ecx*4], bh
inc edx
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], cl
mov dword [edx], eax
adc byte [ecx + 0x280042], cl
add byte [eax], al
cmp al, 0x88
inc edx
add byte [eax], al
cmp eax, 0x3d080040
inc eax
add byte [eax - 0x5fffbfc2], ch
inc eax
add al, al
inc eax
add ah, al
inc eax
add al, cl
inc eax
add byte [esi + edi + 0x3bdc0040], bh
inc eax
add al, bh
cmp eax, dword [eax]
js 0x42888f
inc edx
add byte [ecx], al
add bh, bh
inc dword [esp + ecx*4 + 0x42]
add byte [0x75724254], dl
push esp
inc edx
jb 0x42898a
jae 0x42897f
push 0x6f736552
push edx
jae 0x42898a
jne 0x42898f
arpl word [ebp + 0x4d], sp
popal
outsb dx, byte [esi]
popal
jb 0x4288b2
ror byte [ecx + 0x31c289d1], 0xc0
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x42892e
ret
mov ebx, edx
mov esi, eax
lea eax, [esi + 8]
push eax
call sub.kernel32.dll_DeleteCriticalSection
test bl, bl
jle 0x428997
std
inc dword [ebx + ebx*8 - 0x3974f882]
pop es
mov eax, esi
call fcn.004040e4
pop esi
pop ebx
ret
Function at 0x434fc4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x74]
sub edi, dword [ebx + 0x6c]
jmp 0x434ff3
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x435072
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.00433894
add esp, 0xc
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], ebp
mov eax, dword [ebx + 0x4c]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x44]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x435040
mov cx, word [esp]
sub cx, si
jmp 0x435042
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x435029
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x435068
mov cx, word [esp]
sub cx, si
jmp 0x43506a
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x435051
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x4350cf
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.00434c98
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x4350ba
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x6c]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x58]
shl eax, cl
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x6c]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
cmp dword [ebx + 0x74], 0x106
jae 0x4350cf
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x434fce
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x442e6c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea esi, [ebp - 4]
xor eax, eax
push ebp
push 0x44304e
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [esi]
call fcn.004600b0
mov eax, dword [esi]
cmp byte [eax + 0x268], 0
je 0x443033
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [esi]
sub eax, dword [edx + 0x278]
mov edx, dword [esi]
cmp eax, dword [edx + 0x2d0]
jb 0x442ed4
mov eax, dword [esi]
add eax, 0x274
xor edx, edx
call fcn.004057b4
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [esi]
mov dword [edx + 0x278], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp ax, 8
je 0x442fba
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp ax, 0xd800
jb 0x442f03
cmp ax, 0xdfff
jbe 0x442f07
xor eax, eax
jmp 0x442f09
mov al, 1
test al, al
je 0x442f77
push 1
push 0x102
push 0x102
mov eax, dword [esi]
call fcn.0046122c
push eax
lea eax, [ebp - 0x24]
push eax
call sub.user32.dll_PeekMessageW
test eax, eax
je 0x442ffe
mov eax, dword [esi]
push dword [eax + 0x274]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 8]
movzx edx, word [edx]
call fcn.00405930
push dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
call fcn.00405930
push dword [ebp - 0x2c]
mov eax, dword [esi]
add eax, 0x274
mov edx, 3
call fcn.00405c68
mov eax, dword [ebp - 8]
mov word [eax], 0
jmp 0x442ffe
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 8]
movzx edx, word [edx]
call fcn.00405930
mov edx, dword [ebp - 0x30]
mov eax, dword [esi]
add eax, 0x274
call fcn.00405b18
jmp 0x442ffe
mov eax, dword [esi]
mov ebx, dword [eax + 0x274]
test ebx, ebx
je 0x442fa7
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [esi]
add eax, 0x274
mov ecx, 1
mov edx, ebx
call fcn.00405ee8
mov eax, dword [esi]
mov eax, dword [eax + 0x274]
call fcn.00405a74
mov edx, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x274]
call fcn.00411550
cmp al, 2
je 0x442f96
mov eax, dword [esi]
mov eax, dword [eax + 0x274]
test eax, eax
je 0x442feb
sub eax, 4
mov eax, dword [eax]
mov edx, dword [esi]
add edx, 0x274
mov ecx, 1
xchg edx, eax
call fcn.00405ee8
mov eax, dword [esi]
mov eax, dword [eax + 0x274]
test eax, eax
je 0x44300f
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x44301c
push ebp
call fcn.00442d84
pop ecx
jmp 0x443033
xor edx, edx
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0xe0]
mov eax, dword [esi]
mov si, 0xffeb
call fcn.00403e54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x443055
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.004057ac
ret