joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42570d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x42574f
call fcn.0042a89b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x42574f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x425746
xor eax, eax
jmp 0x425757
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0042575d
pop edi
pop esi
pop ebx
ret 4

Function at 0x42936f
Capabilities:
Create http request

Disassembly:
mov eax, 0x42f91c
call fcn.00410ab4
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x4293a7
call fcn.0042a89b
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x4293cc
push eax
push dword [esi + 4]
call fcn.0042a00a
jmp 0x4293d8
push esi
push eax
mov ecx, 0x441c30
call fcn.004293e9
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x429568
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x42f957
call fcn.00410ab4
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.004263a1
mov eax, dword [0x43d8d0]
lea ebx, [esi + 0x24]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [esi], vtable.CInternetFile.0
mov ecx, 0x441c30
mov byte [ebp - 4], 1
push dword [eax + 0xc]
push dword [ebp + 8]
call fcn.004293e9
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.00420c1a
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
call fcn.00407a2b
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00420bca
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.00420a91
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10

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

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_recv
ret 0xc

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

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_send
ret 0xc
Function at 0x403660
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411d48
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x41a044]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x10]
lea edi, [eax + eax]
mov eax, 0xaaaaaaab
lea ecx, [edi + 2]
mul ecx
mov eax, edx
shr eax, 1
shl eax, 2
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x34], eax
jb 0x4036b5
mov esi, dword [esi]
lea ecx, [esi + edi]
mov byte [ebp - 0x29], 0
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00403940
xor edi, edi
cmp dword [ebp - 0x34], edi
jbe 0x403762
cmp esi, dword [ebp - 0x3c]
jae case.default.0x4036f2
mov eax, edi
and eax, 3
jmp dword [eax*4 + 0x4037e0]
mov cl, byte [esi]
shr cl, 2
mov byte [ebp - 0x29], cl
jmp 0x403738
mov cl, byte [esi]
inc esi
and cl, 3
shl cl, 4
mov al, byte [esi]
shr al, 4
or cl, al
mov byte [ebp - 0x29], cl
jmp 0x403738
mov cl, byte [esi]
inc esi
and cl, 0xf
shl cl, 2
mov al, byte [esi]
shr al, 6
or cl, al
mov byte [ebp - 0x29], cl
jmp 0x403738
mov cl, byte [esi]
and cl, 0x3f
inc esi
mov byte [ebp - 0x29], cl
jmp 0x403738
cmp cl, 0x40
jae 0x4037bb
mov eax, dword [0x41a024]
movzx ecx, cl
mov al, byte [ecx + eax]
mov byte [ebp - 0x2d], al
jmp 0x403751
mov byte [ebp - 0x2d], 0x3d
push dword [ebp - 0x2d]
lea ecx, [ebp - 0x28]
call fcn.004037f0
inc edi
cmp edi, dword [ebp - 0x34]
jb 0x4036e8
mov esi, dword [ebp - 0x38]
movups xmm0, xmmword [ebp - 0x28]
mov byte [ebp - 0x28], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x28]
call fcn.00403210
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041032a
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x38]
mov ecx, esi
push 0
push 0x4147c9
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
call fcn.004032f0
jmp 0x403796
Function at 0x4053ec
Capabilities:
Set file attributes

Disassembly:
test edx, 0xf0000000
je 0x4053fa
and edx, 0x3fff
jmp fcn.0040535e

Function at 0x4053ff
Capabilities:
Delete directory

Disassembly:
mov eax, 0x43eb4c
call fcn.0043e100
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00408240
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, eax
cmp ebx, 1
je 0x40542e
push edi
call esi
test eax, eax
je 0x40542e
mov al, 1
jmp 0x405472
test ebx, ebx
je 0x405470
lea ecx, [ebp - 0x18]
call fcn.00402b8f
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.00408349
test al, al
push dword [ebp - 0x18]
je 0x40546a
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401c56
test esi, esi
pop ecx
setne al
jmp 0x405472
call fcn.00401c56
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x405481
Capabilities:
Move file

