joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d496
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x5e2ec0]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
push ebx
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x1a8]
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x74], edi
cmp ebx, 0xffffffff
jne 0x45d4ef
xor eax, eax
jmp 0x45d66c
lea eax, [ebp - 0x74]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x74], eax
cmp eax, edi
je 0x45d661
push esi
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov dword [ebp - 0x78], esi
cmp esi, edi
je 0x45d657
push edi
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x74]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45d64e
mov dword [ebp - 0x70], esi
mov esi, 0xff
push esi
lea eax, [ebp + 0x99]
push edi
push eax
mov byte [ebp + 0x98], 0
call fcn.0055bfc0
push esi
lea eax, [ebp - 0x67]
push edi
push eax
mov byte [ebp - 0x68], 0
call fcn.0055bfc0
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrA]
add esp, 0x18
jmp 0x45d56e
xor edi, edi
push str.host
push dword [ebp - 0x70]
call ebx
cmp eax, edi
je 0x45d64e
lea esi, [eax + 5]
lea eax, [ebp + 0x98]
push esi
push eax
call fcn.0045d46a
push dword [ebp - 0x6c]
lea edi, [ebp + 0x98]
mov ecx, str.Host
call fcn.004036cd
add esp, 0xc
push str.username
push esi
call ebx
mov esi, eax
test esi, esi
je 0x45d64e
lea eax, [esi + 9]
push eax
mov eax, edi
push eax
call fcn.0045d46a
push dword [ebp - 0x6c]
mov ecx, str.User
call fcn.004036cd
add esp, 0xc
push str.password
add esi, 7
push esi
call ebx
test eax, eax
je 0x45d64e
lea esi, [eax + 9]
lea eax, [ebp - 0x68]
push eax
mov eax, edi
push esi
push eax
call fcn.0045d46a
pop ecx
pop ecx
push eax
call fcn.0045d419
push dword [ebp - 0x6c]
lea edi, [ebp - 0x68]
mov ecx, str.Pass
call fcn.004036cd
inc dword [0x5ea9d0]
mov edi, 0x100
push edi
lea eax, [ebp - 0x68]
push 0
push eax
mov dword [ebp - 0x70], esi
call fcn.0055bfc0
push edi
lea eax, [ebp + 0x98]
push 0
push eax
call fcn.0055bfc0
mov edi, dword [ebp - 0x6c]
add esp, 0x24
mov esi, 0x5d3ad4
call fcn.00403769
cmp dword [ebp - 0x70], 0
jne 0x45d56c
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, dword [0x5ea9d0]
inc dword [0x5ea9d0]
mov ecx, dword [ebp + 0x198]
pop edi
xor ecx, ebp
pop ebx
call fcn.0055a67a
add ebp, 0x19c
leave
ret
Function at 0x45d683
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x304
mov eax, dword [0x5e2ec0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp dword [0x5ea258], ebx
jne 0x45d6a6
call fcn.00403a70
push 0x2ff
lea eax, [ebp - 0x303]
push ebx
push eax
mov byte [ebp - 0x304], bl
call fcn.0055bfc0
add esp, 0xc
push str.GHISLERwcx_ftp.ini
push 0x5e9c58
lea eax, [ebp - 0x304]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0x304]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x45d739
push esi
push ebx
push 0x80
push 1
push ebx
push ebx
push 0x40000000
push str.TCM.log
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x45d738
lea eax, [ebp - 0x304]
push eax
push esi
call fcn.0045d496
pop ecx
pop ecx
push esi
test eax, eax
jne 0x45d732
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.TotalCommander.log
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x45d738
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0055a67a
leave
ret
Function at 0x45d9f0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x5e2ec0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x150], 0
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0x5d3850
push edi
mov dword [ebp - 0x154], eax
call esi
lea eax, [ebp - 0x14c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45da93
test byte [ebp - 0x14c], 0x10
je 0x45da58
push dword [ebp - 0x154]
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrA]
test eax, eax
jne 0x45da6c
lea eax, [ebp - 0x14c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x45da38
jmp 0x45da8c
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov byte [eax + edi - 2], 0
lea eax, [ebp - 0x120]
push eax
push edi
call esi
mov dword [ebp - 0x150], 1
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x150]
pop esi
xor ecx, ebp
pop ebx
call fcn.0055a67a
leave
ret
Function at 0x45f605
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, eax
push esi
lea eax, [ebx - 1]
push edi
mov esi, ecx
cmp eax, 7
jbe 0x45f61e
mov dword [esi + 0x6afa4], str.bad_pack_level
xor edi, edi
lea ecx, [esi + 0x6af70]
lea eax, [esi + 0x6af78]
mov dword [eax], edi
cmp dword [ecx], edi
jne 0x45f63e
mov dword [eax], 1
mov dword [ecx], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
push edi
push eax
mov dword [esi + 0x6af6c], edi
call fcn.0055bfc0
mov eax, ebx
shl eax, 3
movzx ecx, word [eax + 0x5d5f7a]
mov dword [esi + 0x6af98], ecx
movzx ecx, word [eax + 0x5d5f78]
mov dword [esi + 0x6af9c], ecx
movzx ecx, word [eax + 0x5d5f7c]
mov dword [esi + 0x6afa0], ecx
movzx eax, word [eax + 0x5d5f7e]
add esp, 0xc
cmp ebx, 2
mov dword [esi + 0x6af94], eax
jg 0x45f6a1
mov eax, dword [esp + 0x10]
or word [eax], 4
jmp 0x45f6ae
cmp ebx, 8
jl 0x45f6ae
mov eax, dword [esp + 0x10]
or word [eax], 2
push 0x10000
lea ebx, [esi + 0x1af70]
push ebx
push esi
mov dword [esi + 0x6af84], edi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
cmp eax, edi
je 0x45f716
cmp eax, 0xffffffff
je 0x45f716
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x45f6ee
call fcn.0045f8ae
mov dword [esi + 0x6af7c], edi
movzx eax, byte [ebx + edi]
mov ecx, dword [esi + 0x6af7c]
shl ecx, 5
xor eax, ecx
and eax, 0x7fff
inc edi
mov dword [esi + 0x6af7c], eax
cmp edi, 2
jb 0x45f6f4
jmp 0x45f726
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
ret
Function at 0x45f9ca
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x45fbc7
push edi
mov edi, 0x7fff
cmp dword [esi + 0x6af90], 3
jb 0x45fa44
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, edi
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, edi
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
cmp dword [ebp - 4], 0
je 0x45fa87
mov eax, dword [esi + 0x6af84]
sub eax, dword [ebp - 4]
cmp eax, 0x7efa
ja 0x45fa87
mov ecx, dword [esi + 0x6af90]
lea eax, [esi + 0x6afa0]
cmp dword [eax], ecx
jbe 0x45fa6c
mov dword [eax], ecx
push dword [ebp - 4]
mov ecx, esi
call fcn.0045f72a
mov ebx, eax
mov eax, dword [esi + 0x6af90]
add esp, 4
cmp ebx, eax
jbe 0x45fa87
mov ebx, eax
cmp ebx, 3
jb 0x45fb47
mov edx, dword [esi + 0x6af84]
sub edx, dword [esi + 0x6af88]
lea ecx, [ebx - 3]
mov eax, esi
call fcn.0045f030
sub dword [esi + 0x6af90], ebx
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x6af90]
cmp ebx, dword [esi + 0x6af98]
ja 0x45fb15
cmp eax, 3
jb 0x45fb15
dec ebx
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
xor ecx, eax
and ecx, edi
mov dword [esi + 0x6af7c], ecx
mov ecx, dword [esi + ecx*4 + 0x4af70]
and edx, edi
dec ebx
mov dword [esi + edx*4 + 0x2af70], ecx
mov eax, dword [esi + 0x6af7c]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x45fac3
jmp 0x45fb67
add dword [esi + 0x6af84], ebx
mov eax, dword [esi + 0x6af84]
lea edx, [eax + esi]
movzx ecx, byte [edx + 0x1af70]
lea eax, [esi + 0x6af7c]
mov dword [eax], ecx
movzx edx, byte [edx + 0x1af71]
shl ecx, 5
xor edx, ecx
xor ebx, ebx
and edx, edi
mov dword [eax], edx
jmp 0x45fb6d
mov eax, dword [esi + 0x6af84]
movzx ecx, byte [eax + esi + 0x1af70]
xor edx, edx
mov eax, esi
call fcn.0045f030
dec dword [esi + 0x6af90]
mov dword [ebp - 8], eax
inc dword [esi + 0x6af84]
cmp dword [ebp - 8], 0
je 0x45fba8
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
jl 0x45fb86
lea edx, [ecx + esi + 0x1af70]
jmp 0x45fb88
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 0
sub eax, ecx
push edx
mov ecx, esi
call fcn.0045ee3f
mov eax, dword [esi + 0x6af84]
pop ecx
pop ecx
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x45fbb9
call fcn.0045f8ae
cmp dword [esi + 0x6af90], 0
jne 0x45f9f4
pop edi
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
jl 0x45fbda
lea edx, [ecx + esi + 0x1af70]
jmp 0x45fbdc
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 1
sub eax, ecx
push edx
mov ecx, esi
call fcn.0045ee3f
pop ecx
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x4606ad
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x4606b8
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x46076a
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5d5fc8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5d5fc8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5d5fc8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5d5fc8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5d5fc8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5d5fc8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5d5fc8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5d5fc8]
inc ecx
sub edi, 8
dec esi
jne 0x4606cf
pop ebx
test edi, edi
je 0x460783
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x5d5fc8]
inc ecx
dec edi
jne 0x46076e
pop esi
not eax
pop edi
ret
Function at 0x460b3e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor edi, edi
cmp dword [esi + 0x18], edi
je 0x460bf5
mov eax, dword [esi + 0x1c]
mov ebx, dword [ebp + 0xc]
lea ecx, [ebx + eax]
mov eax, dword [esi + 0x20]
cmp ecx, eax
jb 0x460bdb
add eax, eax
mov dword [ebp - 4], eax
cmp eax, ecx
ja 0x460b6b
mov dword [ebp - 4], ecx
push edi
push dword [ebp - 4]
push edi
push 4
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
cmp ebx, edi
jne 0x460b8b
mov eax, 0x300
jmp 0x460c1e
push dword [ebp - 4]
push edi
push edi
push 0xf001f
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x460bab
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x460b81
push dword [esi + 0x20]
push dword [esi + 0x18]
push edi
call fcn.0055bc50
add esp, 0xc
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [esi + 4], ebx
mov ebx, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
mov dword [esi + 0x18], edi
mov eax, dword [esi + 0x1c]
add eax, dword [esi + 0x18]
push ebx
push dword [ebp + 8]
push eax
call fcn.0055bc50
add esp, 0xc
add dword [esi + 0x1c], ebx
mov eax, ebx
jmp 0x460c1e
mov eax, dword [esi]
cmp eax, edi
je 0x460c15
push edi
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
jmp 0x460c1e
mov dword [esi + 0xc], 0x1000000
xor eax, eax
pop edi
pop ebx
leave
ret 8

