joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6a6227
Capabilities:
Execute anti-debugging instructions

Disassembly:
add esp, 0x10
mov bl, bh
mov byte [esp], bh
mov bp, word [esp]
lea esp, [esp]
bsr bx, cx
jmp 0x6a622b
bswap edi
neg di
mov eax, 0xad2b661a
xchg si, bx
mov si, dx
jmp 0x6a61dc
neg bx
xchg byte [esp], al
lea edx, [esi*4]
mov cl, 2
mov word [esp + 2], sp
jmp 0x6a61f5
rcr ah, 1
jmp 0x6a620c
xchg byte [esp], dl
cpuid
btc ecx, edi
cpuid
mov ebx, 0x91a22652
not ebx
jmp 0x6a668c
lea ecx, [edi*4]
pushal
mov eax, dword [esp + 0x19]
rdtsc
xchg dword [esp + 0xc], edx
push dword [esp + 0x16]
jmp 0x6a62d1
lea esp, [esp + 0x41]
inc cl
mov ecx, ebp
btr ebx, edx
add ecx, ebp
jmp 0x6a6262
cpuid
btc ebx, ebx
mov edi, dword [esp + 0x15]
push dword [esp + 0x2a]
rdtsc
push word [esp + 0x22]
jmp 0x6a628c
lea esp, [esp + 0x44]
lea ebp, [ecx - 0x43]
mov dl, 0x8c
mov al, byte [esp]
setae dh
jmp 0x6a6313
lea ebp, [ecx + 0xa3]
btc ecx, edi
xchg byte [esp + 0x1b], bl
mov dword [esp + 7], esi
xchg byte [esp + 0x15], al
pushal
jmp 0x6a62ba
xchg di, cx
push esp
mov dword [esp], ebp
lea ecx, reloc.KERNEL32.dll_SetEndOfFile
bsr cx, bp
bsr si, cx
jmp 0x6a638e
bsr dx, cx
xor si, 0x8e64
setbe bh
mov di, bx
btc ebx, edi
inc bl
jmp 0x6a62e9
pushal
pop ax
push dword [esp + 0xb]
mov esi, 0xbae2535e
and cl, bh
lea eax, reloc.KERNEL32.dll_SetEndOfFile
jmp 0x6a62a4
mov esi, 0xa3ffd754
pop dx
bswap ebx
mov edi, 0x4d877ae4
xchg byte [esp], bl
mov dword [esp], esi
jmp 0x6a6373
xchg bp, ax
setae dh
xchg esi, eax
xchg bx, bp
xchg dh, al
mov bx, 0xb213
jmp 0x6a6346
mov ax, word [esp + 2]
mov word [esp], sp
push dword [esp + 2]
mov di, word [esp + 4]
mov esi, eax
clc
jmp 0x6a63de
push word [esp + 3]
mov bh, byte [esp + 5]
lea ebx, [edx + ebx]
bswap eax
mov edi, eax
mov cl, 0x6a
jmp 0x6a6361
push esp
bswap ecx
call fcn.006a63bb
neg dh
bswap ebx
push word [esp + 3]
cpuid
mov bp, dx
xor edx, esi
jmp 0x6a6457
mov ax, dx
pop word [esp + 1]
lea edx, [esp + esi]
mov dx, word [esp]
cpuid
rdtsc
jmp 0x6a6647
setae ch
lea edi, reloc.KERNEL32.dll_SetEndOfFile
mov bp, 0x1e45
mov bx, word [esp]
clc
lea edx, reloc.KERNEL32.dll_SetEndOfFile
jmp 0x6a64e6
mov di, 0x1143
mov bl, bh
xchg ebp, ebx
xchg bh, cl
neg dh
mov esi, 0x4adedda0
jmp 0x6a649c
mov al, ah
call 0x6a64cd
int 0x63
xchg esi, eax
les esi, gs:[0xac5d3aa4]
pop ebp
push ecx
rcl byte [ebx - 0x36]
mov bp, dx
pop word [esp + 0xa]
pushal
lea esp, [esp + 0x43]
mov di, sp
mov ecx, dword [esp]
jmp 0x6a64ba
mov edx, dword [esp]
mov al, 0x36
sub esp, 0x1e
push edx
push word [esp + 0x15]
neg esi
jmp 0x6a64fd
lea eax, [eax + edx]
xchg dh, al
shr ebx, 0x1f
lea esp, [esp + 3]
cpuid
setae ch
jmp 0x6a65f9
mov ebx, dword [esp]
xchg byte [esp], al
mov ax, bx
and eax, ecx
bswap esi
sub esp, 0x18
jmp 0x6a632d
Function at 0x6a63bb
Capabilities:
Execute anti-debugging instructions

