joyce8/EMBER2024-capa huggingface dataset:
Function at 0x484670
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7c16
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x50d108]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x48471c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x48471c
call fcn.00444570
mov esi, eax
jmp 0x48480c
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x48473f
call fcn.00444570
jmp 0x4847ff
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x48475d
call fcn.00444570
jmp 0x4847ff
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x48477e
mov esi, 0x8007000e
jmp 0x484801
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00483540
jmp 0x4847a8
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x4847bf
mov esi, 0x8007000e
jmp 0x484801
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4847df
call fcn.00444570
jmp 0x4847ff
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00484510
mov esi, eax
test edi, edi
je 0x48480c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x484830
lea ecx, [ebp - 0x418]
call fcn.00483a20
nop word [eax + eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048a7ae
mov esp, ebp
pop ebp
ret 0x10
Function at 0x485e50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x485e69
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x485e75
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x485e70
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x48d33c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x4c0242
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c00c1

Function at 0x4c6aa4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c6764
Function at 0x408924
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x4085d8
call fcn.0040893a
sub edi, esi
xor dword [ecx], ebx
inc ecx
sub esi, esi
cmp ecx, eax
jne fcn.00408924
ret
Function at 0x409058
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x409137
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.00406a24
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
mov edx, 0x409150
call fcn.00408900
push 0
mov eax, dword [ebp - 4]
call fcn.00403438
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x409105
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov al, 0x2f
call fcn.004086f8
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00404c18
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.00406dfc
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x14]
mov ecx, 2
mov al, 0x60
call fcn.004086c8
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, 0x404594
call fcn.00405830
call fcn.00402eb4
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004031e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40913e
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.004031b8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004031b8
ret

Function at 0x409160
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409214
jmp 0x409209
cmp dword [esi + 0x10], 0x1000
jne 0x4091f5
test byte [esi + 0x15], 1
jne 0x4091f5
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x4091b4
cmp eax, 2
je 0x4091b4
cmp eax, 0x10
je 0x4091b4
cmp eax, 0x20
jne 0x4091c9
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4091c9
mov bl, 1
xor ebp, ebp
jmp 0x4091da
mov eax, dword [esi]
add eax, ebp
call fcn.00409158
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jl 0x4091cd
test bl, bl
je 0x4091f5
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409214
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40918c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401029
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x427f20]
mov dword [ebp - 0x28], eax
mov eax, dword [0x427f24]
push esi
mov esi, dword [ebx]
push edi
mov edi, dword [ebx + 4]
xor ecx, ecx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], ecx
call fcn.00401022
mov eax, dword [0x427f28]
add dword [ebp - 8], 0x23f
mov dword [ebp - 0x18], eax
mov eax, dword [0x427f2c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, esi
shl eax, 4
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [0x2447ef4]
cmp eax, 0xfa9
jne 0x4010a0
mov dword [0x2447ef0], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010ad
mov dword [0x244797c], ecx
mov eax, dword [ebp - 0x10]
shr eax, 5
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
add edx, esi
xor eax, edx
xor eax, dword [ebp - 0x20]
cmp dword [0x2447ef4], 0x213
mov dword [0x2447eec], 0xf4ea3dee
mov dword [ebp - 4], eax
jne 0x4010ee
push ecx
push ecx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoW]
mov eax, dword [ebp - 4]
xor ecx, ecx
sub edi, eax
cmp dword [0x2447ef4], 0xc
jne 0x401110
lea eax, [ebp - 0x2c]
push eax
push ecx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
push 0
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
xor ecx, ecx
mov eax, edi
shr eax, 5
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov edx, dword [ebp - 8]
add dword [ebp - 8], 0x61c88647
mov eax, edi
shl eax, 4
add eax, dword [ebp - 0x28]
add edx, edi
xor eax, edx
xor eax, dword [ebp - 4]
sub esi, eax
dec dword [ebp - 0x14]
mov dword [ebp - 0x10], esi
jne 0x401074
mov dword [ebx + 4], edi
pop edi
mov dword [ebx], esi
pop esi
leave
ret

Function at 0x40114e
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x2447ef4]
mov ecx, dword [0x2447980]
sub esp, 0xc00
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x401209
push ebx
push edi
mov ebx, ecx
mov edi, eax
cmp dword [0x2447ef4], 0x959
jne 0x4011f8
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
push esi
push esi
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push str.Mokigehate_xolega_viricuh_mazu_fiboy
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push str.zewaxuwawazuwuyuvivi
push esi
call dword [sym.imp.KERNEL32.dll_FatalAppExitW]
push str.ozofowegad_dinomebaxedidox
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessShutdownParameters]
push esi
lea eax, [ebp - 0xc00]
push eax
push esi
push str.pajebipew
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringW]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call fcn.00401029
add ebx, 8
dec edi
jne 0x401176
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4014df
Capabilities:
Clear file content
Get common file path

