joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100c050f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push edi
push edx
add esp, 4
jmp 0x100c036d
or edi, 0x16d79
pop edi
push ecx
jmp 0x100c037c
pop ecx
push edx
push edx
add esp, 4
call fcn.100c0390
add byte [edx + esi], dh
cmp eax, dword [edx + 0x37]
aaa
dec esi
add esp, 4
pop edx
lea eax, [ebp - 0x178c]
mov dword [ebp - 0xccc], eax
mov ecx, dword [ebp - 0x518]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0xcc8], edx
xor eax, eax
mov word [ebp - 0x21c], ax
xor ecx, ecx
mov word [ebp - 0x3c], cx
push ecx
push ecx
add esp, 4
call 0x100c03d2
add byte [ebx + 0x3c], al
dec edi
inc edx
cmp byte [eax + 0x33], dl
xor eax, dword [eax - 0x7d]
les eax, [ecx + eax*4]
loope 0x100c03d3
fiadd dword [eax]
add byte [ecx + 0x53], bl
push edx
add esp, 4
sub ebx, 0xe9f
pop ebx
push ebx
sub ebx, 0x139f6
pop ebx
mov edx, dword [ebp - 0xcc8]
mov ax, word [edx]
mov word [ebp - 0x1042], ax
mov ecx, dword [ebp - 0xcc8]
add ecx, 2
mov dword [ebp - 0xcc8], ecx
mov dx, word [ebp - 0x1042]
mov word [ebp - 0x21c], dx
mov eax, dword [ebp - 0xccc]
mov cx, word [eax]
mov word [ebp - 0x1044], cx
mov edx, dword [ebp - 0xccc]
add edx, 2
mov dword [ebp - 0xccc], edx
mov ax, word [ebp - 0x1044]
mov word [ebp - 0x3c], ax
push eax
push edx
add esp, 4
sub eax, 0x5758
pop eax
push ebx
push eax
add esp, 4
add ebx, 0x1960
or ebx, 0xbb58
and ebx, 0x160db
pop ebx
push edi
or edi, 0xbd04
add edi, 0x101ab
pop edi
movzx ecx, word [ebp - 0x3c]
test ecx, ecx
jne 0x100c0496
movzx edx, word [ebp - 0x21c]
movzx eax, word [ebp - 0x3c]
sub edx, eax
mov dword [ebp - 0x1620], edx
jmp 0x100c04f0
movzx ecx, word [ebp - 0x21c]
movzx edx, word [ebp - 0x3c]
cmp ecx, edx
je 0x100c03be
movzx eax, word [ebp - 0x21c]
xor eax, 0x20
movzx ecx, word [ebp - 0x3c]
cmp eax, ecx
je 0x100c03be
movzx edx, word [ebp - 0x21c]
movzx eax, word [ebp - 0x3c]
cmp edx, eax
jge 0x100c04da
mov dword [ebp - 0x161c], 0xffffffff
jmp 0x100c04e4
mov dword [ebp - 0x161c], 1
mov ecx, dword [ebp - 0x161c]
mov dword [ebp - 0x1620], ecx
cmp dword [ebp - 0x1620], 0
jne 0x100c0539
push edi
or edi, 0xc590
call 0x100c050f
add byte [0x3d38453b], dh
dec ebx
xor eax, dword [ebx + 0x41]
add esp, 4
pop edi
push edx
push esi
add esp, 4
and edx, 0x7937
add edx, 0x1141f
xor edx, 0x185b2
pop edx
mov edx, dword [ebp - 0x518]
mov dword [ebp - 0x774], edx
jmp 0x100c05a1
push eax
and eax, 0x15bb1
pop eax
push ecx
push esi
add esp, 4
or ecx, 0x171c6
add ecx, 0xcf0f
pop ecx
push edi
push ecx
add esp, 4
or edi, 0x163b6
and edi, 0x14981
or edi, 0x134ae
pop edi
mov eax, dword [ebp - 0x518]
mov ecx, dword [eax]
mov dword [ebp - 0x518], ecx
mov edx, dword [ebp - 0x518]
cmp edx, dword [ebp - 0xcd0]
je 0x100c0597
mov eax, dword [ebp - 0x518]
cmp dword [eax + 0x30], 0
jne 0x100c0362
mov dword [ebp - 0x774], 0
Function at 0x1012075a
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 0xc], 0
push ebx
mov ebx, dword [0x10181724]
push esi
push edi
push 0xf0000000
push 1
xor esi, esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov eax, dword [0x10176c24]
mov edi, dword [ebp + 0x10]
add eax, edi
push eax
push 8
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
cmp dword [ebp - 0xc], esi
je 0x101207b5
mov eax, dword [0x10176c14]
fld qword [eax + edi]
mov esi, edi
fadd qword [0x1014b000]
fstp qword [eax + edi]
call fcn.1012062f
push dword [ebp + 0xc]
mov eax, dword [0x10176c18]
push dword [eax + edi]
mov esi, dword [0x10181720]
push str.initWithNumberOfVertices:numberOfEdges:
call esi
pop ecx
push eax
push str.alloc
call esi
pop ecx
push eax
push str.__NSSKGraph
call dword [0x1018171c]
pop ecx
push eax
call ebx
pop ecx
pop ecx
push eax
call ebx
and dword [ebp - 8], 0
add esp, 0x10
cmp dword [ebp + 0xc], 0
mov dword [ebp - 4], eax
jbe 0x10120845
jmp 0x10120801
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
push dword [eax + ecx*4]
mov eax, dword [0x10176c1c]
push dword [eax + edi]
mov eax, dword [0x10176c24]
add eax, edi
lea edi, [ebp - 0x18]
call fcn.10120516
pop ecx
pop ecx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push str.addEdgeWithH1:withH2:
call esi
pop ecx
push eax
push dword [ebp - 4]
call ebx
add esp, 0x10
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jb 0x101207fe
push str.isAcyclic
call esi
push eax
push dword [ebp - 4]
call ebx
push str.isEmpty
mov edi, eax
call esi
push eax
push dword [ebp - 4]
call ebx
add esp, 0x18
test al, al
jne 0x10120896
push edi
call dword [0x10181098]
mov dword [esp], str.release
call esi
push eax
push dword [ebp - 4]
call ebx
xor edi, edi
add esp, 0xc
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x3e8
mov dword [ebp - 4], edi
jl 0x1012076d
test edi, edi
je 0x101208ab
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 4]
mov dword [eax], edi
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
mov al, 1
jmp 0x101208ad
xor al, al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10128382
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10178af8]
jne 0x1012838c
repz ret
jmp fcn.1012905e

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4010f4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42c004]
jne 0x4010fe
repz ret
jmp fcn.004014d0

