joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7e8800
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffa8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1058], edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x7e8a26
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x7e8a40
call fcn.0040af14
mov ebx, dword [esi + 0x98]
cmp dword [ebx + 4], 0
je 0x7e8a05
cmp dword [ebx + 8], 0
je 0x7e8a05
lea eax, [ebp - 0x52]
mov edx, 0x7e8a7c
call fcn.004278e8
push 0
push 0
push 0
push 0
mov eax, dword [esi + 0x1b4]
call fcn.0040b924
push eax
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 8], eax
push 1
push 0
push 3
push 0
push 0
push 0x50
mov eax, dword [esi + 0x98]
mov eax, dword [eax + 4]
call fcn.0040b924
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetConnectW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x7e89ea
mov ebx, 0x7000
push 1
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 0x98]
mov eax, dword [eax + 8]
call fcn.0040b924
push eax
push 0x7e8a8c
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_HttpOpenRequestW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x7e89cd
mov eax, dword [esi + 0x98]
add eax, 0x14
call fcn.0040aa74
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x7e88fe
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [esi + 0x98]
mov eax, dword [eax + 0xc]
mov edi, eax
test edi, edi
je 0x7e8912
sub edi, 4
mov edi, dword [edi]
push edi
mov eax, dword [esi + 0x98]
mov eax, dword [eax + 0xc]
call fcn.0040b498
push eax
push ebx
mov eax, dword [ebp - 4]
call fcn.0040b498
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpSendRequestA
test eax, eax
je 0x7e89c2
mov dword [ebp - 0x14], 0x1000
cmp dword [ebp - 0x14], 0
jbe 0x7e89c2
mov eax, dword [0x8bd610]
mov eax, dword [eax]
call fcn.0060b0e0
lea eax, [ebp - 0x14]
push eax
push 0x1000
lea eax, [ebp - 0x1052]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x7e89c2
cmp dword [ebp - 0x14], 0
jbe 0x7e89bc
cmp dword [ebp - 0x14], 0x1000
ja 0x7e89bc
mov edi, dword [ebp - 0x14]
dec edi
test edi, edi
jl 0x7e89bc
inc edi
lea ebx, [ebp - 0x1052]
lea eax, [ebp - 0x1058]
movzx edx, byte [ebx]
mov ecx, 0
call fcn.0040b180
mov edx, dword [ebp - 0x1058]
mov eax, dword [esi + 0x98]
add eax, 0x14
call fcn.0040b274
inc ebx
dec edi
jne 0x7e8991
cmp dword [ebp - 0x14], 0
ja 0x7e894a
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
jmp 0x7e89df
push 0x11
push 5
xor ecx, ecx
mov edx, 0x3b8
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x4c]
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
jmp 0x7e89fc
push 0x10
push 5
xor ecx, ecx
mov edx, 0x3b7
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x4c]
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7e8a2d
lea eax, [ebp - 0x1058]
call fcn.0040aa74
lea eax, [ebp - 4]
call fcn.0040aa74
ret
Function at 0x7ec368
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x7ec595
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [esi + 0x1a1], 0
je 0x7ec39c
mov dword [ebp - 0x10], 0xffffffff
jmp 0x7ec562
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x98]
cmp byte [eax + 0x10], 0
je 0x7ec40a
mov byte [ebp - 0x11], 1
cmp word [esi + 0x102], 0
je 0x7ec3cc
lea ecx, [ebp - 0x11]
mov edx, esi
mov eax, dword [esi + 0x104]
call dword [esi + pe_nt_image_headers32]
cmp byte [ebp - 0x11], 0
je 0x7ec40a
mov eax, esi
call fcn.007e8800
mov byte [ebp - 0x11], 1
cmp word [esi + 0xfa], 0
je 0x7ec3f8
lea ecx, [ebp - 0x11]
mov edx, esi
mov eax, dword [esi + 0xfc]
call dword [esi + 0xf8]
cmp byte [ebp - 0x11], 0
jne 0x7ec40a
mov dword [ebp - 0x10], 0xffffffff
jmp 0x7ec562
cmp byte [esi + 0x4d], 0
je 0x7ec423
push dword [esi + 0x184]
push dword [esi + 0x180]
mov eax, esi
call fcn.007ed5a8
mov ecx, dword [esi + 0x50]
mov dl, 1
mov eax, dword [0x5011cc]
call fcn.0050481c
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov ecx, 0x7ec5b4
mov edx, 0x7ec5d4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 4]
cmp dword [ebp - 4], 0
je 0x7ec46d
push 3
push 0
xor ecx, ecx
mov edx, 0x3ad
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x4c]
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.007ed294
cmp dword [esi + 0x164], 0
je 0x7ec483
cmp byte [esi + 0x6a], 0
je 0x7ec483
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x54]
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x7ec5f0
mov edx, 0x7ec5d4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 4]
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 4]
mov eax, esi
call fcn.007e6db4
push 0
lea eax, [ebp - 8]
push eax
mov ecx, 0x7ec610
mov edx, 0x7ec5d4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 4]
lea edx, [ebp - 8]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x68]
cmp dword [ebp - 4], 0
je 0x7ec549
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, 0
call fcn.0040b644
cmp dword [ebp - 8], 0
je 0x7ec50c
push dword [ebp - 0xc]
push 0x7ec638
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 8]
mov ecx, 0
call fcn.0040b644
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040b350
call fcn.007e3734
test al, al
je 0x7ec539
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.0040b924
push eax
mov eax, dword [ebp - 4]
call fcn.0040b924
push eax
push 0x7ec63c
push 0
call sub.shell32.dll_ShellExecuteW
jmp 0x7ec549
push 1
mov eax, dword [ebp - 0xc]
call fcn.0040b498
push eax
call sub.kernel32.dll_WinExec
mov eax, ebx
call fcn.00408c28
push 3
push 0
xor ecx, ecx
mov edx, 0x3b4
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x4c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7ec59c
lea eax, [ebp - 0x1c]
call fcn.0040aa74
lea eax, [ebp - 0x18]
call fcn.0040aa50
lea eax, [ebp - 0xc]
call fcn.0040aa74
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040aab0
ret
Function at 0x7ededc
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], ecx
mov edi, eax
mov dword [esp + 8], edx
xor esi, esi
xor ebp, ebp
xor eax, eax
mov edx, dword [esp]
test edx, edx
jns 0x7edefb
add edx, 3
sar edx, 2
test edx, edx
jle 0x7ee009
mov dword [esp + 0xc], edx
mov edx, 4
lea eax, [esp + 4]
movzx ecx, byte [edi + esi]
cmp ecx, 0x3d
jg 0x7edf30
je 0x7edf73
sub ecx, 0x2b
je 0x7edf69
sub ecx, 4
je 0x7edf6e
dec ecx
sub ecx, 0xa
jb 0x7edf5b
jmp 0x7edf76
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x7edf42
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x7edf4d
jmp 0x7edf76
movzx ecx, byte [edi + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x7edf76
movzx ecx, byte [edi + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x7edf76
movzx ecx, byte [edi + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x7edf76
mov byte [eax], 0x3e
jmp 0x7edf76
mov byte [eax], 0x3f
jmp 0x7edf76
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x7edf13
movzx eax, byte [esp + 4]
add eax, eax
add eax, eax
movzx edx, byte [esp + 5]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp], al
lea eax, [ebp + 1]
movzx edx, byte [esp + 6]
cmp dl, 0xff
je 0x7edfc7
cmp byte [esp + 7], 0xff
jne 0x7edfc7
movzx eax, byte [esp + 5]
shl eax, 4
movzx edx, dl
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
lea eax, [ebp + 2]
inc ebp
jmp 0x7edffe
cmp dl, 0xff
je 0x7edffe
movzx eax, byte [esp + 5]
shl eax, 4
movzx edx, dl
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
mov eax, dword [esp + 8]
movzx edx, byte [esp + 6]
shl edx, 6
or dl, byte [esp + 7]
mov byte [eax + ebp + 2], dl
lea eax, [ebp + 3]
add ebp, 2
inc ebp
dec dword [esp + 0xc]
jne 0x7edf0a
add esp, 0x10
pop ebp
pop edi
pop esi
ret

Function at 0x7ef7b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040ab44
xor eax, eax
push ebp
push 0x7ef86f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test eax, eax
je 0x7ef7db
sub eax, 4
mov eax, dword [eax]
mov esi, eax
test esi, esi
jle 0x7ef807
mov ebx, 1
lea eax, [ebp - 4]
call fcn.0040b010
mov edx, dword [ebp - 4]
movzx edx, byte [edx + ebx - 1]
mov ecx, ebx
add ecx, ecx
add cl, 0x43
xor dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x7ef7e6
mov dl, 1
mov eax, dword [0x50753c]
call fcn.00509604
mov ebx, eax
mov cl, 1
mov edx, 0x7ef88c
mov eax, ebx
call fcn.00509844
test al, al
je 0x7ef850
mov eax, dword [ebp - 4]
test eax, eax
je 0x7ef833
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x1d
jne 0x7ef850
push 0x1d
lea eax, [ebp - 4]
call fcn.0040b010
mov ecx, eax
mov edx, 0x7ef8cc
mov eax, ebx
call fcn.0050a60c
mov eax, ebx
call fcn.00408c28
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7ef876
lea eax, [ebp - 4]
call fcn.0040aa74
ret
Function at 0x7f1194
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040b924
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x7f11ad
test al, 0x10
jne 0x7f11b1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x7fdbac
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040ab34
xor eax, eax
push ebp
push 0x7fdc43
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x208]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathW
lea eax, [ebp - 0x208]
push eax
push 0
push 0x7fdc50
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_GetTempFileNameW
lea eax, [ebp - 0x208]
call fcn.0040af6c
lea edx, [ebp - 0x208]
lea ecx, [ebp - 8]
xchg ecx, eax
call fcn.0040abd8
mov ecx, ebx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.00427438
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7fdc4a
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040aab0
ret
Function at 0x7fea84
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
mov eax, dword [ebp + 0xc]
call fcn.0040ab34
xor eax, eax
push ebp
push 0x7fec67
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 0xc], 0
je 0x7fec3c
xor ecx, ecx
mov dl, 1
mov eax, dword [0x6f6e1c]
call fcn.006984a0
mov dword [ebp - 8], eax
lea edx, [ebp - 8]
mov eax, dword [0x8bd3d8]
mov eax, dword [eax]
call fcn.00845e98
mov eax, dword [ebp - 8]
mov byte [eax + 0x148], 1
mov eax, dword [ebp + 8]
call fcn.0040aa50
mov eax, edi
call fcn.0040aa50
xor edx, edx
push ebp
push 0x7fec35
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x7fec15
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
mov dword [eax + 0x4c], ebx
mov dword [eax + 0x48], 0x7fea68
mov eax, dword [ebp - 8]
call fcn.006fb280
add eax, 0xa8
mov edx, 0x7fec84
call fcn.0040ae30
lea eax, [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov edx, 0x7fed48
call fcn.0040bb90
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.006f8808
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x7fede4
call fcn.0040bf10
mov ebx, eax
mov ecx, ebx
mov edx, dword [ebp - 4]
mov eax, 0x7fee00
call fcn.0040bf10
mov ebx, eax
lea ecx, [ebx + 5]
mov edx, dword [ebp - 4]
mov eax, 0x7fee18
call fcn.0040bf10
mov esi, eax
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
sub ecx, ebx
sub ecx, 5
lea edx, [ebx + 5]
mov eax, dword [ebp - 4]
call fcn.0040bd00
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
call fcn.00425638
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x7fee28
call fcn.0040bf10
mov ebx, eax
mov ecx, ebx
mov edx, dword [ebp - 4]
mov eax, 0x7fee00
call fcn.0040bf10
mov ebx, eax
lea ecx, [ebx + 5]
mov edx, dword [ebp - 4]
mov eax, 0x7fee18
call fcn.0040bf10
mov esi, eax
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
sub ecx, ebx
sub ecx, 5
lea edx, [ebx + 5]
mov eax, dword [ebp - 4]
call fcn.0040bd00
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00425638
mov edx, dword [ebp - 0x14]
mov eax, edi
call fcn.0040ae30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x7fec1f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7fec3c
mov eax, dword [ebp - 8]
call fcn.00408c28
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7fec6e
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.0040aab0
lea eax, [ebp - 4]
call fcn.0040aa50
lea eax, [ebp + 0xc]
call fcn.0040aa50
ret
Function at 0x80d2f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9d0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x62c], ebx
mov dword [ebp - 0x630], ebx
mov dword [ebp - 0x624], ebx
mov dword [ebp - 0x628], ebx
mov dword [ebp - 0x61c], ebx
mov dword [ebp - 0x620], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040ab34
xor eax, eax
push ebp
push 0x80d50e
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x620]
mov edx, dword [ebp - 4]
movzx edx, word [edx + ebx*2]
call fcn.0040b94c
mov eax, dword [ebp - 0x620]
call fcn.0080d00c
lea ecx, [ebp - 0x61c]
mov edx, 4
call fcn.0080d17c
mov edx, dword [ebp - 0x61c]
lea eax, [ebp - 8]
call fcn.0040bb38
inc ebx
cmp ebx, 0x20
jne 0x80d348
mov ebx, 0x180
lea ecx, [ebp - 0x618]
imul eax, esi, 0xb
add eax, 0x12d9d
mov esi, 0x13ddb
cdq
idiv esi
mov esi, edx
mov eax, dword [ebp - 0x10]
mov edx, eax
shl eax, 4
add eax, edx
add eax, 0x16a2d
mov edi, 0x2f12b
cdq
idiv edi
mov dword [ebp - 0x10], edx
mov eax, esi
add eax, dword [ebp - 0x10]
and eax, 0x8000007f
jns 0x80d3d1
dec eax
or eax, 0xffffff80
inc eax
mov dword [ecx], eax
add ecx, 4
dec ebx
jne 0x80d394
mov esi, pe_nt_image_headers32
lea ebx, [ebp - 0x218]
mov edi, dword [ebx]
mov eax, esi
and eax, 0x8000007f
jns 0x80d3f4
dec eax
or eax, 0xffffff80
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax + edi*2]
mov word [ebp - 0x12], ax
lea eax, [ebp - 8]
call fcn.0040b008
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
movzx edx, word [edx + ecx*2]
mov word [eax + edi*2], dx
lea eax, [ebp - 8]
call fcn.0040b008
mov edx, dword [ebp - 0x18]
movzx ecx, word [ebp - 0x12]
mov word [eax + edx*2], cx
dec esi
sub ebx, 4
cmp esi, 0xffffffff
jne 0x80d3e4
xor ebx, ebx
lea esi, [ebp - 0x218]
lea eax, [ebp - 0x628]
mov edx, dword [ebp - 8]
movzx edx, word [edx + ebx*2]
call fcn.0040b94c
mov eax, dword [ebp - 0x628]
call fcn.0042637c
xor eax, dword [esi]
and eax, 1
lea edx, [ebp - 0x624]
call fcn.00425fe4
mov eax, dword [ebp - 0x624]
movzx edi, word [eax]
lea eax, [ebp - 8]
call fcn.0040b008
mov word [eax + ebx*2], di
inc ebx
add esi, 4
cmp ebx, 0x80
jne 0x80d43c
xor ebx, ebx
lea eax, [ebp - 0x630]
push eax
mov edx, ebx
add edx, edx
add edx, edx
inc edx
mov ecx, 4
mov eax, dword [ebp - 8]
call fcn.0040bd00
mov eax, dword [ebp - 0x630]
call fcn.0080d1bc
push edx
push eax
lea edx, [ebp - 0x62c]
mov eax, 1
call fcn.0042635c
mov edx, dword [ebp - 0x62c]
lea eax, [ebp - 0xc]
call fcn.0040bb38
inc ebx
cmp ebx, 0x20
jne 0x80d48c
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.0040ae30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x80d515
lea eax, [ebp - 0x630]
mov edx, 6
call fcn.0040aab0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040aab0
ret
Function at 0x81aa3c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
test dl, dl
je 0x81aa54
add esp, 0xfffffff0
call fcn.004092b0
mov byte [ebp - 9], dl
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x81ab6e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 8], ebx
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
call fcn.00406efc
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
dec ebx
test ebx, ebx
jl 0x81ab58
inc ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
call fcn.0052a6b0
xor eax, eax
push ebp
push 0x81ab45
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
call fcn.0052a6b0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
lea ebx, [eax + edx*8]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov dword [ebx], eax
lea eax, [ebx + 4]
mov edx, dword [ebp - 4]
call fcn.0040ba1c
jmp 0x81ab16
lea eax, [ebx + 4]
mov ecx, 1
mov edx, 1
call fcn.0040bd48
mov eax, dword [ebx + 4]
call fcn.0040af40
dec eax
jle 0x81ab2a
mov eax, dword [ebx + 4]
cmp word [eax], 0x5f
je 0x81ab04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x81ab4c
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x54]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x81ab75
lea eax, [ebp - 4]
call fcn.0040aa98
ret

