joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2a30dd20
Capabilities:
Terminate thread

Disassembly:
push 0xc
mov eax, 0x2a353dc6
call fcn.2a302657
mov ebx, ecx
xor ecx, ecx
cmp dword [ebx], 0xb
mov edi, ecx
mov dword [ebp - 0x14], edi
jne 0x2a30de11
push 0xea60
push dword [ebx + 0x2d8]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
or dword [ebx + 0x1a0], 0xffffffff
push 1
push dword [ebx + 0x2d4]
call dword [sym.imp.kernel32.dll_SetThreadPriority]
push dword [ebx + 0x2d8]
call dword [sym.imp.kernel32.dll_ReleaseMutex]
call dword [sym.imp.kernel32.dll_GetTickCount]
shr eax, 4
lea esi, [eax + 0x12c]
call dword [sym.imp.kernel32.dll_GetTickCount]
shr eax, 4
cmp eax, esi
jae 0x2a30ddca
mov edi, esi
push 0xea60
push dword [ebx + 0x2d8]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push dword [ebx + 0x2d8]
mov esi, dword [ebx]
call dword [sym.imp.kernel32.dll_ReleaseMutex]
cmp esi, 0xb
jne 0x2a30ddc7
push 0x64
call dword [sym.imp.kernel32.dll_Sleep]
call dword [sym.imp.kernel32.dll_GetTickCount]
shr eax, 4
cmp eax, edi
jb 0x2a30dd8e
mov edi, dword [ebp - 0x14]
push 0xea60
push dword [ebx + 0x2d8]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp dword [ebx], 0xb
jne 0x2a30ddf1
push 1
push dword [ebx + 0x2d4]
call dword [sym.imp.kernel32.dll_TerminateThread]
xor edi, edi
inc edi
push dword [ebx + 0x2d8]
call dword [sym.imp.kernel32.dll_ReleaseMutex]
push dword [ebx + 0x2d8]
call dword [sym.imp.kernel32.dll_CloseHandle]
xor ecx, ecx
mov dword [ebx + 0x2d8], ecx
cmp dword [ebx + 0x18], 0
lea esi, [ebx + 0x1a0]
mov dword [esi], ecx
je 0x2a30de46
test di, di
jne 0x2a30de43
push esi
push dword [ebx + 0x18]
call fcn.2a3179f6
xor ecx, ecx
cmp dword [esi], ecx
jne 0x2a30de46
push esi
push dword [ebx + 0x14]
mov dword [ebx + 0x18], ecx
call fcn.2a3179f6
xor ecx, ecx
jmp 0x2a30de46
mov dword [ebx + 0x18], ecx
cmp word [ebx + 0x144], cx
je 0x2a30decd
push ecx
push ecx
lea ecx, [ebp - 0x18]
call fcn.2a3179f6
mov edi, dword [0x2a36bb18]
xor eax, eax
push eax
mov dword [ebp - 4], eax
lea eax, [ebx + 0x40]
push eax
mov eax, dword [0x2a36bb0c]
push str.Cstring
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x2a35835c]
call esi
mov esi, dword [edi + 0xd0]
pop ecx
movzx eax, ax
mov ecx, esi
push eax
push 0
call dword [0x2a35835c]
call esi
add esp, 0x10
lea ecx, [ebp - 0x18]
push 0
push eax
call fcn.2a3179f6
cmp dword [ebp - 0x14], 0
je 0x2a30debf
lea ecx, [ebp - 0x18]
call fcn.2a3179f6
test al, al
je 0x2a30debf
lea ecx, [ebp - 0x18]
call fcn.2a33ed32
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.2a3179f6
xor ecx, ecx
cmp dword [ebx + 0x34], 0
je 0x2a30def1
mov eax, dword [0x2a36b7ac]
push dword [ebx + 0x34]
mov esi, dword [eax + 0x284]
mov ecx, esi
call dword [0x2a35835c]
call esi
pop ecx
xor ecx, ecx
mov dword [ebx + 0x34], ecx
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x2a30df25
push eax
mov eax, dword [0x2a36bb38]
cmp word [ebx + 0x196], cx
je 0x2a30df0f
mov esi, dword [eax + 0x124]
jmp 0x2a30df15
mov esi, dword [eax + 0x11c]
mov ecx, esi
call dword [0x2a35835c]
call esi
xor eax, eax
pop ecx
mov dword [ebx + 0x20], eax
mov dword [ebx], 2
call fcn.2a302bc2
ret
Function at 0x2a32caab
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x428
mov eax, 0x2a35572a
call fcn.2a304215
mov edx, dword [ebp + 0xc]
xor ebx, ebx
mov eax, dword [ebp + 8]
mov esi, ebx
mov dword [ebp - 0x42c], edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
test eax, eax
je 0x2a32cccc
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
inc eax
push 2
push eax
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x420]
push eax
call fcn.2a3179f6
add esp, 0x10
test eax, eax
js 0x2a32ccc6
mov edi, dword [ebp - 0x420]
cmp edi, 0x400
jg 0x2a32cb4f
push edi
call fcn.2a32df9a
pop ecx
test al, al
je 0x2a32cb4f
mov eax, edi
call fcn.2a352aa0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x2a32cb61
push edi
lea ecx, [ebp - 0x424]
call fcn.2a3179f6
mov esi, dword [ebp - 0x424]
push 3
push edi
push dword [ebp - 0x41c]
push eax
call fcn.2a3179f6
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x2a32ccc6
push 0x60
push ebx
push eax
call fcn.2a32e256
mov edi, eax
mov dword [ebp - 0x420], edi
test edi, edi
jne 0x2a32cbb9
push 2
push ebx
push dword [ebp - 0x41c]
call fcn.2a32e256
mov edi, eax
mov dword [ebp - 0x420], eax
test edi, edi
jne 0x2a32cbb9
call fcn.2a32b317
mov ebx, eax
jmp 0x2a32cc95
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x2a32cbe0
call fcn.2a32b317
jmp 0x2a32cc88
push eax
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x2a32cbd6
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x41c], eax
lea ecx, [eax + 1]
cmp ecx, eax
jae 0x2a32cc13
mov ebx, 0x8007000e
jmp 0x2a32cc8a
push ecx
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.2a3179f6
jmp 0x2a32cc39
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x2a32cc0c
mov eax, dword [ebp - 0x41c]
push eax
push dword [ebp - 0x428]
push eax
push dword [ebp - 0x418]
call fcn.2a3179f6
mov eax, dword [ebp - 0x418]
add esp, 0x10
mov ecx, dword [ebp - 0x41c]
push dword [ebp + 0x14]
mov byte [eax + ecx], bl
lea ecx, [ebp - 0x434]
push dword [ebp - 0x418]
call fcn.2a3179f6
mov ebx, eax
test edi, edi
je 0x2a32cc95
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x2a32ccae
lea ecx, [ebp - 0x418]
call fcn.2a32b98d
or dword [ebp - 4], 0xffffffff
jmp 0x2a32ccbe
push esi
mov esi, dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
test esi, esi
jne 0x2a32ccb4
mov eax, ebx
jmp 0x2a32ccfa
mov ebx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
cmp ebx, eax
je 0x2a32cce1
lea ecx, [ebp - 0x418]
call fcn.2a32b98d
or dword [ebp - 4], 0xffffffff
jmp 0x2a32ccf1
push esi
mov esi, dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
test esi, esi
jne 0x2a32cce7
mov eax, 0x8007000e
lea esp, [ebp - 0x444]
call fcn.2a30424f
ret 0x10
Function at 0x100065c1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000d5a8]
jne 0x100065cb
repz ret
jmp fcn.10008b4b