Function at 0x460e9f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [esi + 0x58]
push edi
test ecx, ecx
je 0x460ee4
mov eax, dword [esi + 0x60]
mov edi, dword [esi + 0x5c]
cmp eax, edi
jae 0x460f0c
sub edi, eax
cmp edi, dword [ebp + 8]
jbe 0x460ebe
mov edi, dword [ebp + 8]
push edi
add eax, ecx
push eax
push ebx
call fcn.0055bc50
add esp, 0xc
add dword [esi + 0x60], edi
mov eax, dword [esi + 0x4c]
add dword [esi + 0x48], edi
mov edx, edi
mov ecx, ebx
call fcn.004606ad
mov dword [esi + 0x4c], eax
mov eax, edi
jmp 0x460f0e
mov eax, dword [esi + 0x50]
test eax, eax
je 0x460f05
push 0
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x460f0c
mov edi, dword [ebp + 8]
jmp 0x460ece
mov dword [esi + 0xc], 0x1000000
xor eax, eax
pop edi
pop ebp
ret 4
Function at 0x466f30
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x208
call fcn.0055bc20
mov eax, dword [0x5e2ec0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x466fa5
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x466fa5
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x204]
push 0x200
push edx
call fcn.0055c270
add esp, 0x10
test eax, eax
jge 0x466f88
mov eax, 0x200
push 0
lea ecx, [ebp - 0x208]
push ecx
push eax
lea edx, [ebp - 0x204]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4670ee
mov ebx, dword [ebp + 8]
mov eax, ebx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x466fb0
sub eax, edx
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.0055c0a0
mov esi, esp
test esi, esi
jne 0x466fd4
mov esi, str.no_stack_
jmp 0x46705f
push edi
push esi
push edi
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x467001
test edi, edi
jbe 0x467001
lea ebx, [ebx]
mov ecx, dword [ebp + 8]
movsx dx, byte [eax + ecx]
mov word [esi + eax*2], dx
inc eax
cmp eax, edi
jb 0x466ff0
xor eax, eax
test edi, edi
jbe 0x46705f
cmp word [esi + eax*2], 0x25
jne case.0x467024.43
lea ecx, [esi + eax*2 + 2]
movzx edx, word [ecx]
add edx, 0xffffffd6
cmp edx, 0x49
ja case.0x467024.43
movzx edx, byte [edx + 0x467120]
jmp dword [edx*4 + 0x467108]
inc eax
add ecx, 2
jmp 0x467012
mov ecx, 0x53
mov word [esi + eax*2 + 2], cx
jmp case.0x467024.43
mov edx, 0x73
jmp 0x467055
mov ecx, 0x43
mov word [esi + eax*2 + 2], cx
jmp case.0x467024.43
mov edx, 0x63
mov word [esi + eax*2 + 2], dx
inc eax
cmp eax, edi
jb 0x467007
lea eax, [ebp + 0xc]
push eax
push esi
lea ecx, [ebp - 0x204]
push 0xff
push ecx
call fcn.0055c1a0
xor edx, edx
add esp, 0x10
mov word [ebp - 6], dx
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4670d8
call fcn.00466df0
test eax, eax
jle 0x4670d8
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x4670ee
push 0
lea ecx, [ebp - 0x208]
push ecx
push 0
push 1
push 0
push 0
push 0
push 1
lea eax, [ebp - 0x204]
push esi
mov dword [ebp - 0x208], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x4670ee
push 0x10
push str.OpenSSL:_FATAL
lea edx, [ebp - 0x204]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esp, [ebp - 0x214]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055a67a
mov esp, ebp
pop ebp
ret