Disassembly:
mov eax, 0x43eb68
call fcn.0043e100
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], ecx
call fcn.00408240
mov ecx, dword [ebp - 0x10]
mov esi, eax
call fcn.00408240
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [ebp - 0x14], eax
push 1
pop ebx
cmp esi, ebx
je 0x4054ca
cmp eax, ebx
je 0x4054ca
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x4054ca
mov al, bl
jmp 0x405541
test esi, esi
jne 0x4054d3
cmp dword [ebp - 0x14], esi
je 0x40553f
lea ecx, [ebp - 0x30]
call fcn.00402b8f
and dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00402b8f
cmp esi, ebx
mov byte [ebp - 4], bl
je 0x4054f3
cmp dword [ebp - 0x14], ebx
jne 0x4054f5
xor ebx, ebx
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00408864
test al, al
push dword [ebp - 0x24]
je 0x405530
push dword [ebp - 0x30]
call edi
mov esi, eax
push dword [ebp - 0x24]
call fcn.00401c56
push dword [ebp - 0x30]
call fcn.00401c56
pop ecx
test esi, esi
pop ecx
setne al
jmp 0x405541
call fcn.00401c56
push dword [ebp - 0x30]
call fcn.00401c56
pop ecx
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40564c
Capabilities:
Create directory

Disassembly:
mov eax, 0x43eb98
call fcn.0043e100
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00408240
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
cmp ebx, 1
je 0x40568a
push 0
push edi
call esi
test eax, eax
je 0x40567d
mov al, 1
jmp 0x4056d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4056d1
test ebx, ebx
je 0x4056d1
lea ecx, [ebp - 0x18]
call fcn.00402b8f
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.00408349
test al, al
je 0x4056c8
push 0
push dword [ebp - 0x18]
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401c56
test esi, esi
pop ecx
setne al
jmp 0x4056d3
push dword [ebp - 0x18]
call fcn.00401c56
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x405823
Capabilities:
Create directory

