joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419220
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ad20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
push dword [esi + 0x70]
call fcn.00423300
mov eax, dword [ebp + 8]
add esp, 4
mov dword [esi + 0x70], 0
mov dword [esi + 0x6c], eax
test eax, eax
je 0x4192b0
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov dword [ebp - 4], 0
lea edi, [eax + 1]
push edi
mov dword [ebp + 8], edi
call fcn.00423748
add esp, 4
mov dword [esi + 0x70], eax
jmp 0x419290
mov eax, dword [esi + 0x70]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4192b0
push edi
push eax
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, esi
call fcn.0041a9b0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4194e0
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push 0x90
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0x94
push 0
push eax
call fcn.00423310
add esp, 0xc
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
test eax, eax
je 0x419540
cmp dword [esp + 0xc], 6
jb 0x419540
lea eax, [esp + 4]
mov dword [esp], 0
push eax
lea ecx, [esp + 4]
push ecx
call fcn.004051a0
add esp, 8
test eax, eax
js 0x419540
cmp dword [esp], 6
mov eax, 0x64
jae 0x419545
mov eax, 0x50
add esp, 0x9c
ret

Function at 0x419550
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebp, ecx
push 0
push 0
push 0x40c
push dword [ebp + 0x24]
call esi
xor ebx, ebx
mov dword [esp + 0xc], eax
test eax, eax
jle 0x419687
push edi
mov edi, edi
push 0x90
lea eax, [esp + 0xa4]
mov dword [esp + 0xa0], 0x94
push 0
push eax
mov edi, 0x64
call fcn.00423310
add esp, 0xc
lea eax, [esp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
test eax, eax
je 0x419614
cmp dword [esp + 0xa0], 6
jb 0x419614
push 0x14
xor esi, esi
lea eax, [esp + 0x28]
push esi
push eax
call fcn.00423310
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0x14
push eax
push str.comctl32.dll
call fcn.00405220
add esp, 0x14
test eax, eax
js 0x4195f6
mov esi, dword [esp + 0x28]
jmp 0x4195fd
cmp eax, 0x80004001
je 0x41960e
test eax, eax
js 0x41960e
cmp esi, 6
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
jae 0x419619
jmp 0x419614
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov edi, 0x50
push 0x60
lea eax, [esp + 0x40]
mov dword [esp + 0x3c], edi
push 0
push eax
call fcn.00423310
add esp, 0xc
mov dword [esp + 0x3c], 0x40
lea eax, [esp + 0x38]
push eax
push ebx
push 0x41d
push dword [ebp + 0x24]
call esi
lea eax, [esp + 0x14]
xorps xmm0, xmm0
push eax
push ebx
push 0x422
push dword [ebp + 0x24]
movdqu xmmword [esp + 0x24], xmm0
call esi
mov eax, dword [esp + 0x1c]
add eax, dword [esp + 0x14]
add dword [esp + 0x64], eax
lea eax, [esp + 0x38]
push eax
push ebx
push 0x406
push dword [ebp + 0x24]
call esi
inc ebx
cmp ebx, dword [esp + 0x10]
jl 0x419580
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret
Function at 0x41b660
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x43ad78
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [0x44ecb4]
mov ebx, ecx
push edi
push 0xf1
push dword [esp + 0x2c]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
test eax, eax
jne 0x41b6af
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x14
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x41b698
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
je 0x41b698
movzx eax, word [esi + 4]
lea edi, [esi + 8]
movzx ebp, word [esi + 6]
mov ecx, ebx
push eax
movzx eax, word [esi + 2]
push eax
call fcn.00418f00
cmp dword [ebx + 0x48], 0
jne 0x41b713
push dword [esp + 0x28]
call fcn.00405450
shl al, 5
add esp, 4
xor al, byte [ebx + 0x85]
mov ecx, ebx
and al, 0x20
xor byte [ebx + 0x85], al
movzx eax, word [esi + 6]
push eax
call fcn.00407a00
test al, al
je 0x41b698
push dword [ebx + 0x48]
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
cmp byte [esp + 0x2c], 0
mov dword [esp + 0x20], 0
je 0x41b75d
push dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
movzx eax, ax
push eax
movsx ecx, cx
push ecx
push dword [0x44ecb4]
call dword [sym.imp.COMCTL32.dll_CreateMappedBitmap]
jmp 0x41b7a1
test byte [ebx + 0x85], 0x20
je 0x41b791
push 0x2040
push 0
push 0
push 0
push dword [esp + 0x38]
push dword [0x44ecb4]
call dword [sym.imp.USER32.dll_LoadImageA]
push eax
lea ecx, [esp + 0x14]
call fcn.00402f60
mov esi, dword [esp + 0x10]
jmp 0x41b7a7
push dword [esp + 0x28]
push dword [0x44ecb4]
call dword [sym.imp.USER32.dll_LoadBitmapA]
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
je 0x41b808
push dword [ebx + 0xa0]
push esi
push dword [ebx + 0x48]
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
cmp eax, 0xffffffff
je 0x41b808
test ebp, ebp
jle 0x41b7d9
cmp word [edi], 0
je 0x41b7d3
push edi
lea ecx, [ebx + 0x4c]
call fcn.00403a50
add edi, 2
dec ebp
jne 0x41b7c4
push dword [ebx + 0x48]
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
mov edi, eax
cmp edi, dword [ebx + 0x50]
jne 0x41b808
call fcn.0040d790
test al, al
je 0x41b801
mov eax, dword [esp + 0x14]
mov ecx, ebx
sub edi, eax
push edi
push eax
call fcn.0041b160
mov edi, 1
jmp 0x41b80a
xor edi, edi
test esi, esi
je 0x41b815
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x14
ret 0x14
Function at 0x41ba10
Capabilities:
Check os version

Disassembly:
sub esp, 0xc4
push ebx
push esi
mov ebx, ecx
push edi
xor edi, edi
mov esi, dword [ebx + 0x44]
cmp dword [ebx + 0x50], edi
jle 0x41bac4
push ebp
mov ebp, dword [sym.imp.USER32.dll_SetMenuItemInfoA]
push 0x30
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00423310
push 0x90
lea eax, [esp + 0x54]
mov dword [esp + 0x20], 0x30
push 0
push eax
mov dword [esp + 0x58], 0x94
call fcn.00423310
add esp, 0x18
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
test eax, eax
je 0x41ba86
mov eax, dword [esp + 0x44]
cmp eax, 5
jae 0x41ba8e
cmp eax, 4
jne 0x41ba86
cmp dword [esp + 0x48], 0x5a
jae 0x41ba8e
mov dword [esp + 0x10], 0x2c
mov dword [esp + 0x14], 0x80
mov dword [esp + 0x3c], 0
test edi, edi
js 0x41bace
cmp edi, dword [ebx + 0x50]
jge 0x41bace
lea eax, [esp + 0x10]
push eax
mov eax, dword [ebx + 0x4c]
push 0
movzx eax, word [eax + edi*2]
push eax
push esi
call ebp
inc edi
cmp edi, dword [ebx + 0x50]
jl 0x41ba30
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc4
ret
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.DLL_RaiseException]
Function at 0x41ce20
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x13c
push ebx
push esi
xor esi, esi
lea eax, [esp + 0x45]
push 0xff
push esi
push eax
mov dword [esp + 0x1c], esi
call fcn.00423310
mov eax, dword [0x44e0c8]
add esp, 0xc
mov dword [esp + 0x44], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], esi
push eax
lea eax, [esp + 0x28]
push eax
call sub.Secur32.dll_EnumerateSecurityPackagesA
mov edx, dword [0x44e0cc]
mov ebx, edx
mov eax, dword [0x44e0c8]
mov ecx, dword [0x44e0c4]
mov dword [esp + 0xc], edx
cmp dword [esp + 0x18], eax
jbe 0x41ce85
lea ebx, [ecx + 1]
mov dword [esp + 0xc], ebx
test eax, eax
je 0x41d020
cmp dword [0x44e0d0], esi
je 0x41d020
mov eax, dword [esp + 0x14c]
push ebp
xor ebp, ebp
test eax, eax
jle 0x41d01f
lea eax, [ebx*8]
sub eax, ebx
push edi
mov edi, dword [esp + 0x158]
add eax, edi
add eax, eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
add eax, ebx
mov dword [esp + 0x34], eax
mov eax, ebx
imul eax, edi
mov dword [esp + 0x30], eax
jmp 0x41cee0
mov eax, dword [esp + 0x150]
push dword [0x44e0b8]
push edx
mov al, byte [eax + ebp]
mov byte [esp + 0x1b], al
mov eax, dword [esp + 0x2c]
sub eax, esi
imul eax, esi
mov dword [esp + 0x30], eax
lea ebx, [eax + edi]
imul ebx, dword [esp + 0x20]
sub ebx, ecx
add ebx, 3
call dword [sym.imp.USER32.dll_GetDlgItem]
lea eax, [esp + 0x38]
push eax
movzx eax, word [0x44e0bc]
push method.ATL::CComObject_class_ATL::CAxFrameWindow_.1.virtual_40
push eax
mov eax, dword [0x44e0c4]
add eax, 7
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_EnumResourceLanguagesA]
test eax, eax
je 0x41cf49
mov eax, dword [0x44e0d0]
mov ecx, dword [0x44e0c4]
mov dword [eax], ecx
mov edx, dword [esp + 0x150]
lea ecx, [esp + 0x1c]
add ecx, dword [0x44e0c4]
mov al, bl
xor al, byte [esp + 0x13]
mov byte [ecx], al
mov eax, dword [esp + 0x34]
mov byte [eax], dl
test edi, edi
je 0x41cf73
mov al, byte [ecx]
mov byte [edx + ebp], al
jmp 0x41cf76
mov byte [edx + ebp], dl
cmp ebp, dword [esp + 0x30]
jle 0x41cf81
lea esi, [edi + edi*8]
jmp 0x41cfa0
mov ecx, dword [esp + 0x28]
mov eax, 3
sub eax, ecx
lea esi, [ebx + ecx]
imul esi, eax
mov eax, ebx
imul eax, dword [esp + 0x14]
imul eax, edi
add eax, eax
sub esi, eax
mov eax, dword [esp + 0x154]
test eax, eax
jle 0x41cfcd
mov ecx, dword [0x44e0b8]
push eax
lea eax, [esp + 0x50]
push eax
push 0
lea eax, [esp + 0x48]
push eax
mov eax, dword [0x44e0bc]
push ecx
add eax, ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetDateFormatA]
push 0
push dword [0x44e0bc]
push dword [0x44e0b8]
push dword [0x44e0cc]
call dword [sym.imp.USER32.dll_CheckRadioButton]
test eax, eax
je 0x41cff1
call dword [sym.imp.KERNEL32.DLL_GetUserDefaultUILanguage]
imul ebx, dword [esp + 0x14]
lea eax, [esi + esi*2]
add eax, eax
inc ebp
sub eax, ebx
sub eax, edi
add dword [esp + 0x18], eax
cmp ebp, dword [esp + 0x154]
jge 0x41d01e
mov edx, dword [0x44e0cc]
mov ecx, dword [0x44e0c4]
jmp 0x41cee0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x13c
ret 0xc
Function at 0x43292f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44b88c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004293d0
mov dword [ebp - 0x14], eax
cmp dword [0x44f7ec], esi
jne 0x432a22
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4329af
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x57
jne 0x432b02
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x432b02
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x432b02
push eax
call ebx
push 0x442614
push edi
mov dword [0x44f7ec], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x44f7f0], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x44f7f4], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
mov dword [0x44f7fc], eax
test eax, eax
je 0x432a1f
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
mov dword [0x44f7f8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_IsDebuggerPresent]
test eax, eax
je 0x432a47
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x432a3a
push eax
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x432a5c
push 4
pop eax
jmp 0x432b04
cmp dword [ebp - 0x14], esi
je 0x432a5c
push dword [0x44f7ec]
call dword [sym.imp.KERNEL32.DLL_DecodePointer]
push 3
jmp 0x432a41
mov eax, dword [0x44f7f8]
mov ebx, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, edi
je 0x432aba
cmp dword [0x44f7fc], edi
je 0x432aba
push eax
call ebx
push dword [0x44f7fc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x432aba
test eax, eax
je 0x432aba
call ecx
test eax, eax
je 0x432aaf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x432aaf
test byte [ebp - 8], 1
jne 0x432aba
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x432aea
mov eax, dword [0x44f7f0]
cmp eax, edi
je 0x432ae7
push eax
call ebx
test eax, eax
je 0x432ae7
call eax
mov esi, eax
test esi, esi
je 0x432ae7
mov eax, dword [0x44f7f4]
cmp eax, edi
je 0x432ae7
push eax
call ebx
test eax, eax
je 0x432ae7
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x44f7ec]
call ebx
test eax, eax
je 0x432b02
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x432b04
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004292a8
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x403203
pop dword [ebp - 0xc]
mov eax, 0x23ab3428
add eax, 0xdc94fddb
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x70f2daa1
sub dword [ebp - 0x1c], 0x22a09556
mov dword [ebp - 0x18], 0x1991ded0
sub dword [ebp - 0x18], 0xe75e928b
mov dword [ebp - 0x14], 0x372dd1
sub dword [ebp - 0x14], 0xb3eae9a3
mov dword [ebp - 0x10], 0xa3f9553d
sub dword [ebp - 0x10], 0xa3f9553d
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x26ab1ceb
add eax, 0xd9955379
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xce917ea7
add dword [ebp - 0x1c], 0xa5e0eaaf
mov dword [ebp - 0x18], 0x98da5705
sub dword [ebp - 0x18], 0x576df590
mov dword [ebp - 0x14], 0x1f78e59e
add dword [ebp - 0x14], 0x43f686ce
mov dword [ebp - 0x10], 0x9061cdd7
add dword [ebp - 0x10], 0x6f9e3229
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x39cdd
push 0
call eax
mov ecx, 0x54d7
mov edi, eax
mov ebx, 0x7df4d8bf
sub ebx, 0x7db3d8bf
add ebx, dword [ebp - 0xc]
mov edx, 0x432a872e
add edx, 0x78950e4
mov esi, dword [ebx]
sub dword [ebp - 8], 0x249870c0
add esi, edx
xor dword [ebp - 4], edi
mov dword [edi], esi
xor dword [ebp - 8], 0x50415de6
add edi, 0x31de7747
add edi, 0xce2188bd
add ebx, 0x9d548bae
add ebx, 0x62ab7456
loop 0x40331a
add eax, 0xc95461b7
sub eax, 0xc9531b88
xor ebx, ebx
add ebx, eax
add eax, 0x5a89ba68
add eax, 0xa576459d
mov ecx, 0xe3ae77ea
sub ecx, 0xe36e77ea
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
mov ecx, 0x1b3922ab
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x2a6b7ec5
nop
nop
nop
nop
test eax, eax
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x4026a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
xor eax, eax
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
test edx, edx
je 0x4026c3
mov ecx, eax
and ecx, 0xf
mov cl, byte [ecx + esi]
xor byte [edi + eax], cl
inc eax
cmp eax, edx
jb 0x4026b3
pop edi
pop esi
pop ebp
ret