Disassembly:
sub esp, 0x400
push esi
xor esi, esi
cmp dword [0x2447ef4], 0x400
push edi
jne 0x40153a
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_DrawStateW]
push esi
push esi
call fcn.00401e66
push esi
push esi
call fcn.0040180e
push esi
call fcn.00401e01
push esi
push esi
call fcn.00401c4c
push esi
call fcn.00401f44
push esi
push esi
call fcn.00401712
add esp, 0x28
xor edi, edi
cmp edi, 0x16d2a
jge 0x40154f
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetCharWidthI]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalCompact]
cmp edi, 0x12e82fe
jg 0x401574
inc edi
cmp edi, 0x3011b
jl 0x40153c
mov eax, dword [0x42a864]
mov dword [0x2447ef4], eax
call fcn.0040120c
mov edi, 0x2ec37
cmp dword [0x2447ef4], 0x51f
jne 0x4015a0
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
dec edi
jne 0x401588
pop edi
xor eax, eax
pop esi
add esp, 0x400
ret 0x10

Function at 0x4070ba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x427cfc]
jne 0x4070c4
repz ret
jmp fcn.00409136
Function at 0x4083cd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x427cfc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004054da
and dword [ebp - 0x14], 0
cmp dword [0x4354b4], 0
mov dword [ebp - 0x18], eax
jne 0x408480
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x408528
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x408528
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4354b4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4354b8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4354bc], eax
call edi
push eax
call esi
mov dword [0x4354c4], eax
test eax, eax
je 0x408480
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4354c0], eax
mov eax, dword [0x4354c0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4084d9
cmp dword [0x4354c4], ecx
je 0x4084d9
push eax
call esi
push dword [0x4354c4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4084d9
test ebx, ebx
je 0x4084d9
call edi
test eax, eax
je 0x4084d0
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4084d0
test byte [ebp - 8], 1
jne 0x4084d9
or dword [ebp + 0x10], 0x200000
jmp 0x40850c
mov eax, dword [0x4354b8]
cmp eax, dword [ebp - 0x18]
je 0x40850c
push eax
call esi
test eax, eax
je 0x40850c
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40850c
mov eax, dword [0x4354bc]
cmp eax, dword [ebp - 0x18]
je 0x40850c
push eax
call esi
test eax, eax
je 0x40850c
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4354b4]
call esi
test eax, eax
je 0x408528
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40852a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004070ba
leave
ret
Function at 0x40570c
Capabilities:
Delete file
Enumerate gui resources
Manipulate console buffer
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.00406ad0
push esi
shr edx, 3
xor esi, esi
cmp edx, esi
jbe 0x405809
push ebx
push edi
mov ebx, ecx
mov dword [ebp - 8], edx
cmp dword [0x444244], 0x5d
jne 0x4057f1
push esi
lea eax, [ebp - 0x424]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameA]
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
lea eax, [ebp - 0x824]
push eax
push 0x401270
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
xor eax, eax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push esi
push 0x40127c
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterW]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push esi
push esi
push esi
push esi
push 0x4012b8
push 0x4012d8
call dword [sym.imp.KERNEL32.dll_SearchPathA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x401310
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
push esi
lea eax, [ebp - 0x1024]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
mov edx, dword [ebp + 8]
mov ecx, ebx
call fcn.00405569
add ebx, 8
dec dword [ebp - 8]
jne 0x40572e
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x4063eb
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [0x41c7ac]
sub esp, 0x800
push esi
push edi
mov dword [0x444244], eax
mov eax, 0xb2d3b
add dword [0x444244], eax
push 0x6e
pop eax
push 0x33
mov word [0x4438de], ax
pop eax
push 0x2e
mov word [0x4438e4], ax
xor eax, eax
mov word [0x4438f0], ax
pop eax
push 0x6b
mov word [0x4438e8], ax
pop eax
push 0x6c
mov word [0x4438d8], ax
pop eax
push 0x64
mov word [0x4438ec], ax
pop eax
push 0x6c
mov word [0x4438ea], ax
pop eax
push 0x32
mov word [0x4438ee], ax
mov word [0x4438e2], ax
pop eax
push 0x65
mov word [0x4438e6], ax
pop eax
push 0x72
mov word [0x4438da], ax
mov word [0x4438e0], ax
pop eax
mov word [0x4438dc], ax
call fcn.00405a3b
mov edi, 0x184cc
xor esi, esi
cmp dword [0x444244], 0x1833b
jne 0x4064d3
push esi
lea eax, [esp + 0xc]
push eax
push 0x401400
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0x401430
call dword [sym.imp.KERNEL32.dll_SetComputerNameA]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
dec edi
jne 0x406482
mov eax, dword [0x443824]
mov dword [0x4438cc], eax
call eax
pop edi
xor eax, eax
pop esi
add esp, 0x800
ret 0x10

Function at 0x40779b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x442360]
jne 0x4077a5
repz ret
jmp fcn.0040d88b
Function at 0x412ad3
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.00409cd7
and dword [ebp - 4], 0
cmp dword [0x444c3c], 0
mov ebx, eax
jne 0x412b84
push 0x4048d0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x412c35
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4048c4
push edi
call esi
test eax, eax
je 0x412c35
push eax
call fcn.00409c65
mov dword [esp], 0x4048b4
push edi
mov dword [0x444c3c], eax
call esi
push eax
call fcn.00409c65
mov dword [esp], 0x4048a0
push edi
mov dword [0x444c40], eax
call esi
push eax
call fcn.00409c65
mov dword [esp], 0x404884
push edi
mov dword [0x444c44], eax
call esi
push eax
call fcn.00409c65
pop ecx
mov dword [0x444c4c], eax
test eax, eax
je 0x412b84
push 0x40486c
push edi
call esi
push eax
call fcn.00409c65
pop ecx
mov dword [0x444c48], eax
mov eax, dword [0x444c48]
cmp eax, ebx
je 0x412bdc
cmp dword [0x444c4c], ebx
je 0x412bdc
push eax
call fcn.00409ce0
push dword [0x444c4c]
mov esi, eax
call fcn.00409ce0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x412bdc
test edi, edi
je 0x412bdc
call esi
test eax, eax
je 0x412bd3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x412bd3
test byte [ebp - 0xc], 1
jne 0x412bdc
or dword [ebp + 0x10], 0x200000
jmp 0x412c15
mov eax, dword [0x444c40]
cmp eax, ebx
je 0x412c15
push eax
call fcn.00409ce0
pop ecx
test eax, eax
je 0x412c15
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x412c15
mov eax, dword [0x444c44]
cmp eax, ebx
je 0x412c15
push eax
call fcn.00409ce0
pop ecx
test eax, eax
je 0x412c15
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x444c3c]
call fcn.00409ce0
pop ecx
test eax, eax
je 0x412c35
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x412c37
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1006908
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [ebp + 0x10]
jle 0x1006945
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x1006922
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x1006961
dec esi
je 0x100695a
dec esi
jne 0x1006966
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4059f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426d76
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x45190c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [ebp + 0x10]
mov dword [ebx], 0x428da8
mov dword [ebx + 4], edx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x18], edx
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x24], edx
mov dword [ebx + 0x28], edx
or dword [ebx + 0x2c], 0xffffffff
mov dword [ebx + 0x30], edx
mov dword [ebx + 0x34], edx
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], edx
mov dword [ebx + 0x40], edx
mov dword [ebx + 0x44], edx
mov dword [ebx + 0x48], edx
mov dword [ebx + 0x4c], edx
mov dword [ebx + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x60], ecx
mov eax, dword [ecx + 4]
and dword [ebx + 0x8c], 0xffffffc0
and byte [ebx + 0x91], 0x80
or dword [ebx + 0x94], 0xffffffff
or dword [ebx + 0x98], 0xffffffff
mov dword [ebx + 0x64], eax
xor eax, eax
inc eax
mov dword [ebx + 0x68], edx
mov dword [ebx + 0x6c], edx
mov dword [ebx + 0x70], edx
mov dword [ebx + 0x74], edx
mov byte [ebx + 0x90], 0x4f
mov dword [ebx + 0x9c], eax
mov dword [ebx + 0xa0], eax
mov dword [ebx + 0xa4], edx
mov dword [ebx + 0xa8], edx
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x405acb
mov eax, dword [ecx + 0x24]
mov dword [ebx + 0x78], eax
mov dword [ecx + 0x24], ebx
mov eax, dword [ebx + 0x5c]
lea edi, [ebx + 0x58]
push 1
push edx
push edi
mov dword [eax + 4], ebx
lea esi, [ebx + 0x54]
mov ecx, dword [ebx + 0x60]
push esi
push ecx
mov eax, dword [ecx]
call dword [eax + 0x18]
push 4
push dword [esi]
mov esi, dword [0x4280f8]
push 6
call esi
push 8
push dword [edi]
mov dword [ebx + 0x7c], eax
push 2
call esi
mov ecx, dword [ebx + 0x7c]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x88], eax
mov eax, ebx
mov dword [ebx + 0x84], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100129f0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x10012a2e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10012a26
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10012a30
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10012a16
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10012b00
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x10012b16
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x10012b31
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x10017394
Capabilities:
Encode data using xor

Disassembly:
call 0x1001730d
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x1001733d
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x10017359
xor edx, 0
jmp 0x10017364
xor edx, edx
jmp 0x1001737b
jmp 0x10017387
xor eax, eax
push 0x8427d7c0
call 0x10017394
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x100173d0
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x100173a9
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x100173e7
add eax, 0
jno 0x100173ec
add esi, 0
ret 0x10