Disassembly:
rcr ecx, 0x17
mov dx, 0xef7f
mov ecx, esi
push dword [esp + 0xe]
inc eax
lea edx, [esp + eax]
jmp 0x6a63c5
push esp
pop dword [esp]
stc
lea ebp, [edx + edi]
jmp 0x6a63a2
mov dword [esp + 3], eax
mov di, 0x829
btr ecx, esp
mov si, 0x493
stc
jmp 0x6a6483
mov bx, dx
lea ebx, [edx + esi]
xchg bh, cl
bswap edx
push edx
lea esp, [esp + 1]
jmp 0x6a63e6
lea ebp, [esp + eax]
lea esp, [esp + 8]
cpuid
mov eax, ebp
btr esi, edx
neg dh
jmp 0x6a63fe
cmc
add esp, 0xf
rdtsc
btr ebp, edx
mov word [esp + 1], sp
inc ax
jmp 0x6a6420
push dword [esp + 0xe]
rdtsc
xchg word [esp + 0xf], ax
mov ax, 0x6e75
btc ebp, ebx
mov word [esp + 0x10], di
jmp 0x6a6445

Function at 0x6a67a5
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg bp, ax
mov edi, ecx
jmp 0x6a67f7
mov di, word [esp]
neg dh
mov word [esp], sp
mov cl, 0xca
lea ecx, [eax*4]
call fcn.006a66da
lea eax, [ecx*4]
push dword [esp + 0x14]
neg ch
inc ecx
bswap edx
jmp 0x6a67d3
mov bl, bh
mov bl, 0x80
mov ebp, dword [esp]
call 0x6a67a5
dec byte [edi]
mov byte [0xfe10abd], al
outsb dx, byte [esi]
xchg bx, cx
jmp 0x6a6837
bsr si, bp
pushal
lea esp, [esp + 0x4e]
btc eax, ebx
not bx
xchg dh, al
jmp 0x6a6798
mov edx, 0x8d75a204
push dword [esp + 0x14]
mov ebp, 0x28afd0
push word [esp + 5]
add si, 0x7cae
xchg edx, eax
jmp 0x6a67bb
cmc
rdtsc
mov byte [esp + 3], ch
add esp, 3
mov ebx, ecx
inc dl
jmp 0x6a6735
mov cx, word [esp]
lea eax, [ebp - 0x6f]
push word [esp + 3]
not bp
mov cl, 0x22
add esp, 5
jmp 0x6a6924
mov cl, 0x7a
add esp, 1
bsr cx, cx
add esp, 1
xchg byte [esp], al
jmp 0x6a689f
bsr bx, cx
lea esi, [edx + edi]
mov bp, di
pop word [esp]
rdtsc
mov eax, dword [esp]
jmp 0x6a6874
and di, 0x5892
cld
sete bh
xchg dh, al
lea edx, reloc.KERNEL32.dll_SetEndOfFile
jmp 0x6a68e7
xchg ebx, ebp
mov cx, bx
mov word [esp + 7], bx
mov cx, word [esp + 0x10]
lea esp, [esp + 3]
add esp, 9
jmp 0x6a688a
mov cx, bx
neg bx
bsr cx, bp
bsr dx, cx
call fcn.006a690d
imul ecx, dword [eax - reloc.KERNEL32.dll_SetEndOfFile], 0x3c8ac48a
and al, 0xf
xor dword [esi - 0x69], esp
mov al, ah
mov bh, byte [esp]
rdtsc
xchg di, ax
btc ebx, ebx
mov ebx, esi
jmp 0x6a68ce
sub esp, 0x10
xchg ch, dl
xchg dword [esp + 5], edx
btr edx, edx
add bx, 0x711e
mov ax, word [esp + 2]
jmp 0x6a68b6
Function at 0x6a6b64
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov bh, byte [esp]
rdtsc
sub bl, ah
rdtsc
not si
btr eax, edx
jmp 0x6a6a26
setne ah
add esp, 0
mov ecx, 0xadaf3890
mov eax, esi
setp dh
jmp 0x6a69c7
mov eax, ebp
add esp, 2
mov edx, esi
mov al, ah
mov ebp, 0x7cf5cc72
not dh
jmp 0x6a69dd
lea ecx, [eax - 0x19]
rdtsc
xchg byte [esp], al
call 0x6a6a06
not ebp
sub esp, 0x1c
mov esi, 0x3b102344
xchg dword [esp], ebp
btc ebp, edi
bsf di, ax
jmp 0x6a6a66
mov edi, esi
lea ecx, [eax + edi]
push esp
not edx
pop dword [esp + 5]
pop dword [esp + 0x12]
jmp 0x6a6aa4
lea ebp, [ebp*4]
add esp, 6
neg ebx
mov ebp, dword [esp]
xchg di, cx
shr ecx, 3
jmp 0x6a69f4
push dword [esp + 0xe]
lea ebx, [esp + edx]
xchg ch, dl
mov ah, byte [esp + 0x11]
mov bp, di
mov esi, dword [esp + 4]
jmp 0x6a6b03
xchg dword [esp], eax
push dword [esp + 4]
lea ebp, [esi - 0x2d]
mov al, ah
bswap ebp
mov byte [esp + 7], ch
jmp 0x6a6a8a
popal
cld
cmc
clc
push esp
pop word [esp]
jmp 0x6a6aed
stc
push word [esp + 1]
mov byte [esp], ah
cld
push esp
push dword [esp + 6]
jmp 0x6a6b48
pop dword [esp + 0x18]
cpuid
neg eax
inc bl
lea esp, [esp + 1]
lea esp, [esp + 0x1c]
jmp 0x6a6ade
call 0x6a6b17
fimul word [ebx - 0x25]
mov esi, 0xec74e24d
bound eax, qword [0x587943f4]
mov ebx, 0x8d9c0d92
and al, 0xc
lea esp, [esp + 0xc]
popfd
lea esp, [esp + 4]
jmp 0x6a6b31
rdtsc
xchg dword [esp], eax
jmp 0x6a6aca