Function at 0x4671a0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
xor cl, cl
test edi, edi
jbe 0x4671c8
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0x14]
sub esi, eax
mov dl, byte [esi + eax]
mov bl, byte [eax]
xor dl, bl
or cl, dl
inc eax
sub edi, 1
jne 0x4671b7
pop esi
pop ebx
movzx eax, cl
pop edi
ret
Function at 0x469e00
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret
Function at 0x46ce80
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push ebx
push eax
push ecx
call fcn.0046c950
add esp, 0xc
test eax, eax
jl 0x46d0c8
mov edx, dword [ebx + 0xf0]
add edx, edx
push esi
add edx, edx
xor esi, esi
push edi
test edx, edx
jle 0x46cefd
lea ecx, [ebx + edx*4 + 8]
lea eax, [ebx + 8]
push ebp
lea ebx, [ebx]
mov ebp, dword [ecx - 8]
mov edi, dword [eax - 8]
mov dword [eax - 8], ebp
mov ebp, dword [ecx - 4]
mov dword [ecx - 8], edi
mov edi, dword [eax - 4]
mov dword [eax - 4], ebp
mov ebp, dword [ecx]
mov dword [ecx - 4], edi
mov edi, dword [eax]
mov dword [eax], ebp
mov ebp, dword [ecx + 4]
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [eax + 4], ebp
mov dword [ecx + 4], edi
add esi, 4
sub edx, 4
add eax, 0x10
sub ecx, 0x10
cmp esi, edx
jl 0x46cec0
pop ebp
mov edx, 1
cmp dword [ebx + 0xf0], edx
jle 0x46d0c4
lea eax, [ebx + 2]
mov ecx, dword [eax + 0xe]
movzx edi, byte [eax + 0xf]
mov edi, dword [edi*4 + 0x587698]
add eax, 0x10
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x587698]
and esi, 0xff
mov esi, dword [esi*4 + 0x588298]
and edi, 0xff
xor esi, dword [edi*4 + 0x588a98]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x587698]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x588e98]
movzx ecx, byte [eax]
mov ecx, dword [ecx*4 + 0x587698]
movzx edi, byte [eax + 3]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x588698]
mov ecx, dword [eax + 2]
mov dword [eax - 2], esi
mov edi, dword [edi*4 + 0x587698]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x587698]
and esi, 0xff
mov esi, dword [esi*4 + 0x588298]
and edi, 0xff
xor esi, dword [edi*4 + 0x588a98]
movzx edi, byte [eax + 4]
mov edi, dword [edi*4 + 0x587698]
and edi, 0xff
xor esi, dword [edi*4 + 0x588698]
movzx edi, byte [eax + 7]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x587698]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x588e98]
mov ecx, dword [eax + 6]
mov dword [eax + 2], esi
mov edi, dword [edi*4 + 0x587698]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x587698]
and esi, 0xff
mov esi, dword [esi*4 + 0x588298]
and edi, 0xff
xor esi, dword [edi*4 + 0x588a98]
movzx edi, byte [eax + 8]
mov edi, dword [edi*4 + 0x587698]
and edi, 0xff
xor esi, dword [edi*4 + 0x588698]
movzx edi, byte [eax + 0xb]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x587698]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x588e98]
mov ecx, dword [eax + 0xa]
mov dword [eax + 6], esi
mov edi, dword [edi*4 + 0x587698]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x587698]
and esi, 0xff
mov esi, dword [esi*4 + 0x588298]
and edi, 0xff
xor esi, dword [edi*4 + 0x588a98]
movzx edi, byte [eax + 0xc]
mov edi, dword [edi*4 + 0x587698]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x587698]
and edi, 0xff
xor esi, dword [edi*4 + 0x588698]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x588e98]
inc edx
mov dword [eax + 0xa], esi
cmp edx, dword [ebx + 0xf0]
jl 0x46cf11
pop edi
xor eax, eax
pop esi
pop ebx
ret
Function at 0x46e080
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.0055bc20
mov eax, dword [esp + 0x1c]
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
mov esi, dword [eax]
push edi
mov edi, dword [esp + 0x28]
test esi, esi
je 0x46e0c5
test ebx, ebx
je 0x46e0c5
mov cl, byte [esi + edi]
mov ebp, dword [esp + 0x18]
xor cl, byte [ebp]
mov eax, dword [esp + 0x1c]
mov byte [eax], cl
inc eax
inc ebp
inc esi
dec ebx
and esi, 0xf
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebp
jne 0x46e0a0
cmp ebx, 0x10
jb 0x46e140
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, edx
sub eax, edi
mov dword [esp + 0x20], eax
mov eax, ebx
shr eax, 4
mov ebp, ecx
mov dword [esp + 0x10], eax
shl eax, 4
add ecx, eax
sub ebp, edi
add edx, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x24]
push edx
push edi
push edi
call dword [esp + 0x3c]
add esp, 0xc
cmp esi, 0x10
jae 0x46e12c
mov ecx, 0xf
sub ecx, esi
shr ecx, 2
lea eax, [esi + edi]
inc ecx
mov edx, dword [esp + 0x20]
mov edx, dword [edx + eax]
xor edx, dword [eax]
add eax, 4
sub ecx, 1
mov dword [eax + ebp - 4], edx
jne 0x46e117
add dword [esp + 0x20], 0x10
sub ebx, 0x10
add ebp, 0x10
xor esi, esi
sub dword [esp + 0x10], 1
jne 0x46e0f6
test ebx, ebx
je 0x46e17d
mov eax, dword [esp + 0x24]
push eax
push edi
push edi
call dword [esp + 0x3c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
add esp, 0xc
lea eax, [esi + edi]
sub ebp, edi
sub ecx, edi
add esi, ebx
mov dl, byte [eax + ebp]
xor dl, byte [eax]
dec ebx
mov byte [eax + ecx], dl
inc eax
test ebx, ebx
jne 0x46e163
mov eax, dword [esp + 0x2c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x2c]
pop edi
mov dword [ecx], esi
pop esi
pop ebp
pop ebx
pop ecx
ret