joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406b40
Capabilities:
Enumerate pe sections

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

Function at 0x431003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43100c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
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 edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x1e7a6e50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
clc
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
dec dword [ebx - 0xe0807bb]
test edx, edx
je 0x1e7a6e72
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.1e7a6b84
imul esp, dword [edi + 0x458dbe57], 0xc5e850c0
cld
invalid
Function at 0x1e7a7210
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x1e7a7238
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x1e7a7233
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x1e7a721d
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x1e7a7225
cmp edx, ebx
jne 0x1e7a7373
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x1e7a71f4
add eax, dword [eax + 4]
jmp 0x1e7a71e1
mov dword [ebp + 0xc], ebx
jmp 0x1e7a7243
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x1e7a725b
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x1e7a7279
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
mov ch, 0x54
invalid
invalid
push dword [ebx]
ror byte [ecx - 0x3e7443bb], cl
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x1e7a72d7
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x1e7a72be
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x1e7a72c7
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x1e7a72d1
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x1e7a72b3
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x1e7a723d
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x1e7a7324
invalid
dec eax
je 0x1e7a731b
sub eax, 3
je 0x1e7a7312
mov dword [ebp - 4], 0x40
jmp 0x1e7a7341
mov dword [ebp - 4], 4
jmp 0x1e7a7327
mov dword [ebp - 4], 0x20
jmp 0x1e7a7327
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x1e7a7373
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x1e7a72f3
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.1e7a6b84
aam 0x32
aam 0x4d
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x1e7a737f
Function at 0x1e7a72c0
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x1e7a7238
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x1e7a7233
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x1e7a721d
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x1e7a7225
cmp edx, ebx
jne 0x1e7a7373
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x1e7a71f4
add eax, dword [eax + 4]
jmp 0x1e7a71e1
mov dword [ebp + 0xc], ebx
jmp 0x1e7a7243
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x1e7a725b
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x1e7a7279
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
mov ch, 0x54
invalid
invalid
push dword [ebx]
ror byte [ecx - 0x3e7443bb], cl
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x1e7a72d7
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x1e7a72be
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x1e7a72c7
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x1e7a72d1
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x1e7a72b3
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x1e7a723d
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x1e7a7324
invalid
dec eax
je 0x1e7a731b
sub eax, 3
je 0x1e7a7312
mov dword [ebp - 4], 0x40
jmp 0x1e7a7341
mov dword [ebp - 4], 4
jmp 0x1e7a7327
mov dword [ebp - 4], 0x20
jmp 0x1e7a7327
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x1e7a7373
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x1e7a72f3
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.1e7a6b84
aam 0x32
aam 0x4d
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x1e7a737f

Function at 0x1e7a7460
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
invalid
invalid
inc esp
Function at 0x1e7a7ad0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.1e7a6b94
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1e7a6b49
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.1e7a6b84
add al, 0xe4
xchg edi, eax
sbb ebp, dword [eax + 4]
add dword [eax], eax
add byte [ebp - 0x12b7b], cl
call dword [eax - 1]
xchg ebp, eax
sub al, 0xfc
invalid

Function at 0x1e7a9c90
Capabilities:
Set thread local storage value

Disassembly:
cmp dword [sym.pywintypes27.dll_struct__is__PyWin_InterpreterState], 0
push ebx
mov ebx, dword [sym.imp.python27.dll_Py_FatalError]
push esi
push edi
mov edi, dword [sym.imp.python27.dll_PyThreadState_Swap]
jne 0x1e7a9ccd
push 0
call edi
mov esi, eax
add esp, 4
test esi, esi
jne 0x1e7a9cbf
push str.pywintypes:_can_not_setup_interpreter_state__as_current_state_is_invalid
call ebx
add esp, 4
mov eax, dword [esi + 4]
push esi
mov dword [sym.pywintypes27.dll_struct__is__PyWin_InterpreterState], eax
call edi
add esp, 4
push 8
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x1e7a9ce7
push 0x1e7b10fc
call ebx
add esp, 4
mov ecx, dword [0x1e7ba8b8]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0
call edi
push eax
mov dword [esi], eax
call edi
add esp, 8
pop edi
mov dword [esi + 4], 0
pop esi
pop ebx
ret