Function at 0x6a6d39
Capabilities:
Parse pe header

Disassembly:
lea esp, [esp + 1]
mov dword [esp + 0x40], esi
pushal
jmp 0x6a6d97
lea esp, [esp + 0x46]
call 0x6a6d81
mov bl, 0x23
inc esi
mov ch, 0x5a
and al, 0xb4
sub cl, byte [ebp - 0x44]
sbb esp, dword [ecx]
pop word [esp]
push word [esp + 1]
mov dword [esp + 0x40], edi
jmp 0x6a6dad
push word [esp + 0xb]
push edx
mov dword [esp + 0x1d], ebp
mov byte [esp + 8], bh
mov word [esp + 0x10], di
pushal
jmp 0x6a6d6b
lea esp, [esp + 0x40]
jmp 0x6a6dcf

Function at 0x6a6d81
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
lea esp, [esp + 1]
mov dword [esp + 0x40], esi
pushal
jmp 0x6a6d97
lea esp, [esp + 0x46]
call 0x6a6d81
mov bl, 0x23
inc esi
mov ch, 0x5a
and al, 0xb4
sub cl, byte [ebp - 0x44]
sbb esp, dword [ecx]
pop word [esp]
push word [esp + 1]
mov dword [esp + 0x40], edi
jmp 0x6a6dad
push word [esp + 0xb]
push edx
mov dword [esp + 0x1d], ebp
mov byte [esp + 8], bh
mov word [esp + 0x10], di
pushal
jmp 0x6a6d6b
lea esp, [esp + 0x40]
jmp 0x6a6dcf
Function at 0x403351
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.004043ae
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.004043ae
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0xc], 0
jne 0x4033e7
mov dword [ebp - 0x18], esp
mov eax, 0
call fcn.004043a8
cmp dword [ebp - 0x18], esp
je 0x4033e4
push 6
call fcn.004043a2
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 0x18], esp
push dword [ebp + 8]
push 0
push 0x1f0fff
mov eax, 1
call fcn.004043a8
cmp dword [ebp - 0x18], esp
je 0x403413
push 6
call fcn.004043a2
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], esp
lea eax, [ebp - 8]
push eax
push 0xf01ff
push dword [ebp - 4]
mov eax, 2
call fcn.004043a8
cmp dword [ebp - 0x18], esp
je 0x403441
push 6
call fcn.004043a2
add esp, 4
mov dword [ebp - 0x18], esp
push dword [ebp - 0xc]
push str.SeDebugPrivilege
push 0
mov eax, 3
call fcn.004043a8
cmp dword [ebp - 0x18], esp
je 0x40346d
push 6
call fcn.004043a2
add esp, 4
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x10]
add ebx, 0xc
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 2
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 8
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov dword [ebp - 0x18], esp
push 0
push 0
push 0
push dword [ebp - 0x10]
push 0
push dword [ebp - 8]
mov eax, 4
call fcn.004043a8
cmp dword [ebp - 0x18], esp
je 0x4034fc
push 6
call fcn.004043a2
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 4]
mov eax, 5
call fcn.004043a8
cmp dword [ebp - 0x18], esp
je 0x403521
push 6
call fcn.004043a2
add esp, 4
mov eax, dword [ebp - 0x14]
jmp 0x403529
push eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.00404396
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.00404396
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8
Function at 0x40b8e0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x466fcb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0045bc78
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40b962
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00459bc7
mov eax, dword [eax]
push 0xc651c0
push eax
call fcn.0044cac4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045bf03
test bl, bl
je 0x40b962
push 0xc651c0
lea ecx, [esp + 0xc]
call fcn.0045c293
push 0xc68d3c
lea ecx, [esp + 0xc]
call fcn.0045c293
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40b99e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045bf03
jmp 0x40ba69
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40ba22
lea edx, [esp + 0x7c]
push 0xc68d38
push edx
call fcn.0044cac4
add esp, 8
test eax, eax
je 0x40ba22
lea eax, [esp + 0x7c]
push 0xc68d34
push eax
call fcn.0044cac4
add esp, 8
test eax, eax
je 0x40ba22
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40b9b2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0045bf03
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40c260
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40c2c2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40c2d0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46704b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0xc6f200]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40c408
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40c336
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045bf03
xor eax, eax
jmp 0x40c47f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045c040
push esi
lea ecx, [esp + 0xc]
call fcn.0045c2cf
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40c45d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push 0x80000000
call fcn.0040c260
test eax, eax
jne 0x40c45d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push 0x80000000
mov ecx, edi
call fcn.0040c260
test eax, eax
jne 0x40c45d
lea eax, [esp + 0x14]
push str.__1_
push eax
call fcn.0044db00
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c43c
lea ecx, [esp + 0x14]
push 0xc68d4c
push ecx
call fcn.0044da80
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c43c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40c43f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045bff0
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40c34e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045bf03
xor eax, eax
jmp 0x40c47f
mov byte [esi], 0
push 0xc68d48
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0045bf03
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x41cab0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x41cb1e
cmp si, 0x69
ja 0x41cb1e
add esi, 0xffd0
cmp si, 0x11
je 0x41caee
push 0x11
call edi
test ax, ax
jge 0x41caee
or esi, 0x2000
cmp si, 0x10
je 0x41cb03
push 0x10
call edi
test ax, ax
jge 0x41cb03
or esi, 0x4000
cmp si, 0x12
je 0x41cb18
push 0x12
call edi
test ax, ax
jge 0x41cb18
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41cb2b
mov esi, 0xbd
jmp 0x41cadf
cmp si, 0x6e
jne 0x41cb38
mov esi, 0xbe
jmp 0x41cadf
cmp si, 0x6f
jne 0x41cad9
mov esi, 0xbf
jmp 0x41cadf

