joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ba94
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45bc3f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45bc20
mov dl, 1
mov eax, dword [0x41b9e0]
call fcn.004037fc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404698
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45bc0f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004498c8
test al, al
je 0x45bc02
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45bc50
lea eax, [ebp - 0x254]
call fcn.00409ec4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45bc02
xor eax, eax
push ebp
push 0x45bbfb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45bc88
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45bbe4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404908
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45bbe4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404908
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bc02
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45bb05
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041fcac
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bc46
lea eax, [ebp - 0x260]
call fcn.00404698
ret

Function at 0x45c588
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x499bb4]
cmp byte [eax + 0xa5], 0
jne 0x45c5f9
cmp dword [0x499bcc], 0
jne 0x45c5ba
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45c544
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x499bcc], eax
cmp dword [0x499bc8], 0
jne 0x45c5d5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x499bc8], eax
cmp dword [0x499bd0], 0
jne 0x45c5f9
push esp
push 0
push 0
push 0x45c4e8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x499bd0], eax
pop edx
ret
Function at 0x45cc8c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x499bb4]
cmp dword [eax + 0x30], 0
je 0x45cd36
cmp dword [ebx + 0x94], 0
jne 0x45cd30
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45cc1c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45cd30
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45ccf6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45cd30
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041d92c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45cd05
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45d894
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45d8c9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404788
jmp 0x45d8d6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004046ec
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45ea10
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45ea51
mov eax, esi
call fcn.00444ef4
test al, al
je 0x45ea51
mov eax, dword [ebx + 0x84]
call fcn.00444bf0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45ea51
push 0
mov eax, dword [ebx + 0x84]
call fcn.00444bf0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45f734
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x41a91c]
call fcn.0040517c
xor eax, eax
push ebp
push 0x45f878
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x498094], 0
jne 0x45f787
mov ecx, dword [0x49874c]
mov dl, 1
mov eax, dword [0x407e10]
call fcn.0040cf8c
call fcn.00404090
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.004031d0
mov eax, ebx
call fcn.00404f30
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x45f888
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.004064f0
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404f40
test eax, eax
jle 0x45f81f
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x45f818
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404920
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404908
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408d18
test eax, eax
jne 0x45f818
mov ebx, 0x15
jmp 0x45f824
mov ebx, 0x10
jmp 0x45f824
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x498094]
call fcn.0045f68c
mov eax, dword [ebp - 8]
call fcn.0045f68c
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406508
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f87f
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004046bc
lea eax, [ebp - 0x10]
mov edx, dword [0x41a91c]
call fcn.0040524c
ret

Function at 0x466630
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x466668]
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x466646
or bl, 1
push 0x11
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x466655
or bl, 4
push 0x12
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x466664
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x467998
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x498b08]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4679be
push 0
mov eax, dword [0x498b08]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x4833bc
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x4833e1
cmp dword [esp + 4], 5
jb 0x4833e1
mov al, 1
jmp 0x4833e3
xor eax, eax
add esp, 0x94
ret
Function at 0x493ffc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x108], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov eax, dword [ebp - 4]
call fcn.00404b48
xor eax, eax
push ebp
push 0x494088
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0xff
lea eax, [ebp - 0x103]
push eax
push esi
call sub.user32.dll_GetWindowTextA
lea eax, [ebp - 0x108]
lea edx, [ebp - 0x103]
mov ecx, 0xff
call fcn.00404908
mov edx, dword [ebp - 0x108]
mov eax, dword [ebp - 4]
call fcn.00404c9c
dec eax
jl 0x494067
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49408f
lea eax, [ebp - 0x108]
call fcn.00404698
lea eax, [ebp - 4]
call fcn.00404698
ret