Function at 0x408cfc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00404ac6
and dword [ebp - 0x14], 0
cmp dword [0x42ec74], 0
mov dword [ebp - 0x18], eax
jne 0x408daf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x408e57
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x408e57
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42ec74], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42ec78], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42ec7c], eax
call edi
push eax
call esi
mov dword [0x42ec84], eax
test eax, eax
je 0x408daf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42ec80], eax
mov eax, dword [0x42ec80]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x408e08
cmp dword [0x42ec84], ecx
je 0x408e08
push eax
call esi
push dword [0x42ec84]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x408e08
test ebx, ebx
je 0x408e08
call edi
test eax, eax
je 0x408dff
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x408dff
test byte [ebp - 8], 1
jne 0x408e08
or dword [ebp + 0x10], 0x200000
jmp 0x408e3b
mov eax, dword [0x42ec78]
cmp eax, dword [ebp - 0x18]
je 0x408e3b
push eax
call esi
test eax, eax
je 0x408e3b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x408e3b
mov eax, dword [0x42ec7c]
cmp eax, dword [ebp - 0x18]
je 0x408e3b
push eax
call esi
test eax, eax
je 0x408e3b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42ec74]
call esi
test eax, eax
je 0x408e57
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x408e59
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004010f4
leave
ret
Function at 0x420e20
Capabilities:
Create pipe