Function at 0x4026d0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x40aec0]
je 0x402730
mov edx, 1
mov dword [0x40aec0], eax
push ebx
mov dword [0x40a500], eax
mov ebx, edx
mov edi, 4
lea esi, [edx + 7]
nop word [eax + eax]
mov eax, dword [edi + 0x40a4fc]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
lea edx, [ebx + 1]
mov dword [edi + 0x40a500], eax
mov ebx, edx
mov edi, esi
add esi, 4
cmp edx, 0x270
jl 0x402700
pop ebx
jmp 0x402740
mov eax, dword [0x40aec4]
cmp eax, 0x270
jl 0x402808
xor eax, eax
nop dword [eax]
nop word [eax + eax]
mov ecx, dword [eax*4 + 0x40a500]
mov edx, dword [eax*4 + 0x40a504]
xor edx, ecx
and edx, 0x7fffffff
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
mov ecx, dword [ecx*4 + 0x401134]
xor ecx, dword [eax*4 + 0x40ab34]
xor ecx, edx
mov dword [eax*4 + 0x40a500], ecx
inc eax
cmp eax, 0xe3
jl 0x402750
mov edi, dword [eax*4 + 0x40a500]
lea esi, [eax*4 + 0x40a500]
nop dword [eax]
mov eax, edi
mov edi, dword [esi + 4]
mov ecx, eax
xor ecx, edi
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
mov eax, dword [eax*4 + 0x401134]
xor eax, dword [esi - 0x38c]
xor eax, ecx
mov dword [esi], eax
add esi, 4
cmp esi, 0x40aebc
jl 0x4027a0
mov ecx, dword [0x40aebc]
mov eax, dword [0x40a500]
and ecx, 0x80000000
and eax, 0x7fffffff
or ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
xor ecx, dword [eax*4 + 0x401134]
xor ecx, dword [0x40ab30]
xor eax, eax
mov dword [0x40aebc], ecx
mov ecx, dword [eax*4 + 0x40a500]
inc eax
mov dword [0x40aec4], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
pop edi
xor eax, ecx
pop esi
ret
Function at 0x402870
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, edx
mov esi, ecx
mov eax, 0xaaaaaaab
lea ecx, [edi + 2]
mul ecx
shr edx, 1
lea eax, [edx*4 + 1]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x40297a
mov dword [ebp - 0xc], ecx
push ebx
mov ebx, ecx
test edi, edi
je 0x402969
lea eax, [ebp - 4]
sub eax, esi
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
xor edx, edx
lea ecx, [edx + 3]
nop word [eax + eax]
test edi, edi
je 0x4028da
mov al, byte [esi]
dec edi
inc edx
jmp 0x4028dc
xor al, al
mov byte [ebx + esi], al
inc esi
sub ecx, 1
jne 0x4028d0
movzx ecx, byte [ebp - 4]
mov ebx, dword [ebp - 0xc]
mov eax, ecx
sub dword [ebp - 8], 3
and ecx, 3
shr eax, 2
shl ecx, 4
movzx eax, byte [eax + 0x401040]
mov byte [ebx], al
movzx eax, byte [ebp - 3]
mov dword [ebp - 0xc], eax
shr eax, 4
or eax, ecx
movzx eax, byte [eax + 0x401040]
mov byte [ebx + 1], al
cmp edx, 1
jbe 0x40294f
mov ecx, dword [ebp - 0xc]
movzx eax, byte [ebp - 2]
and ecx, 0xf
shr eax, 6
shl ecx, 2
or eax, ecx
movzx eax, byte [eax + 0x401040]
mov byte [ebx + 2], al
cmp edx, 2
jbe 0x402953
movzx eax, byte [ebp - 2]
and eax, 0x3f
mov al, byte [eax + 0x401040]
jmp 0x402955
mov byte [ebx + 2], 0x3d
mov al, 0x3d
mov byte [ebx + 3], al
add ebx, 4
mov dword [ebp - 0xc], ebx
test edi, edi
jne 0x4028c2
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov byte [ebx], 0
test eax, eax
je 0x402977
sub ebx, ecx
mov dword [eax], ebx
mov eax, ecx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x405540
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push esi
push edi
mov edi, ecx
test edx, edx
je 0x405560
xor esi, esi
mov al, byte [esi + edx]
mov byte [ebp + esi - 0x24], al
inc esi
cmp esi, 0x20
jb 0x405553
mov al, byte [ebp - 5]
lea ecx, [ebp - 0x164]
mov edx, dword [ebp + 8]
and al, 0x3f
and byte [ebp - 0x24], 0xf8
or al, 0x40
mov byte [ebp - 5], al
call fcn.004034c0
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x204]
call fcn.00404550
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x1b4]
call fcn.00404800
lea eax, [ebp - 0x1b4]
push eax
lea edx, [ebp - 0x204]
lea ecx, [ebp - 0x114]
call fcn.00402a80
add esp, 0xc
lea ecx, [ebp - 0x114]
call fcn.00402f50
lea ecx, [ebp - 0x114]
call fcn.00403030
xor eax, eax
nop word [eax + eax]
mov cl, byte [ebp + eax - 0x114]
mov byte [ebp + eax - 0x7c], cl
inc eax
cmp eax, 0x50
jb 0x4055e0
lea edx, [ebp - 0x7c]
mov ecx, edi
call fcn.004037c0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405800
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
xor esi, esi
mov eax, dword [edi + 0x3c]
mov ebx, dword [eax + edi + 0x78]
mov eax, dword [ebx + edi + 0x20]
add ebx, edi
add eax, edi
mov dword [ebp - 4], eax
mov ecx, dword [ebx + 0x1c]
add ecx, edi
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebx + 0x24]
add ecx, edi
mov dword [ebp - 0xc], ecx
cmp dword [ebx + 0x18], esi
jbe 0x405854
mov eax, dword [eax + esi*4]
add eax, edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40585d
mov eax, dword [ebp - 4]
inc esi
mov edx, dword [ebp - 8]
cmp esi, dword [ebx + 0x18]
jb 0x405837
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + esi*2]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret