joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4011b3
Capabilities:
Link many functions at runtime

Disassembly:
jmp 0x402550
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x40261d
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.BroadCast_Process
push eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
push str.Call_Process
push eax
call edi
mov ecx, dword [esi + 4]
push str.Get_ObjInfoList
push ecx
mov dword [esi + 8], eax
call edi
mov edx, dword [esi + 4]
push str.RsCommxFree
push edx
mov dword [esi + 0x10], eax
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi + 4]
push str.Register_Client
push eax
call edi
mov ecx, dword [esi + 4]
push str.UnRegister_Client
push ecx
mov dword [esi + 0x18], eax
call edi
mov edx, dword [esi + 4]
push str.GetSessionID
push edx
mov dword [esi + 0x1c], eax
call edi
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
push str.SetCallEnterPoint
push eax
call edi
mov ecx, dword [esi + 4]
push str.Get_ActiveObjInfoList
push ecx
mov dword [esi + 0x24], eax
call edi
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x28], eax
test ecx, ecx
pop edi
je 0x40261d
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x40261d
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x40261d
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x40261d
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x40261d
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x40261d
test eax, eax
je 0x40261d
mov eax, dword [esi + 0x24]
test eax, eax
je 0x40261d
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x40129e
Capabilities:
Get file version info

Disassembly:
jmp 0x40c250
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 8]
push eax
push edi
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0x50
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x40c282
pop edi
pop esi
add esp, 8
ret 8
push ebx
push esi
call fcn.0041b7da
add esp, 4
mov ebx, eax
push ebx
push esi
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
push 0x49c610
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40c2c0
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
push ebx
call fcn.0041b6f1
add esp, 4
mov eax, 1
pop ebx
pop edi
pop esi
add esp, 8
ret 8
Function at 0x4012bc
Capabilities:
Create directory
Get common file path

Disassembly:
jmp 0x405050
push 0xffffffffffffffff
push 0x47ee26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.00413da7
mov eax, dword [0x49cd18]
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esi + 0x3fc], eax
mov ecx, dword [0x49cd18]
lea ebx, [esi + 0x400]
mov dword [ebx], ecx
mov edx, dword [0x49cd18]
mov dword [esi + 0x404], edx
mov eax, dword [0x49cd18]
lea ebp, [esi + 0x408]
mov dword [ebp], eax
mov eax, 0x484b84
mov dword [esi + 0x410], edi
mov dword [esi + 0x40c], eax
mov dword [esi + 0x41c], edi
mov dword [esi + 0x418], edi
mov dword [esi + 0x414], edi
mov dword [esi + 0x420], eax
mov dword [esi + 0x424], edi
mov dword [esi + 0x430], edi
mov dword [esi + 0x42c], edi
mov dword [esi + 0x428], edi
mov ecx, dword [0x49cd18]
mov dword [esi + 0x434], ecx
mov edx, dword [0x49cd18]
mov dword [esi + 0x438], edx
lea ecx, [esi + 0x560]
mov byte [esp + 0x1c], 8
call fcn.00401415
mov ecx, esi
mov byte [esp + 0x1c], 9
mov dword [esi], 0x4849e0
call fcn.0047a834
push 0x104
push 0x4a3308
mov dword [esi + 0xbc], edi
mov dword [esi + 0xec], 1
mov dword [esi + 0x43c], edi
mov dword [esi + 0xc8], edi
mov dword [esi + 0x448], edi
mov dword [esi + 0x44c], edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Temp
push 0x4a3308
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
push 0x4a3308
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x4a3308
push 0x49c4e0
push ebp
call fcn.0043fbd2
add esp, 0xc
mov ecx, ebx
push 0x4a30bc
call fcn.0044a8ce
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x401393
Capabilities:
Get file size