Function at 0x41e260
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xc7f840]
xor edx, edx
cmp eax, edx
jne 0x41e286
xor eax, eax
mov byte [eax + 0xc7f740], al
inc eax
cmp eax, 0x100
jl 0x41e26e
mov dword [0xc7f840], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xc7f740
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41e317
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 0x41e2ea
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 0x41e2b8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41e390
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 0x41e3e3
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 0x41e3ca
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 0x424e20
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 0x424fb8
cmp ebp, ebx
jle 0x424fb8
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x424e7e
dec eax
or eax, 0xfffffff8
inc eax
je 0x424e85
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x424e94
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x424e9b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.0045bc44
add esp, 4
cmp eax, ebx
je 0x424ebc
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.0045bc44
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 0x424fae
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 0x424f95
mov al, byte [edx]
cmp al, 0xc0
jbe 0x424f81
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x424f76
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 0x424f84
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x424f84
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x424f20
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 0x424f11
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
Function at 0x4281e0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x468518
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
push edi
mov edi, dword [esp + 0x44]
mov esi, ecx
test edi, edi
jne 0x428219
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 0x24
push 0x400
lea ecx, [esp + 0xc]
call fcn.004635f1
mov eax, dword [esp + 0x40]
push 0
push edi
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0
call fcn.0046363d
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, esi
call fcn.004282a0
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
call fcn.0046367a
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret 0x24
Function at 0x42c770
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x468ca8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x6c]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x74]
push edi
push eax
mov eax, dword [esp + 0x74]
push ecx
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.0042d2f0
lea edx, [esp + 0x18]
push eax
push edx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x18]
xor edi, edi
xor ecx, ecx
cmp eax, edi
setl cl
dec ecx
xor edx, edx
and ecx, eax
mov eax, dword [esp + 0x1c]
cmp eax, edi
mov dword [esp + 0x18], ecx
setl dl
dec edx
and edx, eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x20], edx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x42c819
mov eax, dword [esp + 0x6c]
push ebx
mov ebx, eax
xor ecx, ecx
xor edx, edx
xor esi, esi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.0042c400
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
push ecx
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push edi
lea ecx, [esp + 0x4c]
call fcn.004628a2
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], edi
call fcn.0043bad0
mov edx, dword [esp + 0x5c]
add esp, 0xc
lea ecx, [esp + 0x18]
push 2
push ecx
push edx
call dword [sym.imp.GDI32.dll_LPtoDP]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
lea edx, [esp + 0x38]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, esi
mov dword [esp + 0x64], 0xffffffff
mov dword [edx], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x48]
call fcn.00462914
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14