Function at 0x1e7a9d10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x1e7ba8b8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x1e7a9d7f
push esi
push edi
mov edi, dword [sym.imp.python27.dll_Py_FatalError]
cmp dword [sym.pywintypes27.dll_struct__is__PyWin_InterpreterState], eax
jne 0x1e7a9d3a
push str.Can_not_setup_thread_state__as_have_no_interpreter_state
call edi
add esp, 4
push 8
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x1e7a9d54
push str.Out_of_memory_allocating_thread_state.
call edi
add esp, 4
mov ecx, dword [0x1e7ba8b8]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edx, dword [sym.pywintypes27.dll_struct__is__PyWin_InterpreterState]
push edx
call dword [sym.imp.python27.dll_PyThreadState_New]
add esp, 4
mov dword [esi], eax
mov eax, 1
pop edi
mov dword [esi + 4], eax
pop esi
ret
xor eax, eax
ret
Function at 0x401460
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x424308]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov word [ebp - 0x20c], ax
lea eax, [ecx + 0x75ffffff]
push esi
mov esi, dword [ebp + 8]
cmp eax, 3
ja case.default.0x40148e
jmp dword [eax*4 + 0x4015cc]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x401515
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x401515
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x104
push str.drivers
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.00412195
add esp, 0x10
jmp 0x401515
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x401515
push 1
push ecx
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401520
sub eax, edx
sar eax, 1
push edi
mov edi, eax
cmp edi, 0x10
jb 0x401546
lea ecx, [edi + edi + 2]
push ecx
call fcn.0041018b
add esp, 4
jmp 0x401549
lea eax, [esi + 0xc]
inc edi
xor edx, edx
mov dword [esi], eax
mov dword [esi + 4], 0
mov dword [esi + 8], edi
mov word [eax], dx
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401564
sub eax, edx
mov edx, dword [esi]
sar eax, 1
mov edi, eax
lea eax, [edi + edi]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push edx
call fcn.00410610
mov eax, dword [esi + 8]
add esp, 0xc
mov ecx, edi
cmp edi, eax
pop edi
jb 0x401598
lea ecx, [eax - 1]
test eax, eax
jne 0x4015b0
mov dword [esi + 4], eax
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004104b1
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
xor edx, edx
mov word [eax + ecx*2], dx
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004104b1
mov esp, ebp
pop ebp
ret