Disassembly:
jmp 0x40b970
sub esp, 0x40
push esi
mov esi, dword [esp + 0x48]
test esi, esi
je 0x40ba6b
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x40ba6b
lea edx, [esp + 0x24]
push edx
push eax
call fcn.00401302
test eax, eax
je 0x40ba6b
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40ba6b
lea eax, [esp + 0x48]
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [esp + 8]
mov edi, eax
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x54]
cmp edi, eax
pop edi
jne 0x40ba6b
lea ecx, [esp + 0xc]
lea edx, [esp + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [esp + 0x34]
lea ecx, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov dx, word [esp + 0x34]
cmp dx, word [esp + 0x24]
jne 0x40ba6b
mov ax, word [esp + 0x36]
cmp ax, word [esp + 0x26]
jne 0x40ba6b
mov cx, word [esp + 0x3a]
cmp cx, word [esp + 0x2a]
jne 0x40ba6b
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
and edx, 0xffff
and ecx, 0xffff
sub ecx, edx
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
je 0x40ba5f
test ecx, ecx
jne 0x40ba6b
mov eax, 1
pop esi
add esp, 0x40
ret 0xc
xor eax, eax
pop esi
add esp, 0x40
ret 0xc

Function at 0x4013d9
Capabilities:
Get common file path

Disassembly:
jmp 0x404900
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47ed4b
push eax
mov dword fs:[0], esp
sub esp, 0x20c
lea eax, [esp + 4]
push esi
push 0x104
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 8]
push str.COMCTL32.DLL
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10c]
push 0x4a30bc
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x10c]
push 0x104
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.00401041
lea edx, [esp + 0x10c]
push edx
call fcn.0041af67
fcomp qword [str.p_n]
add esp, 4
pop esi
fnstsw ax
test ah, 1
je 0x4049e3
mov eax, dword [0x49cd18]
mov dword [esp], eax
push 0xef16
lea ecx, [esp + 4]
mov dword [esp + 0x218], 0
call fcn.0044fcb5
mov ecx, dword [esp]
push 0
push 0
push ecx
call fcn.0045e2fb
lea ecx, [esp]
mov dword [esp + 0x214], 0xffffffff
call fcn.0044a745
xor eax, eax
mov ecx, dword [esp + 0x20c]
mov dword fs:[0], ecx
add esp, 0x218
ret
mov ecx, dword [esp + 0x20c]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x218
ret
Function at 0x4013de
Capabilities:
Delete registry value
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
jmp 0x404680
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x40478a
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetServices
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4046ba
xor eax, eax
add esp, 0x1c
ret
push str.Admin_Test
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp]
push eax
push str.Admin_Test
push 1
push 0
push str.Rising
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4046f4
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0x1c
ret
xor eax, eax
lea ecx, [esp + 4]
mov dword [esp + 0xd], eax
lea edx, [esp + 0xc]
mov dword [esp + 0x11], eax
push ecx
mov dword [esp + 0x19], eax
mov ecx, dword [esp + 4]
mov word [esp + 0x1d], ax
push edx
mov byte [esp + 0x23], al
lea eax, [esp + 0x10]
push eax
push 0
push str.Rising
push ecx
mov byte [esp + 0x24], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x404756
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0x1c
ret
mov eax, dword [esp]
push str.Rising
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0xc]
push str.Admin_Test
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
neg eax
sbb eax, eax
inc eax
add esp, 0x1c
ret
mov eax, 1
add esp, 0x1c
ret

Function at 0x40d614
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d66a
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x484ea4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d65d
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x40d66c
xor eax, eax
pop esi
leave
ret 4

Function at 0x40df06
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x14], edi
mov ebx, ecx
je 0x40df44
call fcn.0046e21b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40df44
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40df5b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push 1
test edi, edi
pop eax
je 0x40df5b
push dword [esp + 0x18]
mov eax, dword [ebx]
mov ecx, ebx
push edi
push dword [esp + 0x18]
call dword [eax + 0x1c]
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x423c5e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4a0c78
cmp edx, dword [eax]
je 0x423c80
add eax, 8
inc ecx
cmp eax, 0x4a0d08
jl 0x423c71
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4a0c78]
jne 0x423dae
mov eax, dword [0x4a5520]
cmp eax, 1
je 0x423d88
test eax, eax
jne 0x423cb1
cmp dword [0x49e164], 1
je 0x423d88
cmp edx, 0xfc
je 0x423dae
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x423ce8
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00424120
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041c7b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x423d2b
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041c7b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x48b398
push edi
call fcn.0041a790
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00424120
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00424130
lea eax, [ebp - 0xa0]
push 0x48b378
push eax
call fcn.00424130
push dword [esi + 0x4a0c7c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00424130
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00428e7b
add esp, 0x2c
pop edi
jmp 0x423dae
lea eax, [ebp + 8]
lea esi, [esi + 0x4a0c7c]
push 0
push eax
push dword [esi]
call fcn.0041c7b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x432dc0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0041b580
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x432e8b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x432e8b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x432e3e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x432e49
or bh, 8
and edi, 0x8000000
je 0x432e64
mov eax, dword [0x4a781c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x432e8b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433260
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x43328b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4332af
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4332ca
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x44bd1c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x44bd54
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0044abec
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0044abc4
jmp 0x44bd60
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x44db1e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x44db60
call fcn.0046e21b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x44db60
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x44db57
xor eax, eax
jmp 0x44db68
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0044db6e
pop edi
pop esi
pop ebx
ret 4

Function at 0x44f321
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.0046e21b
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x44f352
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.0044f377
pop edi
pop esi
pop ebx
ret 8
Function at 0x495ba0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x20]
push ebx
push ebp
push esi
mov ebx, dword [eax]
push edi
push 0x800
push 0x40
mov dword [esp + 0x1c], ebx
call dword [ebx + 0x2c]
mov edi, eax
test edi, edi
jne 0x495bcc
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
push 0
push 0
push ecx
push edx
call dword [ebx + 0x24]
mov eax, dword [esp + 0x2c]
mov ebp, 0x543a2110
test eax, eax
je 0x495c90
jmp 0x495bf4
mov eax, dword [esp + 0x2c]
cmp eax, 0x800
jb 0x495c00
mov eax, 0x800
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push 0
push ecx
push eax
push edi
push edx
call dword [ebx + 0x14]
test eax, eax
je 0x495ca0
mov edx, dword [esp + 0x10]
test edx, edx
je 0x495ce2
xor esi, esi
test edx, edx
jle 0x495c67
mov ecx, ebp
xor ecx, 0x2da05629
mov eax, ecx
mov ebx, ecx
shr eax, 0x18
shr ebx, 0x10
xor al, bl
mov ebx, ecx
shr ebx, 8
xor al, bl
mov bl, byte [esi + edi]
xor al, bl
xor al, cl
mov byte [esi + edi], al
and eax, 0xff
shl ebp, 8
add ebp, eax
inc esi
cmp esi, edx
jl 0x495c2b
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x18]
push 0
push eax
push edx
push edi
push ecx
call dword [ebx + 0x18]
test eax, eax
je 0x495cc2
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
sub eax, edx
mov dword [esp + 0x2c], eax
jne 0x495bf0
push edi
call dword [ebx + 0x30]
pop edi
pop esi
pop ebp
mov ax, 1
pop ebx
add esp, 0xc
ret
push 0
call dword [ebx + 0x78]
push eax
mov eax, dword [esp + 0x38]
push eax
call fcn.00496910
add esp, 0xc
push edi
call dword [ebx + 0x30]
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 0xc
ret
call dword [ebx + 0x78]
mov ecx, dword [esp + 0x30]
push eax
push ecx
call fcn.00496980
add esp, 8
push edi
call dword [ebx + 0x30]
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 0xc
ret
push 0
call dword [ebx + 0x78]
mov edx, dword [esp + 0x34]
push eax
push edx
call fcn.00496910
add esp, 0xc
push edi
call dword [ebx + 0x30]
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 0xc
ret