Disassembly:
mov eax, 0x43ebdb
call fcn.0043e100
sub esp, 0x7c
push ebx
push esi
push edi
mov esi, ecx
call fcn.00408240
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 1
je 0x405868
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40585b
mov al, 1
jmp 0x40594f
call ebx
cmp eax, 0xb7
je 0x4058fe
test edi, edi
je 0x4058fe
lea ecx, [ebp - 0x18]
call fcn.00402b8f
and dword [ebp - 4], 0
cmp edi, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, esi
call fcn.00408349
test al, al
je 0x4058f1
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4058a4
mov bl, 1
jmp 0x4058ec
call ebx
cmp eax, 0xb7
je 0x4058b1
xor bl, bl
jmp 0x4058ec
lea ecx, [ebp - 0x50]
call fcn.00405fef
lea ecx, [ebp - 0x28]
call fcn.00402b8f
push 0
lea ecx, [ebp - 0x50]
push dword [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00406471
test al, al
jne 0x4058da
xor bl, bl
jmp 0x4058e3
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.00401c56
pop ecx
push dword [ebp - 0x18]
jmp 0x405947
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call fcn.00401c56
pop ecx
call ebx
cmp eax, 0xb7
je 0x40590b
xor al, al
jmp 0x40594f
lea ecx, [ebp - 0x88]
call fcn.00405fef
lea ecx, [ebp - 0x60]
call fcn.00402b8f
push 0
push esi
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 2
call fcn.00406471
test al, al
jne 0x40593b
xor bl, bl
jmp 0x405944
mov ebx, dword [ebp - 0x68]
shr ebx, 4
and bl, 1
push dword [ebp - 0x60]
call fcn.00401c56
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x405968
Capabilities:
Delete file

Disassembly:
mov eax, 0x43ebf0
call fcn.0043e100
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.004063f4
cmp eax, 0xffffffff
je 0x40599c
test al, 0x10
jne 0x40599c
test al, 1
je 0x40599c
mov edx, eax
mov ecx, edi
and edx, 0xfffffffe
call fcn.0040535e
test al, al
je 0x4059fd
mov ecx, edi
call fcn.00408240
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
cmp ebx, 1
je 0x4059bb
push edi
call esi
test eax, eax
je 0x4059bb
mov al, 1
jmp 0x4059ff
test ebx, ebx
je 0x4059fd
lea ecx, [ebp - 0x18]
call fcn.00402b8f
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.00408349
test al, al
push dword [ebp - 0x18]
je 0x4059f7
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401c56
test esi, esi
pop ecx
setne al
jmp 0x4059ff
call fcn.00401c56
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4063f4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x43ecd0
call fcn.0043e100
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00408240
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 1
je 0x406420
push edi
call esi
cmp eax, 0xffffffff
jne 0x406462
test ebx, ebx
je 0x40645f
lea ecx, [ebp - 0x18]
call fcn.00402b8f
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.00408349
test al, al
push dword [ebp - 0x18]
je 0x406459
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401c56
pop ecx
mov eax, esi
jmp 0x406462
call fcn.00401c56
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x406c90
Capabilities:
Get disk information

Disassembly:
mov eax, 0x43ed9c
call fcn.0043e100
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
call fcn.0042693b
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x18], ebx
je 0x406d66
mov eax, SysReAllocString
cmp ebx, eax
ja 0x406ccc
mov eax, ebx
add eax, eax
push eax
call fcn.00401c22
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
push esi
push ebx
call edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x14], ebx
je 0x406d5f
cmp ebx, dword [ebp - 0x18]
ja 0x406d5f
lea ecx, [ebp - 0x2c]
call fcn.00402b8f
test ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], edi
jbe 0x406d47
push 2
xor eax, eax
pop ebx
cmp word [esi + ebx - 2], 0
jne 0x406d3c
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.00402d13
mov ecx, dword [ebp - 0x10]
lea eax, [edi + 1]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
call fcn.0041f3d0
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
call fcn.00401524
mov eax, ebx
inc edi
inc ebx
inc ebx
cmp edi, dword [ebp - 0x14]
jb 0x406d0a
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0x2c]
call fcn.00401c56
push esi
call fcn.00401c56
cmp dword [ebp - 0x18], ebx
pop ecx
pop ecx
sete al
jmp 0x406d68
push esi
call fcn.00401c56
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x406e66
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp byte [ecx + 5], bl
push esi
je 0x406e88
cmp byte [ecx + 6], bl
je 0x406e88
mov eax, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov dword [eax], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 4], ecx
jmp 0x406ec8
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406eac
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x406eac
xor al, al
jmp 0x406eca
push 1
push ebx
push ebx
push dword [ebp - 4]
call fcn.0043e3f0
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
pop ebx
leave
ret 4
Function at 0x40994d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edx, SysReAllocStringLen
mov eax, dword [esi]
mov dword [esi + 4], ebx
lea ecx, [ebp - 0x14]
and byte [eax], bl
call fcn.0043e690
cmp dword [ebp - 0x14], 0x80000004
jb 0x4099a6
lea edx, [ebx - 0x7ffffffe]
lea ecx, [ebp - 0x14]
call fcn.0043e690
lea edi, [ebp - 0x14]
mov dword [ebp - 4], 4
mov edx, dword [edi]
mov ecx, esi
call fcn.004099f1
add edi, 4
dec dword [ebp - 4]
jne 0x40998f
inc ebx
cmp ebx, 3
jb 0x409977
mov ecx, esi
call fcn.004027d9
mov ecx, esi
call fcn.0040279c
cmp dword [esi + 4], 0
jne 0x4099ec
xor edx, edx
lea ecx, [ebp - 0x14]
call fcn.0043e690
push 1
pop edi
mov eax, edi
mov ecx, esi
shr eax, 1
xor eax, edi
mov edx, dword [ebp + eax*4 - 0x14]
call fcn.004099f1
inc edi
cmp edi, 4
jb 0x4099c7
mov ecx, esi
call fcn.004027d9
mov ecx, esi
call fcn.0040279c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4106db
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x43f413
call fcn.0043e100
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00402b8f
and dword [ebp - 4], 0
lea ecx, [esi + 0xc]
call fcn.00402b8f
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.00402b8f
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call fcn.00402b8f
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call fcn.00402b8f
and byte [esi + 0x3c], 0
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 4
call fcn.00402b8f
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 5
call fcn.00402b8f
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x410e52
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x43f51f
call fcn.0043e100
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00402ca7
and dword [ebp - 4], 0
lea eax, [edi + 0xc]
push eax
lea ecx, [esi + 0xc]
call fcn.00402ca7
lea eax, [edi + 0x18]
lea ecx, [esi + 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.00402ca7
lea eax, [edi + 0x24]
lea ecx, [esi + 0x24]
push eax
mov byte [ebp - 4], 2
call fcn.00402ca7
lea eax, [edi + 0x30]
lea ecx, [esi + 0x30]
push eax
mov byte [ebp - 4], 3
call fcn.00402ca7
mov al, byte [edi + 0x3c]
lea ecx, [esi + 0x40]
mov byte [esi + 0x3c], al
lea eax, [edi + 0x40]
push eax
mov byte [ebp - 4], 4
call fcn.00402ca7
add edi, 0x4c
lea ecx, [esi + 0x4c]
push edi
mov byte [ebp - 4], 5
call fcn.00402ca7
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4169de
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ecx + 4]
push ebx
push esi
mov esi, dword [ecx]
xor edx, edx
push edi
test eax, eax
mov ebx, 0x159a55e5
mov edi, 0x1f123bb5
mov dword [ebp - 4], eax
jbe 0x416a2e
mov eax, 0xffff
mov ecx, ebx
and ecx, eax
imul ecx, ecx, 0x9069
shr ebx, 0x10
add ebx, ecx
mov ecx, edi
and ecx, eax
imul ecx, ecx, 0x4650
shr edi, 0x10
add edi, ecx
mov ecx, edi
xor cl, byte [ebp + 8]
mov byte [edx + esi], cl
inc edx
cmp edx, dword [ebp - 4]
jb 0x416a02
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x416a35
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ecx + 4]
and dword [ebp - 4], 0
mov ecx, dword [ecx]
push ebx
push edi
push 1
pop edx
mov edi, 0x159a55e5
test eax, eax
mov ebx, 0x1f123bb5
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], edx
jbe 0x416bf9
push esi
mov esi, 0xffff
jmp 0x416a72
push 1
pop edx
mov eax, edi
and eax, esi
imul eax, eax, 0x9069
shr edi, 0x10
add edi, eax
mov eax, ebx
and eax, esi
imul eax, eax, 0x4650
shr ebx, 0x10
add ebx, eax
mov eax, edi
shl eax, 0x10
add eax, ebx
xor eax, dword [ebp + 0xc]
mov ecx, eax
and ecx, edx
shr eax, 1
test ecx, ecx
mov dword [ebp - 8], eax
je 0x416be0
cmp dword [ebp - 4], 0x400
jb 0x416be0
lea ecx, [ebp - 8]
call fcn.00416bff
mov ecx, eax
mov eax, dword [ebp - 8]
shr dword [ebp - 8], 3
and eax, 7
inc ecx
test eax, eax
mov dword [ebp - 0xc], ecx
je 0x416ba9
lea ecx, [ebp - 8]
call fcn.00416bff
add dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x14]
push 1
pop eax
shl eax, cl
cmp eax, dword [ebp - 4]
jae 0x416afe
push 1
inc ecx
pop eax
shl eax, cl
cmp eax, dword [ebp - 4]
jb 0x416af0
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
cmp eax, ecx
mov dword [ebp - 0x10], eax
jbe 0x416b0b
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x15
mov dword [ebp - 0x18], 5
ja 0x416b1f
mov dword [ebp - 0x18], 4
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
push 1
pop eax
shl eax, cl
mov ecx, edi
and ecx, esi
imul ecx, ecx, 0x9069
shr edi, 0x10
add edi, ecx
mov ecx, ebx
and ecx, esi
dec eax
imul ecx, ecx, 0x4650
shr ebx, 0x10
add ebx, ecx
mov ecx, edi
shl ecx, 0x10
add ecx, ebx
and eax, edx
xor ecx, dword [ebp + 0xc]
add eax, 6
cmp eax, dword [ebp - 0x10]
mov edx, ecx
mov dword [ebp - 8], edx
ja 0x416b22
mov dword [ebp - 0x24], 1
mov ecx, eax
mov eax, dword [ebp - 0x24]
shl eax, cl
dec eax
and eax, edx
cmp eax, dword [ebp - 4]
jb 0x416ba2
mov eax, edi
and eax, esi
imul eax, eax, 0x9069
shr edi, 0x10
add edi, eax
mov eax, ebx
and eax, esi
mov edx, edi
imul eax, eax, 0x4650
shr ebx, 0x10
add ebx, eax
shl edx, 0x10
add edx, ebx
xor edx, dword [ebp + 0xc]
jmp 0x416b22
mov ecx, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 4]
cmp ecx, eax
jbe 0x416bb8
mov dword [ebp - 0xc], eax
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
add dword [ebp - 4], ecx
add eax, edx
mov dword [ebp - 0x24], eax
sub eax, dword [ebp - 0x18]
test ecx, ecx
jbe 0x416bec
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x24]
mov dl, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 0x10]
jne 0x416bd3
jmp 0x416bec
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
inc dword [ebp - 4]
mov byte [ecx + edx], al
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x20]
jb 0x416a6f
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x418d91
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
mov eax, ecx
jbe 0x418ea8
mov ecx, edx
mov edx, dword [esp + 4]
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
dec ecx
jne 0x418da1
ret 4

Function at 0x41c23e
Capabilities:
Encode data using xor

Disassembly:
push esi
or eax, 0xffffffff
xor esi, esi
test edx, edx
jbe 0x41c26b
push ebx
push edi
movzx edi, byte [esi + ecx]
mov ebx, eax
and ebx, 0xff
xor edi, ebx
shr eax, 8
mov edi, dword [edi*4 + 0x4507c0]
xor eax, edi
inc esi
cmp esi, edx
jb 0x41c24a
pop edi
pop ebx
not eax
pop esi
ret