Function at 0x402492
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
enter 0x84, 0
push eax
sub ebp, 0x82
mov edx, dword [0x404050]
mov ebx, eax
xor edx, eax
mov eax, 0x404054
call fcn.004023d1
xor eax, eax
mov dword [ebp + 0x7e], eax
lea eax, [ebp + 0x7e]
push eax
mov eax, dword [ebp - 6]
or al, 0x40
mov esi, 0x4037b8
push eax
sub esi, fcn.00402f52
push esi
push fcn.00402f52
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp + 0x7e], 0
je 0x402502
mov ebx, dword [ebp - 6]
mov eax, fcn.00402f52
mov edx, esi
call fcn.004023d1
mov ebx, dword [ebp - 6]
mov edx, 0x1c000
mov eax, 0x404054
call fcn.00401244
mov dword [ebp - 2], 0
lea edx, [ebp - 2]
mov eax, dword [ebp - 6]
mov ebx, dword [ebp - 6]
call fcn.00401bd6
mov eax, 0x404054
inc ebx
xor edx, edx
div ebx
mov esi, dword [ebp - 6]
mov cl, byte [ebp - 6]
add esi, 0x1c000
sar esi, cl
lea ebx, [ebp - 2]
mov edx, esi
call fcn.00402f52
lea esp, [ebp + 0x82]
pop ebp
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x401a40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.00406e41

Function at 0x401ab0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401ac9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401b04
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401b00
lea ebx, [ebx]
cmp esi, eax
jae 0x401b04
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401af0
cmp esi, eax
jb 0x401b0a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x405770
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4057b8
call fcn.0040907d
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4057b8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4057fb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4057e4
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4057e4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4057f8
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40ede8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40ee2f
call fcn.0040907d
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40ee2f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40ee4b
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040e960
mov esi, eax
test edi, edi
je 0x40ee49
test ebx, ebx
je 0x40ee49
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4100bf
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4366d0
call fcn.00421a74
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4100e4
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x41012a
lea ecx, [ebp - 0x10]
call fcn.00401f20
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040955b
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401ee0
mov eax, esi
call fcn.00421b4c
ret 8
Function at 0x4208c6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4477b0]
jne 0x4208d0
repz ret
jmp fcn.00426256