Function at 0x496780
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
mov al, byte [ecx]
xor edi, edi
mov byte [esi], al
mov al, byte [ecx]
test al, al
je 0x4967ba
mov edx, esi
push ebx
sub edx, ecx
mov al, byte [ecx + 1]
mov bl, byte [edx + ecx]
inc edi
inc ecx
dec al
xor al, bl
mov byte [edx + ecx], al
mov al, byte [ecx]
test al, al
jne 0x49679b
mov byte [edi + esi], 0
pop ebx
mov eax, esi
pop edi
pop esi
ret
mov byte [edi + esi], 0
mov eax, esi
pop edi
pop esi
ret
Function at 0x402ee3
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x426390]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402f5e
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
jne 0x402f65
cmp dword [ebp + 0x10], ebx
jne 0x402f52
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402ee3
test eax, eax
jne 0x402f65
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
jmp 0x402f25
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.0040655e
cmp eax, ebx
je 0x402f8a
push ebx
push dword [0x426390]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402f5e
cmp dword [0x426390], ebx
jne 0x402f5b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402f5b
jmp 0x402f5e
Function at 0x403319
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x403336
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x403345
mov ebx, 0x410874
mov eax, dword [ebp + 8]
test eax, eax
jl 0x40335a
mov ecx, dword [0x426338]
add ecx, eax
push ecx
call fcn.0040353d
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.0040350b
test eax, eax
je 0x4034f9
test byte [ebp + 0x17], 0x80
je 0x40349f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40c7e8
mov dword [ebp - 0xc], eax
call fcn.0040664a
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x403501
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x4033aa
mov esi, dword [ebp + 0x14]
mov edi, 0x40c874
push esi
push edi
call fcn.0040350b
test eax, eax
je 0x4034f9
sub dword [ebp + 0x14], esi
mov dword [0x40c800], edi
mov dword [0x40c804], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40c7e8
mov dword [0x40c808], ebx
mov dword [0x40c80c], eax
call fcn.0040666c
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x403497
mov esi, dword [0x40c808]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x426394], 1
mov edi, eax
je 0x40344c
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x403419
cmp dword [ebp + 0x14], 0
jne 0x40344c
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.0040533c
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x40348c
cmp dword [ebp + 0x10], eax
jne 0x403475
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40349b
cmp dword [ebp - 0x10], esi
jne 0x40349b
add dword [ebp - 4], esi
jmp 0x403481
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40c808]
cmp dword [ebp - 0x14], 1
je 0x403501
jmp 0x4033cd
cmp dword [ebp + 0x14], eax
jg 0x40339d
jmp 0x403501
push 0xfffffffffffffffc
jmp 0x4034fb
push 0xfffffffffffffffe
jmp 0x4034fb
test edi, edi
jne 0x4034e6
cmp dword [ebp + 0x14], 0
jle 0x403501
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x4034b4
mov esi, dword [ebp + 0x14]
mov edi, 0x40c874
push esi
push edi
call fcn.0040350b
test eax, eax
je 0x4034f9
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40349b
cmp esi, dword [ebp + 0x10]
jne 0x40349b
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
jmp 0x4034a3
cmp dword [ebp + 0x14], esi
jge 0x4034ee
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.0040350b
test eax, eax
jne 0x4034fe
push 0xfffffffffffffffd
pop eax
jmp 0x403504
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10