joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cb6a4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.USER32.DLL_GetMessagePos
call fcn.00443140
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.004c56dc
test ebx, ebx
jne 0x4cb6f7
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.004cb520
mov ebx, eax
test ebx, ebx
je 0x4cb7ed
cmp esi, ebx
je 0x4cb720
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x4cb735
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x4cb76d
add eax, 0xffffff5f
sub eax, 2
jb 0x4cb785
dec eax
sub eax, 2
jb 0x4cb799
dec eax
sub eax, 2
jb 0x4cb78f
jmp 0x4cb7a3
add eax, 0xfffffdff
sub eax, 2
jb 0x4cb785
dec eax
sub eax, 2
jb 0x4cb799
dec eax
sub eax, 2
jb 0x4cb78f
jmp 0x4cb7a3
mov byte [esp + 0x120], 0
jmp 0x4cb7ab
mov byte [esp + 0x120], 2
jmp 0x4cb7ab
mov byte [esp + 0x120], 1
jmp 0x4cb7ab
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.USER32.DLL_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.004a0548
mov esi, eax
call fcn.004c1f14
or si, ax
mov word [esp + 0x121], si
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.004c709c
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x4cb7ef
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret

Function at 0x4e8e80
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x52c860
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x4e8ea2
shr eax, 1
xor eax, 0xedb88320
jmp 0x4e8ea4
shr eax, 1
dec edx
jne 0x4e8e90
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4e8e89
mov byte [0x52cc60], 1
pop esi
pop ebx
ret