Function at 0x827dd8
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.0040d70c
mov esi, str.cw
xor eax, eax
push ebp
push 0x827e5d
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov ecx, dword [ebp - 8]
dec ecx
test ecx, ecx
jl 0x827e2a
inc ecx
xor eax, eax
mov ebx, dword [ebp - 4]
lea ebx, [ebx + edx*4]
movzx ebx, byte [ebx + eax]
movzx ebx, byte [esi + ebx]
mov edi, dword [ebp - 4]
lea edi, [edi + edx*4]
mov byte [edi + eax], bl
inc eax
dec ecx
jne 0x827e0f
inc edx
cmp edx, 4
jne 0x827e04
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ecx, dword [0x827ac8]
call fcn.0040d6d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x827e64
lea eax, [ebp - 4]
mov edx, dword [0x827ac8]
call fcn.0040d68c
ret
Function at 0x828020
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
call fcn.0040d70c
mov eax, dword [ebp - 8]
call fcn.0040d70c
xor eax, eax
push ebp
push 0x8280b4
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov ecx, dword [ebp + 0xc]
dec ecx
test ecx, ecx
jl 0x82807c
inc ecx
xor eax, eax
mov ebx, esi
add ebx, ebx
add ebx, ebx
add ebx, eax
mov edi, dword [ebp - 8]
lea ebx, [edi + ebx*4]
movzx ebx, byte [ebx + edx]
mov edi, dword [ebp - 4]
lea edi, [edi + edx*4]
xor byte [edi + eax], bl
inc eax
dec ecx
jne 0x82805d
inc edx
cmp edx, 4
jne 0x828052
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ecx, dword [0x827ac8]
call fcn.0040d6d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x8280bb
lea eax, [ebp - 8]
mov edx, dword [0x827ac8]
mov ecx, 2
call fcn.0040c184
ret