Function at 0x401c40
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ecx]
push esi
lea eax, [ebp - 4]
push eax
or esi, 0xffffffff
push edx
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov dword [ebp - 8], eax
and eax, ecx
cmp eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x401c89
call esi
test eax, eax
jne 0x401c89
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
test edi, edi
je 0x401cae
mov dword [edi], 0
pop esi
mov esp, ebp
pop ebp
ret
call esi
test eax, eax
je 0x401c9d
jle 0x401ca2
and eax, 0xffff
or eax, 0x80070000
jmp 0x401ca2
mov eax, 0x8007054f
mov edx, dword [ebp - 4]
test edi, edi
je 0x401cab
mov dword [edi], eax
mov eax, dword [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403760
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add ecx, 0x18
pop ebp
jmp fcn.00401bc0
Function at 0x404800
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x424308]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [0x42145c]
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov ecx, dword [0x421458]
mov dword [ebp - 0x424], ecx
mov ecx, dword [0x421460]
xor ebx, ebx
push ebx
mov dword [ebp - 0x41c], ecx
push esi
lea ecx, [ebp - 0x424]
mov dword [ebp - 0x420], edx
mov edx, dword [0x421464]
push ecx
push eax
mov ecx, edi
mov dword [ebp - 0x418], edx
mov dword [ebp - 0x420], 7
call fcn.00401ab0
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x404977
push ebx
lea edx, [ebp - 0x414]
push edx
push 0x400
lea ecx, [ebp - 0x404]
push ecx
push 0xc
lea edx, [ebp - 0x410]
push edx
push 0x2d1400
push eax
mov dword [ebp - 0x40c], ebx
mov dword [ebp - 0x410], ebx
mov dword [ebp - 0x414], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4048de
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x4048cd
jle 0x4048d2
and eax, 0xffff
or eax, 0x80070000
jmp 0x4048d2
mov eax, 0x8007054f
cmp esi, ebx
je 0x404963
mov dword [esi], eax
jmp 0x404959
cmp esi, ebx
je 0x4048e4
mov dword [esi], ebx
cmp dword [ebp - 0x414], 0x28
jb 0x404959
cmp dword [ebp - 0x3e8], 0xe
jne 0x404959
mov edx, dword [ebp - 0x3f4]
cmp edx, 0x400
jae 0x404959
mov eax, 9
mov ecx, 0x421760
lea edx, [ebp + edx - 0x404]
mov ebx, dword [edx]
cmp ebx, dword [ecx]
jne 0x404957
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x404915
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x404957
cmp dword [ebp - 0x3e4], 0x14
jb 0x404953
lea edx, [ebp - 0x3dc]
call fcn.00404bc0
test eax, eax
je 0x404953
test esi, esi
je 0x404977
mov dword [esi], 0
jmp 0x404977
test esi, esi
jmp 0x40495b
xor ebx, ebx
cmp esi, ebx
je 0x404963
mov dword [esi], 0x80070032
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x404977
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0xffffffff
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004104b1
mov esp, ebp
pop ebp
ret 8
Function at 0x40cd40
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x424308]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push edi
or ecx, 0x2001f
push ecx
xor ebx, ebx
push eax
push edx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x208], ebx
call fcn.0040c610
mov edi, eax
cmp edi, ebx
je 0x40cdba
mov eax, dword [ebp - 0x210]
cmp eax, ebx
je 0x40cda5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004104b1
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x210]
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x204]
push edx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push eax
mov dword [ebp - 0x214], 0x100
call ebx
test eax, eax
jne 0x40ce38
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x210]
call fcn.0040cd40
mov edi, eax
test edi, edi
jne 0x40ce71
lea edx, [ebp - 0x220]
push edx
mov edx, dword [ebp - 0x210]
push eax
push eax
push eax
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x204]
push ecx
push edi
push edx
mov dword [ebp - 0x214], 0x100
call ebx
test eax, eax
je 0x40cdf0
mov eax, dword [ebp - 0x210]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
cmp eax, edi
je 0x40ce53
push eax
call ebx
mov dword [ebp - 0x210], edi
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x20c], edi
push eax
cmp ecx, edi
je 0x40ce9b
mov edx, dword [esi]
push edx
call fcn.0040c3e0
jmp 0x40cea4
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x40cda5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004104b1
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [ebp - 0x210]
cmp eax, edi
je 0x40ceb3
push eax
call ebx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004104b1
mov esp, ebp
pop ebp
ret 4
Function at 0x40e5a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x424308]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x40c], ecx
xor ecx, ecx
push 2
push ecx
push eax
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x408], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40e5ef
call fcn.0040c320
mov esi, eax
jmp 0x40e696
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40e608
call fcn.0040c320
jmp 0x40e68d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x40e61d
call fcn.0040c320
jmp 0x40e68d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x40e635
mov esi, 0x8007000e
jmp 0x40e68f
push eax
lea ecx, [ebp - 0x408]
call fcn.0040d500
mov eax, dword [ebp - 0x408]
test eax, eax
jne 0x40e652
mov esi, 0x8007000e
jmp 0x40e68f
push esi
push eax
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x40e66b
call fcn.0040c320
jmp 0x40e68d
mov edx, dword [ebp - 0x408]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x408]
push eax
push ecx
lea ecx, [ebp - 0x410]
call fcn.0040e2d0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x404]
cmp dword [ebp - 0x408], edx
je 0x40e6b0
lea ecx, [ebp - 0x408]
call fcn.0040cce0
nop
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004104b1
mov esp, ebp
pop ebp
ret 0x10

Function at 0x410115
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x41011e
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
movsx ecx, byte [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
not eax
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
jmp 0x4100c8
call fcn.0040ecc8
rcl edx, cl
sahf
and byte [ebp - 0x72c], 0
and byte [ebp - 0x72b], 0
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
invalid
test ebp, ebx
clc
invalid