Function at 0x42f5c2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00425c65
and dword [ebp - 4], 0
cmp dword [0x44b550], 0
mov ebx, eax
jne 0x42f673
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42f724
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x42f724
push eax
call fcn.00425bf3
mov dword [esp], 0x43c3d4
push edi
mov dword [0x44b550], eax
call esi
push eax
call fcn.00425bf3
mov dword [esp], 0x43c3c0
push edi
mov dword [0x44b554], eax
call esi
push eax
call fcn.00425bf3
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44b558], eax
call esi
push eax
call fcn.00425bf3
pop ecx
mov dword [0x44b560], eax
test eax, eax
je 0x42f673
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00425bf3
pop ecx
mov dword [0x44b55c], eax
mov eax, dword [0x44b55c]
cmp eax, ebx
je 0x42f6cb
cmp dword [0x44b560], ebx
je 0x42f6cb
push eax
call fcn.00425c6e
push dword [0x44b560]
mov esi, eax
call fcn.00425c6e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42f6cb
test edi, edi
je 0x42f6cb
call esi
test eax, eax
je 0x42f6c2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42f6c2
test byte [ebp - 0xc], 1
jne 0x42f6cb
or dword [ebp + 0x10], 0x200000
jmp 0x42f704
mov eax, dword [0x44b554]
cmp eax, ebx
je 0x42f704
push eax
call fcn.00425c6e
pop ecx
test eax, eax
je 0x42f704
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42f704
mov eax, dword [0x44b558]
cmp eax, ebx
je 0x42f704
push eax
call fcn.00425c6e
pop ecx
test eax, eax
je 0x42f704
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44b550]
call fcn.00425c6e
pop ecx
test eax, eax
je 0x42f724
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42f726
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100211f0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x100213c8
pushal
mov esi, section.UPX1
lea edi, [esi - 0x15000]
lea eax, [edi + 0x179fc]
push dword [eax]
mov dword [eax], 0xf74f4eff
push eax
push edi
jmp 0x1002122a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10021231
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10021220
mov eax, 1
add ebx, ebx
jne 0x10021243
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10021238
jne 0x10021254
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10021238
xor ecx, ecx
sub eax, 3
jb 0x10021268
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x100212da
mov ebp, eax
add ebx, ebx
jne 0x10021273
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10021280
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x100212a4
inc ecx
add ebx, ebx
jne 0x10021290
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10021285
jne 0x100212a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10021285
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x100212c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x100212b5
jmp 0x10021226
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x100212c4
add edi, ecx
jmp 0x10021226
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x5fd
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x100212e6
cmp byte [edi], 0xa
jne 0x100212e6
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x100212eb
lea edi, [esi + 0x1e000]
mov eax, dword [edi]
or eax, eax
je 0x1002135a
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x21528]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x21550]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10021318
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x21554]
or eax, eax
je 0x10021354
mov dword [ebx], eax
add ebx, 4
jmp 0x10021335
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1002138b
cmp al, 0xef
ja 0x1002137e
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10021360
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1002136d
mov ebp, dword [esi + 0x21558]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x100213bf
sub esp, 0xffffff80
jmp 0x1000428c
Function at 0x4012a0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00401020
add esp, 4
test eax, eax
js 0x4014b2
mov eax, dword [esi + 0xf0]
push ebx
push edi
xor ebx, ebx
lea edi, [eax*4]
test edi, edi
jle 0x401329
mov eax, dword [ebp + 8]
lea esi, [esi + edi*4]
add esi, 8
add eax, 8
nop dword [eax]
mov edx, dword [eax - 8]
lea eax, [eax + 0x10]
mov ecx, dword [esi - 8]
lea esi, [esi - 0x10]
mov dword [eax - 0x18], ecx
add ebx, 4
mov ecx, dword [esi + 0xc]
sub edi, 4
mov dword [esi + 8], edx
mov edx, dword [eax - 0x14]
mov dword [eax - 0x14], ecx
mov ecx, dword [esi + 0x10]
mov dword [esi + 0xc], edx
mov edx, dword [eax - 0x10]
mov dword [eax - 0x10], ecx
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x10], edx
mov edx, dword [eax - 0xc]
mov dword [eax - 0xc], ecx
mov dword [esi + 0x14], edx
cmp ebx, edi
jl 0x4012e0
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xf0]
mov ebx, 1
cmp eax, ebx
jle 0x4014ae
lea edi, [esi + 4]
nop dword [eax]
movzx eax, byte [edi + 0xd]
lea edi, [edi + 0x10]
mov edx, dword [edi - 4]
inc ebx
movzx ecx, byte [eax*4 + str.cc]
mov eax, edx
shr eax, 0x18
mov ecx, dword [ecx*4 + 0x4163a0]
movzx eax, byte [eax*4 + str.cc]
xor ecx, dword [eax*4 + 0x416ca0]
movzx eax, byte [edi - 2]
movzx eax, byte [eax*4 + str.cc]
xor ecx, dword [eax*4 + 0x4167a0]
movzx eax, dl
mov edx, dword [edi]
movzx eax, byte [eax*4 + str.cc]
xor ecx, dword [eax*4 + 0x417cc8]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [edi - 4], ecx
movzx ecx, byte [eax*4 + str.cc]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x4167a0]
movzx eax, byte [eax*4 + str.cc]
xor ecx, dword [eax*4 + 0x4163a0]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + str.cc]
xor ecx, dword [eax*4 + 0x416ca0]
movzx eax, dl
mov edx, dword [edi + 4]
movzx eax, byte [eax*4 + str.cc]
xor ecx, dword [eax*4 + 0x417cc8]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [edi], ecx
movzx ecx, byte [eax*4 + str.cc]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x4167a0]
movzx eax, byte [eax*4 + str.cc]
xor ecx, dword [eax*4 + 0x4163a0]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + str.cc]
xor ecx, dword [eax*4 + 0x416ca0]
movzx eax, dl
mov edx, dword [edi + 8]
movzx eax, byte [eax*4 + str.cc]
xor ecx, dword [eax*4 + 0x417cc8]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [edi + 4], ecx
movzx ecx, byte [eax*4 + str.cc]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x4167a0]
movzx eax, byte [eax*4 + str.cc]
xor ecx, dword [eax*4 + 0x4163a0]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + str.cc]
xor ecx, dword [eax*4 + 0x416ca0]
movzx eax, dl
movzx eax, byte [eax*4 + str.cc]
xor ecx, dword [eax*4 + 0x417cc8]
mov dword [edi + 8], ecx
cmp ebx, dword [esi + 0xf0]
jl 0x401340
pop edi
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x403e20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x41e008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x403ec3
cmp byte [esi + 0x3d], 0
je 0x403ec3
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x403e78
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x403e8a
sub eax, 1
je 0x403e8e
sub eax, 2
je 0x403ec3
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413d41
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x403eac
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x403e78
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413d41
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00413d41
mov esp, ebp
pop ebp
ret