Function at 0x100085a1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1000d5a8]
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.100046e2
and dword [ebp - 0x14], 0
cmp dword [0x1000e888], 0
mov dword [ebp - 0x18], eax
jne 0x10008654
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x100086fc
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x100086fc
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1000e888], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1000e88c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1000e890], eax
call edi
push eax
call esi
mov dword [0x1000e898], eax
test eax, eax
je 0x10008654
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1000e894], eax
mov eax, dword [0x1000e894]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x100086ad
cmp dword [0x1000e898], ecx
je 0x100086ad
push eax
call esi
push dword [0x1000e898]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x100086ad
test ebx, ebx
je 0x100086ad
call edi
test eax, eax
je 0x100086a4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x100086a4
test byte [ebp - 8], 1
jne 0x100086ad
or dword [ebp + 0x10], 0x200000
jmp 0x100086e0
mov eax, dword [0x1000e88c]
cmp eax, dword [ebp - 0x18]
je 0x100086e0
push eax
call esi
test eax, eax
je 0x100086e0
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100086e0
mov eax, dword [0x1000e890]
cmp eax, dword [ebp - 0x18]
je 0x100086e0
push eax
call esi
test eax, eax
je 0x100086e0
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1000e888]
call esi
test eax, eax
je 0x100086fc
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x100086fe
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100065c1
leave
ret
Function at 0x10017a20
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x1005058c], 0
je 0x10017a39
mov eax, dword [0x1005058c]
jmp 0x10017bd6
mov dword [0x1005058c], 0x1005055c
push 0x28
push 0
push 0x1005055c
call fcn.10015636
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x1005055c], eax
push str.imagehlp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x10050560], eax
cmp dword [0x10050560], 0
jne 0x10017a7f
xor eax, eax
jmp 0x10017bd6
push str.ImagehlpApiVersionEx
mov eax, dword [0x10050560]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10050564], eax
push str.SymInitialize
mov ecx, dword [0x10050560]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10050568], eax
push str.SymSetOptions
mov edx, dword [0x10050560]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1005056c], eax
push str.SymGetOptions
mov eax, dword [0x10050560]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10050570], eax
push str.SymLoadModule
mov ecx, dword [0x10050560]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10050574], eax
push str.SymGetModuleInfo
mov edx, dword [0x10050560]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10050578], eax
push str.SymGetSymFromName
mov eax, dword [0x10050560]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1005057c], eax
push str.BindImage
mov ecx, dword [0x10050560]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10050580], eax
push 8
push 0
lea edx, [ebp - 8]
push edx
call fcn.10015636
add esp, 0xc
mov word [ebp - 8], 9
cmp dword [0x10050564], 0
je 0x10017b5d
lea eax, [ebp - 8]
push eax
call dword [0x10050564]
cmp dword [0x10050564], 0
je 0x10017b6f
movzx ecx, word [ebp - 8]
cmp ecx, 9
jge 0x10017b8a
mov edx, dword [0x10050560]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x10050560], 0
xor eax, eax
jmp 0x10017bd6
cmp dword [0x10050568], 0
je 0x10017ba3
push 0
push 0
mov eax, dword [0x1005055c]
push eax
call dword [0x10050568]
cmp dword [0x10050570], 0
je 0x10017bd1
cmp dword [0x1005056c], 0
je 0x10017bd1
call dword [0x10050570]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
and ecx, 7
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [0x1005056c]
mov eax, dword [0x1005058c]
mov esp, ebp
pop ebp
ret
Function at 0x10018570
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004b038
push 0x100158bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], 0
jne 0x100185ad
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x100185e3
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
jmp 0x10018741
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx], 0x4550
je 0x1001861b
push 0xbf
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x38]
jmp 0x10018741
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax + 0x14]
test ecx, ecx
jne 0x10018647
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
jmp 0x10018741
mov edx, dword [ebp - 0x24]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x28], 0
jmp 0x1001866a
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
movzx edx, word [ecx + 6]
cmp dword [ebp - 0x28], edx
jae 0x1001871b
push str..detour
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x20]
add ecx, eax
push ecx
call fcn.100150be
add esp, 8
test eax, eax
jne 0x10018716
mov edx, dword [ebp - 0x28]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x20]
cmp dword [eax + edx + 0xc], 0
je 0x100186b7
mov ecx, dword [ebp - 0x28]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x20]
cmp dword [edx + ecx + 0x10], 0
jne 0x100186b9
jmp 0x1001871b
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx], 0x30
jb 0x100186e6
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 4], 0x727444
je 0x100186e8
jmp 0x1001871b
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 8], 0
jne 0x100186fc
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov dword [ecx + 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x40]
jmp 0x10018741
jmp 0x10018661
mov dword [ebp - 4], 0xffffffff
jmp 0x10018734
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10030320
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
push ebx
push esi
push edi
mov edi, ebp
xor ecx, ecx
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x100530f8
call fcn.10015d89
mov esi, esp
push 0x1005015c
push 0x40
push 4
push 0x67ec88
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, esp
call fcn.100159ec
movzx eax, byte [0x10050160]
cmp eax, 1
jne 0x1003037c
movss xmm0, dword [0x1004afa0]
movss dword [0x67ec88], xmm0
jmp 0x1003038c
movss xmm0, dword [0x1004af30]
movss dword [0x67ec88], xmm0
pop edi
pop esi
pop ebx
add esp, 0xc0
cmp ebp, esp
call fcn.100159ec
mov esp, ebp
pop ebp
ret
Function at 0x10034a50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
push ebx
push esi
push edi
mov edi, ebp
xor ecx, ecx
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x100530f8
call fcn.10015d89
mov esi, esp
push 0x1005015c
push 0x40
push 4
push 0x51d67a
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, esp
call fcn.100159ec
movzx eax, byte [0x10050161]
cmp eax, 1
jne 0x10034aa6
mov dword [0x51d67a], 0x190
jmp 0x10034ab0
mov dword [0x51d67a], 0xa0
pop edi
pop esi
pop ebx
add esp, 0xc0
cmp ebp, esp
call fcn.100159ec
mov esp, ebp
pop ebp
ret
Function at 0x404010
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x404034
xor eax, eax
jmp 0x4040b4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40404b
xor eax, eax
jmp 0x4040b4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x404097
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x404097
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x40406e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x4040a3
xor eax, eax
jmp 0x4040b4
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x4040b1
xor eax, eax
jmp 0x4040b4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x404e70
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
jmp 0x404ea6
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
movsx eax, byte [edx]
test eax, eax
je 0x404fac
mov ecx, dword [ebp - 0x14]
movsx edx, byte [ecx]
mov eax, dword [edx*4 + 0x5cf8b0]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x404fa7
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 3
ja case.default.0x404ee1
mov edx, dword [ebp - 0x1c]
jmp dword [edx*4 + 0x404fb8]
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
jmp case.default.0x404ee1
mov ecx, dword [ebp - 0x18]
shl ecx, 2
mov edx, dword [ebp - 0x10]
and edx, 0x30
sar edx, 4
or ecx, edx
mov byte [ebp - 1], cl
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jge 0x404f26
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 8]
mov dl, byte [ebp - 1]
mov byte [ecx], dl
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
jmp case.default.0x404ee1
mov edx, dword [ebp - 0x18]
and edx, 0xf
shl edx, 4
mov eax, dword [ebp - 0x10]
and eax, 0x3c
sar eax, 2
or edx, eax
mov byte [ebp - 1], dl
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x10]
jge 0x404f64
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 8]
mov al, byte [ebp - 1]
mov byte [edx], al
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
jmp case.default.0x404ee1
mov eax, dword [ebp - 0x18]
and eax, 3
shl eax, 6
or eax, dword [ebp - 0x10]
mov byte [ebp - 1], al
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x10]
jge 0x404f9a
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 8]
mov al, byte [ebp - 1]
mov byte [edx], al
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
jmp 0x404e9d
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4058a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56ecc5
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5cee6c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 1
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp + 0x14]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.00405df0
test eax, eax
jne 0x40590d
mov dword [ebp - 0x1c], 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00404dd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00404dd0
mov eax, dword [ebp - 0x1c]
jmp 0x4059c8
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push 0x20019
push 0
push 0
push 0
lea ecx, [ebp + 0x10]
call fcn.00403ff0
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40596a
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x20], 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00404dd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00404dd0
mov eax, dword [ebp - 0x20]
jmp 0x4059c8
mov dword [ebp - 0x24], 4
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
lea ecx, [ebp + 8]
call fcn.00403ff0
push eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40599a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00404dd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00404dd0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4059e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56ed05
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5cee6c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 1
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp + 0x14]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.00405df0
test eax, eax
jne 0x405a4d
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00404dd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00404dd0
mov eax, dword [ebp - 0x18]
jmp 0x405b2e
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push 0x20006
push 0
push 0
push 0
lea ecx, [ebp + 0x10]
call fcn.00403ff0
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x405aad
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00404dd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00404dd0
mov eax, dword [ebp - 0x1c]
jmp 0x405b2e
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
lea ecx, [ebp + 8]
call fcn.00403ff0
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x405aff
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00404dd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00404dd0
mov eax, dword [ebp - 0x20]
jmp 0x405b2e
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24], 1
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00404dd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00404dd0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x10