Disassembly:
sub esp, 0x24
mov eax, dword [0x42c004]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [0x42cdb0]
push ebx
mov ebx, dword [0x2bd2234]
push edi
mov edi, dword [0x2bd46b4]
call fcn.00420d90
cmp dword [0x2bd46b4], 0x2f
jne 0x420e8d
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
call fcn.00420dc0
mov ecx, dword [esp + 0x24]
pop edi
pop ebx
xor ecx, esp
call fcn.004010f4
add esp, 0x24
ret
Function at 0x421120
Capabilities:
Manipulate console buffer
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
jmp 0x421138
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x1519a5
jge 0x421181
mov dword [0x2bd431c], 0x8e46a6f0
cmp dword [0x2bd46b4], 0x3dc
jne 0x42117f
xor ecx, ecx
mov word [ebp - 8], cx
xor edx, edx
mov word [ebp - 6], dx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterW]
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
jmp 0x42112f
mov dword [ebp - 0x10], 0
jmp 0x421193
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0x12cad2a
jge 0x421236
cmp dword [0x2bd46b4], 0xa5f
jne 0x4211bc
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x10], 0x84620b
jne 0x4211e1
mov eax, dword [0x42dbd0]
mov dword [0x2bd46b4], eax
mov ecx, dword [0x2bd46b4]
add ecx, 0xa231
mov dword [0x2bd46b4], ecx
cmp dword [0x2bd46b4], 0x141
jne 0x421231
xor edx, edx
mov word [ebp - 0x24], dx
xor eax, eax
mov word [ebp - 0x22], ax
xor ecx, ecx
mov word [ebp - 0x20], cx
xor edx, edx
mov word [ebp - 0x1e], dx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputA]
mov dword [0x42f1a0], 0xec58acac
mov dword [0x42f1a4], 0xffffffff
jmp 0x42118a
call fcn.00420eb0
jmp dword [0x2bd2234]
Function at 0x403e20
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov ebp, dword [esp + 0x2c]
test ebp, ebp
je 0x403fd6
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
movzx edi, cx
shr ecx, 0x10
test ebx, ebx
je 0x403fcf
mov edx, 0x5e6ea9af
mov eax, ebx
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov esi, ebx
sub esi, eax
jmp 0x403eb3
add ebp, dword [esp + 0xc]
mov esi, dword [esp + 4]
mov eax, edi
mov edx, 0x80078071
mul edx
mov ebx, edx
shr ebx, 0xf
mov eax, ecx
mov edx, 0x80078071
mul edx
imul eax, ebx, 0xfff1
sub edi, eax
shr edx, 0xf
imul eax, edx, 0xfff1
sub ecx, eax
mov ebx, dword [esp + 0x10]
sub ebx, esi
mov esi, 0x15b0
je 0x403fcf
xor edx, edx
cmp esi, 8
mov dword [esp + 4], esi
jb 0x403f2d
and esi, 0x1ff8
mov dword [esp], esi
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
mov eax, edx
movzx edx, byte [ebp + edx]
add edx, edi
add ecx, edx
movzx esi, byte [ebp + eax + 1]
add esi, edx
add ecx, esi
movzx edx, byte [ebp + eax + 2]
add edx, esi
add ecx, edx
movzx esi, byte [ebp + eax + 3]
add esi, edx
add ecx, esi
movzx edx, byte [ebp + eax + 4]
add edx, esi
add ecx, edx
movzx esi, byte [ebp + eax + 5]
add esi, edx
add ecx, esi
movzx edx, byte [ebp + eax + 6]
add edx, esi
mov esi, dword [esp + 4]
add ecx, edx
movzx edi, byte [ebp + eax + 7]
add edi, edx
add ecx, edi
lea edx, [eax + 8]
add eax, 0xf
cmp eax, esi
jb 0x403ed0
add ebp, edx
mov edx, dword [esp]
mov eax, esi
sub eax, edx
mov dword [esp + 0x10], ebx
jbe 0x403e78
mov dword [esp], edx
not edx
add edx, esi
mov dword [esp + 8], edx
and esi, 3
mov dword [esp + 0xc], eax
je 0x403f83
neg esi
xor edx, edx
mov ebx, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, byte [ebx]
inc ebx
add edi, eax
add ecx, edi
dec edx
cmp esi, edx
jne 0x403f60
mov eax, dword [esp]
sub eax, edx
mov edx, eax
mov eax, dword [esp + 8]
cmp eax, 3
jb 0x403e70
jmp 0x403f95
mov ebx, ebp
mov eax, dword [esp + 8]
mov edx, dword [esp]
cmp eax, 3
jb 0x403e70
mov eax, dword [esp + 4]
sub eax, edx
xor edx, edx
nop
nop
nop
movzx esi, byte [ebx + edx]
add esi, edi
add ecx, esi
movzx edi, byte [ebx + edx + 1]
add edi, esi
add ecx, edi
movzx esi, byte [ebx + edx + 2]
add esi, edi
add ecx, esi
movzx edi, byte [ebx + edx + 3]
add edi, esi
add ecx, edi
add edx, 4
cmp eax, edx
jne 0x403fa0
jmp 0x403e70
shl ecx, 0x10
or ecx, edi
jmp 0x403fdb
mov ecx, 1
mov eax, ecx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x403ff0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
not ebx
cmp edx, 4
jb 0x404062
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ebx
xor bl, byte [ecx]
shr eax, 8
movzx esi, bl
xor eax, dword [esi*4 + 0x2366928]
mov ebx, eax
xor al, byte [ecx + 1]
shr ebx, 8
movzx eax, al
xor ebx, dword [eax*4 + 0x2366928]
mov eax, ebx
xor bl, byte [ecx + 2]
shr eax, 8
movzx esi, bl
xor eax, dword [esi*4 + 0x2366928]
mov ebx, eax
xor al, byte [ecx + 3]
shr ebx, 8
movzx eax, al
xor ebx, dword [eax*4 + 0x2366928]
add ecx, 4
add edx, 0xfffffffc
cmp edx, 3
ja 0x404010
test edx, edx
je 0x404074
test dl, 1
jne 0x404078
mov esi, edx
cmp edx, 1
jne 0x40409f
jmp 0x4040f2
mov eax, ebx
jmp 0x4040f2
mov eax, ebx
shr eax, 8
movzx esi, byte [ecx]
mov edi, ebx
and edi, esi
add ebx, esi
add edi, edi
sub ebx, edi
movzx esi, bl
xor eax, dword [esi*4 + 0x2366928]
inc ecx
lea esi, [edx - 1]
mov ebx, eax
cmp edx, 1
je 0x4040f2
xor edx, edx
mov eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ebx, eax
shr ebx, 8
movzx edi, byte [ecx + edx]
mov ebp, eax
and ebp, edi
add eax, edi
add ebp, ebp
sub eax, ebp
movzx eax, al
xor ebx, dword [eax*4 + 0x2366928]
mov eax, ebx
shr eax, 8
movzx edi, byte [ecx + edx + 1]
mov ebp, ebx
and ebp, edi
add ebx, edi
add ebp, ebp
sub ebx, ebp
movzx edi, bl
xor eax, dword [edi*4 + 0x2366928]
add edx, 2
cmp esi, edx
jne 0x4040b0
not eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x409670
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push edi
push esi
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov esi, ecx
and esi, 3
je 0x40969b
cmp esi, 2
jne 0x4096ab
shr ecx, 1
mov edi, eax
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
jmp 0x40973d
shr ecx, 2
mov edi, eax
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
jmp 0x40973d
test ecx, ecx
je 0x40973d
mov edi, ecx
and edi, 7
je 0x4096db
xor esi, esi
nop
nop
nop
nop
movzx ebx, byte [edx + esi]
mov byte [eax + esi], bl
inc esi
cmp edi, esi
jne 0x4096c0
add edx, esi
mov edi, ecx
sub edi, esi
add esi, eax
cmp ecx, 8
jae 0x4096e4
jmp 0x40973d
mov edi, ecx
mov esi, eax
cmp ecx, 8
jb 0x40973d
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [edx + ecx]
mov byte [esi + ecx], bl
movzx ebx, byte [edx + ecx + 1]
mov byte [esi + ecx + 1], bl
movzx ebx, byte [edx + ecx + 2]
mov byte [esi + ecx + 2], bl
movzx ebx, byte [edx + ecx + 3]
mov byte [esi + ecx + 3], bl
movzx ebx, byte [edx + ecx + 4]
mov byte [esi + ecx + 4], bl
movzx ebx, byte [edx + ecx + 5]
mov byte [esi + ecx + 5], bl
movzx ebx, byte [edx + ecx + 6]
mov byte [esi + ecx + 6], bl
movzx ebx, byte [edx + ecx + 7]
mov byte [esi + ecx + 7], bl
add ecx, 8
cmp edi, ecx
jne 0x4096f0
pop esi
pop edi
pop ebx
ret
Function at 0x409f00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20c
mov dword [esp], ecx
mov edi, dword [esp + 0x220]
movzx ecx, word [edi]
test cx, cx
je 0x40a027
lea eax, [edi + 2]
xor ebx, ebx
jmp 0x409f3d
add ebx, esi
movzx ecx, word [eax]
add eax, 2
test cx, cx
je 0x409f61
movzx ebp, cx
xor ecx, ecx
cmp ebp, 0x800
setb dl
mov esi, 1
cmp ebp, 0x80
jb 0x409f30
mov cl, dl
xor ecx, 3
mov esi, ecx
jmp 0x409f30
lea esi, [ebx + 1]
push esi
call fcn.00409640
add esp, 4
test ebx, ebx
jle 0x40a031
add ebx, eax
add esi, eax
mov dword [esp + 4], esi
mov ebp, eax
jmp 0x409fa5
mov byte [ebp], dl
mov esi, 1
add edi, 2
add ebp, esi
cmp ebp, ebx
jae 0x40a033
movzx edx, word [edi]
test dx, dx
je 0x40a033
cmp dx, 0x7f
jbe 0x409f90
mov ecx, ebp
not ecx
add ecx, dword [esp + 4]
movzx esi, dx
mov dword [esp + 8], esi
cmp esi, 0x7ff
ja 0x409ff0
cmp ecx, 2
jb 0x409ff0
mov ecx, edx
shr ecx, 6
add cl, 0xc0
mov byte [ebp], cl
and dl, 0x3f
or dl, 0x80
mov byte [ebp + 1], dl
mov esi, 2
jmp 0x409f98
xor esi, esi
cmp ecx, 3
jb 0x409f98
mov esi, dword [esp + 8]
mov ecx, esi
shr ecx, 0xc
or cl, 0xe0
mov byte [ebp], cl
mov ecx, esi
shr ecx, 6
and cl, 0x3f
or cl, 0x80
mov byte [ebp + 1], cl
and dl, 0x3f
or dl, 0x80
mov byte [ebp + 2], dl
mov esi, 3
jmp 0x409f98
push 1
call fcn.00409640
add esp, 4
mov ebp, eax
mov edi, dword [esp + 0x228]
mov esi, dword [esp + 0x224]
mov byte [ebp], 0
movzx edx, byte [eax]
lea ecx, [esp + 0xc]
mov ebx, ecx
test dl, dl
je 0x40a076
inc eax
lea ebx, [esp + 0xc]
jmp 0x40a06b
mov byte [ebx], dh
inc ebx
movzx edx, byte [eax]
inc eax
test dl, dl
je 0x40a076
mov dh, 0x2f
cmp dl, 0x5c
je 0x40a060
mov dh, dl
jmp 0x40a060
mov byte [ebx], 0
push 0
push 0
push 0
mov eax, dword [esp + 0xc]
push dword [eax + 8]
add eax, 0x10
push 0
push 0
push edi
push esi
push ecx
push eax
call fcn.004063d0
add esp, 0x28
test eax, eax
setne al
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x40b0a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov edx, dword [esp + 0x40]
mov esi, 0xffffffff
mov ecx, 0xfffffffd
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ebp, esi
add ecx, 3
cmp byte [edx + esi + 1], 0
lea esi, [esi + 1]
jne 0x40b0c0
shr ecx, 2
movzx eax, byte [edx + esi - 1]
cmp eax, 0x3d
je 0x40b0e1
cmp eax, 0x2e
jne 0x40b0e2
dec ecx
movzx eax, byte [edx + esi - 2]
cmp eax, 0x3d
je 0x40b0f1
cmp eax, 0x2e
jne 0x40b0f2
dec ecx
mov dword [esp + 4], ecx
mov edx, 0
test esi, esi
je 0x40b1eb
xor ecx, ecx
mov edi, 2
jmp 0x40b122
lea eax, [edi + 4]
add edi, 2
mov ecx, edx
cmp edi, esi
mov edi, eax
jae 0x40b1eb
mov dword [esp + 8], ecx
mov eax, dword [esp + 0x40]
mov ebp, esi
mov esi, eax
movzx eax, byte [eax + edi - 2]
push eax
call fcn.00411ea0
add esp, 4
mov bh, al
movzx eax, byte [esi + edi - 1]
mov esi, ebp
mov ebp, dword [esp + 8]
push eax
call fcn.00411ea0
add esp, 4
mov bl, al
shl bh, 2
xor al, 0xc0
mov ecx, ebx
or cl, 0x30
and cl, al
shr cl, 4
add cl, bh
lea edx, [ebp + 1]
mov eax, dword [esp + 0x44]
mov byte [eax + ebp], cl
cmp edi, esi
jae 0x40b110
mov eax, dword [esp + 0x40]
movzx eax, byte [eax + edi]
push eax
mov dword [esp + 4], edx
call fcn.00411ea0
mov edx, dword [esp + 4]
add esp, 4
cmp al, 0x40
je 0x40b110
mov bh, al
shr al, 2
and al, 0xf
shl bl, 4
or bl, al
lea edx, [ebp + 2]
mov eax, dword [esp + 0x44]
mov byte [eax + ebp + 1], bl
lea eax, [edi + 1]
cmp eax, esi
jae 0x40b110
mov eax, dword [esp + 0x40]
movzx eax, byte [eax + edi + 1]
push eax
mov dword [esp + 4], edx
call fcn.00411ea0
mov edx, dword [esp + 4]
add esp, 4
cmp al, 0x40
je 0x40b110
shl bh, 6
add al, bh
mov ecx, dword [esp + 0x44]
mov byte [ecx + ebp + 2], al
add ebp, 3
mov edx, ebp
jmp 0x40b110
mov ebx, dword [esp + 4]
cmp edx, ebx
mov eax, 0
jne 0x40b277
mov edx, ebx
xor edx, 0xffffffdf
lea eax, [edx + 1]
add ebx, ebx
and ebx, 0xffffffbe
lea edi, [esp + 0xc]
mov ebp, dword [esp + 0x44]
mov esi, ebp
mov ecx, 8
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
mov edi, eax
add eax, ebx
je 0x40b272
and edi, 1
xor ecx, ecx
add edx, ebx
je 0x40b25c
mov edx, eax
sub edx, edi
xor ecx, ecx
nop
mov esi, ecx
and esi, 0x1e
movzx ebx, byte [esp + esi + 0xc]
xor bl, byte [ebp + ecx + 0x20]
mov byte [ebp + ecx], bl
lea esi, [ecx + 1]
and esi, 0x1f
movzx ebx, byte [esp + esi + 0xc]
xor bl, byte [ebp + ecx + 0x21]
mov byte [ebp + ecx + 1], bl
add ecx, 2
cmp edx, ecx
jne 0x40b230
test edi, edi
je 0x40b272
mov edx, ecx
and edx, 0x1f
movzx edx, byte [esp + edx + 0xc]
xor dl, byte [ebp + ecx + 0x20]
mov byte [ebp + ecx], dl
mov byte [ebp + eax], 0
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x416190
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov ebp, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov edi, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebp + edi + 2], 0
lea edi, [edi + 2]
jne 0x4161b0
mov esi, dword [eax + 4]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [esi + eax + 2], 0
lea eax, [eax + 2]
jne 0x4161d0
sar edi, 1
sar eax, 1
lea ecx, [edi + eax]
add ecx, 2
test ecx, ecx
jns 0x4161f0
mov eax, 0xffffffff
jmp 0x4161f7
add eax, edi
add eax, eax
add eax, 4
push eax
call fcn.00409640
add esp, 4
mov ebx, eax
movzx ecx, word [esi]
test cx, cx
je 0x416221
add esi, 2
mov eax, ebx
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [esi]
add esi, 2
test cx, cx
jne 0x416210
mov word [eax], 0x5c
add eax, 2
movzx ecx, word [ebp]
test cx, cx
je 0x416251
lea edx, [ebp + 2]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x416240
mov word [eax], 0
mov eax, esp
push 0x20
push 1
push 3
push 0x120089
push eax
push ebx
call fcn.00435580
add esp, 0x18
not eax
shr eax, 0x1f
mov eax, dword [eax*4 + 0x236b220]
mov ecx, 0x6abef0ca
xor ecx, dword [0x236b228]
add eax, ecx
inc eax
mov dword [esp + 0x24], ebx
jmp eax