Function at 0x4e8ec0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x52cc60], 0
jne 0x4e8ed7
call fcn.004e8e80
mov eax, edi
dec eax
test eax, eax
jl 0x4e8eff
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x52c860]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x4e8ee1
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4ebca8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x461]
movzx ecx, dl
cmp ecx, 6
ja case.0x4ebd42.0
jmp dword [ecx*4 + 0x4ebcdb]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x4ebd0d
sub dl, 8
je 0x4ebd1c
jmp case.0x4ebd42.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x4eb950
jmp case.0x4ebd42.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x4eb9a8
jmp case.0x4ebd42.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x4ebd42.0
movzx ecx, byte [ecx + 0x4ebd49]
jmp dword [ecx*4 + 0x4ebd5a]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x4eba54
jmp case.0x4ebd42.0
cmp dl, 3
jne 0x4ebd87
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x4ebaac
jmp case.0x4ebd42.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x4eba68
jmp case.0x4ebd42.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x4ebaf0
jmp case.0x4ebd42.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x4ebdb2
sub dl, 8
je 0x4ebdbe
jmp case.0x4ebd42.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x4ebb1c
jmp case.0x4ebd42.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x4ebb88
jmp case.0x4ebd42.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x4ebddd
sub dl, 8
je 0x4ebde9
jmp case.0x4ebd42.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x4ebc44
jmp case.0x4ebd42.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x4ebc6c
mov edx, dword [eax + 0x468]
mov ecx, dword [ebx + 0x1c]
dec ecx
imul edx, ecx
mov esi, edx
add esi, dword [eax + 0x450]
mov dword [ebp - 0x10], esi
mov esi, dword [eax + 0x454]
mov dword [ebp - 0xc], esi
add edx, dword [eax + 0x44c]
mov dword [ebp - 0x14], edx
mov esi, ecx
test esi, esi
jb 0x4ebe8b
inc esi
mov eax, dword [ebx + 0x20]
inc eax
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
movzx eax, byte [ebx + 0x48]
mov ecx, dword [ebx + eax*4 + 0x40]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004eae54
test eax, eax
je 0x4ebe8b
mov eax, ebx
call fcn.004ebe94
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
call dword [ebp - 0x20]
movzx eax, byte [ebx + 0x48]
xor al, 1
mov byte [ebx + 0x48], al
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x468]
sub dword [ebp - 0x10], eax
sub dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x18]
add dword [ebp - 0xc], eax
dec esi
jne 0x4ebe24
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4ebe94
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x4ebec5
dec al
je 0x4ebf00
dec al
je 0x4ebf45
dec al
je 0x4ebfae
jmp 0x4ec038
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x4ec038
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4ebed5
jmp 0x4ec038
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4ec038
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4ebf10
jmp 0x4ec038
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4ec038
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x4ebf74
xor ebp, ebp
jmp 0x4ebf84
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x4ebf8d
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4ebf55
jmp 0x4ec038
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4ec038
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x4ec007
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.004e8f08
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4ebfc2
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5065f8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x506614
call fcn.00507770
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x506633
test bl, 1
je 0x506633
call fcn.0050ea44
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x50b090
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.00505374
add esp, 8
lea ecx, [ebp - 0x200]
push ecx
call fcn.00505424
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.00505424
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x524f09
lea ecx, [ebp - 0x200]
push ecx
call fcn.00505374
add esp, 8
push 0xa
lea ecx, [ebp - 0x200]
push ecx
call fcn.00505424
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov eax, dword [ebx]
push eax
call fcn.0050c530
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x50b1a1
push esi
call fcn.00505424
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.00505424
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.005045f0
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x50b178
xor eax, eax
jmp 0x50b228
push esi
call fcn.00505424
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.00505424
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.005052a3
add esp, 0xc
jmp 0x50b1e1
mov edi, dword [ebx + 0x24]
push edi
call fcn.00505424
pop ecx
push eax
push esi
call fcn.00505424
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.00505424
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.00504610
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x50b1e1
xor eax, eax
jmp 0x50b228
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.00505374
add esp, 8
push 0x524f0b
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.00505374
add esp, 8
lea ecx, [ebp - 0x200]
push ecx
mov eax, dword [ebx + 0x24]
push eax
call fcn.00505374
add esp, 8
push 0x524f0d
mov edx, dword [ebx + 0x24]
push edx
call fcn.00505374
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x50e9d8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
jne 0x50ea05
jmp 0x50ea3c
call fcn.0050e988
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00505424
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00505424
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x50eac0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x5255ac], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x50eb9a
cmp dword [0x5255a8], 0
jne 0x50eb9a
cmp dword [0x5257d0], 0
je 0x50eb54
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.0050e490
add esp, 8
mov ebx, eax
test eax, eax
jne 0x50eb3a
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0050e490
add esp, 8
mov ebx, eax
test eax, eax
jne 0x50eb3a
lea ebx, [ebp - 0x84]
jmp 0x50eb3b
inc ebx
call fcn.0050ea78
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x50ebd5
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x5255b0
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00505424
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x5255b3
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x50ebd5
cmp dword [0x5255a8], 0
je 0x50ebb4
cmp dword [0x5255a8], 0xffffffff
je 0x50ebd5
push esi
call dword [0x5255a8]
pop ecx
mov eax, dword [0x5255ac]
test eax, eax
je 0x50ebd5
cmp dword [0x5255ac], 0xffffffff
je 0x50ebd5
cmp byte [eax], 0
je 0x50ebd5
push esi
push eax
call fcn.0050e9d8
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50f4ec
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x52d948], 0
jne 0x50f578
cmp dword [0x52d97c], 0
jne 0x50f51c
call sub.KERNEL32.DLL_GetEnvironmentStringsW
mov dword [0x52d97c], eax
test eax, eax
jne 0x50f51c
push str.GetEnvironmentStrings_failed
call fcn.0050ebec
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x52d97c]
jmp 0x50f535
lea eax, [edi + 1]
add edi, edi
add edi, 2
add ebp, eax
inc esi
add ebx, edi
push ebx
call fcn.005056e4
pop ecx
mov edi, eax
test eax, eax
jne 0x50f528
lea edi, [ebp + 1]
mov eax, edi
add eax, eax
push eax
call fcn.005045f0
pop ecx
mov ebx, eax
mov dword [0x52d94c], ebx
test ebx, ebx
jne 0x50f563
xor eax, eax
jmp 0x50f63f
add edi, edi
mov edx, dword [0x52d97c]
push edi
push edx
push ebx
call fcn.005050bc
add esp, 0xc
jmp 0x50f598
xor esi, esi
mov ebx, dword [0x52d948]
jmp 0x50f592
push eax
call fcn.005056e4
pop ecx
test eax, eax
jne 0x50f58e
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x50f582
lea ebx, [esi + 4]
push 4
mov dword [0x52d950], ebx
inc ebx
push ebx
call fcn.00504554
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x50f5bb
xor eax, eax
jmp 0x50f63f
cmp dword [0x52d948], 0
jne 0x50f5f0
xor esi, esi
mov ebx, dword [0x52d94c]
mov eax, dword [esp]
mov ebp, eax
jmp 0x50f5e1
mov dword [ebp], ebx
add edi, edi
add ebp, 4
add edi, 2
inc esi
add ebx, edi
push ebx
call fcn.005056e4
pop ecx
mov edi, eax
test eax, eax
jne 0x50f5d3
jmp 0x50f621
xor esi, esi
mov ebx, dword [0x52d948]
mov eax, dword [esp]
mov edi, eax
jmp 0x50f61b
push eax
call fcn.005056e4
pop ecx
test eax, eax
je 0x50f610
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x50f614
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x50f5ff
mov eax, dword [0x52d948]
test eax, eax
je 0x50f631
push eax
call fcn.00504600
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x52d948], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x41a6a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x22e80d8]
xor edx, edx
cmp eax, edx
jne 0x41a6c6
xor eax, eax
mov byte [eax + 0x22e7fd8], al
inc eax
cmp eax, 0x100
jl 0x41a6ae
mov dword [0x22e80d8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x22e7fd8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41a757
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 0x41a72a
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 0x41a6f8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41a760
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 0x41a7b3
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 0x41a79a
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 0x41eba0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x78]
push ebx
push esi
cmp eax, 1
push edi
mov dword [esp + 0x14], ecx
jl 0x41edc1
cmp eax, 8
jg 0x41edc1
cmp dword [esp + 0x8c], 2
jl 0x41edc1
mov eax, dword [esp + 0x7c]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x6c], ecx
sub ecx, esi
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x7c], ecx
test ecx, ecx
mov dword [esp + 0x70], ebx
jle 0x41edc1
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x41edc1
mov eax, dword [esp + 0x80]
test eax, eax
je 0x41ec27
mov edx, dword [eax]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x4c], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], eax
xor edx, edx
push ebp
test ebx, ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], edx
jle 0x41edaa
mov ebp, dword [0x4a158c]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x41ec59
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x41ed91
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x41ec79
mov ecx, 0x32
lea ebx, [ecx + eax]
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push edx
lea edx, [esp + 0x34]
push eax
push edx
call dword [0x4a1578]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x41ecb8
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [0x4a1580]
lea ecx, [esp + 0x28]
push ecx
call dword [0x4a15c0]
test eax, eax
jne 0x41ed78
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
mov eax, edi
mov ecx, esi
mov dword [esp + 0x44], edx
neg eax
neg ecx
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call ebp
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x94]
sub ecx, edi
sub eax, esi
push edx
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x9c]
push eax
call fcn.0041e1b0
cmp eax, 1
jne 0x41eda2
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.0041ea60
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x41ec6d
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x41edaa
jmp 0x41ec44
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.0041dd40
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x68
ret 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x68
ret 0x1c
Function at 0x421a90
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 0x421c28
cmp ebp, ebx
jle 0x421c28
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 0x421aee
dec eax
or eax, 0xfffffff8
inc eax
je 0x421af5
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x421b04
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x421b0b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.0049120f
add esp, 4
cmp eax, ebx
je 0x421b2c
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.0049120f
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 0x421c1e
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 0x421c05
mov al, byte [edx]
cmp al, 0xc0
jbe 0x421bf1
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x421be6
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 0x421bf4
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x421bf4
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x421b90
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 0x421b81
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