Function at 0x828364
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
add esp, 0xfffffff8
mov dword [esp], edx
mov edx, 4
mov eax, esp
movzx ecx, byte [eax]
movzx ecx, byte [ecx + str.cw]
mov byte [eax], cl
inc eax
dec edx
jne 0x828371
mov eax, dword [esp]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
pop ecx
pop edx
ret
Function at 0x8283c4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
call fcn.0040d70c
xor eax, eax
push ebp
push 0x82855c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test eax, eax
je 0x8283f8
sub eax, 4
mov eax, dword [eax]
test eax, eax
jns 0x8283ff
add eax, 3
sar eax, 2
mov dword [ebp - 0x10], eax
mov esi, dword [ebp - 0x10]
add esi, 6
lea eax, [esi + 1]
add eax, eax
add eax, eax
push eax
mov eax, dword [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x827ac8]
call fcn.0040d568
add esp, 4
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
jl 0x828479
inc eax
mov dword [ebp - 0x1c], eax
xor ebx, ebx
mov eax, ebx
add eax, eax
add eax, eax
mov edx, dword [ebp - 4]
movzx edx, byte [edx + eax]
mov byte [ebp - 0x18], dl
mov edx, dword [ebp - 4]
movzx edx, byte [edx + eax + 1]
mov byte [ebp - 0x17], dl
mov edx, dword [ebp - 4]
movzx edx, byte [edx + eax + 2]
mov byte [ebp - 0x16], dl
mov edx, dword [ebp - 4]
movzx eax, byte [edx + eax + 3]
mov byte [ebp - 0x15], al
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov edx, dword [ebp - 0x18]
mov dword [eax + ebx*4], edx
inc ebx
dec dword [ebp - 0x1c]
jne 0x828437
mov ebx, dword [ebp - 0x10]
inc esi
mov eax, esi
add eax, eax
add eax, eax
dec eax
sub eax, ebx
jl 0x828540
inc eax
mov dword [ebp - 0x1c], eax
xor ecx, ecx
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
lea edx, [edx + ebx*4]
movzx edx, byte [edx + ecx - 4]
mov byte [eax], dl
inc ecx
inc eax
cmp ecx, 4
jne 0x828495
mov eax, ebx
cdq
idiv dword [ebp - 0x10]
test edx, edx
jne 0x8284ed
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.00828390
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.00828364
mov dword [ebp - 0x14], eax
mov ecx, 4
mov esi, 0x8bc8f4
lea edi, [ebp - 0x14]
mov eax, ebx
cdq
idiv dword [ebp - 0x10]
movzx eax, byte [esi + eax*4]
xor byte [edi], al
inc edi
inc esi
dec ecx
jne 0x8284da
jmp 0x82850c
cmp dword [ebp - 0x10], 6
jle 0x82850c
mov eax, ebx
cdq
idiv dword [ebp - 0x10]
cmp edx, 4
jne 0x82850c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.00828364
mov dword [ebp - 0x14], eax
xor ecx, ecx
lea eax, [ebp - 0x14]
mov edx, ebx
sub edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
mov esi, dword [esi]
lea edx, [esi + edx*4]
movzx edx, byte [edx + ecx]
xor dl, byte [eax]
mov esi, dword [ebp - 0xc]
mov esi, dword [esi]
lea esi, [esi + ebx*4]
mov byte [esi + ecx], dl
inc ecx
inc eax
cmp ecx, 4
jne 0x828511
inc ebx
dec dword [ebp - 0x1c]
jne 0x828490
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x828563
lea eax, [ebp - 4]
mov edx, dword [0x404b48]
call fcn.0040d68c
ret